[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - SQLUtil.fixTableName bug
I have found a bug in SQLUtil.fixTableName method. It checks from the database metadata if the database stores lowercase identifiers (for table names) and if so, it issues a tableName.toLower() call. It may bring problems for non standart upper/lower cases for different locales, like it does for Turkish language capital I and lowercase I (which is not i, but ?). Have a look at: http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#toUpperCase(java.util.Locale) I don't know why JBoss thinks it should change the tableName that I explicitly specified in jbosscmp-jdbc.xml in my deployment descriptor. I believe, it must obey the explicitly stated table name in tag of entity tag under jbosscmp-jdbc.xml. If for some reason that I am not aware of, JBoss is forced to issue a toLower method like it does now, it must be in the toLower( Locale ) form where locale is some iso-1 compliant locale. To workaround the problem, I force JBoss to use english language as its default (-Duser.language=en), and bypass the Turkish locale. Best Regards, Gokhan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952695#3952695 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952695 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - Re: client ip in loginmodule for ejb clients
So, does it mean it is not possible? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3936143#3936143 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3936143 --- 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=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - client ip in loginmodule for ejb clients
Hi, I need to get the client IP address in my custom login module. I have only ejb jars in my ear, and those ejbs are accessed from a java based ejb-client application. In other words, getting an instance of HttpServletRequest is not the answer. What is the easiest way to achieve this? I have read all the threads in this forum which mention "client ip" and could not get a thorough direction. Regards, Gokhan Demir View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931941#3931941 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931941 --- 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=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - Re: Cannot obtain inMethodFlag for: getCallerPrincipal
Thanks for the reply. After surrounding the line to setEJBContext in a try-catch block to return immediately on IllegalStateException, it started to work fine. In my former code, I had checked a possible null value returned from setEJBContext. Best Regards, Gokhan Demir View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877743#3877743 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877743 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - Cannot obtain inMethodFlag for: getCallerPrincipal
Hi, I have a custom security implementation that works well in previous JBoss versions. However, with JBoss 4.0.2 it gives the following exception. I tried (with full rebuild of my own lib) both with jdk 1.5 and jdk 1.4 (latest versions). What might be going mistakenly here? Thanks in advance, Gokhan Demir java.lang.IllegalStateException: Cannot obtain inMethodFlag for: getCallerPrincipal at org.jboss.ejb.AllowedOperationsAssociation.assertAllowedIn(AllowedOperationsAssociation.java:119) at org.jboss.ejb.StatelessSessionEnterpriseContext$SessionContextImpl.getCallerPrincipal(StatelessSessionEnterpriseContext.java:196) at com.igonline.securityx.jboss.IGCommonSecurityProxy.setEJBContext(IGCommonSecurityProxy.java:87) at org.jboss.ejb.plugins.SecurityProxyInterceptor.invokeHome(SecurityProxyInterceptor.java:137) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:212) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:81) at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90) 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:389) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:116) 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:324) 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.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805) at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406) 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:324) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261) at sun.rmi.transport.Transport$1.run(Transport.java:148) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:144) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) at java.lang.Thread.run(Thread.java:534) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877725#3877725 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877725 --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - Re: from MDB (RunAs) to SB (custom security), how to?
Thank you for the clarification. Can I, by any means, call a session bean from an MDB just like I call this session bean from an EJB client (therefore, forcing a new security context to be created)? Thanks, Gokhan View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867665#3867665 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867665 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - Re: from MDB (RunAs) to SB (custom security) to CMP (custom
My real scenario indeed has one CMP too. It is called from the session bean. I think the problem is, JBoss does not propagate the caller identity to the CMP. Therefore, txn commit fails. It might be a JBoss bug. Or it might be my custom security implementation. I am not sure. Thanks, Gokhan View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867618#3867618 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867618 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - from MDB (RunAs) to SB (custom security), how to?
Hi, I call a session bean (with custom security proxy and CMT) from an MDB (with run-as role and CMT). In my security implementation, I construct a custom Principal class. In Session Bean, I see that JBoss's RunAsIdentity principal class has been propagated from the MDB, as expected. My very simple business logic in the session bean completes and just before the txn commit, I get this message in the server log: 2005-02-23 13:22:08,394 ERROR [org.jboss.jms.asf.StdServerSession] failed to commit/rollback org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=MARDUK/82, BranchQual=, localId=82] status=STATUS_NO_TRANSACTION; - nested throwable: (javax.ejb.EJBException: null; CausedByException is: Entity 'PPRStmt'Incompatible Principal Class Name:org.jboss.security.RunAsIdentity toString():[roles=[admin],principal=anonymous] getName():anonymous) at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:344) at org.jboss.tm.TxManager.commit(TxManager.java:200) at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:341) at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904) at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:159) at org.jboss.mq.SpySession.run(SpySession.java:351) at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743) at java.lang.Thread.run(Unknown Source) Caused by: javax.ejb.EJBException: null; CausedByException is: Entity 'PPRStmt'Incompatible Principal Class Name:org.jboss.security.RunAsIdentity toString():[roles=[admin],principal=anonymous] getName():anonymous at org.jboss.ejb.plugins.CMPPersistenceManager.throwRemoteException(CMPPersistenceManager.java:560) at org.jboss.ejb.plugins.CMPPersistenceManager.ejbStore(CMPPersistenceManager.java:540) at org.jboss.ejb.plugins.CMPPersistenceManager.invokeEjbStore(CMPPersistenceManager.java:447) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeEjbStore(CachedConnectionInterceptor.java:412) at org.jboss.ejb.EntityContainer.invokeEjbStore(EntityContainer.java:729) at org.jboss.ejb.GlobalTxEntityMap$2.invokeEjbStore(GlobalTxEntityMap.java:117) at org.jboss.ejb.GlobalTxEntityMap$GlobalTxSynchronization.synchronize(GlobalTxEntityMap.java:239) at org.jboss.ejb.GlobalTxEntityMap$GlobalTxSynchronization.beforeCompletion(GlobalTxEntityMap.java:302) at org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1383) at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1075) at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:296) ... 8 more How to make the transaction commit? Thanks Gokhan View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867607#3867607 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867607 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Incompatible Principal Class Name
Hi, >From an MDB (with run-as identity), I call a session bean, that session bean >call a CMP to set one field. Just before the transaction completes, I see this >in the error log: 2005-02-22 19:17:32,273 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackException in method: public abstract void clb_pricing.StmtMgr.updLandedStmtDate(java.lang.Integer[],java.sql.Timestamp[]) throws java.rmi.RemoteException, causedBy: org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=MARDUK/468, BranchQual=, localId=468] status=STATUS_NO_TRANSACTION; - nested throwable: (javax.ejb.EJBException: null; CausedByException is: Entity 'PPRStmt'Incompatible Principal Class Name:org.jboss.security.RunAsIdentity toString():[roles=[admin],principal=anonymous] getName():anonymous) at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:344) at org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction(TxInterceptorCMT.java:454) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:322) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:146) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:123) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624) at org.jboss.ejb.Container.invoke(Container.java:870) at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144) 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:642) at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104) at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:115) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:101) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55) at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:91) at $Proxy726.updLandedStmtDate(Unknown Source) at clb_pricing.PricingFlightListenerBean.onMessage(PricingFlightListenerBean.java:122) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jboss.invocation.Invocation.performCall(Invocation.java:345) at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:475) at org.jboss.ejb.plugins.SecurityProxyInterceptor.invoke(SecurityProxyInterceptor.java:175) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185) at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:87) at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:280) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:146) at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:94) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:389) at org.jboss.ejb.Container.invoke(Container.java:870) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:962) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1248) at org.jboss.jms.asf.StdServerSes
[JBoss-user] [Security & JAAS/JBoss] - Unexpected Error after upgrade from 3.2.5 to 4.0.0
Hi, I have an EAR with a custom login module. It is running fine in 3.2.5. After upgrading to 4.0.0, I started to get an unexpected error: NoClassDefFoundException at first request to the server from the client. My custom login module delegates the real authentication logic to a deployed session bean in the EAR. So, it references my session bean's local home and local interfaces. I exclude these referenced interface classes in my custom built sx jar. And I copied the jar to /server/default/lib. This is working ok in 3.2.5 line, but gives a NoClassDefFoundException in 4.0.0 line. Exception occurs before JBoss executes any of my application codes, and I believe right when it needs to instantiate my custom login module class. What can I do for my custom login module's classpath to see (find) the interface classes in my (successfully) deployed application? Thanks for your help in advance. Regards, Gokhan Demir View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849571#3849571 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3849571 --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user