[JBoss-user] [Installation & Configuration] - Re: JBoss system classpath

2004-12-02 Thread RichardBerger
I am having the same problem.  In Weblogic I was able to use the APP-INF 
directory to hold jars that were needed by the code I was generating at 
runtime.  But I don't know how to do this in JBoss.  Did you eventually solve 
the problem?

Thanks!
RB

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857263#3857263

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857263


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: JBoss system classpath

2004-07-07 Thread gifs71
Hi,

I turned logging on for class loading in JBoss by adding entries in the log4j.xml. And 
it seems to me by looking at the class loader logs that the JBoss unified class loader 
seems to build a map from package names to the ClassLoader used to load the package.  
So in case of dynamically generated packages, the packages would not have existed at 
JBoss startup and  so it doesn't recognize the packages and fails to find the classes 
under those packages. 

Does anybody know how to load classes generated at run-time in JBoss?

thanks.

Aalap.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841258#3841258

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841258


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: JBoss system classpath

2004-07-06 Thread gifs71
Opps...

the code text didn't get thru. Here it is again:


  | 
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841117#3841117

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841117


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: JBoss system classpath

2004-07-06 Thread gifs71
Hi Mike,

The thing is that I would like to not make any major changes to the source code. I had 
the app deployed on weblogic and was porting it to JBoss and so having any app 
server-specific code in our application source would break its portability between 
servers. Hence, I was trying to put the generated classes on the system classpath or 
atleast as you suggested on the server classpath.

I even tried adding this in the jboss-service.xml :



Doesn't help either.

Thanks.

Aalap.



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841116#3841116

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841116


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: JBoss system classpath

2004-07-04 Thread mikefinn
Aalap,
Ahhh, I misunderstood. Sorry.

Have you tried using a URLClassLoader (instantiate it, pointing the URL at your JAR 
file). Not really sure here, as you may run into problems (ie ClassCastException), 
esp. if you are serializing/deserializing instances from classes loaded from different 
classloader instances.

mike



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840916#3840916

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840916


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: JBoss system classpath

2004-07-02 Thread gifs71
Hi Mike,

The issue is that I auto-generate some java code on the fly, compile that code and try 
to load those classes at runtime and this is when I get in issues. The classloader is 
not able to find the classes and hence is not able to load them. 

Below is a detailed description of the setup on my JBoss server:
The application is deployed in JBoss in an exploded ear format. So under my JBoss 
server you would see this (remember that all the .*ar are folder names and not real 
archives):

\deploy\myApp.ear

The myApp.ear itself has a META-INF, web.war and serverCode.jar

Now what happens at runtime is that inside the serverCode.jar folder I generate some 
java code on-the-fly, compile the code and then try to load it. But as I told u before 
this loading fails. On of the issues is that the classloader used is the system 
classloader and hence I wanted to put this auto-generated classes on the system 
classpath (which I assume is the one specified in the run.bat that comes with JBoss).

The solution you suggested would not work for me because the code would not be 
generated at runtime in the local-lib folder but inside my serverCode.jar folder.

Thanks.

Aalap.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840816#3840816

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840816


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: JBoss system classpath

2004-07-01 Thread mikefinn
Is there a particular reason you need it in the system classpath? You can add to 
server classpath by adding it in conf/jboss-service.xml. 

Say you add a directory, called 'local-lib' in you server config dir (same level as 
conf and lib), and your jar is exploded in a dir called foo.jar. You can add an entry 
like the following:

 

mike

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840705#3840705

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840705


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user