2 Replies Latest reply on Sep 23, 2011 3:48 AM by xu zhou

    java.lang.NoClassDefFoundError:sun/java2d/SunGraphics2D on AS7

    xu zhou Newbie

      java.lang.NoClassDefFoundError:sun/java2d/SunGraphics2D on AS7.

       

      The same application is avliable on jboss5 and jboss6.

       

      How can i modify some configuration to make my application find the SunGraphics2D on AS7.

       

      Thanks!

        • 1. Re: java.lang.NoClassDefFoundError:sun/java2d/SunGraphics2D on AS7
          jaikiran pai Master

          Who's using that class. Please post the entire exception stacktrace.

          • 2. Re: java.lang.NoClassDefFoundError:sun/java2d/SunGraphics2D on AS7
            xu zhou Newbie

            09:23:37,026 WARN[org.restlet] (http--0%3A0%3A0%3A0%3A0%3A0%3A0%3A0-8087-20) Exception or error caught in status service: java.lang.NoClassDefFoundError: sun/java2d/SunGraphics2D

            at com.mymap.data.Toolkit.draw(Unknown Source) [com.mymap.data.jar:]

            at com.mymap.services.providers.InnerUGCMapProvider.getResource(InnerUGCMapProvider.java:1058) [mymap-all.jar:]

            at com.mymap.services.providers.UGCMapProvider.getResource(UGCMapProvider.java:292) [mymap-all.jar:]

            at com.mymap.services.components.impl.MapImpl.getResource(MapImpl.java:515) [mymap-all.jar:]

            at com.mymap.services.rest.resources.impl.LegendResource.getResourceContent(LegendResource.java:117) [mymap-all.jar:]

            at com.mymap.services.rest.DefaultMethodHandler.a(DefaultMethodHandler.java:502) [mymap-all.jar:]

            at com.mymap.services.rest.DefaultMethodHandler.handleGet(DefaultMethodHandler.java:164) [mymap-all.jar:]

            at com.mymap.services.rest.resources.ResourceBase.handleGet(ResourceBase.java:1009) [mymap-all.jar:]

            at org.restlet.resource.Finder.handle(Finder.java:470) [org.restlet-2.0.9.jar:]

            at org.restlet.routing.Filter.doHandle(Filter.java:156) [org.restlet-2.0.9.jar:]

            at org.restlet.routing.Filter.handle(Filter.java:203) [org.restlet-2.0.9.jar:]

            at org.restlet.routing.Router.doHandle(Router.java:497) [org.restlet-2.0.9.jar:]

            at org.restlet.routing.Router.handle(Router.java:737) [org.restlet-2.0.9.jar:]

            at org.restlet.routing.Filter.doHandle(Filter.java:156) [org.restlet-2.0.9.jar:]

            at org.restlet.routing.Filter.handle(Filter.java:203) [org.restlet-2.0.9.jar:]

            at org.restlet.routing.Filter.doHandle(Filter.java:156) [org.restlet-2.0.9.jar:]

            at org.restlet.routing.Filter.handle(Filter.java:203) [org.restlet-2.0.9.jar:]

            at org.restlet.routing.Filter.doHandle(Filter.java:156) [org.restlet-2.0.9.jar:]

            at org.restlet.routing.Filter.handle(Filter.java:203) [org.restlet-2.0.9.jar:]

            at org.restlet.routing.Filter.doHandle(Filter.java:156) [org.restlet-2.0.9.jar:]

            at org.restlet.routing.Filter.handle(Filter.java:203) [org.restlet-2.0.9.jar:]

            at org.restlet.routing.Filter.doHandle(Filter.java:156) [org.restlet-2.0.9.jar:]

            at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:151) [org.restlet-2.0.9.jar:]

            at org.restlet.routing.Filter.handle(Filter.java:203) [org.restlet-2.0.9.jar:]

            at org.restlet.routing.Filter.doHandle(Filter.java:156) [org.restlet-2.0.9.jar:]

            at org.restlet.routing.Filter.handle(Filter.java:203) [org.restlet-2.0.9.jar:]

            at org.restlet.engine.ChainHelper.handle(ChainHelper.java:111) [org.restlet-2.0.9.jar:]

            at org.restlet.engine.application.ApplicationHelper.handle(ApplicationHelper.java:72) [org.restlet-2.0.9.jar:]

            at org.restlet.Application.handle(Application.java:388) [org.restlet-2.0.9.jar:]

            at org.restlet.ext.servlet.ServletAdapter.service(ServletAdapter.java:203) [org.restlet.ext.servlet-2.0.9.jar:]

            at com.mymap.services.rest.RestServlet.service(RestServlet.java:222) [mymap-all.jar:]

            at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

            at com.mymap.server.host.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:58) [mymap-all.jar:]

            at com.mymap.server.host.webapp.handlers.ServiceDispatcherHandler.handle(ServiceDispatcherHandler.java:142) [mymap-all.jar:]

            at com.mymap.server.host.webapp.handlers.AbstractHandler.process(AbstractHandler.java:168) [mymap-all.jar:]

            at com.mymap.server.host.webapp.handlers.AbstractHandler.process(AbstractHandler.java:173) [mymap-all.jar:]

            at com.mymap.server.host.webapp.handlers.BasicHandler.process(BasicHandler.java:177) [mymap-all.jar:]

            at com.mymap.server.host.webapp.ApplicationFilter.doFilter(ApplicationFilter.java:156) [mymap-all.jar:]

            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

            at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]

            at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]

            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

            at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]

            Thanks!