users@glassfish.java.net

Re: Remote standalone EJB client

From: Witold Szczerba <pljosh.mail_at_gmail.com>
Date: Wed, 29 Oct 2008 20:57:51 +0100

I am successfully developing standalone client for my remote EJB3
interfaces deployed on Glassfish. These are the libraries I have on my
classpath:

appserv-admin.jar
appserv-deployment-client.jar
appserv-ext.jar
appserv-rt.jar
javaee.jar
jmxremote_optional.jar (*)
toplink-essentials.jar (*)

(*) probably you will not need those two jars.

Regards,
Witold Szczerba

2008/10/29 Danilo Levantesi <danilo.levantesi_at_gmail.com>:
> Now I've some issues concerning classpath...
> How can I develop a client and specify the right libs? putting them into
> Manifest classpath seems not to work (jndi.properties is not found).
>
>> Just few minutes ago I've found a doc:
>> http://java.sun.com/j2se/1.4.2/docs/tooldocs/linux/java.html
>>
>> The most important excerpt:
>>
>> -jar
>> [cut]
>> When you use this option, the JAR file is the source of all user
>> classes, and other user class path settings are ignored.
>>
>> So, it is a classpath problem =)
>> I think I've to specify the dependencies into Manifest or by including them
>> into jar.
>>
>> By the way, many thanks for your help!
>>
>> Danilo
>>
>> > Hi, Danilo.
>> >
>> > (I posted a response in the forum
>> > <http://forums.java.net/jive/message.jspa?messageID=313701#313701>
>> > earlier but the automatic shadowing between the mailing list and the
>> > forum is not working at the moment.) Here is what I posted there:
>> >
>> > I think you are on the right track with the classpath being the problem.
>> >
>> > Try this instead (no quote marks around the entire class path):
>> >
>> > java -Dorg.omg.CORBA.ORBInitialHost=localhost\
>> > -Dorg.omg.CORBA.ORBInitialPort=3700\
>> > -classpath /opt/glassfish/appserv-rt.jar:/opt/glassfish/lib/javaee.jar\
>> > -jar client.jar
>> >
>> > I suspect Java was trying to add the single string
>> > "/opt/glassfish/appserv-rt.jar:/opt/glassfish/lib/javaee.jar" as one
>> > element in the class path. That's not what you intended but that is what
>> > you told Java to do.
>> >
>> > Removing the quote marks entirely should help.
>> >
>> > - Tim
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>