java.lang.ClassNotFoundException: org.apache.struts.util.PropertyMessageResourcesFactory [wlappc]

Oracle Community | 666705 | 1 decade ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    properties file not found by classloader when using wlappc ant task

    Oracle Community | 1 decade ago | 666705
    java.lang.ClassNotFoundException: org.apache.struts.util.PropertyMessageResourcesFactory [wlappc]
  2. 0
    samebug tip
    A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.
  3. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add with the following: <groupId>com.fasterxml</groupId> <artifactId>classmate</artifactId> <version>1.0</version>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    This was caused by a failure to instantiate Kafka broker. Check your dependencies.
  6. 0
    samebug tip
    NoClassDefFoundError means java has failed to find a class you're trying to instantiate, look if you've added the class you're trying to instantiate to the dependencies.

  1. rsprangemeijer 6 times, last 5 days ago
  2. marcbouvierdav 26 times, last 7 days ago
  3. batwalrus76 12 times, last 1 week ago
  4. musketyr 1 times, last 1 week ago
  5. SteVio1989 4 times, last 1 week ago
69 more registered users
26 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    org.apache.struts.util.PropertyMessageResourcesFactory [wlappc]

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:198)[wlappc]
    2. java.security.AccessController.doPrivileged(Native Method)[wlappc]
    3. java.net.URLClassLoader.findClass(URLClassLoader.java:186)[wlappc]
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:299)[wlappc]
    5. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:272)[wlappc]
    6. java.lang.ClassLoader.loadClass(ClassLoader.java:255)[wlappc]
    6 frames
  3. struts
    BaseTag.<clinit>
    1. org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:207)[wlappc]
    2. org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResourcesFactory.java:192)[wlappc]
    3. org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:576)[wlappc]
    4. org.apache.struts.util.RequestUtils.<clinit>(RequestUtils.java:134)[wlappc]
    5. org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResourcesFactory.java:192)[wlappc]
    6. org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:576)[wlappc]
    7. org.apache.struts.taglib.html.BaseTag.<clinit>(BaseTag.java:94)[wlappc]
    7 frames
  4. Java RT
    Class.forName
    1. java.lang.Class.forName0(Native Method)[wlappc]
    2. java.lang.Class.forName(Class.java:140)[wlappc]
    2 frames
  5. Struts EL
    ELBaseTagBeanInfo.getPropertyDescriptors
    1. org.apache.strutsel.taglib.html.ELBaseTagBeanInfo.class$(ELBaseTagBeanInfo.java:81)[wlappc]
    2. org.apache.strutsel.taglib.html.ELBaseTagBeanInfo.getPropertyDescriptors(ELBaseTagBeanInfo.java:81)[wlappc]
    2 frames
  6. Java RT
    Introspector.getBeanInfo
    1. java.beans.Introspector.getTargetPropertyInfo(Introspector.java:436)[wlappc]
    2. java.beans.Introspector.getBeanInfo(Introspector.java:372)[wlappc]
    3. java.beans.Introspector.getBeanInfo(Introspector.java:207)[wlappc]
    4. java.beans.Introspector.getBeanInfo(Introspector.java:193)[wlappc]
    4 frames
  7. weblogic.servlet.jsp
    Jsp2Java.outputs
    1. weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:1323)[wlappc]
    2. weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.java:1261)[wlappc]
    3. weblogic.servlet.jsp.StandardTagLib.<init>(StandardTagLib.java:292)[wlappc]
    4. weblogic.servlet.jsp.TagLibHelper.loadTagLib(TagLibHelper.java:314)[wlappc]
    5. weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:145)[wlappc]
    6. weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:5015)[wlappc]
    7. weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4853)[wlappc]
    8. weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4699)[wlappc]
    9. weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2094)[wlappc]
    10. weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1880)[wlappc]
    11. weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1753)[wlappc]
    12. weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:963)[wlappc]
    13. weblogic.servlet.jsp.JspParser.doit(JspParser.java:106)[wlappc]
    14. weblogic.servlet.jsp.JspParser.parse(JspParser.java:230)[wlappc]
    15. weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:125)[wlappc]
    15 frames
  8. weblogic.utils.compiler
    CodeGenerator.generate
    1. weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:258)[wlappc]
    1 frame
  9. weblogic
    jspc.runJspc
    1. weblogic.jspc.runJspc(jspc.java:550)[wlappc]
    2. weblogic.jspc.runJspc(jspc.java:437)[wlappc]
    2 frames
  10. weblogic.servlet.jsp
    JspcInvoker.compile
    1. weblogic.servlet.jsp.JspcInvoker.compile(JspcInvoker.java:163)[wlappc]
    1 frame
  11. weblogic
    appc.runBody
    1. weblogic.appc.compileWAR(appc.java:859)[wlappc]
    2. weblogic.appc.compileModules(appc.java:650)[wlappc]
    3. weblogic.appc.compileEAR(appc.java:733)[wlappc]
    4. weblogic.appc.compileInput(appc.java:458)[wlappc]
    5. weblogic.appc.runBody(appc.java:184)[wlappc]
    5 frames
  12. weblogic.utils.compiler
    Tool.run
    1. weblogic.utils.compiler.Tool.run(Tool.java:146)[wlappc]
    2. weblogic.utils.compiler.Tool.run(Tool.java:103)[wlappc]
    2 frames
  13. weblogic
    appc.main
    1. weblogic.appc.main(appc.java:1028)[wlappc]
    1 frame
  14. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[wlappc]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[wlappc]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[wlappc]
    4. java.lang.reflect.Method.invoke(Method.java:324)[wlappc]
    4 frames
  15. weblogic.ant.taskdefs
    Appc.execute
    1. weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain(CompilerTask.java:278)[wlappc]
    2. weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java:179)[wlappc]
    2 frames
  16. Ant
    Main.main
    1. org.apache.tools.ant.Task.perform(Task.java:341)[wlappc]
    2. org.apache.tools.ant.Target.execute(Target.java:309)[wlappc]
    3. org.apache.tools.ant.Target.performTasks(Target.java:336)[wlappc]
    4. org.apache.tools.ant.Project.executeTarget(Project.java:1339)[wlappc]
    5. org.apache.tools.ant.Project.executeTargets(Project.java:1255)[wlappc]
    6. org.apache.tools.ant.Main.runBuild(Main.java:609)[wlappc]
    7. org.apache.tools.ant.Main.start(Main.java:196)[wlappc]
    8. org.apache.tools.ant.Main.main(Main.java:235)
    8 frames