 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Patrick Maloney Guest
|
Posted: Fri Apr 08, 2005 2:23 am Post subject: JBX: JARs included within EJB jar are not in classpath |
|
|
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
|
Posted: Fri Apr 08, 2005 3:09 am Post subject: Re: JBX: JARs included within EJB jar are not in classpath |
|
|
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
|
Posted: Fri Apr 08, 2005 4:53 am Post subject: Re: JBX: JARs included within EJB jar are not in classpath |
|
|
"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
|
Posted: Fri Apr 08, 2005 12:53 pm Post subject: Re: JBX: JARs included within EJB jar are not in classpath |
|
|
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
|
Posted: Fri Apr 08, 2005 5:59 pm Post subject: Re: JBX: JARs included within EJB jar are not in classpath |
|
|
"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
|
Posted: Fri Apr 08, 2005 6:01 pm Post subject: Re: JBX: JARs included within EJB jar are not in classpath |
|
|
"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
|
Posted: Fri Apr 08, 2005 6:57 pm Post subject: Re: JBX: JARs included within EJB jar are not in classpath |
|
|
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
|
|
| Back to top |
|
 |
|
|
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
|
|