[JBoss-user] [Installation & Configuration] - Re: JBoss classloading behaviour

2004-07-22 Thread gifs71
Hi Scott,

Atleast the melodrama got me your attention and a reply!!! :)
I was frustated earlier coz of my repeated posts to these forums turned up no replies.

About flushing the resourceBlackList, how would I do that and an even bigger concern 
is that I don't want to introduce an app server-specific code into my app. So flushing 
the blackList would be less preferable.

Thanks.

Rahul.

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

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


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - JBoss classloading behaviour

2004-07-22 Thread gifs71
Hi,

I have seen this classloading issue in JBoss and it has caused me great pain. I am 
using JBoss 3.2.4. The scenario is like this: 

I generate java classes on-the-fly in my application and then try to load those 
classes. But I perform the class generation only the first time when the classes have 
not already been generated by a previous run of my application. So in my code I first 
try to load, say class ABC, using Class.forName() and if it fails I know that I need 
to generate the classes. I then generate the classes and then try to load again using 
Class.forName(). This is were it fails with a ClassNotFoundException though the 
classes are present. I then stepped thru a debugger into Jboss src and found out that 
when u try to load a class and if that class is not found, it is places in a 
resourceBlackList (UnifiedLoaderRepository) and hence that class could never be loaded 
again even though it might be present in the classloader's path. So my first check 
using the Class.forName() would put the class ABC in the black list and hence would 
not load that class even after it was generated at runtime by my app.

Can somebody tell me if this is a bug or a feature?
I have posted my problems regarding classloading of runtime-generated classes in Jboss 
earlier on JBoss forums, but seems like nobody knows much or atleast bothers to reply. 
Seems like the classloading issue is a no-no in Jboss forums. Have heard people 
complaining about JBoss's classloading scheme too.

Anyway, I would appreciate if anybody could reply to my query.

Thanks.

Rahul.

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

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


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - JBoss classloader issues (runtime class loading)

2004-07-12 Thread gifs71
Hi,

I am using JBoss 3.2.4 for deploying our app in an exploded ear format. Now at 
runtime, our app generates some Java classes on-the-fly and tries to load the 
resulting classes generated under some package. But the class loading fails because 
the loader cannot find the classes. The classloader used is the same loader that loads 
our app. The directory structure of ear is like this (note that we use the exploded 
format and all the *.*ar names are actual folders and not any archive files):

myApp.ear
myApp.ear\META-INF
myApp.ear\serverCode.jar
myApp.ear\web.war

Now the runtime classes are generated under the serverCode.jar folder under some 
package structure. In this case the classloader fails to find any of the generated 
classes. So then I started generating the runtime classes under a separate folder 
names "generated.jar" under \deploy folder. In this case the classloader 
is able to load the first generated class but its does not load all the remaining 
classes and this seems very weird.

I have tried different thing, but have failed finding a solution to this problem. 

Somebody plz help and give me a pointer as to where should I place the runtime classes 
in our app so that they can be loaded.

Thanks.

Aalap.

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

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


---
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-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-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] - JBoss system classpath

2004-07-01 Thread gifs71
Hi All,

How can one place an exploded directory of classes on the JBoss system classpath. 
Obviously, I tried adding that directory to the 
%JBOSS_CLASSPATH% in the run.bat used to start jboss. But that does not help because 
Jboss starts giving out weird errors while deploying my application jars and other 
modules.

Also, where should I place the exploded class folder and how would I add it to the 
system classpath?

Plz help.

Thanks.

Rahul.

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

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


---
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