Announcement Announcement Module
Collapse
No announcement yet.
error deploy in glashfish Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • error deploy in glashfish

    Hi All,
    i am new in spring. and i have problem with deploy myapp.

    this in a server log:

    [#|2012-06-13T10:15:45.740+0700|SEVERE|glassfish3.1.1|javax.e nterprise.system.tools.admin.org.glassfish.deploym ent.admin|_ThreadID=18;_ThreadName=Thread-2;|Exception while invoking class com.sun.enterprise.web.WebApplication start method
    java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.makeAcces sible(Ljava/lang/reflect/ConstructorV
    at com.sun.enterprise.web.WebApplication.start(WebApp lication.java:138)
    at org.glassfish.internal.data.EngineRef.start(Engine Ref.java:130)
    at org.glassfish.internal.data.ModuleInfo.start(Modul eInfo.java:269)
    at org.glassfish.internal.data.ApplicationInfo.start( ApplicationInfo.java:294)
    at com.sun.enterprise.v3.server.ApplicationLifecycle. deploy(ApplicationLifecycle.java:462)
    at org.glassfish.deployment.admin.CreateApplicationRe fCommand.execute(CreateApplicationRefCommand.java: 311)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.ex ecute(CommandRunnerImpl.java:355)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCo mmand(CommandRunnerImpl.java:370)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCo mmand(CommandRunnerImpl.java:1064)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.acce ss$1200(CommandRunnerImpl.java:96)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$Exec utionContext.execute(CommandRunnerImpl.java:1244)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$Exec utionContext.execute(CommandRunnerImpl.java:1232)
    at com.sun.enterprise.v3.admin.AdminAdapter.doCommand (AdminAdapter.java:459)
    at com.sun.enterprise.v3.admin.AdminAdapter.service(A dminAdapter.java:209)
    at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service( GrizzlyAdapter.java:168)
    at com.sun.enterprise.v3.server.HK2Dispatcher.dispath (HK2Dispatcher.java:117)
    at com.sun.enterprise.v3.services.impl.ContainerMappe r.service(ContainerMapper.java:238)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(P rocessorTask.java:828)
    at com.sun.grizzly.http.ProcessorTask.doProcess(Proce ssorTask.java:725)
    at com.sun.grizzly.http.ProcessorTask.process(Process orTask.java:1019)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute (DefaultProtocolFilter.java:225)
    at com.sun.grizzly.DefaultProtocolChain.executeProtoc olFilter(DefaultProtocolChain.java:137)
    at com.sun.grizzly.DefaultProtocolChain.execute(Defau ltProtocolChain.java:104)
    at com.sun.grizzly.DefaultProtocolChain.execute(Defau ltProtocolChain.java:90)
    at com.sun.grizzly.http.HttpProtocolChain.execute(Htt pProtocolChain.java:79)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(Pr otocolChainContextTask.java:54)
    at com.sun.grizzly.SelectionKeyContextTask.call(Selec tionKeyContextTask.java:59)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:7 1)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doW ork(AbstractThreadPool.java:532)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.run (AbstractThreadPool.java:513)
    at java.lang.Thread.run(Thread.java:662)
    |#]

    [#|2012-06-13T10:15:45.741+0700|SEVERE|glassfish3.1.1|javax.e nterprise.system.core.com.sun.enterprise.v3.server |_ThreadID=18;_ThreadName=Thread-2;|Exception while loading the app|#]


    can't some one help what about this error

  • #2
    Check your classpath, you probably have different spring jars (different versions) on your classpath or you have multiple jars on different locations in your classpath.

    Comment


    • #3
      Thank's for solution. I will check now.

      Comment


      • #4
        Hello Mr. Marten Deinum or other.

        thank's for your previous answer. i have another problem while change spring jars this my server log


        [#|2012-06-21T10:40:42.253+0700|SEVERE|glassfish3.1.1|javax.e nterprise.system.tools.admin.org.glassfish.deploym ent.admin|_ThreadID=23;_ThreadName=Thread-2;|Exception while invoking class com.sun.enterprise.web.WebApplication start method
        java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.NoSuchMethodError: org.springframework.core.CollectionFactory.createC oncurrentMapIfPossible(I)Ljava/util/Map;
        at com.sun.enterprise.web.WebApplication.start(WebApp lication.java:138)
        at org.glassfish.internal.data.EngineRef.start(Engine Ref.java:130)
        at org.glassfish.internal.data.ModuleInfo.start(Modul eInfo.java:269)
        at org.glassfish.internal.data.ApplicationInfo.start( ApplicationInfo.java:294)
        at com.sun.enterprise.v3.server.ApplicationLifecycle. deploy(ApplicationLifecycle.java:462)
        at com.sun.enterprise.v3.server.ApplicationLifecycle. deploy(ApplicationLifecycle.java:240)
        at org.glassfish.deployment.admin.DeployCommand.execu te(DeployCommand.java:382)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.ex ecute(CommandRunnerImpl.java:355)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCo mmand(CommandRunnerImpl.java:370)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCo mmand(CommandRunnerImpl.java:1064)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.acce ss$1200(CommandRunnerImpl.java:96)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$Exec utionContext.execute(CommandRunnerImpl.java:1244)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$Exec utionContext.execute(CommandRunnerImpl.java:1232)
        at org.glassfish.admin.rest.ResourceUtil.runCommand(R esourceUtil.java:202)
        at org.glassfish.admin.rest.ResourceUtil.runCommand(R esourceUtil.java:195)
        at org.glassfish.admin.rest.resources.TemplateListOfR esource.createResource(TemplateListOfResource.java :148)
        at sun.reflect.GeneratedMethodAccessor687.invoke(Unkn own Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.jersey.spi.container.JavaMethodInvokerFact ory$1.invoke(JavaMethodInvokerFactory.java:60)
        at com.sun.jersey.server.impl.model.method.dispatch.A bstractResourceMethodDispatchProvider$ResponseOutI nvoker._dispatch(AbstractResourceMethodDispatchPro vider.java:205)
        at com.sun.jersey.server.impl.model.method.dispatch.R esourceJavaMethodDispatcher.dispatch(ResourceJavaM ethodDispatcher.java:75)
        at com.sun.jersey.server.impl.uri.rules.HttpMethodRul e.accept(HttpMethodRule.java:288)
        at com.sun.jersey.server.impl.uri.rules.SubLocatorRul e.accept(SubLocatorRule.java:134)
        at com.sun.jersey.server.impl.uri.rules.RightHandPath Rule.accept(RightHandPathRule.java:147)
        at com.sun.jersey.server.impl.uri.rules.SubLocatorRul e.accept(SubLocatorRule.java:134)
        at com.sun.jersey.server.impl.uri.rules.RightHandPath Rule.accept(RightHandPathRule.java:147)
        at com.sun.jersey.server.impl.uri.rules.ResourceClass Rule.accept(ResourceClassRule.java:108)
        at com.sun.jersey.server.impl.uri.rules.RightHandPath Rule.accept(RightHandPathRule.java:147)
        at com.sun.jersey.server.impl.uri.rules.RootResourceC lassesRule.accept(RootResourceClassesRule.java:84)
        at com.sun.jersey.server.impl.application.WebApplicat ionImpl._handleRequest(WebApplicationImpl.java:146 9)
        at com.sun.jersey.server.impl.application.WebApplicat ionImpl._handleRequest(WebApplicationImpl.java:140 0)
        at com.sun.jersey.server.impl.application.WebApplicat ionImpl.handleRequest(WebApplicationImpl.java:1349 )
        at com.sun.jersey.server.impl.application.WebApplicat ionImpl.handleRequest(WebApplicationImpl.java:1339 )
        at com.sun.jersey.server.impl.container.grizzly.Grizz lyContainer._service(GrizzlyContainer.java:182)
        at com.sun.jersey.server.impl.container.grizzly.Grizz lyContainer.service(GrizzlyContainer.java:147)
        at org.glassfish.admin.rest.adapter.RestAdapter.servi ce(RestAdapter.java:184)
        at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service( GrizzlyAdapter.java:168)
        at com.sun.enterprise.v3.server.HK2Dispatcher.dispath (HK2Dispatcher.java:117)
        at com.sun.enterprise.v3.services.impl.ContainerMappe r.service(ContainerMapper.java:238)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(P rocessorTask.java:828)
        at com.sun.grizzly.http.ProcessorTask.doProcess(Proce ssorTask.java:725)
        at com.sun.grizzly.http.ProcessorTask.process(Process orTask.java:1019)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute (DefaultProtocolFilter.java:225)
        at com.sun.grizzly.DefaultProtocolChain.executeProtoc olFilter(DefaultProtocolChain.java:137)
        at com.sun.grizzly.DefaultProtocolChain.execute(Defau ltProtocolChain.java:104)
        at com.sun.grizzly.DefaultProtocolChain.execute(Defau ltProtocolChain.java:90)
        at com.sun.grizzly.http.HttpProtocolChain.execute(Htt pProtocolChain.java:79)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(Pr otocolChainContextTask.java:54)
        at com.sun.grizzly.SelectionKeyContextTask.call(Selec tionKeyContextTask.java:59)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:7 1)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.doW ork(AbstractThreadPool.java:532)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run (AbstractThreadPool.java:513)
        at java.lang.Thread.run(Thread.java:662)
        |#]

        [#|2012-06-21T10:40:42.254+0700|SEVERE|glassfish3.1.1|javax.e nterprise.system.core.com.sun.enterprise.v3.server |_ThreadID=23;_ThreadName=Thread-2;|Exception while loading the app|#]

        [#|2012-06-21T10:40:42.846+0700|SEVERE|glassfish3.1.1|javax.e nterprise.system.tools.admin.org.glassfish.deploym ent.admin|_ThreadID=23;_ThreadName=Thread-2;|Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.NoSuchMethodError: org.springframework.core.CollectionFactory.createC oncurrentMapIfPossible(I)Ljava/util/Map;|#]

        this is my list library:

        antlr-2.7.6.jar
        aopalliance-1.0.jar
        apache-mime4j-0.6.jar
        asm-1.5.3.jar
        asm-attrs-1.5.3.jar
        bsh.jar
        calendar.jar
        cglib-2.1_3.jar
        ckez.jar
        commons-beanutils-1.8.0.jar
        commons-codec-1.3.jar
        commons-collections-3.1.jar
        commons-dbcp-1.2.2.jar
        commons-digester-1.8.jar
        commons-fileupload.jar
        commons-io.jar
        commons-lang-2.4.jar
        commons-lang3-3.0-beta.jar
        commons-validator-1.3.1.jar
        commons-logging-1.1.1.jar
        commons-pool-1.4.jar
        curl-orb-client.jar
        dom4j-1.6.1.jar
        ehcache-1.2.3.jar
        ezmorph-1.0.6.jar
        fckez.jar
        Filters.jar
        gmapsz.jar
        httpclient-4.0.3.jar
        httpcore-4.0.1.jar
        httpmime-4.0.3.jar
        ibatis-common-2.jar
        ibatis-sqlmap-2.jar
        itext.jar
        jasperreports-3.7.6.jar
        javassist-3.7.ga.jar
        jcommon.jar
        jfreechart.jar
        jl1.0.1.jar
        js.jar
        jstl-1.1.2.jar
        jta-1.0.1b.jar
        jtelnet-withall.jar
        junit-4.5.jar
        log4j-1.2.8.jar
        mail-1.4.jar
        ognl-2.7.3.jar
        ojdbc14.jar
        org.springframework.binding-2.0.5.RELEASE.jar
        org.springframework.js-2.0.5.RELEASE.jar
        oro-2.0.8.jar
        poi-3.7-20101029.jar
        quartz-1.6.0.jar
        quartz-oracle-1.6.1.jar
        silvertail.jar
        spring.jar
        spring-aop-2.5.6.jar
        spring-beans-2.5.6.jar
        spring-context-2.5.6.jar
        spring-context-support-2.5.6.jar
        spring-core-2.5.6.jar
        spring-jdbc-2.5.6.jar
        spring-test-2.5.6.jar
        spring-tx-2.5.6.jar
        spring-web-2.5.6.jar
        sslext-1.2-0.jar
        standard-1.1.2.jar
        timelinez.jar
        timeplotz.jar
        verdana.jar
        zcommon.jar
        zcommons-el.jar
        zhtml.jar
        zk.jar
        zkex.jar
        zkmax.jar
        zkplus.jar
        zkspring.jar
        zml.jar
        zul.jar
        zuljsp.jar
        zweb.jar
        Last edited by p4r4list; Jun 20th, 2012, 11:31 PM.

        Comment


        • #5
          You have both a spring.jar and spring-[module].jar. Remove the spring.jar and add the module jars you need. I suspect the spring.jar is a different version.

          Comment


          • #6
            hello mr.marten you right now my problem solved thank's a lot.

            Comment

            Working...
            X