BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

JBX: JARs included within EJB jar are not in classpath

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE
View previous topic :: View next topic  
Author Message
Patrick Maloney
Guest





PostPosted: Fri Apr 08, 2005 2:23 am    Post subject: JBX: JARs included within EJB jar are not in classpath Reply with quote



I have a library set up which just points to a jar.

In the EJB dependencies section, I say always include everything and it
puts the library jar at the top level (no path) in the EJB jar.

However, my container (Sybase EA Server) doesn't see them. A search on
google suggests that I need to add 'Class-Path' entries to the
manifest...is that true? If yes, why doesn't JB do it for me?

Any hints?

Thanks, Patrick

--
Remove both XX's from e-mail to reply.
Back to top
Kevin Dean [TeamB]
Guest





PostPosted: Fri Apr 08, 2005 3:09 am    Post subject: Re: JBX: JARs included within EJB jar are not in classpath Reply with quote



Patrick Maloney wrote:

Quote:
I have a library set up which just points to a jar.

In the EJB dependencies section, I say always include everything and
it puts the library jar at the top level (no path) in the EJB jar.

However, my container (Sybase EA Server) doesn't see them. A search
on google suggests that I need to add 'Class-Path' entries to the
manifest...is that true? If yes, why doesn't JB do it for me?

I don't trust adding library JARs directly to EJB JAR files like that.
I would suggest instead that you include the library JAR in the
deployment to EA Server.

While I am not familiar with EA Server specifically, the concept of
library JAR files is well supported by other EJB containers. Check the
EA server documentation for details.

Also, depending on how the plug-in for EA Server works, JBuilder may be
able to do it for you automatically. In the server run configuration,
look for a node in the tree called "Libraries" and check the library
you want deployed. If that node exists and the option is checked,
JBuilder should deploy the library automatically for you.

--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html

Back to top
Patrick Maloney
Guest





PostPosted: Fri Apr 08, 2005 4:53 am    Post subject: Re: JBX: JARs included within EJB jar are not in classpath Reply with quote



"Kevin Dean [TeamB]" <NkOdSePaAnM (AT) datadevelopment (DOT) com> wrote in
news:xn0e0qasm74qgh005-kdean (AT) www (DOT) teamb.com:

Quote:
I don't trust adding library JARs directly to EJB JAR files like that.
I would suggest instead that you include the library JAR in the
deployment to EA Server.

Why does JB put them in the file then? Preferrably, I would like to
create an EJB jar that's app server-independent.

Quote:
While I am not familiar with EA Server specifically, the concept of
library JAR files is well supported by other EJB containers.

Can you give an example?

Thanks, PM


--
Remove both XX's from e-mail to reply.

Back to top
Kevin Dean [TeamB]
Guest





PostPosted: Fri Apr 08, 2005 12:53 pm    Post subject: Re: JBX: JARs included within EJB jar are not in classpath Reply with quote

Patrick Maloney wrote:

Quote:
Can you give an example?

Borland Enterprise Server allows you to deploy library JARs that are
independent of your application. So does BEA WebLogic. I would be
surprised if Sybase EA Server didn't; at the very least, it has to be
able to handle JDBC libraries, so there's no reason it can't handle
other libraries.

See my previous post for information on how to configure libraries for
deployment in a runtime configuration.

--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html

Back to top
Patrick J. Maloney
Guest





PostPosted: Fri Apr 08, 2005 5:59 pm    Post subject: Re: JBX: JARs included within EJB jar are not in classpath Reply with quote

"Kevin Dean [TeamB]" <NkOdSePaAnM (AT) datadevelopment (DOT) com> wrote in
news:xn0e0qasm74qgh005-kdean (AT) www (DOT) teamb.com:

Quote:
I don't trust adding library JARs directly to EJB JAR files like that.

Is it *POSSIBLE* to do this? I don't want to add the libs to the server in
a separate step.

I tried an EAR file, but it kept complaining about a missing manifest.


--
Patrick Maloney
New York State Workers' Compensation Board

(Remove REMOVE from e-mail address to reply)

Back to top
Patrick J. Maloney
Guest





PostPosted: Fri Apr 08, 2005 6:01 pm    Post subject: Re: JBX: JARs included within EJB jar are not in classpath Reply with quote

"Kevin Dean [TeamB]" <NkOdSePaAnM (AT) datadevelopment (DOT) com> wrote in
news:xn0e0qasm74qgh005-kdean (AT) www (DOT) teamb.com:

Quote:
Also, depending on how the plug-in for EA Server works, JBuilder may be
able to do it for you automatically. In the server run configuration,
look for a node in the tree called "Libraries" and check the library
you want deployed. If that node exists and the option is checked,
JBuilder should deploy the library automatically for you.



I don't run EA server locally, so this is out.

--
Patrick Maloney
New York State Workers' Compensation Board

(Remove REMOVE from e-mail address to reply)

Back to top
Kevin Dean [TeamB]
Guest





PostPosted: Fri Apr 08, 2005 6:57 pm    Post subject: Re: JBX: JARs included within EJB jar are not in classpath Reply with quote

Patrick J. Maloney wrote:

Quote:
Is it POSSIBLE to do this? I don't want to add the libs to the
server in a separate step.

I tried an EAR file, but it kept complaining about a missing manifest.

There's nothing in the EJB 2.0 specification about library JARs
contained within the EJB JAR file, so I'm not entirely sure that what
JBuilder is doing is legal.

If you deploy the library JAR files in a separate step, then you only
need to deploy them once (unless these are libraries that you yourself
are creating). Deployment of your application will be slightly faster
as a result.

--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html

Back to top
Lori M Olson [TeamB]
Guest





PostPosted: Fri Apr 08, 2005 8:57 pm    Post subject: Re: JBX: JARs included within EJB jar are not in classpath Reply with quote

Ok, guys, enough with the multiposts!!

F'ups set to the deployment group.

--

Regards,

Lori Olson [TeamB]

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.