Re: [JBoss-user] Is the server library URL in the classpath?

2002-08-14 Thread David Jencks

What exactly does ojb require?  All classes are visible to all other in
jboss 3 unless you go to a lot of trouble...

Even commercial jdo implementations (LiDO) that do not exhibit spectacular
understanding of classloader issues work fine hot deployed into jboss.

Have you talked with Matthew Baird? He seems to have a hot deployed setup
working, if I understand what he is writing.

david jencks

On 2002.08.14 17:16:09 -0400 Ryan Marsh wrote:
> OJB requires it. I know, yuck. This is being solved but until then I
> want my stuff to work. If I'm understanding your test properly, the only
> directory that is in the root of the classpath is jboss/bin?
> 
> -ryan
> 
> On Wed, 2002-08-14 at 15:37, Stuart Halloway wrote:
> > Hi Ryan,
> > 
> > Tests and output to answer your question below. Cheers!
> > 
> > Stuart Halloway
> > DevelopMentor
> > http://staff.develop.com/halloway
> > 
> > PS. Why do you need to be at the root of the classpath? That seems like
> an
> > odd (dangerous) requirement.
> > 
> > 
> >   public void testIterateClassLoaders() {
> > ClassLoader cl = getClass().getClassLoader();
> > while (cl != null) {
> >   listLoaderURLS(cl);
> >   cl = cl.getParent();
> > }
> >   }
> >   private void listLoaderURLS(ClassLoader cl) {
> > System.out.println("Loader " + cl);
> > if (cl instanceof URLClassLoader)
> > {
> >   URLClassLoader loader = (URLClassLoader) cl;
> >   URL[] urls = loader.getURLs();
> >   for (int n=0; n > System.out.println("\t" + urls[n]);
> >   }
> > }
> >   }
> > 
> > 
> > Loader org.jboss.mx.loading.UnifiedClassLoader@40832
> > 5{
> > url=file:/E:/java/jboss/jboss-3.0.0/server/default/tmp/deploy/server/default
> > /
> > deploy/dm-asset-mgr.jar/67.dm-asset-mgr.jar }
> > 
> > Loader java.net.URLClassLoader@fc4bec
> >   file:/E:/java/jboss/jboss-3.0.0/lib/crimson.jar
> >   file:/E:/java/jboss/jboss-3.0.0/lib/jboss-jmx.jar
> >   file:/E:/java/jboss/jboss-3.0.0/lib/concurrent.jar
> >   file:/E:/java/jboss/jboss-3.0.0/lib/jaxp.jar
> >   file:/E:/java/jboss/jboss-3.0.0/lib/log4j-boot.jar
> >   file:/E:/java/jboss/jboss-3.0.0/lib/jboss-common.jar
> >   file:/E:/java/jboss/jboss-3.0.0/lib/jboss-system.jar
> > 
> > Loader sun.misc.Launcher$AppClassLoader@bac748
> >   file:/E:/java/jboss/jboss-3.0.0/bin/
> >   file:/E:/java/jdk1.4.0/lib/tools.jar
> >   file:/E:/java/jboss/jboss-3.0.0/bin/run.jar
> > 
> > Loader sun.misc.Launcher$ExtClassLoader@7172ea
> >   file:/E:/java/jdk1.4.0/jre/lib/ext/dnsns.jar
> >   file:/E:/java/jdk1.4.0/jre/lib/ext/ldapsec.jar
> >   file:/E:/java/jdk1.4.0/jre/lib/ext/localedata.jar
> >   file:/E:/java/jdk1.4.0/jre/lib/ext/sunjce_provider.jar
> > 
> > > I need some files to bee in the *root* of the classpath. I'd prefer
> to
> > > deploy these files in server/default/conf or server/defaul/lib. Are
> > > either of these paths added to the classpath?
> > >
> > > -ryan
> > 
> > 
> > 
> > ---
> > This sf.net email is sponsored by: Dice - The leading online job board
> > for high-tech professionals. Search and apply for tech jobs today!
> > http://seeker.dice.com/seeker.epl?rel_code=31
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> -- 
> Humans are the unfortunate result of a local maximum in the
> fitness landscape.
> 
> www.ryanmarsh.com
> 
> 
> 
> 
> ---
> This sf.net email is sponsored by: Dice - The leading online job board
> for high-tech professionals. Search and apply for tech jobs today!
> http://seeker.dice.com/seeker.epl?rel_code=31
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Is the server library URL in the classpath?

