Edmondo,
You need to have placed the blpjavaapi.jar into the
<domain-dir>/lib/applibs directory before executing the asadmin deploy
command.
Chris
On 30/08/2010 10:03, glassfish_at_javadesktop.org wrote:
> Dear all,
> I am in real troubles with deploying a Bloomberg API Jar. IT really looks there's something i can't figure out. I use asdamin to deploy the ejb with the library, and I get this error.
>
> Dear all,
> you seem to able to help me :)
>
> I was having the same problem and I tried with asadmin like the following:
>
> asadmin deploy --libraries .\blpjavaapi.jar .\Gotware-ejb.jar
>
> However, I obtain a big error... it looks like the class it is not defined
>
> GRAVE: com/bloomberglp/blpapi/EventHandler
> java.lang.NoClassDefFoundError: com/bloomberglp/blpapi/EventHandler
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
> at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:686)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> at org.glassfish.weld.BeanDeploymentArchiveImpl.collectJarInfo(BeanDeploymentArchiveImpl.java:240)
> at org.glassfish.weld.BeanDeploymentArchiveImpl.populate(BeanDeploymentArchiveImpl.java:225)
> at org.glassfish.weld.BeanDeploymentArchiveImpl.<init>(BeanDeploymentArchiveImpl.java:102)
> at org.glassfish.weld.DeploymentImpl.<init>(DeploymentImpl.java:118)
> at org.glassfish.weld.WeldDeployer.load(WeldDeployer.java:315)
> at org.glassfish.weld.WeldDeployer.load(WeldDeployer.java:99)
> at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:175)
> at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:216)
> at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338)
> 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)
> Caused by: java.lang.ClassNotFoundException: com.bloomberglp.blpapi.EventHandler
> at com.sun.enterprise.loader.ASURLClassLoader.findClassData(ASURLClassLoader.java:736)
> at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:626)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> ... 42 more
>
>
> I had check, however, and the class is there..any idea?
> Thank you very much
> Edmondo
> [Message sent by forum member 'edmondo1984']
>
> http://forums.java.net/jive/thread.jspa?messageID=481254
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>