geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacek Laskowski" <ja...@laskowski.net.pl>
Subject Re: EJB related exception while migrating from Geronimo1.1.1 to Geronimo2.0.2
Date Fri, 28 Dec 2007 09:42:10 GMT
On Dec 28, 2007 8:26 AM, Hari Krishna Korrapati
<harikrishna.korrapati@gmail.com> wrote:

> Caused by: org.apache.openejb.OpenEJBException: Cannot unmarshall the
> ejb-jar.xml file: jar:file:/E:/Geronimo
> 2.0.2/geronimo-tomcat6-jee5-2.0.2-bin/geronimo-tomcat6-jee5-2.0.2
> /var/temp/geronimo-deploymentUtil24547.jar!/META-INF/ejb-jar.xml: null
>             at
> org.apache.openejb.config.ReadDescriptors.readEjbJar(ReadDescriptors.java:334)
>             at org.apache.openejb.config.DeploymentLoader.load
> (DeploymentLoader.java:368)
>             at
> org.apache.geronimo.openejb.deployment.EjbModuleBuilder.createModule(EjbModuleBuilder.java:211)
>             ... 33 more
> Caused by: javax.xml.bind.UnmarshalException
>  - with linked exception:
> [java.net.UnknownHostException: java.sun.com]
>             at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:196)
>             at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal
> (UnmarshallerImpl.java:167)
>             at
> javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:120)
>             at
> javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java
> :103)
>             at
> org.apache.openejb.jee.JaxbJavaee.unmarshal(JaxbJavaee.java:103)
>             at
> org.apache.openejb.config.ReadDescriptors.readEjbJar(ReadDescriptors.java:330)
>             ... 35 more
> Caused by: java.net.UnknownHostException: java.sun.com
...
> Please advice on what could be the problem.

As you're asking about the problem (and not about a solution) I think
I can help ;-)

The issue is that Geronimo runs behing a firewall or the server it
runs on doesn't have internet connection and hence resolving
java.sun.com leads to UHE exception. I vaguely remember it's been
fixed in the latest openejb3 where openejb (the ejb container in
Geronimo) doesn't need internet connection to let the ejb deployer
run.

It won't read good, but there's no other way as to 1) deploy the app
on the geronimo instance while it's online and copy the deployed
package to another instance of Geronimo without internet connection or
2) use the latest Geronimo 2.1-SNAPSHOT [1]. One last *desperate*
attempt would be to overwrite
repository\org\apache\openejb\openejb-core\3.0-beta-1\openejb-core-3.0-beta-1.jar
with the jar built from the openejb3 trunk [2], but it may incur some
other troubles.

[1] http://people.apache.org/~prasad/binaries/trunk/20071228/
[2] http://people.apache.org/~jlaskowski/openejb-3.0.0-SNAPSHOT-bin.zip

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

Mime
View raw message