on 10-07-2008 3:30 PM
Hi,
I have SAP J2EE 6.20 installed on linux machine. I am trying to deploy struts framework based application and while deploying it..... I am getting error message:
Error can't load Servlet org.apache.struts.action.ActionServlet : java.lang.NoClassDefFoundError: org/xml/sax/SAXException
07 19:27:48 - ***********************************************************
08/10/07 19:27:48 - Applying user role management mappings.
08/10/07 19:27:48 - Start updating EAR-file...D:\SAPJ2EE Client\deploying\sambodh\sambodh.ear
08/10/07 19:28:26 - Temp files deleted...
08/10/07 19:28:26 - Ear-file updated successfully for 37860ms.
08/10/07 19:28:27 - Start deploying ...
08/10/07 19:30:35 - Ear-file uploaded to server for 128047ms.
08/10/07 19:30:37 - Successfuly deployed! Deployment took 1953ms.
08/10/07 19:30:37 - WARNING : Deploy service return folowing WARNINGs:
Error can't load Servlet org.apache.struts.action.ActionServlet : java.lang.NoClassDefFoundError: org/xml/sax/SAXException
Deployment took 1953ms.
08/10/07 19:30:37 - ***********************************************************
First time when I got this error, I added struts.jar in my server's <inst_dir>/alone/additional_libs/...... but then also error still exists... Do I have to start SAP J2EE instance once again and then deploy my application?
Can anyone help me out in this as this is very very very imp.
regards
hi,
what problem i was getting will tell u.
i had required one jar file so i added that jar file through javabuidpath.
but when i buildin gthat web module project that jar file was removed from there.
Are u getting same problem?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wow, 6.20... Let me see if I can remember how it was done there...
You have to add the following line to the file <inst-dir>/alone/managers/reference.txt:
reference <your-app-name> library:inqmyxml
HTH!
\-- Vladimir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi....
thanks for the quick response. I added the following lines in reference.txt file.
reference <app_name> library:inqmyxml
reference <app_name> library:sapjco
reference <app_name> library:jdbc
reference <app_name> library:oracle_jdbc
reference <app_name> library:APIL_LDAP
and redeployed the application using SAPJ2EE 6.20 deployer tool. but still I am getting the same error.
Please please please please help me out on the same.
regards
Hi,
As per your actions above I believe you have already found SAP Note 435363.
Basically for a struts application there are no special requirements other than
1. Make a reference to the inqmyxmltoolkit from the application that is going to use struts before the deployment
2. Put the struts library into WEB-INF/lib of the application (struts can't be shared among applications)
3. Deploy the application
For making the reference you can:
1. Telnet to the Engine (if you run it as a service and do not have access to its shell directly)
If telnet port on the Engine dispatcher is 2323
telnet localhost 2323
2. Jump to the server node
for example if the application node's cluster id is 4001
jump 4001
3. Execute the commands
add deploy
changeref -m MyApplication library:inqmyxml
So if it does not work, then I see two reasons possible:
1. You are using a really old version of the 6.20 Engine - check if you are on PL41.
2. You have misspelled the name of your application in the reference. The names are case sensitive so you need to be careful. MyApplication is not the same as myApplication or myapplication.
Regards,
Iavor
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.