users@glassfish.java.net

Re: Remote standalone EJB client

From: Danilo Levantesi <danilo.levantesi_at_gmail.com>
Date: Wed, 29 Oct 2008 15:48:03 +0100

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