Amit Luktuke

Greenhorn
+ Follow
since Feb 11, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Amit Luktuke

Hi merrl,

thanks it got solved. It was classpath problem. i moved my log4j.properties file to classpath & added utility jar file into ear project under utility jar & it worked well.

thanks for ur help
amit
Hi,

I would like to user log4j as my logging tool for j2ee application. i have created one helper class as LogHelper & using it in my struts based application. This works fine when i create this in my war module.

But now i want to use in different java projects also. SO i moved this to one common java project. Now when i am trying to use in action class inside web module it throws NoClassDefFound error.

I am using WSAD for development. It doesn't give any error while compiling only get runtime error.

Can anybody mail me url of sample code using log4j in j2ee applications as library or utility project ??

regards
amit
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
19 years ago
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
19 years ago