users@glassfish.java.net

Re: Calling a Web Service From a JRuby on Rails - Application

From: Vivek Pandey <Vivek.Pandey_at_Sun.COM>
Date: Thu, 07 Jan 2010 09:32:37 -0800

glassfish_at_javadesktop.org wrote:
> Thank you for your reply.
>
>
>> I think in method2, there is some mismatch w.r.t. whether the JAX-WS api
>> is loaded from inside glassfish v3 vs the one coming from JDK.
>>
> Do you know if there is a workaround? (E.g. a different way to generate the client)?
>
I will need to try it. Please toss an issue ticket with testcase and
will investigate whats going on.
>
>> Method1 should have worked but I would recommend
>> placing the WS client
>> jar inside your rails app lib directory
>> ($RAILS_ROOT/lib) and see if it
>> helps.
>>
> I didn't know I could put jar-Files to that Folder... I tried it, but after that I couldn't deploy my Rails Application:
>
>
This is a bug as well.
> SCHWERWIEGEND: Exception while deploying the app
> java.lang.NullPointerException
> at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:120)
> at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:78)
> at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:612)
> at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:554)
> at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:262)
> at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
> at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
> at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
> at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
> at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
> at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
> at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
> at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
> at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
> at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
> at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
> at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
> at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
> at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
> at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
> at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
> at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
> at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
> at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
> at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
> at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
> at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
> at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
> at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
> at java.lang.Thread.run(Thread.java:619)
>
> I added a zip-File containing a simple Rails-App and the jar-File (in RAILS_ROOT/lib).
>
>
Where is this zip file. Did you already reported the issue?

-vivek.

> The jar-File contains a Class test.FoxClient w/ method getFoxArticles which should return a String.
>
> I call the method in rails in the fox_controller --> test.
>
>
> Thank you,
> Heiko
> [Message sent by forum member 'hzeus' (hzeus_at_gmx.de)]
>
> http://forums.java.net/jive/thread.jspa?messageID=379215
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>