Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Classloader problem whileInstalling ear having struts version 1.1 on webpshere 5.0.2

 
Amit Luktuke
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have developed very simple application using struts1.1 which i would like to deploy on websphere application server 5.0.2
I have kept all struts related jar files undert web-inf/lib folder. I am using WSAD 5.0 for development. My application runs fine on WSAD server.
It also works fine when deployed on WAS 5.0.2 with following settings.

Server
Application classloader policy - Multiple.

But due to my previous application i can not use server applicaiton classloader policy to MULTIPLE .. i have to use SINGLE. when i changed this i get folloowing error while loading my application

[2/12/05 10:44:44:680 IST] 4c8ff987 ServletInstan E SRVE0100E: Did not realize init() exception thrown by servlet action: javax.servlet.UnavailableException: Input/output error reading configuration from resource path /WEB-INF/struts-config.xml
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)

Actually problem is my application refers to adminconsole's struts.jar which is in struts1.0 not in strust.1.1. following logs are there

[2/12/05 10:44:27:633 IST] 4c8ff987 SystemOut O register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 'wsjar:file:/C:/Program Files/WebSphere/AppServer/installedApps/j683d/adminconsole.ear/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'
[2/12/05 10:44:27:664 IST] 4c8ff987 SystemOut O register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN', 'wsjar:file:/C:/Program Files/WebSphere/AppServer/installedApps/j683d/adminconsole.ear/struts.jar!/org/apache/struts/resources/web-app_2_2.dtd'
[2/12/05 10:44:27:664 IST] 4c8ff987 SystemOut O register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN', 'wsjar:file:/C:/Program Files/WebSphere/AppServer/installedApps/j683d/adminconsole.ear/struts.jar!/org/apache/struts/resources/web-app_2_3.dtd'
[2/12/05 10:44:27:664 IST] 4c8ff987 SystemOut O resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 1.1//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd')
[2/12/05 10:44:27:664 IST] 4c8ff987 SystemOut O Not registered, use system identifier
[2/12/05 10:44:44:680 IST] 4c8ff987 ServletInstan E SRVE0100E: Did not realize init() exception thrown by servlet action: javax.servlet.UnavailableException: Input/output error reading configuration from resource path /WEB-INF/struts-config.xml
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)

I have tried parent_last classloader policy option on my server but it doesn't work ..

Can anybody help me out in this ..

regards
amit
 
Benny Thomas
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try defining the old jar you were using (Struts 1.0) as a shared library to your project.

Regards
 
Amit Luktuke
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for replying ..

With old struts.jar it works ..... but after sometime or some days .. abruptly adminconsole doesn't work . with no class found error ..

Anyways i want to find solution to work with latest struts.jar version ..with application class loader policy .SINGLE .

amit
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic