Discussions

Web tier: servlets, JSP, Web frameworks: URGENT STRUTS ERROR with WL6.1

  1. URGENT STRUTS ERROR with WL6.1 (4 messages)

    Hi i am getting the following error...
    After long hours of debugging ..couldnt find out why?
    I use struts 1.1

    44:26 PropertyMessageResources 127: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    44:26 RequestUtils 162: Could not find Java 1.4 encode method. Using deprecated version.
    java.lang.NoSuchMethodException
            at java.lang.Class.getMethod0(Native Method)
            at java.lang.Class.getMethod(Class.java:883)
            at org.apache.struts.util.RequestUtils.<clinit>(RequestUtils.java:160)
            at org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResourcesFactory.java:192)
            at org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:576)
            at org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329)
            at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464)
            at javax.servlet.GenericServlet.init(GenericServlet.java:258)
            at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:731)
            at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:658)
            at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:603)
            at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2360)
            at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:2301)
            at weblogic.servlet.internal.HttpServer.preloadServlets(HttpServer.java:558)
            at weblogic.servlet.internal.WebService.preloadServlets(WebService.java:450)
            at weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:49)
            at java.lang.Thread.run(Thread.java:479)
    44:26 PropertyMessageResources 127: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    44:26 Digester 1621: register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 'zip:C:
    mp_war_devAnthem_eunitedwayWeb/WEB-INF/lib/struts24580.jar!/org/apache/struts/resources/struts-config_1_0.dtd'


    thanks
    -Sri
  2. What version of JDK/JVM are you using? IMHO there is a deprecated method and a version conflict. Make sure you have the most recent Struts jars and JDK 1.4.2_xx. Also make sure you do not have multiple JVMs registered in your box.

    regards,
    Sekar
  3. well i just had to suppress log4j messages ...these messages could scare u sometimes....thanks for ur suggestion.
    -sri
  4. Is it possible to suppress the log messages from struts



    Regards,
    Mini
  5. Struts as such does not have any logging mechanism. It is TOMCAT or the servlet container that uses log4j(in most cases) to log the events. You can modify the log4j.xml located in your app directory to set the logging level.
    regards,
    Sekar