- This topic has 6 replies, 2 voices, and was last updated 15 years, 6 months ago by support-joy.
-
AuthorPosts
-
MichaelwMemberMy web application works fine when I deploy it from MyEclipse to standalone Tomcat 6. The problem is after I deploy the war file created by MyEclipse in Tomcat. The deployment is successful. The problem arises when I tried to access the servlet of the war file from my Flex application. Below is the error recorded in Tomcat log file :
27-May-2009 9:24:12 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet ImageServlet threw exception
java.lang.ClassNotFoundException: weblogic.utils.NestedException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1847)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308)
at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:147)
at javax.xml.parsers.FactoryFinder.findJarServiceProvider(FactoryFinder.java:298)
at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:223)
at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:128)
at com.unisys.os2200.connector.OS2200ParseXML.raxml(OS2200ParseXML.java:48)
at com.unisys.os2200.connector.OS2200ManagedConnectionFactory.<init>(OS2200ManagedConnectionFactory.java:110)
at com.dps.imagex.ImageServlet.doGet(ImageServlet.java:90)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)The jar file (wljmsclient.jar) containing “weblogic.utils.NestedException” class was included in the CLASSPATH before I started Tomcat. Is this war file creation problem or Tomcat classpath problem?
support-joyMemberMichaelw,
Can you answer below questions for me to understand what is the root cause
1. Can you copy and paste your installation details? You can get it from MyEclipse > Installation Summary > Installation Detail.
2. Going by the log files, there is a probability that this issue is caused during weblogic deployment process. Can you verify if you are using weblogic in your flex application? If so, I would recommend you to recheck the deployment settings/contact their forum support.
3. Can you verify if the generated war file contains weblogic.xml? If yes, can you copy and paste the contents of the xml file here?
4. Can you verify if the war file also contains weblogic.jar or equivalent? If so can you specify the version of the jar file. I have researched on the net and the possible cause ofweblogic.utils.NestedException
seems to be on using an older version of the jar file. I think if you update to the relevant latest version of the jar file you should be all set
This looks more like a weblogic deployment/flex application issue. I would recommend you to cross post in these forums for more help
MichaelwMemberJoy,
To answer your questions:
1. *** Date:
Thursday, May 28, 2009 9:55:01 o’clock AM ADT** System properties:
OS=WindowsXP
OS version=5.1.0
Java version=1.5.0_11*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 7.1.1
Build id: 7.1.1-20090310*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 7.1.1
Build id: 7.1.1-20090310Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\Program Files\Genuitec\MyEclipse 7.1\myeclipse.exe
-name
Myeclipse
–launcher.library
C:\Program Files\Genuitec\MyEclipse 7.1\../Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
-startup
C:\Program Files\Genuitec\MyEclipse 7.1\../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
-clean
-configuration
configuration
-vm
C:\Program Files\Genuitec\Common\binary\com.sun.java.jre.win32.x86_1.5.0.011\bin\client\jvm.dll2. The Flex web application calls (via Httpservice) the servlet (deployed ImageX.war) which utilizes a client jar (generated in Weblogic 10.0 clientgen) to call an external Web service. All of these are working great when ImageX.war (exploded) is deployed in MyEclipse. There are several jar files in MyEclipse Enterprise WorkBench > Servers > Tomcat > Tomcat 6.x > Paths (Append to classpath). These jar files were included in the CLASSPATH environment variable before I startup Tomcat manually.
3. The generated war file does not contain weblogic.xml.
4. The generated war file contains weblogic.jar (version 10.0) and other jars in WEB-INF\lib directory of ImageX.war, which are also referenced in MyEclipse Referenced Libriaries list.
On closer look during the manual deployment of ImageX.war in Tomcat 6 server startup, there is an error message in the DOS window:
…..
28-May-2009 8:38:12 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
28-May-2009 8:38:13 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
28-May-2009 8:38:13 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/ImageX] startup failed due to previous errors
28-May-2009 8:38:13 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
28-May-2009 8:38:13 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
28-May-2009 8:38:13 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31 config=null
28-May-2009 8:38:13 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1431 msIHowever, I noticed a subtle diffenence between MyEclipse Consle display below
Please look at the 3rd line between the two.
…..
28-May-2009 9:36:11 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
28-May-2009 9:36:12 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
28-May-2009 9:36:12 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
28-May-2009 9:36:13 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
28-May-2009 9:36:14 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
28-May-2009 9:36:14 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/78 config=null
28-May-2009 9:36:14 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2533 msSo the war file, ImageX.war, was not deployed successufully. As mentioned in 2. above, all the jar files (including wljmsclient.jar) listed in MyEclipse Enterprise WorkBench > Servers > Tomcat > Tomcat 6.x > Paths were included in the environment variable CLASSPATH before starting Tomcat. Why did ImageX.war fail the manual deployment? (I created the war file by right clicking MyEclipse project icon > Export)
Mike
MichaelwMemberJoy,
Just an update: I was able to deploy ImageX.war successfully (no more “SEVERE: Error listenerStart” …) in Tomcat after including wljmsclient.jar in MyEclipse Referenced Libraries when I built the war file. However, the error is still related to a missing class file when I tried to access the web application from Flex.
28-May-2009 12:58:17 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
28-May-2009 12:58:17 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
28-May-2009 12:59:09 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet ImageServlet threw exception
java.lang.ClassNotFoundException: weblogic.descriptor.DescriptorBean
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1847)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1847)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1847)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1847)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at weblogic.xml.jaxp.RegistrySAXParserFactory.<clinit>(RegistrySAXParserFactory.java:27)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:147)
at javax.xml.parsers.FactoryFinder.findJarServiceProvider(FactoryFinder.java:298)
at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:223)
at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:128)
at com.unisys.os2200.connector.OS2200ParseXML.raxml(OS2200ParseXML.java:48)
at com.unisys.os2200.connector.OS2200ManagedConnectionFactory.<init>(OS2200ManagedConnectionFactory.java:110)
at com.dps.imagex.ImageServlet.doGet(ImageServlet.java:90)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
28-May-2009 12:59:22 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
28-May-2009 12:59:22 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()In the mean time I will also post a question in Weblogic Forum and find out why Tomcat is looking for weblogic.descriptor.DescriptorBean class file when the war file is deployed manually.
Mike
support-joyMemberMike,
Thanks for the details.
SEVERE: Servlet.service() for servlet ImageServlet threw exception
java.lang.ClassNotFoundException: weblogic.descriptor.DescriptorBeanLooks like there is a missing reference to the above class. From your flex application, can you track this missing reference. Do you have a weblogic.xml file in your flex application? I would recommend you to investigate more in xml files as well as look for missing references.
Yes, the best would be to cross-post to weblogic and flex forums, you might get more help there. Sorry, I couldn’t be of more help here.
MichaelwMemberIn the Weblogic forums someone suggested to include all the jar files in wseeclient.zip in WEB-INF\lib directory of the war file. I did that and deployed it in Tomcat. But I still encountered errors:
Jun 5, 2009 1:32:24 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet ImageServlet threw exception
java.lang.ClassCastException: com.bea.xbean.values.XmlTokenImpl cannot be cast to com.sun.java.xml.ns.j2Ee.FullyQualifiedClassType
at weblogic.wsee.tools.wseegen.schemas.impl.ListenerTypeImpl.getListenerClass(ListenerTypeImpl.java:37)
at weblogic.wsee.ws.init.WsConfigFactory.getDeploymentListenerConfig(WsConfigFactory.java:139)
at weblogic.wsee.ws.init.WsConfigFactory.load(WsConfigFactory.java:110)
at weblogic.wsee.ws.init.WsConfigFactory.newInstance(WsConfigFactory.java:59)
at weblogic.wsee.ws.init.WsConfigFactory.newInstance(WsConfigFactory.java:45)
at weblogic.wsee.ws.init.WsConfigManager.<clinit>(WsConfigManager.java:8)
at weblogic.wsee.ws.init.WsDeploymentChain.newClientChain(WsDeploymentChain.java:24)
at weblogic.wsee.ws.WsFactory.callClientListeners(WsFactory.java:113)
at weblogic.wsee.ws.WsFactory.createClientService(WsFactory.java:46)
at weblogic.wsee.jaxrpc.ServiceImpl.init(ServiceImpl.java:149)
at weblogic.wsee.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:117)
at driver.image.client.ImageRetrieval_Impl.<init>(Unknown Source)
at driver.image.client.ImageRetrieval_Impl.<init>(Unknown Source)
at com.dps.imagex.ImageServlet.doGet(ImageServlet.java:166)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
support-joyMemberSEVERE: Servlet.service() for servlet ImageServlet threw exception
java.lang.ClassCastException: com.bea.xbean.values.XmlTokenImpl cannot be cast to com.sun.java.xml.ns.j2Ee.FullyQualifiedClassTypeYou should investigate the ClassCastException.
-
AuthorPosts