geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Santosh Koti" <Santosh_K...@infosys.com>
Subject RE: how to extend the classpath of Geronimo???
Date Sat, 20 May 2006 15:20:40 GMT



Try dependency in ur deployment plan. That should help u !



Thanks,
Santosh.
"Don't talk about yourself; it will be done when you leave. "


-----Original Message-----
From: Joerg Friede [mailto:joerg.friede@3kraft.com]
Sent: Friday, May 19, 2006 5:57 PM
To: user@geronimo.apache.org
Subject: how to extend the classpath of Geronimo???

Hi all,

being quite new to Geronimo i'm stunned that there seems to be no common

way to extend the classpath for geronimo.

I do have a jar-file which contains some utility classes that my
ejb-app's need and tried to put this jar in the classpath doing the
following:

*) extend the CLASSPATH environment variable --> class not found
exception

*) start the server with -cp switch --> server does not start at all

*) put my jar in <GERONIMO_HOME>/lib, <GERONIMO_HOME>/lib/endorsed,
<GERONIMO_HOME>/lib/extension --> class not found exception

*) added the jar to repository and tried to reference it from the
deployment descriptor (openejb-jar.xml) as follows
  
    /<openejb-jar   xmlns="http://www.openejb.org/xml/ns/openejb-jar"
configId="Data-Service">
    <import>
        <uri>MyJar/MyJar/1.0/jar</uri>
    </import>
    <enterprise-beans>
        <session>
            <ejb-name>DataManager</ejb-name>
            <jndi-name>DataManager</jndi-name>
            <local-jndi-name>DataManagerLocal</local-jndi-name>
        </session>
    </enterprise-beans>
</openejb-jar>/

Then i get the exception:

/13:17:43,154 ERROR [Hot Deployer] Unable to deploy: Unable to load
first parent of configuration Data-Service
org.apache.geronimo.common.DeploymentException: Unable to load first
parent of configuration Data-Service
....
Caused by: org.apache.geronimo.kernel.config.NoSuchConfigException: No
configuration with id: MyJar/MyJar/1.0/jar
....
/
The Jar file is at the location
<GERONIMO_HOME>/repository/MyJar/jars/MyJar-1.0.jar.

What does one have to do to add classes to the JVM of Geronimo?

Thanks in advance, Joerg Friede


**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of
the addressee(s). If you are not the intended recipient, please notify the sender by e-mail
and delete the original message. Further, you are not to copy, disclose, or distribute this
e-mail or its contents to any other person and any such actions are unlawful. This e-mail
may contain viruses. Infosys has taken every reasonable precaution to minimize this risk,
but is not liable for any damage you may sustain as a result of any virus in this e-mail.
You should carry out your own virus checks before opening the e-mail or attachment. Infosys
reserves the right to monitor and review the content of all messages sent to or from this
e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys
e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

Mime
View raw message