• Post Reply Bookmark Topic Watch Topic
  • New Topic

ClassNotFoundException: org.apache.cactus.server.ServletTestRedirector when deploying the ear.  RSS feed

 
Sachin Kumar R Gundi
Greenhorn
Posts: 4
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
We have a migration program of our application from weblogic 9.2 to 10.3.3 application server.Accordingly we had to run the weblogic DD convertor to generate the deployment descriptor to be compatible with the latest server which generated in the xml files refering to latest xsd references for 10.3.3 server.
But unfortunately during the deployment of ear file we faced with ClassNotFoundException for ServletTestRedirector.
PFB the complete error log generated during the server startup.
Could anyone please help me on this issue.


Nov 17, 2011 9:51:00 AM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Completed initializing Sun's JavaServer Faces implementation (1.2_03-b04-FCS) for context '/console'
Nov 17, 2011 9:51:09 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
Nov 17, 2011 9:51:09 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
Nov 17, 2011 9:51:09 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
Nov 17, 2011 9:51:09 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
Nov 17, 2011 9:51:09 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
Nov 17, 2011 9:51:09 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
Nov 17, 2011 9:51:09 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
Nov 17, 2011 9:51:09 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
Nov 17, 2011 9:51:09 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
<Nov 17, 2011 9:51:10 AM EST> <Error> <HTTP> <BEA-101371> <There was a failure when processing annotations for application /webmasters/app/10.3.3_64/domains/PWB/servers/PWB_Managed001/tmp/_WL_user/pwb/12hkzy/pwbapp.war. Please make sure that the annotations are valid. The error is org.apache.cactus.server.ServletTestRedirector>
<Nov 17, 2011 9:51:10 AM EST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'pwb' due to error weblogic.application.ModuleException: Failed to load webapp: 'PartsWB'.
weblogic.application.ModuleException: Failed to load webapp: 'PartsWB'
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:404)
at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:507)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
Truncated. see log file for complete stacktrace

Caused By: java.lang.ClassNotFoundException: org.apache.cactus.server.ServletTestRedirector
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:280)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:253)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Truncated. see log file for complete stacktrace
>
<Nov 17, 2011 9:51:10 AM EST> <Emergency> <Deployer> <BEA-149259> <Server 'PWB_Managed001' in cluster 'PWB_Cluster' is being brought up in administration state due to failed deployments.>
log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly.
 
Claudiu Chelemen
Ranch Hand
Posts: 75
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

Seems to me it's not a migration issue you're facing, but simply maybe you're missing the Jakarta Cactus jar file in your classpath ?
Is the jar present on your server ?

Cheers,
Claudiu
 
Sachin Kumar R Gundi
Greenhorn
Posts: 4
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Claudiu ,
thanks for the reply.
yes the cactus.jar file is available in the classpath.
I tried placing the old web.xml (before running the DDConvertor) used in weblogic 9.2, which consists the same entry as the new one including the defination for org.apache.cactus.server.ServletTestRedirector.And it works fine....
I wonder what would be the difference.Is it the xsd's refered in the xml file?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!