SAP EP5 SP5 Java web app problem

Hi
Recently I developed a Java web app for a Portal client. The client is on EP5 SP5 with ITS and LDAP servers (a 3 server architecture). I then used the deployment tool to create the necessary ear file and then successfully deployed it to the SAP J2EE Engine. I then navigated to the following url:
http://<portal_server>:8100/<web_app>/welcome.jsp
However I am having trouble with the following:
1) the jsp pages are not being rendered properly. in fact welcome.jsp does not have any jsp tags at all but I am still getting a compiling exception. as soon as I change the extension to .html the page is displayed fine. issue: why am i not able to view the jsp pages. error: com.inqmy.services.servlets_jsp.jsp.CompilingException ID 17013
2) the web app I have developed utilises the sapjco functionality to connect to the relevant R3 system. in my web app directory structure I have included the necessary sapjco.jar in the WEB-INF/lib directory but get the attached jco error. (I shouldnt need to set the classpath since the sapjaco.jar file must get picked up from WEB-INF/lib directory). Error: At times I get a NoClassDefFoundError stopping at the line which requires the sapjco.jar file (where it uses JCo.Pool class) and at other times I get the "could not load middleware layer".
I have tried numerous things to fix it but in vain. Any thoughts around how I could go about resolving the issues will be greatly appreciated.
Willing to provide screenshots if required.
Cheers
Ankit

Hi Ravi
I used the SAP J2EE Engine Deploy Tool to create the war and ear archives as well as deploy the ear archive.  As I used this tool I included the required jar files inclusing the sapjco.jar inside WEB-INF\lib of the web archive (WAR).  I tested this in a tomcat environment before deploying it to the portal environment.
1) The screendump is as below:
Internal Server Error 500!
com.inqmy.services.servlets_jsp.server.jsp.CompilingException: ID17013: Error in compiling : java.io.IOException: CreateProcess: javac -encoding UTF8 -nowarn C:\SAP_J2EEngine6.20\alone\services\servlet_jsp\work\jspTemp\changePassword\work\jsp_welcome1092865716140.java -classpath ".;.\system-lib\boot.jar;.\system-lib\jaas.jar;;.;.\additional-lib\jnet.jar;.\additional-lib\jdbc20.jar;.\services\iiop\iiop.jar;.\services\servlet_jsp\servlet_jsp.jar;.\services\p4\p4.jar;.\additional-lib\mail.jar;.\services\dbpool\dbpool.jar;.\additional-lib\connector.jar;.\additional-lib\activation.jar;.\services\deploy\deploy.jar;.\additional-lib\jta.jar;.\services\ts\ts.jar;.\additional-lib\jsse.jar;.\additional-lib\servlet.jar;.\additional-lib\ejb11.jar;.\additional-lib\jms.jar;.\services\ejb\ejb.jar;;C:\SAP_J2EEngine6.20\alone\services\servlet_jsp\work\jspTemp\changePassword\root\WEB-INF\lib\activation.jar;C:\SAP_J2EEngine6.20\alone\services\servlet_jsp\work\jspTemp\changePassword\root\WEB-INF\lib\inqmyxml.jar;C:\SAP_J2EEngine6.20\alone\services\servlet_jsp\work\jspTemp\changePassword\root\WEB-INF\lib\jcoapi.jar;C:\SAP_J2EEngine6.20\alone\D
     at com.inqmy.services.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:296)
     at com.inqmy.services.servlets_jsp.server.jsp.JSPServlet.getClassName(JSPServlet.java:333)
     at com.inqmy.services.servlets_jsp.server.jsp.JSPServlet.service(JSPServlet.java:207)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:136)
     at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:856)
     at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:598)
     at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:260)
     at com.inqmy.services.httpserver.server.Response.handle(Response.java:164)
     at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:909)
     at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
     at com.inqmy.core.cluster.impl3.ParserRunner.run(ParserRunner.java:30)
     at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:132)
