[JBoss-user] [Beginners Corner] - Re: What does no classloaders found mean ?

2005-09-28 Thread jaikiran
As far as diabling the authentication is concerned, i guess you can remove the 
following statement from the jboss.xml of your EJB module:

java:/jaas/http-invoker

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: What does no classloaders found mean ?

2005-09-28 Thread jaikiran
Have you packaged your web apps and EJBs in an ear? If yes, then place the 
users.properties directly under the ear

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: What does no classloaders found mean ?

2005-09-27 Thread twojenski
I'm not loading the user.properties file directly, JBoss does that and not my 
code.  

I think what I'm asking is JBoss specific, right?

Tek

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: What does no classloaders found mean ?

2005-09-27 Thread raja05
Again, how are you loading the property file? You should use something like
Thread.currentThread().getContextClassLoader().getResource("users.properties")

That should get you the users.properties if its in the WEB-INF/classes. As far 
your other question, i havent done much JAAS programming , you might get some 
answers if u ask the question in the jaas forum for jboss.


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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: What does no classloaders found mean ?

2005-09-27 Thread twojenski
Thanks Raja05

Thank you for putting me on the right path.  By using currentThread() I was 
able to resolve my immediate problem.

Maybe you can answer another question that I have with this deployment.  As I 
described above I have the Duke's Bank with 1 EBJ project and 2 web app 
projects.  I have added a new web project that is why there are 2 web apps and 
not one.  My intention is to call an EJB from my new web app in the EJB 
project.  I used the Duke's Bank web app project as a model.  The main 
difference Duke's Bank web project and my web app project is that I want to 
have a back end java class call an EJB with generating any JSP code.  So the 
problem that I'm running into is that when the call to the EJB is made JBoss 
can not locate the users.properties file.  Now I have placed the 
users.properties  file in the WEB-INF/classes dir of my web app, and still the 
same problem.  Also, I do not have code in my web app that authenticates the 
user (do I absolutely need it?), and I also tried to make the  
org.jboss.security.ClientLoginModule optional in the config files.  Is there 
any easy way to allow the web module not be authenticated before calling the 
EJBs? If authentication is required how is it done? Can it be done with config 
files, or is it done with java code, or both?

Any suggestions?  Below is a JBoss error message:

09:34:58,796 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role 
files
java.io.IOException: No properties file: users.properties or defaults: 
defaultUsers.properties found
at org.jboss.security.auth.spi.Util.loadProperties(Util.java:249)
at 
org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:164)
at 
org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:111)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:756)
at 
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at 
javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at 
org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:483)
at 
org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:425)
at 
org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:251)
at 
org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:180)
at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:106)
at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:212)
at 
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invokeHome(StatefulSessionInstanceInterceptor.java:127)
at 
org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)
at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:109)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146)
at 
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
at 
org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:613)
at org.jboss.ejb.Container.invoke(Container.java:894)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at 
org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
at org.jboss.invocation.local.LocalInv

[JBoss-user] [Beginners Corner] - Re: What does no classloaders found mean ?

2005-09-24 Thread raja05
Regarding your point No. 1 above, you should *never* use Class.forName unless u 
want to load one of the standard java classes. Loading classes dynamically 
should be done using
Thread.currentThread().getContextClassLoader().getClass("foo").

Please refer to 
http://wiki.jboss.org/wiki/Wiki.jsp?page=HowCanIDynamicallyLoadClassesWithinAnMBean


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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: What does no classloaders found mean ?

2005-09-23 Thread twojenski
Hello gulapalarajasekhar

Thank you for your response to the above question, however if you could be more 
specific that would be very much appreciated.  

I have a situation where I have a (1) and web application and (1) ejb module 
inside of the Enterprise App (.ear).   The 2 problems that I have are:
1) If i use Class.forName("foo") from inside of the main jar of the web app to 
call "foo" class inside a different package in a different jar of the same web 
application, I get the "java.lang.ClassNotFoundException: No ClassLoaders found 
for: foo" error.   If I re-jar the web application and create one big jar, this 
is no longer a problem.  As you can imagine this is not a practical solution.  
If I just deploy my web app by itself in tomcat, I do not have a problem.

2) I want to call an EJB from the web application in the ejb module.  From your 
explanation above, I'm certainly crossing over the container spaces.

Would you be able to give us concrete instructions as to how to solve the 2 
problems?  If you can point me to some examples or files where this 
addressability it shown that would be great. 

Thanks

Tek

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: What does no classloaders found mean ?

2005-09-07 Thread gulaplaarajasekhar
Hi Andrew,

 For the first case, 
 Assume we have 2 webserver/appserver for e.g., jboss and 
tomcat, then it is not possible to access a file present in tomcat under 
a.b.c.Src where a.b.c.Src is a class from jboss by default.

Because the jboss classloader  doesn't know anything about it. 
But if we are able to tell the jboss classloader to see even in the other 
classloader(the path is given in some files), then we can have a case where we 
deploy our classfiles in tomcat and can able to access it in the jboss also, 
without any duplicate classes.

  In the second case, 
the classpath has to be set correctly. -- If you need some more 
information about this you shld the documnetation of that particular server.

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

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


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: What does no classloaders found mean ?

2005-09-06 Thread andrewi
"gulaplaarajasekhar" wrote : The container is not able to load 
com.meerkat.jfr.par.Address  class and so the ClassNotFound Exception
  |  It might be due to various reasons. Few which I know are
  | 
  | 1. If we user more than 1 container, then there should be mapping in one 
container saying the path of the other container.
  | 
  | 2. If using only one container, then the path is not set correctly..
  | 
  | 
  | Rajasekhar

Hi Rajasekhar,

can you give me more info ?

Thanks
Andrew

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

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


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: What does no classloaders found mean ?

2005-09-06 Thread gulaplaarajasekhar
The container is not able to load com.meerkat.jfr.par.Address  class and so the 
ClassNotFound Exception
 It might be due to various reasons. Few which I know are

1. If we user more than 1 container, then there should be mapping in one 
container saying the path of the other container.

2. If using only one container, then the path is not set correctly..


Rajasekhar

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

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


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user