2002-08-14 Thread Stuart Halloway

Hi Ryan,

> OJB requires it. I know, yuck. This is being solved but until then I
> want my stuff to work. If I'm understanding your test properly, the only
> directory that is in the root of the classpath is jboss/bin?

This is true IF the JBOSS_CLASSPATH environment variable is not set. If you
do set JBOSS_CLASSPATH then you can add any directories you want.

You would probably be safer to put OJB somewhere else and specifically set
JBOSS_CLASSPATH. Otherwise somebody else might set JBOSS_CLASSPATH not
knowing they are messing you up.

Stuart Halloway
DevelopMentor
http://staff.develop.com/halloway

> On Wed, 2002-08-14 at 15:37, Stuart Halloway wrote:
> > Hi Ryan,
> >
> > Tests and output to answer your question below. Cheers!
> >
> > Stuart Halloway
> > DevelopMentor
> > http://staff.develop.com/halloway
> >
> > PS. Why do you need to be at the root of the classpath? That
> seems like an
> > odd (dangerous) requirement.
> >
> > 
> >   public void testIterateClassLoaders() {
> > ClassLoader cl = getClass().getClassLoader();
> > while (cl != null) {
> >   listLoaderURLS(cl);
> >   cl = cl.getParent();
> > }
> >   }
> >   private void listLoaderURLS(ClassLoader cl) {
> > System.out.println("Loader " + cl);
> > if (cl instanceof URLClassLoader)
> > {
> >   URLClassLoader loader = (URLClassLoader) cl;
> >   URL[] urls = loader.getURLs();
> >   for (int n=0; n > System.out.println("\t" + urls[n]);
> >   }
> > }
> >   }
> > 
> >
> > Loader org.jboss.mx.loading.UnifiedClassLoader@40832
> > 5{
> >
> url=file:/E:/java/jboss/jboss-3.0.0/server/default/tmp/deploy/serv
> er/default
> > /
> > deploy/dm-asset-mgr.jar/67.dm-asset-mgr.jar }
> >
> > Loader java.net.URLClassLoader@fc4bec
> >   file:/E:/java/jboss/jboss-3.0.0/lib/crimson.jar
> >   file:/E:/java/jboss/jboss-3.0.0/lib/jboss-jmx.jar
> >   file:/E:/java/jboss/jboss-3.0.0/lib/concurrent.jar
> >   file:/E:/java/jboss/jboss-3.0.0/lib/jaxp.jar
> >   file:/E:/java/jboss/jboss-3.0.0/lib/log4j-boot.jar
> >   file:/E:/java/jboss/jboss-3.0.0/lib/jboss-common.jar
> >   file:/E:/java/jboss/jboss-3.0.0/lib/jboss-system.jar
> >
> > Loader sun.misc.Launcher$AppClassLoader@bac748
> >   file:/E:/java/jboss/jboss-3.0.0/bin/
> >   file:/E:/java/jdk1.4.0/lib/tools.jar
> >   file:/E:/java/jboss/jboss-3.0.0/bin/run.jar
> >
> > Loader sun.misc.Launcher$ExtClassLoader@7172ea
> >   file:/E:/java/jdk1.4.0/jre/lib/ext/dnsns.jar
> >   file:/E:/java/jdk1.4.0/jre/lib/ext/ldapsec.jar
> >   file:/E:/java/jdk1.4.0/jre/lib/ext/localedata.jar
> >   file:/E:/java/jdk1.4.0/jre/lib/ext/sunjce_provider.jar
> >
> > > I need some files to bee in the *root* of the classpath. I'd prefer to
> > > deploy these files in server/default/conf or server/defaul/lib. Are
> > > either of these paths added to the classpath?
> > >
> > > -ryan
> >



---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Is the server library URL in the classpath?

2002-08-14 Thread Matthew Baird

Hey Ryan,