As advised by you I included the inqmyxml.jar file in the WEB-INF\lib folder for this application.  But it doesnt seem to have made a difference.
2) for the second issue where sapjco.jar isnt found the error is as seen below.  At line 42 in R3.java I make a  JCO call -
pool = JCO.getClientPoolManager().getPool(POOL_NAME);
Error Dump below:
java.lang.NoClassDefFoundError
     at R3.(R3.java:42)
     at ChangePassword.doPost(ChangePassword.java:76)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:136)
     at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:856)
     at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:598)
     at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:260)
     at com.inqmy.services.httpserver.server.Response.handle(Response.java:164)
     at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:909)
     at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
     at com.inqmy.core.cluster.impl3.ParserRunner.run(ParserRunner.java:30)
     at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:132)
I would have expected EP5 to be able to find the appropriate jar files.  Especially since it has its own library of jar files to work with.  I was reading some J2EE Engine doco and came across two files library.txt and reference.txt.  Do I need to maintain these files as I deploy my application?
Your thoughts will be appreciated.
Cheers

Similar Messages

  • Java Web App for EP5 SP5

    Hi
    Recently I developed a Java web app for a Portal client.  The client is on EP5 SP5 with ITS and LDAP servers (a 3 server architecture).  I then used the deployment tool to create the necessary ear file and then successfully deployed it to the SAP J2EE Engine.  I then navigated to the following url:
    http://<portal_server>:8100/<web_app>/welcome.jsp
    However I am having trouble with the following:
    1) the jsp pages are not being rendered properly.  in fact welcome.jsp does not have any jsp tags at all but I am still getting a compiling exception.  as soon as I change the extension to .html the page is displayed fine.  issue: why am i not able to view the jsp pages.  error: com.inqmy.services.servlets_jsp.jsp.CompilingException ID 17013
    2) the web app I have developed utilises the sapjco functionality to connect to the relevant R3 system.  in my web app directory structure I have included the necessary sapjco.jar in the WEB-INF/lib directory but get the attached jco error. (I shouldnt need to set the classpath since the sapjaco.jar file must get picked up from WEB-INF/lib directory).  Error: At times I get a NoClassDefFoundError stopping at the line which requires the sapjco.jar file (where it uses JCo.Pool class) and at other times I get the "could not load middleware layer".
    I have tried numerous things to fix it but in vain.  Any thoughts around how I could go about resolving the issues will be greatly appreciated. 
    Willing to provide screenshots if required.
    Cheers
    Ankit

    Hi Alon
    Thanks a lot for the info!!
    I have read the doco you asked me to have a look at and it sounds reasonable.  But the question that I have is that is it possible to successfully include the relevant jar's in the application's WEB-INF\lib folder?? I ask this since I would expect the SAP j2ee class loader to look at the required jar's in the WEB-INF\lib folder?!? (Also the section on "Adding a Reference from a Deployed Application to a Service or Library" talks about an app that may want to use resources from OUTSIDE the application EAR.)
    So if I use any jar's such as sapjco, xerces, activation and mail I will need to add them to the library.txt if they are not already there (which they should be since the portal uses them) and then add the reference in reference.txt.
    Your thoughts will be appreciated.
    Cheers
    Ankit

  • Office Web Apps Server 2013 - Word Web App - Problem with Tab space

    Hello We have Office Web Apps Server 2013 running with SharePoint 2013.  Users Editing a Word document with Office Web Apps, can't use "Tabs", any Word document with Tabs; the tabs are replaced with a single space.
    Has anyone noticed this?  Is this a bug?
    -thanks
    thomas
    -Tom

    Yes, currently the Word Web App does not support
    Tab Keyboard shortcut for editing document content .
    For more information, you can have a look at
    the article:
    http://office.microsoft.com/en-us/office-online-help/keyboard-shortcuts-in-word-online-HA010378332.aspx?CTT=5&origin=HA010380212
    http://social.technet.microsoft.com/Forums/en-US/3f5978d3-67a1-4c8c-981f-32493d72610b/office-web-apps-server-2013-word-web-app-problem-with-tab-space?forum=sharepointgeneral

  • Unable to Launch Integration Builder: Java Web Start problem

    Hi,
    I am unable to launch the integration builder. I am using JDK 1.4.2_05. The java Web Start gives the following error:
    Unsigned application requesting unrestricted access to system
    Unsigned resource: http://<XIHostName>:50000/rep/repository/aii_util_rb.jar
    I have tried deleting the Java web start cache, and even reinstalling the JDK.
    Can someone suggest a workaround this problem ?
    thanks,
    Manish

    The Java Web Start cannot accept unsigned jars. If the jars are signed, it will ask in a dialog box if it should allow unrestricted access to this jar.
    In my case, I upgraded XI SP0 to SP4, which included updating the Adapter Core, Adapter Framework, and the XI TOOLS to SP4.
    On launching the Web start, it seemed that the jars were not getting signed. JWS cannot allow unsigned jars to the client.
    These jars are maintained in:
    \usr\sap\<SID>\SYS\global\xi\directory_server\javaws\directory
    I am having problems with my XI upgrade to SP4, and it is probably not signing the jars.
    Do you know why this may be happening ...
    thanks,
    Manish

  • JAVA WEB SERVER Problem

    Hai,
    I am using Java Web Server 1.2 . In JSP , when I use
    ResultSet.previous(), it is saying that :
    java.sql.ResultSet.previous() command not found. I do not know what to do ?
    But, In java file, it is working fine without any problem .But, I need to implement in JSP only.
    When I use the bean, which consists Rs.previous() also it says Resultset.previous() Command Not found It is very very urgent to me.
    Pl help me.
    Thanks & Regards

    S,
    1. Yes, you're rigth. Something is missing here.
    2. If it works for Java App and not in JSP,
    that would mean JAVA see your jdbc driver and not JSP
    but then how come JSP can use Connection ???
    3. I think we need some expert to clarify about setup on your machine. Some thing is not set up well so that JAVA app and JSP see at the same time. It look like only JAVA app see the whole.
    4. Can you post your article in JDBC forum also in waiting?
    -- Paul.

  • With 8.0 version of Firefox, clicking links to .tif files on a java web app are being downloaded as .ppt, .part.ppt., or .ppt.part. The change of name to PPT causes them to associate with powerpoint. IE opens the files normally as .tif as expected.

    When using java based webapp to view a remote directory, clicking .tif files offers the standard "Open" dialog. If you select open, an error is produced saying file is not a valid powerpoint file. Selecting download will download the file as a .ptt, .part.ppt, or .ppt.part file in the temp directory with a seemingly random unique filename as if the system was creating a temp file. Going to the same web app under Internet Explorer works properly and will view or download the file as a .tif image file. This had been working fine previously to the 8.0 update.

    When using java based webapp to view a remote directory, clicking .tif files offers the standard "Open" dialog. If you select open, an error is produced saying file is not a valid powerpoint file. Selecting download will download the file as a .ptt, .part.ppt, or .ppt.part file in the temp directory with a seemingly random unique filename as if the system was creating a temp file. Going to the same web app under Internet Explorer works properly and will view or download the file as a .tif image file. This had been working fine previously to the 8.0 update.

  • Java Web Start Problems

    Hello,
    I've written a program in NetBeans 4.1 and I plan on deploying it using Java Web Start. The program launches fine in NetBeans, and when I double click on the jar file on my computer it runs fine.
    After building the program, I signed the jar file and created the jnlp file, then uploaded them both to my web server.
    When I try to launch the program from the internet I get the following error:
    Java Web Start - Unexpected Error
    Unable to lanuch Test Web Application
    java.lang.Exception
    at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
    at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
    at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
    at com.sun.javaws.Launcher.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    I've been fiddling with this for 3 days now and I can't for the life of me figure out how to make it work. Can someone please help?
    If you'd like, the application is still on my server right now, you can find it at www.studiosoft.ca/testapp
    Thanks
    Michael

    OK,
    Nevermind, I just fixed the problem.
    I had to update my my jnlp file to <j2se version="1.5"/> , before I had it set to <j2se version="1.4"/> and it didn't work.

  • Web App problem

    I have a fairly simple web application running on Websphere, that connects to a DB2 database. I am getting the following error:
    Error Message: ERROR: Cannot forward. Writer or Stream already obtained.
    Error Code: 500
    Target Servlet: null
    Error Stack:
    Root Error-1: ERROR: Cannot forward. Writer or Stream already obtained.
    java.lang.IllegalStateException: ERROR: Cannot forward. Writer or Stream already obtained.
    plus a lot of nothing, then:
    Recursive Error:
    Error Message: No target servlet configured for uri: /reimbursements/
    Error Code: 0
    Target Servlet: null
    Error Stack:
    Root Error-1: No target servlet configured for uri: /reimbursements/
    com.ibm.servlet.engine.webapp.NoTargetForURIException: No target servlet configured for uri: /reimbursements/

    I forgot to ask my question, which is:
    What is wrong with my web app?

  • HP Officejet 6500A Plus e-All-in-One Printer - E710n wireless print and web app problem

    We have an HP Officejet 6500A Plus e-all-in-one Printer - E710n and run Windows 7 on our laptop.
    I have run the wirelss setup wizard and have successfully connected the printer to the router, and both the laptop and printer are on the same network and have identical SSID.
    However, we can not send any prints the printer wirelessly. We have to hook it up to the USB to do so. We are also unable to access our web apps; pressing the app button on the printer control panel brings up the following:
    "Connection error. The printer was unable to connect to the server. Check your internet connection and try again."
    I have run through the suggested solutions under "A Network Connected Printer Cannot Access Print Apps, Web Services, or ePrint" in the customer care help centre which didn't work, although when I tried to enter the IP address under IPv4 into the browser address bar it timed out. I tried the HP Print and Scan Doctor, but it returns a result that suggests everything is fine.
    I turned off the firewall and tried again with no luck.
    I really am at a loss now. Diagnostics say it should work, but it doesn't. Help!

    Disable Bitdefender altogeher and try again.
    Also, see this: http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&docname=c02251103
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • About Java Web Start Problems

    Hi, everyone....
    When I want to deploy BC4J Application using the Java Web Start , I occur one exception.
    Java Web Start show exception for me :
    java.lang.ExceptionInInitializerError
         at oracle.jbo.mom.DefinitionManager.<init>(DefinitionManager.java:122)
         at oracle.jbo.uicli.mom.JUMetaObjectManager.<init>(JUMetaObjectManager.java:52)
         at oracle.jbo.uicli.mom.JUMetaObjectManager.getJUMom(JUMetaObjectManager.java:131)
         at oracle.jbo.uicli.mom.JUMetaObjectManager.createApplicationObject(JUMetaObjectManager.java:363)
         at mypackage1.FormDepartmentsView1EmployeesView3.main(FormDepartmentsView1EmployeesView3.java:376)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission oracle.xdkjava.compatibility.version read)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
         at java.lang.System.getProperty(Unknown Source)
         at oracle.xml.parser.v2.XMLParser.<clinit>(XMLParser.java:753)
         ... 16 more
    Can anyone Know what is wrong ?

    Wei,
    did you sign the jar files you deploy ? Please follow the instruction sin teh online help and have a look at the batch file that need to be run to create the JClient ear file. This file contains signing information that might not be true for your system.
    Frank

  • Opening Local Apps through a Java web app

    Hello, I have a local application on my C: drive that I would like to launch by clicking on a link in a web app of mine. Can anyone point me in the right direction of how to do this? For instance, if I had the following:
    C:/Program Files/My App/app.exe
    How would I launch this from a completely separate web app that I have developed?

    By letting the link open a website that has a signed applet that has the premissions to invoke Runtime.exec(). In other words: no conveniant way, thankfully.

  • Problem with java web app

    Hi...
    I have mounted my java application on a server.
    I use tomcat/mysql...
    Initially it seems all things good, ...but if i try to enter my application the day after (for example), she seems not to query the db.
    I'm new to java programming.
    Please help me,
    andrea
    ps. My application consist in a servlet how manage the request,...and in a class how manage the db....

    Hi duffymo,
    you're all rigth, now I'll try to explain me better.
    I can query my db on my server, and the application start with all the parameters ok.
    No errors were report from Tomcat log files,....
    ..but now i'm suspiciose about connnection with the db...
    I have created only one object of the class which manage the db connection, and i ahve putted it in the applicaton context, so it's accessble from all of the servlets,...but now, i have read all the code which another person has written and I saw he make a "autoCommit=false" connection type....
    now,...I think this is the problem. After mySql timeout expire, my application "think" to be connected yet, isn't it?
    Ti's possible add in the string of driver loader "autoReconnect=true" and set autoCommit = false and change in = true only we need to do a transaction, and turn back to = false when we will finish the transaction ?
    Tahnk you
    andrea

  • Java web app, JNI & shared libraries.

    I am developing a web application where the core functionality resides in a compiled dynamically shared library developed in C. I have developed wrapper methods to this library in via the JNI. The web framework is Struts to be deployed in Websphere. The business logic will be done in Java.
    As this is a webapp, there will be multiple client requests coming into the container at once. I understand how the servlet lifecycle works and have coded the Java portion of the app to be concurrency aware. However, I am not too sure as to how the code in the shared library will work with concurrent requests.
    The JNI methods are currently coded as static methods. So will multiple requests conflict with eachother in the calls to the native code? And if so, can I place the calls to the native methods in a synchronization block to prevent data corruption in the native code?

    So will multiple requests conflict with
    eachother in the calls to the native code?The calls itselves won't conflict. You just have several Java threads executing the same native method simultaneously, this is normal.
    On the other hand, If your C code is not thread-safe (e.g it keeps data in static variables) then you would definitely like to surround each JNI calls with synch block.
    However, this may lead to poor performance and scalability - if all threads but one are hanged on a semaphore....
    Denis.
    http://www.excelsior-usa.com/xfunction.html
    Library for painless JNI programming

  • Java Web Service Problem

    I have a java client to consume web services setup on an IIS.
    I created source files for communicating using wsimport.
    But sometimes the application will stuck with the first call using the generated interface to the web service.
    The problem may last for a couple of days, then suddenly disappear.
    I tried to restart IIS, OS and turn off firewalls, but nothing works.
    While the problem was there for the java client, I tried to access the same web method using web brower and it worked.
    Any commments or suggestions?
    Thanks.

    Thanks for your reply, I tried to wait for several minutes, it just hang there without exception thrown on java side and need me to kill it. If I call the web method via web brower, it only takes several seconds.

  • Why PHP is better than JSP,Servlet(Java Web Apps) ?

    Well, my heart says JSP, Servlets are better but rent a coder and job market, demand-supply seems to be saying a different story... ? Why we should not learn PHP then ?

    dcminter wrote:
    You can develop web sites in PHP in two shakes of a lambs tail. But they aren't maintainable as they would be in .NET or J2EE and again the performance (which dicates what you can do as well as scalability) is between a scripted language with buggy runtime and a compiled language with an optimized runtime so you tell me. Yes, but rather like Spinoza's argument for the existence of God, an application that has existence is more perfect than one which exists only in the conception. Even if the conceptual one is faster.
    I don't denigrate languages like PHP that help novices get stuff done.
    To address the OP's complaint: If one language was objectively "best" then we would only need one language. In practice they all have strengths. The more you learn the more you'll know which to use for the task at hand. That said, to learn any language (even PHP) in profound depth will take the best part of ten years and maybe longer. Sometimes expediency leads us to use the language we understand better to solve a problem for which it is not ideally suited.Eloquent - well said.
    Bonus points for that Spinoza reference.
    %

Maybe you are looking for

  • How to save an XML file with a proper name and how to maintain the history?

    Hi All, As per the requirement, I have to remane the name of the XML file which is under the KM repository Userhome/personaldocuments based on the user logon information. I have created a Repository service for the same and following is the code for

  • Debug Remotelly WebLogic Web Service - Debugger unable to connect

    I have been able to debug locally when I start debug from IntegratedWebLogicServer, but I have not been able to debug remotelly although I deploied successfully to WebLogic Server and I got correct result while testing from SoapUI. With the purpose t

  • Help with ABAP Structure to XML - Simple Transformation

    Hi guys, I need help with a Simple Transformation. I am trying to convert a structure in ABAP to XML String but i ma getting short dumps... Can any of you help. Thanks in advance. *& Report  ZTESTXML REPORT  ZTESTXML. class demo DEFINITION.    PUBLIC

  • Why is mobile safari recognized as windows OS?

    When I access my Dropbox via my iPad Air, Dropbox displays in its list of connected devices a windows machine. It confuses my iPad with a windows machine. Today I noticed that Apple.com does the same. I wanted to watch an Apple Watch video and instea

  • IPhone Configuration Utility ?

    Hi, Does anyone else know how to work with the iPhone Configuration Utility.app ? BR BenNovello