cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Requested resource does not exist with SAP WebAS..deployed an ear

Former Member
0 Kudos

hi,

i deployed an application using SDM gui deployement manger. the application is built using struts,spring etc. I have also created a datasource with Oracel 9i succesfully and hav associated it with the application.

When i try to access the application using the struts based path i get an "<b>ERROR 404:- Error: Requested resource does not exist</b>". I also tried accessing the index.jsp page directly without struts paths but dont know why i get an error "<b>File [appContext/admin/index.jsp] not found in application root of alias [/] of J2EE application [sap.com/com.sap.engine.docs.examples].</b>"

The same ear is working perfectly fine with IBM WSAD but not in SAP Web AS ?? is there any configuration issues that i need to address ?? Kindly help me ASAP !!

Regards,

Vaibhav

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vaibhav,

Let me inform you one thing that SAP WAS is very different from IBM WSAD, also it is J2EE 1.3 complaint and not the latest J2EE releases and since your application uses frameworks like Struts, spring etc be more carefull.

Please refer the following links for more information on developing J2EE applications on SAP WAS.

https://www.sdn.sap.com/irj/sdn/developerareas/java?rid=/webcontent/uuid/7d646a6c-0501-0010-b480-bf4... [original link is broken]

However for porting your application on SAP WAS, you can think of the following options,

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7a516278-0801-0010-1c9f-dbc...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e6b4803a-0b01-0010-7386-916...

/people/narayanaswamy.balasubramaniam/blog/2005/02/26/using-jakarta-struts-in-web-application-server-part-i

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/73af6078-0801-0010-8fa1-dea...

Hope this helps you.

Guru,

PS: Reward points for helpfull replies.

Former Member
0 Kudos

Hi Gurvinder,

Thnx for the prompt reply but i have some problem accessing following URLs :

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7a516278-0801-0010-1c9f-dbc...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e6b4803a-0b01-0010-7386-916...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/73af6078-0801-0010-8fa1-dea...

Also most probably the ear is working ear and is already deployed and running on the client end in SAP WebAS. We are trying to simulate the same environment here. Any help is highly appreciated !!

thanks in anticipation !!

Regards,

Vaibhav

Former Member
0 Kudos

Hi Vaibhav,

If the EAR file is a working copy then there should not be a big problem, try restarting the server and see if it works. Otherwise goto the deployement folder where all the deployed files are kept(e.g. D:\usr\sap\GUR\JC00\j2ee\cluster\server0\apps\sap.com) and see if all the files are present there, if not then we have problem in the EAR file itself.

Thanks,

Guru.

PS: <b>Reward points</b>.

Former Member
0 Kudos

Guru i think we hit the bulls eye !!

ther is actually nothing inside the specified folder except another folder called JDBCConnector. this folder is also empty. But how is this possible as i have checked my ear and it contains a war file as well as all required configuration files. I deployed this application using the SDM remote deployement manager UI tool and not using NW IDE.

please reply fast !!

Former Member
0 Kudos

Hi Vaibhav,

Since we have already tried the deployemnet with remote sdm manager, try it once with the NWDS(eclipse), i think that should work. Otherwise use the Visual administrator and try deploying directly.

Regards,

Guru.

Former Member
0 Kudos

Guru i tried using Visual Admin and was able to locate all the files in the sap.com/<application-name> folder but now the problem is that after deployment when ever i acceess the url then it says that data source specified in application-context.xml not found so now i create a datasource using the visual admin then what happens is it automatically deletes the sub folders of the application in sap.com and again the same error starts coming........ can u tell me that is there any specific order in which i need to create the datasource and deploy the application ??

Thanks & Regards,

Vaibhav

Former Member
0 Kudos

Hi Vaibhav,

You need to create the data source in the application-context.xml file through NWDS, then only it will work.

Regards,

Guru.

Former Member
0 Kudos

Hi Gurvinder,

sorry for replying to your mail after a long time.....i tried various permutations but it isnt working at all and think the of trying last option of configuring it in application-context.xml........i m new to spring can u guide me as to how do i create a datasource using spring.....thanks in anticipation !!

Regards,

Vaibhav

Former Member
0 Kudos

Hi vaibhav,

I will not be easy to tell you how to configure spring like this. But if you want some code sample; i can send you that. Mail me at gurvinderd@hexaware.com.