Maybe I don't understand what you are trying to do, but I didn't have to do any of 
this to get OJB up inside JBoss 3.

Lemme know what you are trying to do that is different than what I'm doing.

m

-Original Message-
From: Ryan Marsh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 2:16 PM
To: [EMAIL PROTECTED]
Cc: Stuart Halloway
Subject: RE: [JBoss-user] Is the server library URL in the classpath?


OJB requires it. I know, yuck. This is being solved but until then I
want my stuff to work. If I'm understanding your test properly, the only
directory that is in the root of the classpath is jboss/bin?

-ryan

On Wed, 2002-08-14 at 15:37, Stuart Halloway wrote:
> Hi Ryan,
> 
> Tests and output to answer your question below. Cheers!
> 
> Stuart Halloway
> DevelopMentor
> http://staff.develop.com/halloway
> 
> PS. Why do you need to be at the root of the classpath? That seems like an
> odd (dangerous) requirement.
> 
> 
>   public void testIterateClassLoaders() {
> ClassLoader cl = getClass().getClassLoader();
> while (cl != null) {
>   listLoaderURLS(cl);
>   cl = cl.getParent();
> }
>   }
>   private void listLoaderURLS(ClassLoader cl) {
> System.out.println("Loader " + cl);
> if (cl instanceof URLClassLoader)
> {
>   URLClassLoader loader = (URLClassLoader) cl;
>   URL[] urls = loader.getURLs();
>   for (int n=0; n System.out.println("\t" + urls[n]);
>   }
> }
>   }
> 
> 
> Loader org.jboss.mx.loading.UnifiedClassLoader@40832
> 5{
> url=file:/E:/java/jboss/jboss-3.0.0/server/default/tmp/deploy/server/default
> /
> deploy/dm-asset-mgr.jar/67.dm-asset-mgr.jar }
> 
> Loader java.net.URLClassLoader@fc4bec
>   file:/E:/java/jboss/jboss-3.0.0/lib/crimson.jar
>   file:/E:/java/jboss/jboss-3.0.0/lib/jboss-jmx.jar
>   file:/E:/java/jboss/jboss-3.0.0/lib/concurrent.jar
>   file:/E:/java/jboss/jboss-3.0.0/lib/jaxp.jar
>   file:/E:/java/jboss/jboss-3.0.0/lib/log4j-boot.jar
>   file:/E:/java/jboss/jboss-3.0.0/lib/jboss-common.jar
>   file:/E:/java/jboss/jboss-3.0.0/lib/jboss-system.jar
> 
> Loader sun.misc.Launcher$AppClassLoader@bac748
>   file:/E:/java/jboss/jboss-3.0.0/bin/
>   file:/E:/java/jdk1.4.0/lib/tools.jar
>   file:/E:/java/jboss/jboss-3.0.0/bin/run.jar
> 
> Loader sun.misc.Launcher$ExtClassLoader@7172ea
>   file:/E:/java/jdk1.4.0/jre/lib/ext/dnsns.jar
>   file:/E:/java/jdk1.4.0/jre/lib/ext/ldapsec.jar
>   file:/E:/java/jdk1.4.0/jre/lib/ext/localedata.jar
>   file:/E:/java/jdk1.4.0/jre/lib/ext/sunjce_provider.jar
> 
> > I need some files to bee in the *root* of the classpath. I'd prefer to
> > deploy these files in server/default/conf or server/defaul/lib. Are
> > either of these paths added to the classpath?
> >
> > -ryan
> 
> 
> 
> ---
> This sf.net email is sponsored by: Dice - The leading online job board
> for high-tech professionals. Search and apply for tech jobs today!
> http://seeker.dice.com/seeker.epl?rel_code=31
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
Humans are the unfortunate result of a local maximum in the
fitness landscape.

www.ryanmarsh.com




---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code1
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Is the server library URL in the classpath?

2002-08-14 Thread Ryan Marsh

OJB requires it. I know, yuck. This is being solved but until then I
want my stuff to work. If I'm understanding your test properly, the only
directory that is in the root of the classpath is jboss/bin?

-ryan

