on 09-18-2007 4:16 AM
Hi,
I'm a newbie to the MI. I'm trying to run the <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/21eba3a7-0601-0010-b982-92f1fca3258a">Ist Example JSP</a>, but the jsp page as in the tutorial was not displayed. Instead, the URL invoked (i checked "Run the mobile application" during the export) pointed to <b>http://DNSHOST:4444/me</b> (Page was not found error). I had installed the MI client, if i typed http://localhost:4444/me, the login page was prompted.
1. Why it invoked the DNSHOST, but not my localhost?
2. In my MDK configuration, why my MI login username and password cannot be saved (though test setting successful)?
3. What should i do to be able to run and view the 1st Example JSP successfully?
4. I tried another way, uploaded the MDK_ConfigExampleJSP.war to Webconsole and sync it to my local PC. But here is the error when i trie to view it locally,
Error: 500
Location: /MDK_CONFIGEXAMPLEJSP/jsp/tableView.jsp
Internal Servlet Error:
javax.servlet.ServletException
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:461)
at jsp.tableView._jspService(tableView.java:159)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherImpl.java:222)
at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:162)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.dispatchRequest(AbstractMEHttpServlet.java:896)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGetNotThreadSafe(AbstractMEHttpServlet.java:347)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGet(AbstractMEHttpServlet.java:678)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service(AbstractMEHttpServlet.java:326)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
Root cause:
java.lang.ClassCastException
at jsp.tableView._jspService(tableView.java:66)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherImpl.java:222)
at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:162)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.dispatchRequest(AbstractMEHttpServlet.java:896)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGetNotThreadSafe(AbstractMEHttpServlet.java:347)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGet(AbstractMEHttpServlet.java:678)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service(AbstractMEHttpServlet.java:326)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
Any help would be much appreciated.
Thanks.
- julius
Hi!
Have you installed a JAVA JDK? You need a JDK to compile the JSP-Files.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Markus,
I'm no stranger to NWDS, had been developed some WDP and Java applications. Now, i'm starting to pick up MI and totally new to the development process for MI application.
1. I'm trying to run the SAP provided sample tutorial. After exporting project into MI archive, it automatically launched the IE pointing to the web console login page (ie, http://host:port/me/WebConsole/login). Is it normal or did i miss out something? Because i expect it to launch the sample tutorial's main page (just like WDP).
Do i need to directly upload the generated WAR file to the web console and synchronized it back to my PC everytime i changed something to the source files? Because i think will be a time-consuming process.
- julius
hi julius,
the MDK checks if your application has already been deployed into your local MI
installation. if it doesn't find it, it will open a browser pointing to the WebConsole
url which depends on the MDK configuration. there's a need to deploy the app to
your MI client before you can run it on top of MI.
>Do i need to directly upload the generated WAR file to the web console and
>synchronized it back to my PC everytime i changed something to the source
>files? Because i think will be a time-consuming process.
You need to upload, assign and deploy it once for your application MCD be delivered
to you MI client registry. I do agree that in the very early phase of client application
development, deployment via the WebConsole is something very inconvenient, esp
if you don't have one. i had posted a workaround on this to enable you to deploy
an app without WebConsole with some limitations however... you can find the
article here:
/people/jogel.santiago/blog/2006/07/27/mi-lad-tool-for-deploying-mi-app-without-using-mi-webconsole
regards
jo
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.