This discussion is archived
3 Replies Latest reply: Apr 22, 2013 1:41 AM by 113130 RSS

I cannot reach /mapviewer/ url, but I can reach /mapviewer/demos/ etc

795418 Newbie
Currently Being Moderated
Hello,

This is the first time I have deployed mapviewer.ear to WebLogic instead of deploying the stand-alone Mapviewer.

I followed Section 1.4.1.1 of the Mapviewer Guide. When I access http://localhhost:7001/mapviewer I get forwarded to http://localhost:7001/mapviewer/faces/home.jspx and then I get an exception:

java.lang.UnsupportedOperationException
     at javax.faces.application.Application.getResourceHandler(Application.java:287)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:588)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:352)
     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)
     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
     at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3288)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3254)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
     at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
     at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2163)
     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2089)
     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2074)
     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1512)
     at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

However, I can access http://localhost:7001/mapviewer/demos, etc. Also, the "old index page" http://localhost:7001/mapviewer/oldindex.html also works.

Can you help?
  • 1. Re: I cannot reach /mapviewer/ url, but I can reach /mapviewer/demos/ etc
    grueningd Newbie
    Currently Being Moderated
    Did you use WebLogic 12c? I was facing the same problem when i tried to deyploy mapviewer to weblogic 12c. With WLS 11g there was no such problem. I suggest to go back to weblogic 11g or wait for the next mapviewer release.
  • 2. Re: I cannot reach /mapviewer/ url, but I can reach /mapviewer/demos/ etc
    170519 Newbie
    Currently Being Moderated
    Yes, i hit the same java exception.
    I figured out that weblogic 12c no longer allows you to instruct the classloader to use the java core libraries (java.* and javax.*) included with the web application instead of the java core libraries from the system.
    Neither <prefer-web-inf-classes> nor <prefer-application-packages> in the deployment descriptor weblogic.xml will work anymore.
    Since the gui of MapViewer is built on top of Java faces (javax.faces.*) you will hit this error for MapViewer 11gSP5 and older due to an incompatibility issue.
    The only tweak to get MapViewer 11g running on 12c is to change the classpath for the managed server (see PATCH_CLASSPATH). However, I strongly disadvise you to do this since it can break all other Java applications running on the same admin/managed server.
    We decided to downgrade the weblogic application server to 11g.
    HTH,
    Jeroen van Schaijk
  • 3. Re: I cannot reach /mapviewer/ url, but I can reach /mapviewer/demos/ etc
    113130 Newbie
    Currently Being Moderated
    Add this weblogic-application.xml in mapviewer.ear/META-INF/ folder and redeploy mapviewer

    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-application xmlns:wls="http://www.bea.com/ns/weblogic/weblogic-application"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd
    http://www.bea.com/ns/weblogic/weblogic-application http://www.bea.com/ns/weblogic/weblogic-application/1.0/weblogic-application.xsd">

    <wls:prefer-application-packages>
    <package-name>javax.faces.*</package-name>
    <package-name>javax.faces.application.*</package-name>
    <package-name>javax.faces.component.*</package-name>
    <package-name>javax.faces.context.*</package-name>
    <package-name>javax.faces.convert.*</package-name>
    <package-name>javax.faces.el.*</package-name>
    <package-name>javax.faces.event.*</package-name>
    <package-name>javax.faces.lifecycle.*</package-name>
    <package-name>javax.faces.model.*</package-name>
    <package-name>javax.faces.render.*</package-name>
    <package-name>javax.faces.validator.*</package-name>
    <package-name>javax.faces.webapp.*</package-name>
    </wls:prefer-application-packages>
    </wls:weblogic-application>

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points