Forum Stats

  • 3,853,743 Users
  • 2,264,263 Discussions
  • 7,905,440 Comments

Discussions

Jdeveloper 11, PLSQL webservice, how to deploy it on glassfish server?

PeterValencic
PeterValencic Member Posts: 522 Red Ribbon
edited Jun 16, 2014 3:12AM in JDeveloper and ADF

Hello,

With Jdeveloper I have created webservices from database plsql package.

The problem I have is how to deploy the web project to glassfish app server..

(I have deployed my webservice on OC4J and Weblogic but I need it on glassfish app server).

Thank you for any info...

regards

Peter

Answers

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 38,745 Red Diamond

    Not sure if you are posting in the right forum. the PL/SQL or a glassfish forum might be better for your question.

    Which exact jdev version do you use?

    have you tried to deploy the web service to glassfish?

    If yes, qhat error did you get?

    Timo

  • PeterValencic
    PeterValencic Member Posts: 522 Red Ribbon

    I want to deploy the JDeveloper project to glassfish app server.. It's a project in JDeveloper and Jdeveloper also has an option to deploy the project directly to glassfish so I chose this forum

    1.) I have tryed to make a connection to Glassfish server from Jdeveloper but get error like this one(ADF 11.1.2.3.0 Glassfish Application Server Connection Error)

    2.) In Jdeveloper I have made a WAR file and deployed it to glassfish from glassfish server console..

    Error An error has occurred

    Error occurred during deployment: Exception while preparing the app : jaxrpc compilation exception. Please see server.log for more details.


    (Will look into log files to see what error type is.....)

    Jdeveloper version: Studio Edition Version 11.1.2.4.0

    GlassFish: Oracle GlassFish Server 3.1.2.2 (build 5)

  • PeterValencic
    PeterValencic Member Posts: 522 Red Ribbon
    edited May 26, 2014 7:51AM

    I have addes hostname and ip number of my glassfish server...

    Now I can make a connection with Jdeveloper but when I like to deploy the webservice on glassfish I get this error (from console in Jdeveloper)

    [01:13:28 PM] Unable to add application

    [01:13:28 PM] POST https://glassfish.in2koper.dmz:4848/management/domain/applications/application returned a response status of 400

    [01:13:28 PM] Deployment cancelled.

    [01:13:28 PM] ----  Deployment incomplete  ----.

    [01:13:28 PM] Remote deployment failure

    [01:13:28 PM] Unable to add application

    [01:13:28 PM] POST https://glassfish.in2koper.dmz:4848/management/domain/applications/application returned a response status of 400



    ====================

    May 26, 2014 13:29:50.568

    SEVERE

    javax.enterprise.system.core.com.sun.enterprise.v3.server

    _ThreadID=11997;_ThreadName=Thread-2;

    2660

    jaxrpc compilation exception java.lang.RuntimeException: jaxrpc compilation exception at org.glassfish.webservices.WebServicesDeployer.prepare(WebServicesDeployer.java:193) at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:871) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:410) 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:1066) 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:148) 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:606) 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:724) Caused by: java.lang.RuntimeException: jaxrpc compilation exception at org.glassfish.webservices.codegen.JaxRpcRICodegen.accept(JaxRpcRICodegen.java:329) at com.sun.enterprise.deployment.WebBundleDescriptor.visit(WebBundleDescriptor.java:1999) at com.sun.enterprise.deployment.Application.visit(Application.java:1777) at org.glassfish.webservices.codegen.JaxRpcRICodegen.run(JaxRpcRICodegen.java:153) at org.glassfish.webservices.JAXRPCCodeGenFacadeImpl.run(JAXRPCCodeGenFacadeImpl.java:60) at org.glassfish.webservices.WebServicesDeployer.prepare(WebServicesDeployer.java:178) ... 53 more Caused by: java.lang.Exception: jaxrpc compilation exception at org.glassfish.webservices.codegen.JaxRpcRICodegen.jaxrpc(JaxRpcRICodegen.java:769) at org.glassfish.webservices.codegen.JaxRpcRICodegen.jaxrpcWebService(JaxRpcRICodegen.java:797) at org.glassfish.webservices.codegen.JaxRpcRICodegen.accept(JaxRpcRICodegen.java:326) ... 58 more Caused by: java.lang.Exception: jaxrpc compilation exception at org.glassfish.webservices.codegen.JaxRpcRICodegen.jaxrpc(JaxRpcRICodegen.java:766) ... 60 more

  • Sameh Nassar
    Sameh Nassar Member Posts: 1,076

    I faces same error .. did you solved this??

  • dvohra21
    dvohra21 Member Posts: 14,672 Gold Crown

    The same exception is listed as a bug/issue.

    https://java.net/jira/browse/GLASSFISH-16458


    Caused by: java.lang.RuntimeException: jaxrpc compilation exception

    [javatest.batch] 11991: at org.glassfish.webservices.WebServicesDeployer.prepare

  • PeterValencic
    PeterValencic Member Posts: 522 Red Ribbon

    Actually I have no time for this.. but I received some response from Oracle support service..

    =============================================================

    GlassFish does not have any built-in native support for support Web Services that call PLSQL routines in an Oracle Database.

    JDeveloper has created a war file that includes numerous jars from the ADF framework and there are missing classes that imply that additional ADF support needs to be deployed on GlassFish to allow the module to deploy successfully.

    Searching for similar issues to the one I see I do find: http://stackoverflow.com/questions/15256055/exception-while-deploying-adf-in-glassfish

    Which says JDeveloper, if it knows it is deploying to GlassFish, should have added an adf-share-glassfish.jar to the application. I don't see that jar file in the toplink.war you supplied. In addition the user also switched to deploying the WAR within an EAR.

    Finally, looking at:

    http://www.oracle.com/technetwork/developer-tools/jdev/11gr2update3-1851251.html#11.1.2.3.0ShermanUpdate3-ReleaseNotesREPOSITORY-ADFEssentialsandGlassFishDeployment

    there are restrictions on what parts of ADF are allowed on GlassFish. Whether those component restrictions have any relation to the web service you are trying to create. I am afraid I simply do not know.

    I neither know or support JDeveloper or ADF. It is possible that you would be better asking ADF or JDeveloper support.

This discussion has been closed.