aspose file tools*
The moose likes Websphere and the fly likes Classloader problem whileInstalling ear having struts version 1.1 on webpshere 5.0.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Classloader problem whileInstalling ear having struts version 1.1 on webpshere 5.0.2 " Watch "Classloader problem whileInstalling ear having struts version 1.1 on webpshere 5.0.2 " New topic
Author

Classloader problem whileInstalling ear having struts version 1.1 on webpshere 5.0.2

Amit Luktuke
Greenhorn

Joined: Feb 11, 2005
Posts: 4
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

Joined: Sep 13, 2003
Posts: 44
Try defining the old jar you were using (Struts 1.0) as a shared library to your project.

Regards


IBM Certified System Administrator - Websphere Application Server 5
Amit Luktuke
Greenhorn

Joined: Feb 11, 2005
Posts: 4
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Classloader problem whileInstalling ear having struts version 1.1 on webpshere 5.0.2