From the stack trace it looks a classloading issue. I presume that your com.tes.HomeForm and HomeAction classes are in your WEB-INF/classes or a jar in WEB-INF/lib? (Confirm that first though given it worked in 1.3 and assuming you changed nothing else it should still be the case!)

Where is your struts.jar?

Be sure its in WEB-INF/lib and that there arent any other copies anywhere 'visible' to the web app (ie shared).

Evermind is Orion right? Havent used it myself. You may wish to check its docs regarding webapp classloading. Some servers (JBoss being a example) do evil things with the webapp classloader that can result in these kind of odd issues...


Hari Saptoadi wrote:

hi all , is there any different reading page context between JDK 1.3 and JDK 1.4 ?
i mean i have struts app , and if i call in browser like this http://10.1.9.222:8988/multi/HomeAction.do
it work fine in JDK 1.3 but when i upgrade to JDK 1.4 .2, i got this massage The page cannot be displayed
HTTP 500 - Internal server error and the log look like this INFO: Processing a 'GET' for path '/HomeAction'
Oct 14, 2004 8:29:49 AM org.apache.struts.util.RequestUtils createActionForm
SEVERE: Error creating form bean of class HomeForm
java.lang.ClassNotFoundException: com.tes.HomeForm
at com.evermind.naming.ContextClassLoader.findClass(ContextClassLoader.java:313)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.java)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:193)
at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:219)
at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:625)
at org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor.java:351)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:245)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1295)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:494)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
Oct 14, 2004 8:29:49 AM org.apache.struts.action.RequestProcessor processActionCreate
SEVERE: No action instance for path /HomeAction could be created
java.lang.ClassNotFoundException: com.tes.HomeAction
at com.evermind.naming.ContextClassLoader.findClass(ContextClassLoader.java:486) and so on ......
and this is my struts-config.xml
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
<struts-config>
<form-beans>
<form-bean name="HomeForm" type="com.tes.HomeForm"/>
</form-beans> <action-mappings>
<action path="/HomeAction" type="com.tes.HomeAction" name="HomeForm" input="/Home.jsp" scope="request">
<forward name="home1" path="/HomeAction1.do"/>
<forward name="home2" path="/HomeAction2.do"/>
<forward name="success" path="/HOME1/Home.jsp"/>
</action> </action-mappings> <message-resources parameter="com.tes.ApplicationResources"/>
</struts-config>
my question is why it's happened with JDK 1.4.2 but work fine with 1.3 ? is there anything wrong with my struts-config ?
thanks in advance.....




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to