[JBoss-user] [Security JAAS/JBoss] - Displaying the reason of login failure on the error-page
Dear I'm developing an J2EE application using jboss and jsf. I'm developing right now authenticating mechanism for this application. I've written a LoginModule which is athenticating users if they will give the right login and password. The same LoginModule is locking the account and not allowing users to login after several failed attempts. And here comes my question. I would like to know how can I display the information about the reason of login failure? Right now it's redirecting the users to the error page. Does any1 have any hints how can I customise this error page and display the failure reason on it ? Thanks a lot in advance, Karol View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3947898#3947898 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3947898 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - problems with booleans
Dear All, I'm using jboss 4.0.3 and postgresql 8.0. I'm trying to write a CMP entity bean with fields of type boolean (or I have also tried Boolean). Unfortunatelly none of those works and I get the following exception: 12:08:04,796 ERROR [LogInterceptor] TransactionRolledbackLocalException in method: public abstract bla.bla.MessageLocal bla.bla.interfaces.MessageLocalHome.create(bla.bla.interfaces.ContextLocal,levia.messages.interfaces.MessageTypeLocal) throws javax.ejb.CreateException,bla.bla.exceptions.MalformedMessageContentException, causedBy: org.postgresql.util.PSQLException: Unsupported Types value: 16 I tried to give the accesors names starting by is instead of get but it didn't help at all. I'm using xdoclet so probably all the files should be generated correctly (when I changed the type to String, then everything seems to work ok). I would apreciate any help, Kind Regards, Karol Oslowski View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3946353#3946353 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3946353 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Question about login module and EJB
Dear All, I was wondering since a long time about custom login modules and whether it is possible somehow to write such a login module which would use EJB. Why ? Just because I'm developing a web application which stores user data in Container managed entity beans and it would be very appropriate for me to operate on those beans not on raw database, furthermore I would like to log every attempt of login into the system even if it's not successful. My doubts come from the fact that I must define the security/login policy in login-config.xml file and of course before deploying my application this login module using EJB wont be available on the server (since the application will be not deployed). Is there any way of solving this problem? Thx a lot in advance for any advice. Karol View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3931222#3931222 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3931222 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Re: basic problem
Thank you very much for your answer! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3930809#3930809 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3930809 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - basic problem
I have read all the wiki and everything and I still don't know how to get some basic information. I would like to be able to get the name of the authenticated user or check his role. How to do that ?? In the DVD example it is done like that : | String user = org.jboss.security.SecurityAssociation.getPrincipal().getName(); | I'm not sure if it's the right way. If yes then how can I check wheter the user is in some role ? thx in advance for any answers. Karol View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3930537#3930537 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3930537 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Re: JAAS Login/Logout Notification
Thank you very much! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3926961#3926961 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3926961 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Re: JAAS Login/Logout Notification
MrForms wrote : | If you are using a web application, how about using a simple Session listener and checking for sessionCreated, sessionDestroyed ? | I have the same problem as rameshsr. But can anybody tell me where I can find information how to write this simple Session listener ? Thx. in advance for any help. karol View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3926404#3926404 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3926404 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - login form on any page
Hi, I'm using jboss 4.0.3 and jaas with form based authentication. Everything is working but I would like to have possibility to have a login form on every (posibly even not secured) page. When I put the usual form Login:Has?o:Login: on the pages I get the error: HTTP Status 400 - Invalid direct reference to form login page Does anybody know how to solve this problem? Thanks in advance for any help Karol View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3914234#3914234 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3914234 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Re: login form on any page
sorry the form should be as code: | | FORM method=POST action=j_security_check | TABLE BORDER=2TRTDLogin:/TDTD | INPUT type=text name=j_username size=16 maxlength=24 | /TDHas?o:/TDTDINPUT type=password name=j_password | size=16 maxlength=24 /TDLogin:/TDTDINPUT type=submit | value=OK //TR/TABLE/FORM | | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3914235#3914235 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3914235 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Re: login form on any page
Ok I know that it is the usual way. My question was how to put a form on a non-secured web page. Probably that's imposible to achieve easily but maybe someone knows how to do it ? Kind Regards, Karol Oslowski View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3914270#3914270 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3914270 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - Re: MyFaces Tomahawk and JBoss 4.0.3
I don't know how to solve this problem but in my case I've put the tomahawk.jar in the server's lib and all xld's from it in the project's web-inf... and now it seems too work. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3908321#3908321 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3908321 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - Problems wit myfaces 1.1.1 and tomahawk.jar - help badly nee
Dear All, I'm using Jboss 4.0.3 SP1 and myfaces 1.1.1, I'm having a project consisting of an EJB application and a web application. Both projects are in one ear. I'm having an entity bean whose method is returning an instace of the class TreeNodeBase which can be found in tomahawk.jar, This method is called by an backing bean... But - I'm having really hard problems with tomahawk.jar, if I put it inside the WEB-INF/lib of the web project, and make it visible to the EJB project by an entry in manifest.mf I get: Caused by: java.lang.LinkageError: Class org/apache/myfaces/custom/tree2/TreeNodeBase violates loader constraints at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1629) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2365) at java.lang.Class.getDeclaredMethod(Class.java:1907) at java.io.ObjectStreamClass.getPrivateMethod(ObjectStreamClass.java:1327) at java.io.ObjectStreamClass.access$1600(ObjectStreamClass.java:47) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:394) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.(ObjectStreamClass.java:373) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:268) at java.io.ObjectStreamClass.initProxy(ObjectStreamClass.java:464) at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1502) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339) at org.jboss.invocation.MarshalledValue.get(MarshalledValue.java:78) at org.jboss.invocation.InvokerInterceptor.invokeMarshalled(InvokerInterceptor.java:203) ... 72 more Usually this exception means that a jar is located in two places in the classpath but this time I'm completely sure it's not the case. If I put tomahawk.jar outside the web project that is: in the ear's main directory or in the jboss'es lib, in the tomcat's lib I get the following message: javax.servlet.ServletException: /admin/console.jsp(20,0) The absolute uri: http://myfaces.apache.org/extensions cannot be resolved in either web.xml or the jar files deployed with this application javax.faces.webapp.FacesServlet.service(FacesServlet.java:121) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) root cause javax.faces.FacesException: /admin/console.jsp(20,0) The absolute uri: http://myfaces.apache.org/extensions cannot be resolved in either web.xml or the jar files deployed with this application org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421) org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234) org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352) javax.faces.webapp.FacesServlet.service(FacesServlet.java:107) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) Please help me, I would be grateful for any advice, I spend working on it much more than 30 hours, once it has even worked but after deleting the tmp and work directories it stopped, that makes me believe that it is possible to make it work somehow... I've read a lot about classloading but I still cannot help anything... Thanks in andvance for any help Karol Oslowski View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3907651#3907651 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3907651 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Problems wit myfaces 1.1.1 and tomahawk.jar - help badly
Someone on another forum had the same problem and here is the solution: extract all tld's from the myfaces-all.jar, copy the myfaces-all.jar to the lib of the server, and that's it ! I guess it is not the nicest solution but it is working.. k. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3907678#3907678 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3907678 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Problems with JAAS
Dear all, I'm trying to secure web resources in jboss with jaas. I've configured everything (?) and in my web.xml I have: | | login-config | auth-methodFORM/auth-method | realm-nameLevia application/realm-name | form-login-config | form-login-page./login.jsp/form-login-page | form-error-page./loginerror.html/form-error-page | /form-login-config | /login-config | | My problem is really strange (the strange thing is that I haven't found any information about this topic anywhere. I have no idea how to write the login.jsp page. Why? Of course I know how to make a form asking for username and password but how to tell jboss how should it use this form? I would be really grateful for any examples/links/comments. Kind regards, Karol Oslowski View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3905624#3905624 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3905624 --- 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] [EJB/JBoss] - External libraries in EJB projects
Dear All! I'm trying to write a Session Bean in which one of the business methods is giving as result a class from an external jar (external = not included in the jboss lib). When I try to deploy it I get something like this: ** java.lang.NoClassDefFoundError: org/apache/myfaces/custom/tree2/TreeNodeBase at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2365) at java.lang.Class.privateGetPublicMethods(Class.java:2488) at java.lang.Class.privateGetPublicMethods(Class.java:2504) at java.lang.Class.getMethods(Class.java:1406) at org.jboss.verifier.strategy.AbstractVerifier.hasEJBCreateMethod(AbstractVerifier.java:664) at org.jboss.verifier.strategy.EJBVerifier20.verifySessionBean(EJBVerifier20.java:834) at org.jboss.verifier.strategy.EJBVerifier20.checkSession(EJBVerifier20.java:64) at org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:166) ** I'm using jboss 4.0.3 and myeclipse. When I check the export checkbox it doesn't help and the resulting ear still doesn't contain the required jar. In other words the question is: What's the proper way of deploying external libraries that are to be used by EJB project? Putting them in /lib directory of JBoss seems to work but I suppose this is not the way to go. So how to include external jars in EAR deployment so that they are visible by JBoss classloader (for validating purposes)? (using JBoss and myeclipse) Thank you in advance for all help. Kind regards Karol View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3902804#3902804 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3902804 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Xerces and Jboss problem
Dear All! I'm writing a business method of an entity bean which is supposed to read some informations from an XML file. I use the following code: To get the parser and the document: | DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); | DocumentBuilder builder = factory.newDocumentBuilder(); | Document doc = builder.parse( xmlFile ); | Then to get the informations I use: | NodeList nl = doc.getElementsByTagName( tagName ); | int elemCount = nl.getLength(); | for( int i = 0; i elemCount; i++ ) | { | Element element = ( Element )nl.item( i ); | String test = element.getTextContent(); |(...) | } | | And I get the folowing exception: | org.jboss.tm.JBossTransactionRolledbackException: Unexpected Error | java.lang.NoSuchMethodError: org.w3c.dom.Node.getTextContent()Ljava/lang/String; | at levia.messages.ejb.MessageTypeBean.requiredInformations(MessageTypeBean.java:345) | 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) | The problem is that outside Jboss this works perfectly. So I guess the problems comes from the fact that jboss uses xerces itself and it configures diferently the parser or something like this... When I write : | Text tester = (Text) elem.getFirstChild(); |String blalba = tester.getNodeValue(); | everything works well but still I would like to understand what is the couse of problems with the other solution. kind regards Karol PS: I use jboss 4.0 and xerces 2.6.2 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3882954#3882954 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3882954 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - problems with jboss an xerces
Dear All! I'm writing a business method of an entity bean which is supposed to read some informations from an XML file. I use the following code: To get the parser and the document: | | DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); | DocumentBuilder builder = factory.newDocumentBuilder(); | Document doc = builder.parse( xmlFile ); | | Then to get the informations I use: | | NodeList nl = doc.getElementsByTagName( tagName ); | int elemCount = nl.getLength(); | for( int i = 0; i elemCount; i++ ) | { | Element element = ( Element )nl.item( i ); | String test = element.getTextContent(); |(...) | } | | | And I get the folowing exception: | | org.jboss.tm.JBossTransactionRolledbackException: Unexpected Error | java.lang.NoSuchMethodError: org.w3c.dom.Node.getTextContent()Ljava/lang/String; | at levia.messages.ejb.MessageTypeBean.requiredInformations(MessageTypeBean.java:345) | 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) | | | The problem is that outside Jboss this works perfectly. So I guess the problems comes from the fact that jboss uses xerces itself and it configures diferently the parser or something like this... When I write : | | Text tester = (Text) elem.getFirstChild(); |String blalba = tester.getNodeValue(); | | | everything works well but still I would like to understand what is the couse of problems with the other solution. kind regards Karol PS: I use jboss 4.0 and xerces 2.6.2 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3882993#3882993 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3882993 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Mail with JBoss
Hi all! I'm trying to write my first Message Driven bean which is supposed to send emails. But I'm having problems with resourse references. Every time I'm deploying it I receive the message: 12:51:32,133 WARN [MessageDrivenContainer] No resource manager found for mail/myapp/myMail The XDoclet code describing this resource reference looks as below: | * @ejb.resource-ref | * res-ref-name=mail/myapp/myMail | * res-type=javax.mail.Session | * res-auth=Container | * jndi-name=java:/Mail | I've also added a my-mail-service.xml to the deploy directory file which is basically the same as mail-service.xml except the lines that I'm citing below: | mbean code=org.jboss.mail.MailService | name=jboss:service=myMail | attribute name=JNDINamejava:/comp/env/mail/myapp/myMail/attribute | I suppose I'm doing some stupid mistake or I don't understand how resource managers work in jboss. I would be very grateful for any help. I'm using the 4.0.2 serwer version. kind regards Karol Oslowski View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3879536#3879536 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3879536 --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user