[JBoss-user] Re: LDAPLoginModule config in auth.conf
Well carlos, since i assume you are in the same situation as me (ldap newbie), i would suggest: 1) in everything you do (either from jboss SecurityManager or from ldapsearch) watch the log of your ldap server CAREFULLY (i use slapd -d 111) 2) Build your own LdapLogin module put it in a package, and then modify your run.sh Notice you can do your job with org.jboss.security.auth.spi.LdapLoginModule quite well, but with building your own you can print debug info that will help you a lot. 3) Perform your ldapsearches in the SAME way that LdapLogin module does. Once you get the expected results from ldapsearch, then proceed onto examining your code in the module. Achilleus ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
XDoclet 1.0 released - was [JBoss-user] Creating EJB2.0 Relationsand CMP XML filesXDoclet 1.0 released
Hey list, This would be an ideal time to let people know that XDoclet version 1.0 has just come of age. XDoclet is the successor of EJBDoclet, Rickard Oberg's tool for automatic generation of interfaces, deployment descriptors, and now much much more. XDoclet 1.0 has full support for EJB2.0 and is focused on JBoss, but also covers other EJB containers, meaning that if you find yourself in the unfortunate position of having to stop using JBoss and use another container all you need to do is change your ant script and some comments in your code. It also has support for Struts, JSP Taglibs, WebWork, Apache-SOAP, and JMX. Go to http://www.sourceforge.net/projects/xdoclet to get the download. cheesr dim ps - Hunter, this is exactly what you're asking about (o: On Thu, 20 Sep 2001, Hunter Hillegas wrote: > To all people using EJB2.0: > > How are you creating your XML files and defining your relationships? By > hand? Most of the references and documents I've seen suggest using the J2EE > DeployTool to create the files, since they have gotten more complex... > > I've had a hard time getting the deploytool to work. Are other people using > it? Something else? By hand? > > Thoughts? > > Hunter > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Creating EJB2.0 Relations and CMP XML files
To all people using EJB2.0: How are you creating your XML files and defining your relationships? By hand? Most of the references and documents I've seen suggest using the J2EE DeployTool to create the files, since they have gotten more complex... I've had a hard time getting the deploytool to work. Are other people using it? Something else? By hand? Thoughts? Hunter ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CommunicationException from lookup()
Anyone have anyideas what causes this error. javax.naming.CommunicationException: Can't find SerialContextProvider It occurs when doing a TopicConnectionFactory lookup(). try { ctx = new InitialContext(); } catch (Exception e) { ... } try { topicConnectionFactory = (TopicConnectionFactory) ctx.lookup("TopicConnectionFactory"); ... } ... In my ~/conf/tomcat/jndi.properties file I have: --- java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.provider.url=localhost:1099 java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces # Do NOT uncomment this line as it causes in VM calls to go over # RMI! #java.naming.provider.url=localhost Any help much appreciated! ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Transaction Exception !!!
Its been a long time since I looked carefully, but I think if you are seeing XAResourceImpl that means you are using the driver as non-xa, whatever its capabilities. If your XADataSourceLoader uses XADataSourceImpl you are definitely not using any xa capabilities. Weird is right david jencks On 2001.09.20 20:23:11 -0400 "Ferguson, Doug" wrote: > We are running oracle.. and using the XADataSourceLoader in the jcml > file. > I was assuming that the oracle driver is an xa driver? > > When we switch databases in our config file this problem goes away.. > Totally wierd. > > d. > > -Original Message- > From: David Jencks [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 19, 2001 9:23 PM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] Transaction Exception !!! > > > How is your datasource set up? > > The XAResourceImpl has a spec violation in it in that it requires that > all > work including commit/rollback for a transaction be done on one > connection/xaresource whereas the spec (as explained by the jca docs) > require that the tm be able to use any xaresource to commit/rollback > whether or not that xaresource previously knew about the transaction. I > ran into this exception when I was trying to use the XADataSourceImpl to > test the jca-xa-jdbc wrapper when I didn't have a real xa driver. The > jca-xa connection manager does not route all work in a transaction to the > same connection: I assumed the XADataSourceLoader mechanism did, but > never > investigated. > > One solution is to use the 3.0 version of the jdbc jca wrapper with local > connections (I assume you do not have an xa driver) On the other hand it > is very odd indeed that this is not a common problem if the > XADataSourceLoader mechanism is not routing all work to the same > connection. > > david jencks > > On 2001.09.19 20:50:28 -0400 "Ferguson, Doug" wrote: > > Does anybody have a clue what this means? > > > > I just upgraded to 2.4.1 > > > > > > [Login] XAException: tx=XidImpl [FormatId=257, > > GlobalId=thedug.coremetrics.com//338, BranchQual=] errorCode=XAER_NOTA > > [Login] javax.transaction.xa.XAException > > [Login] at > > > org.jboss.pool.jdbc.xa.wrapper.XAResourceImpl.rollback(XAResourceImpl.java:2 > > 10) > > [Login] at > > org.jboss.tm.TxCapsule.rollbackResources(TxCapsule.java:1539) > > [Login] at org.jboss.tm.TxCapsule.rollback(TxCapsule.java:394) > > [Login] at > > org.jboss.tm.TransactionImpl.rollback(TransactionImpl.java:88) > > [Login] at > > > org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. > > java:352) > > [Login] at > > org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99) > > [Login] at > > > org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:12 > > 8) > > [Login] at > > org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195) > > [Login] at > > > org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav > > a:286) > > [Login] at > > > org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI > > nvoker.java:483) > > [Login] at > > > org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericPr > > oxy.java:335) > > [Login] at > > > org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(Stateless > > SessionProxy.java:123) > > [Login] at $Proxy63.createCoreUser(Unknown Source) > > [Login] at > > > com.coremetrics.servlet.LoginServ$LoginValidator.(LoginServ.java:736) > > [Login] at > > com.coremetrics.servlet.LoginServ.attemptLogin(LoginServ.java:223) > > [Login] at > > com.coremetrics.servlet.LoginServ.doPost(LoginServ.java:357) > > [Login] at > > javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > > [Login] at > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > [Login] at > > org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) > > [Login] at > > org.apache.tomcat.core.Handler.service(Handler.java:287) > > [Login] at > > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) > > [Login] at > > > org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81 > > 2) > > [Login] at > > org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) > > [Login] at > > > org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC > > onnectionHandler.java:213) > > [Login] at > > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) > > [Login] at > > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) > > [Login] at java.lang.Thread.run(Thread.java:484) > > > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > ___ > JBoss-user
[JBoss-user] problem Jboss and Tomcat
I have the follow problem Error Query : java.lang.ClassCastException: $Proxy1 when invoque one enitity bean , since one aplication client i don't understand the message jaime ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Transaction Exception !!!
We are running oracle.. and using the XADataSourceLoader in the jcml file. I was assuming that the oracle driver is an xa driver? When we switch databases in our config file this problem goes away.. Totally wierd. d. -Original Message- From: David Jencks [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 19, 2001 9:23 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Transaction Exception !!! How is your datasource set up? The XAResourceImpl has a spec violation in it in that it requires that all work including commit/rollback for a transaction be done on one connection/xaresource whereas the spec (as explained by the jca docs) require that the tm be able to use any xaresource to commit/rollback whether or not that xaresource previously knew about the transaction. I ran into this exception when I was trying to use the XADataSourceImpl to test the jca-xa-jdbc wrapper when I didn't have a real xa driver. The jca-xa connection manager does not route all work in a transaction to the same connection: I assumed the XADataSourceLoader mechanism did, but never investigated. One solution is to use the 3.0 version of the jdbc jca wrapper with local connections (I assume you do not have an xa driver) On the other hand it is very odd indeed that this is not a common problem if the XADataSourceLoader mechanism is not routing all work to the same connection. david jencks On 2001.09.19 20:50:28 -0400 "Ferguson, Doug" wrote: > Does anybody have a clue what this means? > > I just upgraded to 2.4.1 > > > [Login] XAException: tx=XidImpl [FormatId=257, > GlobalId=thedug.coremetrics.com//338, BranchQual=] errorCode=XAER_NOTA > [Login] javax.transaction.xa.XAException > [Login] at > org.jboss.pool.jdbc.xa.wrapper.XAResourceImpl.rollback(XAResourceImpl.java:2 > 10) > [Login] at > org.jboss.tm.TxCapsule.rollbackResources(TxCapsule.java:1539) > [Login] at org.jboss.tm.TxCapsule.rollback(TxCapsule.java:394) > [Login] at > org.jboss.tm.TransactionImpl.rollback(TransactionImpl.java:88) > [Login] at > org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. > java:352) > [Login] at > org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99) > [Login] at > org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:12 > 8) > [Login] at > org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195) > [Login] at > org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav > a:286) > [Login] at > org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI > nvoker.java:483) > [Login] at > org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericPr > oxy.java:335) > [Login] at > org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(Stateless > SessionProxy.java:123) > [Login] at $Proxy63.createCoreUser(Unknown Source) > [Login] at > com.coremetrics.servlet.LoginServ$LoginValidator.(LoginServ.java:736) > [Login] at > com.coremetrics.servlet.LoginServ.attemptLogin(LoginServ.java:223) > [Login] at > com.coremetrics.servlet.LoginServ.doPost(LoginServ.java:357) > [Login] at > javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > [Login] at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > [Login] at > org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) > [Login] at > org.apache.tomcat.core.Handler.service(Handler.java:287) > [Login] at > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) > [Login] at > org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81 > 2) > [Login] at > org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) > [Login] at > org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC > onnectionHandler.java:213) > [Login] at > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) > [Login] at > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) > [Login] at java.lang.Thread.run(Thread.java:484) > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Security Exception - Principal is null
The null pointer is happening because the principal is null. We runn HttpUnit with ant. We use a singleton to call our login page and then all our tests run. Then we each test is down we call our logout page. For some unknown reason.. After our tests have been running. We start getting these stack traces. But they are intermingled with ok requests as well. One of our tests is multithreaded. I was concerned that maybe it has to do with sending the same loginContext through multiple threads? d. -Original Message- From: Scott M Stark [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 7:09 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Security Exception - Principal is null Describe the details of the test. What is causing the NPE in MD5SecurityAssociationHandler? - Original Message - From: "Ferguson, Doug" <[EMAIL PROTECTED]> To: "JBoss User (E-mail)" <[EMAIL PROTECTED]> Sent: Thursday, September 20, 2001 4:15 PM Subject: [JBoss-user] Security Exception - Principal is null > I am seeing a really wierd exception when I am running my application > my principal get lost somehow. I only see this when I am running > my HttpUnit tests, and it is extrememely hard to recreate. > Seems like I have to run my tests for a long indeterminate time > to get this to happen. > > Any ideas what might cause this? > > d. > > > [Default] [DBConnectionFactory] getConnection(logDB) > [Default] LoginException: java.lang.NullPointerException > at > com.coremetrics.security.MD5SecurityAssociationHandler.handle(MD5SecurityAss > ociationHandler.java:73) > at > javax.security.auth.login.LoginContext$4.run(LoginContext.java:731) > at java.security.AccessController.doPrivileged(Native Method) ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Security Exception - Principal is null
Describe the details of the test. What is causing the NPE in MD5SecurityAssociationHandler? - Original Message - From: "Ferguson, Doug" <[EMAIL PROTECTED]> To: "JBoss User (E-mail)" <[EMAIL PROTECTED]> Sent: Thursday, September 20, 2001 4:15 PM Subject: [JBoss-user] Security Exception - Principal is null > I am seeing a really wierd exception when I am running my application > my principal get lost somehow. I only see this when I am running > my HttpUnit tests, and it is extrememely hard to recreate. > Seems like I have to run my tests for a long indeterminate time > to get this to happen. > > Any ideas what might cause this? > > d. > > > [Default] [DBConnectionFactory] getConnection(logDB) > [Default] LoginException: java.lang.NullPointerException > at > com.coremetrics.security.MD5SecurityAssociationHandler.handle(MD5SecurityAss > ociationHandler.java:73) > at > javax.security.auth.login.LoginContext$4.run(LoginContext.java:731) > at java.security.AccessController.doPrivileged(Native Method) ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Security Exception - Principal is null
I am seeing a really wierd exception when I am running my application my principal get lost somehow. I only see this when I am running my HttpUnit tests, and it is extrememely hard to recreate. Seems like I have to run my tests for a long indeterminate time to get this to happen. Any ideas what might cause this? d. [Default] [DBConnectionFactory] getConnection(logDB) [Default] LoginException: java.lang.NullPointerException at com.coremetrics.security.MD5SecurityAssociationHandler.handle(MD5SecurityAss ociationHandler.java:73) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:731) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext$SecureCallbackHandler.handle(LoginCon text.java:727) at com.coremetrics.security.CoreUsernamePasswordLoginModule.getUsernameAndPassw ord(CoreUsernamePasswordLoginModule.java:186) at com.coremetrics.security.CoreUsernamePasswordLoginModule.login(CoreUsernameP asswordLoginModule.java:93) at org.jboss.security.auth.spi.ProxyLoginModule.login(ProxyLoginModule.java:89) at java.lang.reflect.Method.invoke(Native Method) at javax.security.auth.login.LoginContext.invoke(LoginContext.java:595) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:125) at javax.security.auth.login.LoginContext$3.run(LoginContext.java:531) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:528) at javax.security.auth.login.LoginContext.login(LoginContext.java:449) at com.coremetrics.security.CoreJaasSecurityManager.defaultLogin(CoreJaasSecuri tyManager.java:358) at com.coremetrics.security.CoreJaasSecurityManager.authenticate(CoreJaasSecuri tyManager.java:326) at com.coremetrics.security.CoreJaasSecurityManager.isValid(CoreJaasSecurityMan ager.java:196) at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityI nterceptor.java:164) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav a:92) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106) at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:420) at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContai nerInvoker.java:437) at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:23 7) at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182) at $Proxy327.findByPrimaryKey(Unknown Source) at com.coremetrics.util.CoreReportBean.getNavDetails(CoreReportBean.java:526) at com.coremetrics.util.CoreReportBean.initialize(CoreReportBean.java:198) at com.coremetrics.util.CoreReportBean.toXML(CoreReportBean.java:139) at java.lang.reflect.Method.invoke(Native Method) at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stateles sSessionContainer.java:543) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe ssionInstanceInterceptor.java:87) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:307) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:12 8) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195) at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav a:286) at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI nvoker.java:483) at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericPr oxy.java:335) at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(Stateless SessionProxy.java:123) at $Proxy2.toXML(Unknown Source) at com.coremetrics.xml.source.ReportSource.toXML(ReportSource.java:53) at com.coremetrics.servlet.CoreServ.doDefaultRequest(CoreServ.java:479) at com.coremetrics.servlet.CoreServ.doGet(CoreServ.java:344) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81 2) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
[JBoss-user] transactional settings on methods
Hi, I am trying to setup transactional settings on the methods of a bean via the element. According to the spec, I can set a default on all the methods by using * for one transactional setting, and then setName for another. When I try this, the bean acts as though the setting I created with * is set for all the methods, even those that have been overriden to some other setting. Do I misunderstand the spec? Might this be a bug? I've included my (edited) ejb-jar.xml file to help. Thanks for any suggestions you may have. -Eric PS. Is there a list of known bugs that I can search someplace? I apologize if this is a known issue. the ARemote session bean ARemote com.hcm.tools.test.ARemote com.hcm.tools.test.ARemote_Home com.hcm.tools.test.ARemote_Remote com.hcm.tools.test.ARemote_Bean Stateful Container com.hcm.tools.test.ARemote* Never com.hcm.tools.test.ARemoterequiresNew RequiresNew
[JBoss-user] LDAPLoginModule config in auth.conf
Hello list, I've successfully managed to connect to Win 2000 Active Directory Server. The only information available in Jboss site is wrong and IMHO should be updated. The main error was the ldap://myhost.com which turns into a comment without "". My configuration now authenticates to the server but there are two things that don't work: -The displayname attribute is used to perform authentication independently of another one specified in uidAttributeID, which means that instead of login (cferrao) i have to write my complete name (Carlos Ferrao). - The roles are not verified. As I said in my previous mail, two groups exist in win2000AD (Tuser and Tadmin) and they are in the same CN as Users. I think the auth.conf parameters are not being used. Once again I've tried many attributes ("Users","Groups","userid") but the authorisation is never verified, returning the same output. Anyone knows which attributes should go into auth.conf in order to get this info from win 2000 AD? Here's the output of JBoss: [siigpstestBean] Authentication exception, principal=Carlos Ferrao [Default] LdapLoginModule.login [Default] Logging into LDAP server, env={java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory, rolesCtxDN=cn=Users,o=critical.pt, java.naming.provider.url=ldap://hall:389, java.naming.security.principal=Carlos Ferrao, java.naming.security.authentication=simple, java.naming.security.credentials=} [Default] Logged into LDAP server, javax.naming.ldap.InitialLdapContext@20f237 [siigpstestBean] Insufficient method permissions, principal=Carlos Ferrao, method=create, requiredRoles=[Tuser, Tadmin] here's the auth.conf (it works): libsec { org.jboss.security.plugins.samples.LdapLoginModule required java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory //principalDNPrefix="" uidAttributeID="Users" roleAttributeID="Users" //principalDNSuffix="DC=critical,DC=pt" rolesCtxDN="CN=Users,DC=critical,DC=pt" rolesCtxDN="cn=Users,o=critical.pt" java.naming.provider.url="ldap://hall:389"; java.naming.security.authentication="simple" ; }; Here's my info and Tadmin group in win 200 Active Directory: Expanding base 'CN=cferrao,CN=Users,DC=critical,DC=pt'... Result <0>: (null) Matched DNs: Getting 1 entries: >> Dn: CN=cferrao,CN=Users,DC=critical,DC=pt 2> memberOf: CN=Tadmin,CN=Users,DC=critical,DC=pt; CN=Tuser,CN=Users,DC=critical,DC=pt; 1> accountExpires: 0; 1> badPasswordTime: 126454878327854035; 1> badPwdCount: 0; 1> codePage: 0; 1> cn: cferrao; 1> countryCode: 0; 1> displayName: Carlos Ferrao; 1> instanceType: 4; 1> lastLogon: 126454880261197150; 1> logonCount: 285; 1> logonHours: ; 1> distinguishedName: CN=cferrao,CN=Users,DC=critical,DC=pt; 1> objectCategory: CN=Person,CN=Schema,CN=Configuration,DC=critical,DC=pt; 4> objectClass: top; person; organizationalPerson; user; 1> objectGUID: 132af00f-0b0f-49e8-b2a9-a502056ce938; 1> objectSid: S-15-2431463-72FF6BA7-5EE08E3-486; 1> primaryGroupID: 513; 1> pwdLastSet: 126168820329684352; 1> name: cferrao; 1> sAMAccountName: cferrao; 1> sAMAccountType: 805306368; 1> userAccountControl: 512; 1> uSNChanged: 3827; 1> uSNCreated: 3827; 1> whenChanged: 5/3/2001 2:52:18 GMT Standard Time GMT Daylight Time; 1> whenCreated: 3/14/2001 16:1:28 GMT Standard Time GMT Daylight Time; Expanding base 'CN=Tadmin,CN=Users,DC=critical,DC=pt'... Result <0>: (null) Matched DNs: Getting 1 entries: >> Dn: CN=Tadmin,CN=Users,DC=critical,DC=pt 1> member: CN=cferrao,CN=Users,DC=critical,DC=pt; 1> cn: Tadmin; 1> groupType: -2147483646; 1> instanceType: 4; 1> distinguishedName: CN=Tadmin,CN=Users,DC=critical,DC=pt; 1> objectCategory: CN=Group,CN=Schema,CN=Configuration,DC=critical,DC=pt; 2> objectClass: top; group; 1> objectGUID: fb4d9c02-8eb8-497b-9e29-50ae33bf1eef; 1> objectSid: S-15-2431463-72FF6BA7-5EE08E3-770; 1> name: Tadmin; 1> sAMAccountName: Tadmin; 1> sAMAccountType: 268435456; 1> uSNChanged: 393036; 1> uSNCreated: 393033; 1> whenChanged: 9/19/2001 18:24:23 GMT Standard Time GMT Daylight Time; 1> whenCreated: 9/19/2001 18:23:14 GMT Standard Time GMT Daylight Time; Thanks in advance, Carlos Ferrao ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] https Help
Got it, Was doing this: java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider()); and changed to : java.lang.System.setProperty("java.protocol.handler.pkgs", com.sun.net.ssl.internal.www.protocol"); java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider()); Mica -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 11:18 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] https Help I am trying to make an https connection from within JBoss. I get a "java.net.malformedURLException: unknown protocol: https". What is the secret to fix this? The jdk has the jcert,jnet,&jsse jars in the jre/lib/ext directory. Thanks, Mica Cooper -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bill Burke Sent: Thursday, September 20, 2001 9:53 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] JBoss interoperability Somebody correct me if I'm wrong, but JBoss will not interoperate with any other vendor. Bill > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Nick Taylor > Sent: Thursday, September 20, 2001 10:20 AM > To: '[EMAIL PROTECTED]' > Subject: [JBoss-user] JBoss interoperability > > > I'm investigating the integration of a legacy app into the J2EE framework. > Unfortunately the legacy is non-java and can only talk raw data > over sockets > so I think i'll have to implement an MBean to allow the socket read/write > operations. My question is can that MBean (or a facade session bean) be > invoked from another bean client running in another vendors container such > as weblogic or websphere? Has anyone had any experiance of > interoperability > between different vendors containers? > > Cheers > Nick > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Problems running Jboss
I had the same problem today (19 September 2001) I solve it by deleting lib directory in jboss/deploy. Tomcat/JSP behaviour seems OK to me. However I didn't have the time to check EJB behaviour maybe tommorow. - Original Message - From: "Menz, Matthias" <[EMAIL PROTECTED]> To: "JBoss Mailgroup (E-Mail)" <[EMAIL PROTECTED]> Sent: Wednesday, September 19, 2001 3:04 PM Subject: [JBoss-user] Problems running Jboss > > Hello, > has anybody got any idea why I cant get Jboss started. Do I have to have > any jars included in my classpath. > I use a JBoss Version 2.4.0 with JDK 1.3.0 on a Digital(Compaq) UNIX V4.0F > (Alpha). Included is the log of the session. > The Script runs fine for a while and then terminates with a segmentation > violation. > Any help would be apreciated. > > Greetings Matt > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] EJB 2.0 and Jboss 2.4.1/3.0
3.0 Jake Thompson wrote: > Ok, > I seem to be confused what is Jboss's status on support for EJB 2.0? Is it > available in 2.4.1 or are we waiting for 3.0. > > Sorry for the dumb question. > > Thanks, > Jake T. > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss 2.4.1 with EmbeddedTomcat: org.apache.jasper.compiler.CompileException with struts
The taglib-uri allows a logical name for the taglib. The taglib can be referenced in a jsp import by either the uri or location. There is no problem with specifying the uri the same as the location. Cf. jsp 1.2 spec Sec. 7.3 for taglib resolution details. The cited error is doubly surprising, since both the uri and the fallback location resolution failed. This is probably a deployment problem, perhaps the .war structure or app context. It is unlikely that it is a jboss problem, since the ejb container is not involved in taglib resolution. Fred Loney Spirited Software, Inc. [EMAIL PROTECTED] - Original Message - From: "David Ward" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 20, 2001 5:32 AM Subject: Re: [JBoss-user] JBoss 2.4.1 with EmbeddedTomcat: org.apache.jasper.compiler.CompileException with struts > I've used 2.0->2.4.1a successfully with struts. However my taglib-uri > is different from yours. Try chopping off the /WEB-INF/. > > For example, change this: > > > /WEB-INF/struts-logic.tld > /WEB-INF/struts-logic.tld > > > to this: > > > struts-logic.tld > /WEB-INF/struts-logic.tld > > > Then, make sure your JSP references the libraries like this: > > <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> > > This way of referencing also works in WebLogic, in case you care about > an example of cross-vendor compatibility. > > Hope this helps, > David > > -- > > Nguyen Thanh Phong wrote: > > > Hello, > > > > I'm having the following problem to deploy an application that uses struts > > on JBoss 2.4.1+ EmbeddedTomcat 3.2.3 (full stack trace is at the bottom of > > the mail) > > > > org.apache.jasper.compiler.CompileException: > > D:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\webapps\smart\ebiz\index.jsp(1,0) Unable > > to open taglibrary /WEB-INF/struts-bean.tld : null > > > > I have the following in my context's (smart) WEB-INF > > > > WEB-INF/ > > WEB-INF/classes > > WEB-INF/classes/ApplicationResources.properties > > WEB-INF/classes/ApplicationResources_en_US.properties > > WEB-INF/classes/ApplicationResources_vi.properties > > WEB-INF/jboss-web.xml > > WEB-INF/lib > > WEB-INF/lib/client.jar > > WEB-INF/lib/commons-beanutils.jar > > WEB-INF/lib/commons-collections.jar > > WEB-INF/lib/commons-digester.jar > > WEB-INF/lib/jdbc2_0-stdext.jar > > WEB-INF/lib/struts.jar > > WEB-INF/struts-bean.tld > > WEB-INF/struts-config.xml > > WEB-INF/struts-form.tld > > WEB-INF/struts-html.tld > > WEB-INF/struts-logic.tld > > WEB-INF/struts-template.tld > > WEB-INF/struts.tld > > WEB-INF/web.xml > > WEB-INF/weblogic.xml > > > > I file WEB-INF/web.xml, I have the following > > > > > > > > /WEB-INF/struts-bean.tld > > /WEB-INF/struts-bean.tld > > > > > > /WEB-INF/struts-html.tld > > /WEB-INF/struts-html.tld > > > > > > /WEB-INF/struts-logic.tld > > /WEB-INF/struts-logic.tld > > > > > > /WEB-INF/struts-form.tld > > /WEB-INF/struts-form.tld > > > > ... > > > > What am I missing? Please provide me with some advices. > > > > Is JBoss 2.4.1 stable enough to try with or I should go back to JBoss 2.2.2? > > > > Many thanks in advance. > > > > > > Nguyen Thanh Phong Tel: 84-8-837 25 06/837 25 07 > > Saigon Software Development Company (SDC)Fax: 84-8-837 25 11 > > 10 Co Giang Street, Dist I, HCMC Email: > > [EMAIL PROTECTED] > > Vietnam > > > > > > > > > > org.apache.jasper.compiler.CompileException: > > D:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\webapps\smart\ebiz\index.jsp(1,0) Unable > > to open taglibrary /WEB-INF/struts-bean.tld : null > > at > > org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspPars eEve > > ntListener.java:713) > > at > > org.apache.jasper.compiler.DelegatingListener.handleDirective(Delegating List > > ener.java:116) > > at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215) > > at org.apache.jasper.compiler.Parser.parse(Parser.java:1077) > > at org.apache.jasper.compiler.Parser.parse(Parser.java:1042) > > at org.apache.jasper.compiler.Parser.parse(Parser.java:1038) > > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209) > > at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612) > > at > > org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146 ) > > at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542) > > at > > org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(J spSe > > rvlet.java:258) > > at > > org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle t.ja > > va:268) > > at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) > > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > at org.apache.tomcat.core.Servle
[JBoss-user] coding advice
Hi , can someone tell me if this is good or bad coding practice. I have entity bean(cmp), a JavaBean (which accesses ebean) and a JSP which uses Jbean. This is a code snippet.from JSP <%@page contentType="text/html"%> <%@page import="java.util.*"%> JSP Page //SHOULD I (can I)ACCESS THE findAll() method LIKE THIS(usersecurity is the javabean) I am getting an illegalaccess //error here.It seems like I cant access any entity bean methods unless I create a method in jbean that calls the //ebean methods directly. <%java.util.Collection sec=usersecurity.home.findAll(); java.util.HashSet hs=new java.util.HashSet(sec); java.util.Iterator i=hs.iterator(); while (i.hasNext()){%> <%=usersecurity.getWING()%> Thanks, Graham ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] https Help
I am trying to make an https connection from within JBoss. I get a "java.net.malformedURLException: unknown protocol: https". What is the secret to fix this? The jdk has the jcert,jnet,&jsse jars in the jre/lib/ext directory. Thanks, Mica Cooper -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bill Burke Sent: Thursday, September 20, 2001 9:53 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] JBoss interoperability Somebody correct me if I'm wrong, but JBoss will not interoperate with any other vendor. Bill > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Nick Taylor > Sent: Thursday, September 20, 2001 10:20 AM > To: '[EMAIL PROTECTED]' > Subject: [JBoss-user] JBoss interoperability > > > I'm investigating the integration of a legacy app into the J2EE framework. > Unfortunately the legacy is non-java and can only talk raw data > over sockets > so I think i'll have to implement an MBean to allow the socket read/write > operations. My question is can that MBean (or a facade session bean) be > invoked from another bean client running in another vendors container such > as weblogic or websphere? Has anyone had any experiance of > interoperability > between different vendors containers? > > Cheers > Nick > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: SV: [JBoss-user] How to obtain the reference of a MBean?
It does not matter whether you call an MBean directly or through the MBeabServer from an EJB. If it blocks the EJB thread while working this is no different than the EJB making an RMI call. - Original Message - From: "Frederick N. Brier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 20, 2001 7:09 AM Subject: Re: SV: [JBoss-user] How to obtain the reference of a MBean? > Well, I am not sure it is invalid. My code works. But my current MBean > code does not do any thread synchronization calls, or an exec(), or calls > that would violate EJB rules. I really want to look at the MBean server > code further. Otherwise I am just speculating which is silly. However, it > strikes me that regardless of the fact that the MBean is using a different > classloader than the EJB that calls it, the thread is the same. So > wouldn't that be the same thing as having made those calls inside the > EJB? I just don't understand what the MBean mechanism is that allows those > calls to be made, especially when the MBean might be blocking the EJB > thread while it does its work. [Violating above silly rule.] Perhaps it > blocks the thread you invoke on, and re-dispatches the request on another > thread. I don't know. I am about to write an MBean that does do an > exec(), so I guess I will find out. If you find something out, please let > me know. > > Fred. > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss interoperability
The "proper" way to do this would be to implement a connector... but it might be a little bit of overkill (o: Be interested in hearing from anyone who has implemented a connector for something like this... how much work is involved etc... cheers dim On Thu, 20 Sep 2001, Nick Taylor wrote: > I'm investigating the integration of a legacy app into the J2EE framework. > Unfortunately the legacy is non-java and can only talk raw data over sockets > so I think i'll have to implement an MBean to allow the socket read/write > operations. My question is can that MBean (or a facade session bean) be > invoked from another bean client running in another vendors container such > as weblogic or websphere? Has anyone had any experiance of interoperability > between different vendors containers? > > Cheers > Nick > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss interoperability
Somebody correct me if I'm wrong, but JBoss will not interoperate with any other vendor. Bill > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Nick Taylor > Sent: Thursday, September 20, 2001 10:20 AM > To: '[EMAIL PROTECTED]' > Subject: [JBoss-user] JBoss interoperability > > > I'm investigating the integration of a legacy app into the J2EE framework. > Unfortunately the legacy is non-java and can only talk raw data > over sockets > so I think i'll have to implement an MBean to allow the socket read/write > operations. My question is can that MBean (or a facade session bean) be > invoked from another bean client running in another vendors container such > as weblogic or websphere? Has anyone had any experiance of > interoperability > between different vendors containers? > > Cheers > Nick > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss interoperability
If you plan to keep more than one socket open at once and/or the legacy app supports transactions in some way, and your use of the legacy app is that your j2ee app makes synchronous calls to the legacy app you may wish to consider writing a jca connector to access it. This should also provide cross-platform support for communication with the legacy app, since weblogic appears to support jca connectors, as does jboss. david jencks On 2001.09.20 10:20:24 -0400 Nick Taylor wrote: > I'm investigating the integration of a legacy app into the J2EE > framework. > Unfortunately the legacy is non-java and can only talk raw data over > sockets > so I think i'll have to implement an MBean to allow the socket read/write > operations. My question is can that MBean (or a facade session bean) be > invoked from another bean client running in another vendors container > such > as weblogic or websphere? Has anyone had any experiance of > interoperability > between different vendors containers? > > Cheers > Nick > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss interoperability
I'm investigating the integration of a legacy app into the J2EE framework. Unfortunately the legacy is non-java and can only talk raw data over sockets so I think i'll have to implement an MBean to allow the socket read/write operations. My question is can that MBean (or a facade session bean) be invoked from another bean client running in another vendors container such as weblogic or websphere? Has anyone had any experiance of interoperability between different vendors containers? Cheers Nick ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss 2.4 spec
Hi, I am working on an EJB application and I wish to read the specification of the JBoss 2.4 server. The thing is that I managed to find only the online documentation that JBoss.org offer in the site. Where can I find all the info I need about running EJBs in JBoss. For example I wish to know which options I can set in the deployment descriptor of the ejb-jar file. I know that each vendor may offer more than the standard features in the J2EE spec. Thanks, David Treves.
Re: SV: [JBoss-user] How to obtain the reference of a MBean?
Well, I am not sure it is invalid. My code works. But my current MBean code does not do any thread synchronization calls, or an exec(), or calls that would violate EJB rules. I really want to look at the MBean server code further. Otherwise I am just speculating which is silly. However, it strikes me that regardless of the fact that the MBean is using a different classloader than the EJB that calls it, the thread is the same. So wouldn't that be the same thing as having made those calls inside the EJB? I just don't understand what the MBean mechanism is that allows those calls to be made, especially when the MBean might be blocking the EJB thread while it does its work. [Violating above silly rule.] Perhaps it blocks the thread you invoke on, and re-dispatches the request on another thread. I don't know. I am about to write an MBean that does do an exec(), so I guess I will find out. If you find something out, please let me know. Fred. At 02:02 AM 9/20/2001, you wrote: > > I did not realize that you have to invoke all operations of the MBean(s) > > within an MBean server via the server object using an invoke() method. I > > wasn't doing this. Since I was obtaining a reference to the MBean object > > via JNDI, I had the actual object and was merely directly calling the > > methods on the object. > >I have done this as well. Why do you think this method is invalid? ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] How to obtain the name of an EJB object at runtime?
Title: How to obtain the name of an EJB object at runtime? I have a bean deployed with the name tspace/User. How can I obtain the name of that component at runtime. for exemple, in setSessionContext(..) thanx Herve Tchepannou Software Engineer Objexis Coorporation Phone: (514) 932 3295 Ext. 231 mailto:[EMAIL PROTECTED] Objexis Coorporation http://www.objexis.com 1635 Sherbrooke West, Suite #405 Montreal, Qc H3H 1E2 Tel: 514.932.3295 Fax: 514.932.4639 http://www.objexis.com Important - This message may contain privileged and confidential information. It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation.
Re: [JBoss-user] JBoss 2.4.1 with EmbeddedTomcat: org.apache.jasper.compiler.CompileException with struts
I've used 2.0->2.4.1a successfully with struts. However my taglib-uri is different from yours. Try chopping off the /WEB-INF/. For example, change this: /WEB-INF/struts-logic.tld /WEB-INF/struts-logic.tld to this: struts-logic.tld /WEB-INF/struts-logic.tld Then, make sure your JSP references the libraries like this: <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> This way of referencing also works in WebLogic, in case you care about an example of cross-vendor compatibility. Hope this helps, David -- Nguyen Thanh Phong wrote: > Hello, > > I'm having the following problem to deploy an application that uses struts > on JBoss 2.4.1+ EmbeddedTomcat 3.2.3 (full stack trace is at the bottom of > the mail) > > org.apache.jasper.compiler.CompileException: > D:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\webapps\smart\ebiz\index.jsp(1,0) Unable > to open taglibrary /WEB-INF/struts-bean.tld : null > > I have the following in my context's (smart) WEB-INF > > WEB-INF/ > WEB-INF/classes > WEB-INF/classes/ApplicationResources.properties > WEB-INF/classes/ApplicationResources_en_US.properties > WEB-INF/classes/ApplicationResources_vi.properties > WEB-INF/jboss-web.xml > WEB-INF/lib > WEB-INF/lib/client.jar > WEB-INF/lib/commons-beanutils.jar > WEB-INF/lib/commons-collections.jar > WEB-INF/lib/commons-digester.jar > WEB-INF/lib/jdbc2_0-stdext.jar > WEB-INF/lib/struts.jar > WEB-INF/struts-bean.tld > WEB-INF/struts-config.xml > WEB-INF/struts-form.tld > WEB-INF/struts-html.tld > WEB-INF/struts-logic.tld > WEB-INF/struts-template.tld > WEB-INF/struts.tld > WEB-INF/web.xml > WEB-INF/weblogic.xml > > I file WEB-INF/web.xml, I have the following > > > > /WEB-INF/struts-bean.tld > /WEB-INF/struts-bean.tld > > > /WEB-INF/struts-html.tld > /WEB-INF/struts-html.tld > > > /WEB-INF/struts-logic.tld > /WEB-INF/struts-logic.tld > > > /WEB-INF/struts-form.tld > /WEB-INF/struts-form.tld > > ... > > What am I missing? Please provide me with some advices. > > Is JBoss 2.4.1 stable enough to try with or I should go back to JBoss 2.2.2? > > Many thanks in advance. > > > Nguyen Thanh Phong Tel: 84-8-837 25 06/837 25 07 > Saigon Software Development Company (SDC)Fax: 84-8-837 25 11 > 10 Co Giang Street, Dist I, HCMC Email: > [EMAIL PROTECTED] > Vietnam > > > > > org.apache.jasper.compiler.CompileException: > D:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\webapps\smart\ebiz\index.jsp(1,0) Unable > to open taglibrary /WEB-INF/struts-bean.tld : null > at > org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve > ntListener.java:713) > at > org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList > ener.java:116) > at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215) > at org.apache.jasper.compiler.Parser.parse(Parser.java:1077) > at org.apache.jasper.compiler.Parser.parse(Parser.java:1042) > at org.apache.jasper.compiler.Parser.parse(Parser.java:1038) > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209) > at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612) > at > org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) > at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542) > at > org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe > rvlet.java:258) > at > org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja > va:268) > at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) > at org.apache.tomcat.core.Handler.service(Handler.java:287) > at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) > at > org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81 > 2) > at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) > at > org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC > onnectionHandler.java:213) > at > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) > at > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) > at java.lang.Thread.run(Thread.java:484) > > > > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] EJB 2.0 and Jboss 2.4.1/3.0
Ok, I seem to be confused what is Jboss's status on support for EJB 2.0? Is it available in 2.4.1 or are we waiting for 3.0. Sorry for the dumb question. Thanks, Jake T. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] UserTransaction from client side
Ok, I cut the piece for getting the TA: it's this: public static UserTransaction getTransaction () { initContext (); UserTransaction ta = null; if (jndiContext != null) { try { ta = (UserTransaction)jndiContext.lookup("UserTransaction"); } catch (javax.naming.NamingException e) { log.error("Exception while getting a transaction. Exception: ", e); } } return ta; } ...and it's fore sure a different VM. What's funny is, that only the last value got lost... -Original Message- From: Ole Husgaard [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 19, 2001 5:36 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] UserTransaction from client side Hi, Not sure if you lookup the UT correctly. Please be aware that the current stand-alone client UT _only_ works correctly if the client executes in a VM other than the server VM. There is a UT test in the CTS tests in the jbosstest test suite. That may be useful as a starting point. Best Regards, Ole Husgaard. Lutz Hilken wrote: > > Hi, > > I want to use Client-controlled transactions by using UserTransaction. When > testing it, some problems occured. See this code: > > UserTransaction ta = null; > try { > String key = null; > MyBean b = null; > ta = EJBUtil.getTransaction (); > ta.setTransactionTimeout(5) ; > ta.begin (); > MyBeanHome home = (MyBeanHome)EJBUtil.findHome ("MyBean"); > boolean doRollback = args[0].equals("x"); > for (int i = 1; ikey = args[i]; >b = loadOrCreateMyBean (home, key); >b.setValue ("Some vaule..."+key); >log.info ("Value is: "+b.getValue()); > } > if (doRollback) { >ta.rollback(); > } > else { >ta.commit (); > } > } > catch (Exception ex) { > log.error ("...Ooops", ex); > try { >ta.rollback(); > } > catch (Exception rex) { >log.error ("ROLLBACK failed!", rex); > } > } > > Now, when calling the code the first time, the objects are created, at least > they are complete in JBoss memory cache, BUT the value of the last created > bean is not present in the database! > The second call to this code, using the same keys updating the beans, hangs > in the commit() call and does not return, allthough the timeout is set to 5 > secs (I got a trace message on the server console, but the client keeps > hanging). > > What's wrong? > > I'm using JBoss 2.4.0, CMP for the beans, no specific Transaction-attribute > (so all are Required) and Oracle. > > So, please help, we need this feature urgently > > Thanks, Lutz. > > Lutz Hilken > IT-Consult > IVU Traffic Technologies AG > Bundesallee 88, D-12161 Berlin > Telefon: +49.30.85 906-450, Telefax: +49.30.85 906-499 > [EMAIL PROTECTED], www.ivu.de > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss 2.4.1 with EmbeddedTomcat: org.apache.jasper.compiler.CompileException with struts
Hello, I'm having the following problem to deploy an application that uses struts on JBoss 2.4.1+ EmbeddedTomcat 3.2.3 (full stack trace is at the bottom of the mail) org.apache.jasper.compiler.CompileException: D:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\webapps\smart\ebiz\index.jsp(1,0) Unable to open taglibrary /WEB-INF/struts-bean.tld : null I have the following in my context's (smart) WEB-INF WEB-INF/ WEB-INF/classes WEB-INF/classes/ApplicationResources.properties WEB-INF/classes/ApplicationResources_en_US.properties WEB-INF/classes/ApplicationResources_vi.properties WEB-INF/jboss-web.xml WEB-INF/lib WEB-INF/lib/client.jar WEB-INF/lib/commons-beanutils.jar WEB-INF/lib/commons-collections.jar WEB-INF/lib/commons-digester.jar WEB-INF/lib/jdbc2_0-stdext.jar WEB-INF/lib/struts.jar WEB-INF/struts-bean.tld WEB-INF/struts-config.xml WEB-INF/struts-form.tld WEB-INF/struts-html.tld WEB-INF/struts-logic.tld WEB-INF/struts-template.tld WEB-INF/struts.tld WEB-INF/web.xml WEB-INF/weblogic.xml I file WEB-INF/web.xml, I have the following /WEB-INF/struts-bean.tld /WEB-INF/struts-bean.tld /WEB-INF/struts-html.tld /WEB-INF/struts-html.tld /WEB-INF/struts-logic.tld /WEB-INF/struts-logic.tld /WEB-INF/struts-form.tld /WEB-INF/struts-form.tld ... What am I missing? Please provide me with some advices. Is JBoss 2.4.1 stable enough to try with or I should go back to JBoss 2.2.2? Many thanks in advance. Nguyen Thanh Phong Tel: 84-8-837 25 06/837 25 07 Saigon Software Development Company (SDC)Fax: 84-8-837 25 11 10 Co Giang Street, Dist I, HCMC Email: [EMAIL PROTECTED] Vietnam org.apache.jasper.compiler.CompileException: D:\JBoss-2.4.1_Tomcat-3.2.3\tomcat\webapps\smart\ebiz\index.jsp(1,0) Unable to open taglibrary /WEB-INF/struts-bean.tld : null at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve ntListener.java:713) at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList ener.java:116) at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215) at org.apache.jasper.compiler.Parser.parse(Parser.java:1077) at org.apache.jasper.compiler.Parser.parse(Parser.java:1042) at org.apache.jasper.compiler.Parser.parse(Parser.java:1038) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:258) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:268) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81 2) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: LDAPLoginModule used with Win2000 (Scott M Stark)
Scott instead of libsec { org.jboss.security.plugins.samples.LdapLoginModule required java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory principalDNPrefix=uid= uidAttributeID=userid roleAttributeID=rolenames principalDNSuffix=,ou=People,o=mydomain.com rolesCtxDN=ou=Users,cn=Project1,ou=Projects,o=mydomain.com java.naming.provider.url=ldap://hall:389/ java.naming.security.authentication=simple }; try something like ibsec { org.jboss.security.plugins.samples.LdapLoginModule required java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory principalDNPrefix="uid=" uidAttributeID="userid" roleAttributeID=rolenames principalDNSuffix=",ou=People,o=mydomain.com" rolesCtxDN="ou=Users,cn=Project1,ou=Projects,o=mydomain.com" java.naming.provider.url=ldap://hall:389/ java.naming.security.authentication=simple ; }; ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user