This discussion is archived
9 Replies Latest reply: Jul 12, 2013 5:22 AM by dvohra21 RSS

Can not deploy Web application on Glassfish!

1006360 Newbie
Currently Being Moderated
Hello, I am trying to deploy and run a Fusion Web Application in Glassfish but I continue to have an error:

[08:08:57 PM] ---- Deployment started. ----
[08:08:57 PM] Target platform is (Glassfish 3.1).
[08:08:57 PM] Retrieving existing application information
[08:09:01 PM] Running dependency analysis...
[08:09:01 PM] Building...
[08:09:01 PM] Deploying profile...
[08:09:01 PM] Wrote Web Application Module to C:\JDeveloper\mywork\Application3\ViewController\deploy\Application3_ViewController_webapp.war
[08:09:02 PM] Deploying Application...
[08:09:07 PM] Unable to add application
[08:09:07 PM] POST http://localhost:4848/management/domain/applications/application returned a response status of 400
[08:09:07 PM] Deployment cancelled.
[08:09:07 PM] ---- Deployment incomplete ----.
[08:09:07 PM] Remote deployment failure
[08:09:07 PM] Unable to add application
[08:09:07 PM] POST http://localhost:4848/management/domain/applications/application returned a response status of 400

If you can please help me, I do not understand where the problem is..
  • 1. Re: Can not deploy Web application on Glassfish!
    Shay Shmeltzer Employee ACE
    Currently Being Moderated
    Open the log files of your glassfish server - you should see a more detailed error message there that will give you info on where the problem is.
  • 2. Re: Can not deploy Web application on Glassfish!
    1006360 Newbie
    Currently Being Moderated
    This is the what the glassfish log-file contained:

    [#|2013-05-01T23:13:01.278+0200|SEVERE|oracle-glassfish3.1.2|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=89;_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.IllegalArgumentException: java.lang.ClassNotFoundException: oracle.adf.share.glassfish.listener.ADFGlassFishAppLifeCycleListener
         at com.sun.enterprise.web.WebApplication.start(WebApplication.java:138)
         at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
         at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
         at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301)
         at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
         at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
         at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
         at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:214)
         at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:207)
         at org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:323)
         at org.glassfish.admin.rest.resources.TemplateListOfResource.post(TemplateListOfResource.java:180)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:601)
         at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
         at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
         at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
         at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
         at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
         at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
         at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
         at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
         at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
         at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
         at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
         at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
         at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
         at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
         at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
         at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer._service(GrizzlyContainer.java:182)
         at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer.service(GrizzlyContainer.java:147)
         at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:148)
         at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
         at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
         at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
         at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
         at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
         at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
         at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
         at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
         at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
         at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
         at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
         at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
         at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
         at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
         at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
         at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
         at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
         at java.lang.Thread.run(Thread.java:722)
    |#]

    [#|2013-05-01T23:13:01.278+0200|SEVERE|oracle-glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=89;_ThreadName=Thread-2;|Exception while loading the app|#]

    [#|2013-05-01T23:13:01.282+0200|SEVERE|oracle-glassfish3.1.2|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=89;_ThreadName=Thread-2;|Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: oracle.adf.share.glassfish.listener.ADFGlassFishAppLifeCycleListener|#]

    [#|2013-05-01T23:13:01.330+0200|INFO|oracle-glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=89;_ThreadName=Thread-2;|Deleting file....|#]
  • 3. Re: Can not deploy Web application on Glassfish!
    vinaykumar2 Expert
    Currently Being Moderated
    on wht way u trying to deploy the app

    You can package standard EAR and WAR file in JDeveloper, and then use the glassfish utilities or an Ant script to deploy those.. that is standrd way.wht u following?
  • 4. Re: Can not deploy Web application on Glassfish!
    vinaykumar2 Expert
    Currently Being Moderated
    check this link

    http://www.youtube.com/watch?v=dzhdpUkXEBs
  • 5. Re: Can not deploy Web application on Glassfish!
    Shay Shmeltzer Employee ACE
    Currently Being Moderated
    Seems like you didn't install ADF Essentials correctly on your Glassfish server.

    Follow the instructions here:
    https://blogs.oracle.com/shay/entry/deploying_oracle_adf_applications_to
  • 6. Re: Can not deploy Web application on Glassfish!
    1006360 Newbie
    Currently Being Moderated
    Hello again, I did everything that the tutorial explained step-by-step and I am getting the same error again! One thing was wired because the adf_essentials that I downloaded from the Oracle site is about 20 MB whether the zip file in the tutorial is more than 70 MB! Did I download something else or it has been changed?
  • 7. Re: Can not deploy Web application on Glassfish!
    1006360 Newbie
    Currently Being Moderated
    Ok I copy-pasted each jar file one by one from the folders that showed up when I unzipped the adf-essentials and now I can deploy it but I can not still RUN it. I have created just a simple application to try and I have a jsf file that I want to be displayed to the browser. How can I run this (when I run it this way, weblogic server shows up with deployment error :/) or how can I find the url to run? Thank you.
  • 8. Re: Can not deploy Web application on Glassfish!
    Shay Shmeltzer Employee ACE
    Currently Being Moderated
    If you don't tell us what is the specific error you are seeing we can't help you.
    If you would have followed the instructions and used the -j option when unzipping you wouldn't have needed to manually copy the files.

Legend

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