wood burning stoves 2.0*
The moose likes Websphere and the fly likes Create deployment code for EJJB 2.0 in WAS 6.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Create deployment code for EJJB 2.0 in WAS 6.1" Watch "Create deployment code for EJJB 2.0 in WAS 6.1" New topic
Author

Create deployment code for EJJB 2.0 in WAS 6.1

Siva Masilamani
Ranch Hand

Joined: Sep 19, 2008
Posts: 385
Hi

we recently migrated to WAS 6.1 from 5.1 and are trying to build our application.

We are facing problem in generating deployment code for one of our ejb module.

below is the exception we are facing .

If i replace the ejb-jar.xml dtd according to ejb2.1 then it works fine.But if i use dtd for ejb 2.0 it is showing the error but went on building the application.

I am just afraid of changing the dtd just to avoid this error or if i continue with this ,would it cause any problem when we run into production?

Please let me know changing the dtd to according to version 2.1 will cause any problem?

if yes then,How do i generate the deployment code for ejb 2.0 with WAS 6.1 ejbDeploy.sh script?.

o0825.02EJB Deploy configuration directory: /users/users-2/t504625/.eclipse/configurationframework search path: /auto/prod/ver/WAS/610_21/deploytool/itp/plugins
[exec] org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ResourceLoadException: IWAE0007E Could not load resource "META-INF/ejb-jar.xml" in archive "/vobs/glbtrs01/gmm/build/src/java/temp/AppMessaging.jar"
[exec] Stack trace of nested exception:
[exec] org.eclipse.emf.common.util.WrappedException: java.net.ConnectException: Connection timed out
[exec] at org.eclipse.wst.common.internal.emf.resource.EMF2SAXRenderer.doLoad(EMF2SAXRenderer.java:97)
[exec] at org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl.basicDoLoad(TranslatorResourceImpl.java:142)
[exec] at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.doLoad(CompatibilityXMIResourceImpl.java:173)
[exec] at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1094)
[exec] at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:900)
[exec] at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.load(CompatibilityXMIResourceImpl.java:259)
[exec] at org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl.load(TranslatorResourceImpl.java:388)
[exec] at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:249)
[exec] at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:264)
[exec] at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:390)
[exec] at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategyImpl.getMofResource(LoadStrategyImpl.java:347)
[exec] at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl.getMofResource(ArchiveImpl.java:731)
[exec] at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleFileImpl.getDeploymentDescriptorResource(ModuleFileImpl.java:61)
[exec] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.preprocessArchives(BatchExtension.java:3681)
[exec] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.run(BatchExtension.java:340)
[exec] at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
[exec] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
[exec] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
[exec] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[exec] at java.lang.reflect.Method.invoke(Method.java:585)
[exec] at com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.run(BootLoaderLoader.java:476)
[exec] at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.execute(BatchDeploy.java:101)
[exec] at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:106)
[exec] at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:336)
[exec] Caused by: java.net.ConnectException: Connection timed out
[exec] at java.net.PlainSocketImpl.socketConnect(Native Method)
[exec] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
[exec] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
[exec] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
[exec] at java.net.Socket.connect(Socket.java:507)
[exec] at java.net.Socket.connect(Socket.java:457)
[exec] at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
[exec] at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
[exec] at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
[exec] at sun.net.www.http.HttpClient.<init>(HttpClient.java:214)
[exec] at sun.net.www.http.HttpClient.New(HttpClient.java:287)
[exec] at sun.net.www.http.HttpClient.New(HttpClient.java:299)
[exec] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:792)
[exec] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:744)
[exec] at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:669)
[exec] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:913)
[exec] at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
[exec] at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
[exec] at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
[exec] at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
[exec] at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
[exec] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
[exec] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[exec] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[exec] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[exec] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[exec] at org.eclipse.wst.common.internal.emf.resource.EMF2SAXRenderer.doLoad(EMF2SAXRenderer.java:93)
[exec] ... 26 more


SCJP 6,SCWCD 5,SCBCD 5

Failure is not an option.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Create deployment code for EJJB 2.0 in WAS 6.1
 
Similar Threads
Shut Down a SSL Enabled JBOSS
Coonection Exception while reading the xml file in Eclipse
Problem loading applicationContext.xml
java.net.ConnectionException
HttpURLConnection