On Wed, 2002-08-14 at 15:37, Stuart Halloway wrote:
> Hi Ryan,
> 
> Tests and output to answer your question below. Cheers!
> 
> Stuart Halloway
> DevelopMentor
> http://staff.develop.com/halloway
> 
> PS. Why do you need to be at the root of the classpath? That seems like an
> odd (dangerous) requirement.
> 
> 
>   public void testIterateClassLoaders() {
> ClassLoader cl = getClass().getClassLoader();
> while (cl != null) {
>   listLoaderURLS(cl);
>   cl = cl.getParent();
> }
>   }
>   private void listLoaderURLS(ClassLoader cl) {
> System.out.println("Loader " + cl);
> if (cl instanceof URLClassLoader)
> {
>   URLClassLoader loader = (URLClassLoader) cl;
>   URL[] urls = loader.getURLs();
>   for (int n=0; n System.out.println("\t" + urls[n]);
>   }
> }
>   }
> 
> 
> Loader org.jboss.mx.loading.UnifiedClassLoader@40832
> 5{
> url=file:/E:/java/jboss/jboss-3.0.0/server/default/tmp/deploy/server/default
> /
> deploy/dm-asset-mgr.jar/67.dm-asset-mgr.jar }
> 
> Loader java.net.URLClassLoader@fc4bec
>   file:/E:/java/jboss/jboss-3.0.0/lib/crimson.jar
>   file:/E:/java/jboss/jboss-3.0.0/lib/jboss-jmx.jar
>   file:/E:/java/jboss/jboss-3.0.0/lib/concurrent.jar
>   file:/E:/java/jboss/jboss-3.0.0/lib/jaxp.jar
>   file:/E:/java/jboss/jboss-3.0.0/lib/log4j-boot.jar
>   file:/E:/java/jboss/jboss-3.0.0/lib/jboss-common.jar
>   file:/E:/java/jboss/jboss-3.0.0/lib/jboss-system.jar
> 
> Loader sun.misc.Launcher$AppClassLoader@bac748
>   file:/E:/java/jboss/jboss-3.0.0/bin/
>   file:/E:/java/jdk1.4.0/lib/tools.jar
>   file:/E:/java/jboss/jboss-3.0.0/bin/run.jar
> 
> Loader sun.misc.Launcher$ExtClassLoader@7172ea
>   file:/E:/java/jdk1.4.0/jre/lib/ext/dnsns.jar
>   file:/E:/java/jdk1.4.0/jre/lib/ext/ldapsec.jar
>   file:/E:/java/jdk1.4.0/jre/lib/ext/localedata.jar
>   file:/E:/java/jdk1.4.0/jre/lib/ext/sunjce_provider.jar
> 
> > I need some files to bee in the *root* of the classpath. I'd prefer to
> > deploy these files in server/default/conf or server/defaul/lib. Are
> > either of these paths added to the classpath?
> >
> > -ryan
> 
> 
> 
> ---
> This sf.net email is sponsored by: Dice - The leading online job board
> for high-tech professionals. Search and apply for tech jobs today!
> http://seeker.dice.com/seeker.epl?rel_code=31
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
Humans are the unfortunate result of a local maximum in the
fitness landscape.

www.ryanmarsh.com




---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Is the server library URL in the classpath?

2002-08-14 Thread Stuart Halloway

Hi Ryan,

Tests and output to answer your question below. Cheers!

Stuart Halloway
DevelopMentor
http://staff.develop.com/halloway

PS. Why do you need to be at the root of the classpath? That seems like an
odd (dangerous) requirement.


  public void testIterateClassLoaders() {
ClassLoader cl = getClass().getClassLoader();
while (cl != null) {
  listLoaderURLS(cl);
  cl = cl.getParent();
}
  }
  private void listLoaderURLS(ClassLoader cl) {
System.out.println("Loader " + cl);
if (cl instanceof URLClassLoader)
{
  URLClassLoader loader = (URLClassLoader) cl;
  URL[] urls = loader.getURLs();
  for (int n=0; n I need some files to bee in the *root* of the classpath. I'd prefer to
> deploy these files in server/default/conf or server/defaul/lib. Are
> either of these paths added to the classpath?
>
> -ryan



---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user