-
1. Re: Oracle MapViewer in JBOSS
jboss_rikesh Sep 19, 2007 9:39 AM (in response to jshome)Hi JS, I installed Mapviewer (MV) Ver10131_B061023 in JBoss 4.0.5.
Before you do anything make sure the version of JBoss is compatible with mapviewer for various components. JSF, EJB, etc.
You will need to add Oracle XML parser xmlparsev2.jar into the WEB-INF/lib directory and then build the WAR file and then finally the EAR file. If you can find a better way of specifying the oracle parser to be applied to the application do post that.
I tried with -Djavax.xml.parsers* command line option but that didn't work.
If JBoss uses xerces to parse you'll see the following error
java.lang.ClassCastException: org.apache.xerces.dom.DeferredDocumentImpl
Other than this, make sure the datasource and the login module is correctly configured for MV. In order to setup MV server you will need a user under the following role: map_admin_role
I used a properties file and specified the details in login-config.xml in
/JBoss_Home/server/default/deploy/conf
the security-domain name is
There are postings for most other problems that you may encounter after you've done this.
rikesh. -
2. Re: Oracle MapViewer in JBOSS
davidboleta Dec 6, 2007 8:03 PM (in response to jshome)Hello,
I succeeded installing mapviewer 10131 on jBoss 4.0.5, although with a limitation I need to solve.
Can't reach the new Mapviewer Home html application to configure cache because Jboss doesn't understand jspx.
Used succesfully the AdfInstaller from OTN after copying the 36 lib files to JBOSS_HOME/server/default/lib. [As described in http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtAnchor.CIHFCJJC/vtTopicFile.adfdevguide%7Cdeployment_topics~htm/
But can't run /mapviewer/faces/home.jspx yet.
Next I post errors for before (a) and after (b) having deleted folder jboss\server\default\deploy\jbossweb-tomcat55.sar\jsf-libs [Understood this as equivalent step from doc "JBoss Deployment Notes" although written for version 4.0.3]
Also tried to delete folders tmp, log and data, but get same error.
(A)
Error raised on executing
/mapviewer/faces/home.jspx
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
...
On the log at the jboss cmd prompt:
22:22:08,421 ERROR [STDERR] Thu Dec 06 22:22:08 CET 2007 INFO [oracle.lbs.mapcac
he.mcservlet] *** Oracle MapCacheServer started. ***
22:22:55,812 ERROR [UIComponentTag] Faces context not found. getResponseWriter w
ill fail. Check if the FacesServlet has been initialized at all in your web.xml.
22:22:55,953 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.
java:929)
at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)
...
(B)
Error raised on executing
/mapviewer/faces/home.jspx
org.apache.jasper.JasperException: org.apache.myfaces.taglib.core.ViewTag
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810
On the log at the jboss cmd prompt:
22:50:56,156 INFO [STDOUT] INFO [oracle.lbs.mapserver.core.MapperConfig] settin
g logging level to error
22:51:01,859 ERROR [STDERR] Thu Dec 06 22:51:01 CET 2007 INFO [oracle.lbs.mapcac
he.mcservlet] *** Oracle MapCacheServer started. ***
22:51:47,687 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.NoClassDefFoundError: org.apache.myfaces.taglib.core.ViewTag
at org.apache.jsp.home_jspx._jspx_meth_f_view_0(home_jspx.java:137)
at org.apache.jsp.home_jspx._jspService(home_jspx.java:118)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:334)
...
22:51:47,687 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servle
threw exception
java.lang.NoClassDefFoundError: org.apache.myfaces.taglib.core.ViewTag
at org.apache.jsp.home_jspx._jspx_meth_f_view_0(home_jspx.java:137)
at org.apache.jsp.home_jspx._jspService(home_jspx.java:118)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
Thank you,
David