Good spring tutorials,

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/73af6078-0801-0010-8fa1-dea...

http://www.theserverside.com/tt/articles/content/SpringFramework/article.html

http://docs.codehaus.org/display/DROOLS/DroolsSpringTutorial

Best regards,

Guru.

PS: Reward points.<b></b>

Former Member
0 Kudos

Hi,

Now my problem of deploying the application alogwith a app server configured datasource is solved but on accessing the application url i get the following error:-

<b>Application error occurs during request processing.

Internal error while parsing JSP page [C:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/sap.com/doculine/servlet_jsp/doculine/root/admin/login.jsp].

Details: com.sap.engine.services.servlets_jsp.server.jsp.exceptions.ParseException: TagLibValidator returns error(s) for taglib [/WEB-INF/c.tld]: [

com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Unsupported character: a9(:main:, row:739, col:23)(:main:, row=739, col=23) -> com.sap.engine.lib.xml.parser.ParserException: Unsupported character: a9(:main:, row:739, col:23)

].

Exception id: [000CF1AFC124004F000000370000067000041B1C09865D90]

</b>

Kindly guide me as to what am i supposed to do.....

Thanks in anticipation !!

Regards,

Vaibhav

Former Member
0 Kudos

Hi,

The Required server log contents are as follows:-

#

#1.5#000CF1AFC124017A000000020000067000041B1D550F525C#1155712701853#com.sap.engine.services.servlets_jsp.server.jsp.JSPParser#sap.com/doculine#com.sap.engine.services.servlets_jsp.server.jsp.JSPParser#Guest#2####661184d02cf711db80fa000cf1afc124#SAPEngine_Application_Thread[impl:3]_37##0#0#Error#1#/System/Server#Plain###Runtime error in compiling of the JSP file <C:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/sap.com/doculine/servlet_jsp/doculine/root/admin/login.jsp> !

The error is: com.sap.engine.services.servlets_jsp.server.jsp.exceptions.ParseException: TagLibValidator returns error(s) for taglib [/WEB-INF/c.tld]: [

com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Unsupported character: a9(:main:, row:739, col:23)(:main:, row=739, col=23) -> com.sap.engine.lib.xml.parser.ParserException: Unsupported character: a9(:main:, row:739, col:23)

].

Exception id: [000CF1AFC124017A000000000000067000041B1D550F4D94]#

#1.5#000CF1AFC124017A000000030000067000041B1D550F5C88#1155712701868#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#sap.com/doculine#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#Guest#2####661184d02cf711db80fa000cf1afc124#SAPEngine_Application_Thread[impl:3]_37##0#0#Error##Plain###Processing HTTP request to servlet [action] finished with error. The error is: com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException: Internal error while parsing JSP page [C:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/sap.com/doculine/servlet_jsp/doculine/root/admin/login.jsp].

at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:117)

at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.getClassName(JSPServlet.java:238)

at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.compileAndGetClassName(JSPServlet.java:429)

at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:169)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:316)

at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:372)

at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)

at org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1001)

at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:560)

at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:209)

at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)

at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:316)

at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:372)

at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)

at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)

at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)

at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)

at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

Caused by: com.sap.engine.services.servlets_jsp.server.jsp.exceptions.ParseException: TagLibValidator returns error(s) for taglib [/WEB-INF/c.tld]: [

com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Unsupported character: a9(:main:, row:739, col:23)(:main:, row=739, col=23) -> com.sap.engine.lib.xml.parser.ParserException: Unsupported character: a9(:main:, row:739, col:23)

].

at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.validate(JSPParser.java:243)

at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.initParser(JSPParser.java:348)

at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:105)

... 37 more

#

#1.5#000CF1AFC124017A000000050000067000041B1D550F5F94#1155712701868#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#sap.com/doculine#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#Guest#2####661184d02cf711db80fa000cf1afc124#SAPEngine_Application_Thread[impl:3]_37##0#0#Error#1#/System/Server/WebRequests#Plain###Processing HTTP request to servlet [action] finished with error.

The error is: com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException: Internal error while parsing JSP page [C:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/sap.com/doculine/servlet_jsp/doculine/root/admin/login.jsp].

Exception id: [000CF1AFC124017A000000030000067000041B1D550F5C88]#

Former Member
0 Kudos

Hi vaibhav,

I hope your problem has got solved.

Regards,

Guru

Answers (0)