Avatar billede fredand Forsker
20. september 2006 - 16:27 Der er 2 kommentarer og
1 løsning

Still problems with classpth inside Manifets.mf

Hello!

Recently I got exelent help with this from arne_v. But when I deploy my app in an other server but very similar to my development environment it doesn't work.

The problem is that my EJB doesn't find the lib/*.jar inside myejb.jar

My Manifest.mf file looks like:
Manifest-Version: 1.0
Class-Path: lib/xml-apis.jar
lib/sax.jar
lib/weblogic.jar
lib/jaxp-api.jar
lib/commons-httpclient.jar
lib/commons-logging-1.0.4.jar
lib/commons-logging.jar
lib/log4j-1.2.13.jar
lib/xalan.jar
lib/xercesImpl.jar

I pack my it like

jar cvfm myejb.jar MANIFEST.MF *.jar *.xml *.properties com/ lib/ META-INF/ jmsresource/

The Metainf.mf inside the jar looks like:
Manifest-Version: 1.0
Created-By: 1.4.0 (Sun Microsystems Inc.)
Class-Path: lib/xml-apis.jar lib/sax.jar lib/weblogic.jar lib/jaxp-api
.jar lib/commons-httpclient.jar lib/commons-logging-1.0.4.jar lib/com
mons-logging.jar lib/log4j-1.2.13.jar lib/xalan.jar lib/xercesImpl.ja
r


How ever this runs perfect on my computer but not on the customer app.

The different is that we start our weblogic different.

I start weblogic from a script.

The customer starts weblogic like a service with a classpath stored in the register.

If you have any clue please let me now.

Best regards
Fredrik
Avatar billede wwwj2eedotdk Nybegynder
23. september 2006 - 12:29 #1
With respect... Please, why don't you just wrap your EJB in an .ear and put the server-side libs in the root of the .ear file? Just a suggestion... Best of luck!
Avatar billede fredand Forsker
25. september 2006 - 10:03 #2
Hello!

Thanks for your reply.
That is what we have done, but the ear is named myejb.jar

the structure of the jar file looks like
*.xml
*.properties
com/
lib/*jar
META-INF/
jmsresource/


Do you mean that if we did it like :

*.xml
*.properties
com/
*jar
META-INF/
jmsresource/

with the Manifest like:
Manifest-Version: 1.0
Class-Path: xml-apis.jar
sax.jar
weblogic.jar
jaxp-api.jar
commons-httpclient.jar
commons-logging-1.0.4.jar
commons-logging.jar
log4j-1.2.13.jar
xalan.jar
xercesImpl.jar

Perhaps this is better?
What do you think.

I will try it out later this week!

Best regards
Fredrik
Avatar billede fredand Forsker
30. december 2006 - 13:35 #3
Lets close this one
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester