[JBoss-user] [EJB/JBoss] - Re: HTTP Status 404
This is ..deploy/TassieOnline.ear/META-INF/application.xml ?xml version=1.0 encoding=UTF-8? applicationxmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=1.4 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd; display-nameTassieOnline/display-name web-uriTassieOnlineWeb.war/web-uri context-root/TassieOnlineWeb/context-root TassieOnlineEJB.jar - Here follows deploy/TassieOnline.ear/TassieOnlineWeb.war/WEB-INF/web.xml: --- ?xml version=1.0 encoding=UTF-8? web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; display-nameDeployment for Tassie Online/display-name Tassie Online Book Store -- Example application servlet-nameSearchServlet/servlet-name servlet-class com.brainysoftware.tassie.servlet.SearchServlet /servlet-class /web-app I should also mention that according to the log-file this application is loaded without any error: - 10:25:51,886 INFO [EARDeployer] Init J2EE application: file:/usr/local/jboss-4.0.0/server/default/deploy/TassieOnline.ear/ 10:25:52,486 INFO [EjbModule] Deploying Search 10:25:52,585 INFO [EjbModule] Deploying BookDetails 10:25:52,669 INFO [EjbModule] Deploying Cart 10:25:53,219 INFO [EJBDeployer] Deployed: file:/usr/local/jboss-4.0.0/server/default/deploy/TassieOnline.ear/TassieOnlineEJB.jar/ 10:25:53,328 INFO [TomcatDeployer] deploy, ctxPath=/TassieOnlineWeb, warUrl=file:/usr/local/jboss-4.0.0/server/default/deploy/TassieOnline.ear/TassieOnlineWeb.war/ 10:25:53,837 INFO [EARDeployer] Started J2EE application: file:/usr/local/jboss-4.0.0/server/default/deploy/TassieOnline.ear/ Any ideas? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3853371#3853371 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853371 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Installing and configuring JBoss 3.2.6 on solaris with jdk 1
Hi, I am trying 2 install and configure JBoss on sun solaris. Using the JBoss version 3.2.6. The sun box has jdk 1.3.1_01. When i run the script run.sh the jboss terminates the booting process with error NoSuchMethodError... the screen dump is like follows : = JBoss Bootstrap Environment JBOSS_HOME: /local/home/usr1jboss-3.2.6 JAVA: /usr/java/bin/java JAVA_OPTS: -server -Dprogram.name=run.sh -Djboss.home.dir=/local/home/usr1/jboss-3.2.6 CLASSPATH: /local/home/usr1/jboss-3.2.6/bin/run.jar:/usr/java/lib/tools.jar = 02:51:17,744 INFO [Server] Starting JBoss (MX MicroKernel)... 02:51:17,747 INFO [Server] Release ID: JBoss [WonderLand] 3.2.6 (build: CVSTag=JBoss_3_2_6 date=200410140106) 02:51:17,748 INFO [Server] Home Dir: /local/home/usr1/jboss-3.2.6 02:51:17,748 INFO [Server] Home URL: file:/local/home//jboss-3.2.6/ 02:51:17,749 INFO [Server] Library URL: file:/local/home/usr1/jboss-3.2.6/lib/ 02:51:17,751 INFO [Server] Patch URL: null 02:51:17,751 INFO [Server] Server Name: default 02:51:17,752 INFO [Server] Server Home Dir: /local/home/usr1/jboss-3.2.6/server/default 02:51:17,752 INFO [Server] Server Home URL: file:/local/home/usr1/jboss-3.2.6/server/default/ 02:51:17,753 INFO [Server] Server Data Dir: /local/home/usr1/jboss-3.2.6/server/default/data 02:51:17,753 INFO [Server] Server Temp Dir: /local/home/usr1/jboss-3.2.6/server/default/tmp 02:51:17,754 INFO [Server] Server Config URL: file:/local/home/usr1/jboss-3.2.6/server/default/conf/ 02:51:17,755 INFO [Server] Server Library URL: file:/local/home/usr1/jboss-3.2.6/server/default/lib/ 02:51:17,755 INFO [Server] Root Deployment Filename: jboss-service.xml 02:51:17,762 INFO [Server] Starting General Purpose Architecture (GPA)... java.lang.NoSuchMethodError at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:312) at org.jboss.mx.server.MBeanServerImpl.(MBeanServerImpl.java:192) at org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MBeanServerBuilderImpl.java:56) at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:183) at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:118) at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:350) at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311) at org.jboss.Main.boot(Main.java:145) at org.jboss.Main$1.run(Main.java:399) at java.lang.Thread.run(Thread.java:484) Ne clue workarounds will help. Thanks in advance, -Vivek View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3853373#3853373 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853373 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Hibernate.har into .ear...HowTo?
Hi, I have a hibernate.har which works fine. I wish to take advantage of 'EJBs which mange the transactions (JTA)'. How do I configure a .Ear to use my hibernate.har file? many thanks Andrew View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3853376#3853376 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853376 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Hibernate.har into .ear...HowTo?
Hi, just to add that I am running JBoss version 4.0. thanks Andrew View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3853381#3853381 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853381 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Re: How do I install jboss-3.08_tomcat-4.1.24.zip in eclipse
Thanks! View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3853382#3853382 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853382 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Hibernate stand-alone without JBoss this time and SqlServer
Well, I got Hibernate working in the stand-alone example, without JBoss or IntelliJ, but when I insert, or even when the other examples insert into the DB, I get two rows. Can anyone help me here. I haven't yet retried my example with JBoss but I think it'll work. However, I'd like to solve this two rows issue first. Thanks. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3853383#3853383 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853383 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: JMS failing on init if large dataset in Hypersonic
Never mind. I figured out how to create a separate instance to use for my large dataset and left DefaultDS alone. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3853384#3853384 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853384 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Hibernate.har into .ear...HowTo?
Ok, I have decleared my ear as follows: -myHibernateEar.ear --meta-inf ---application.xml ---jboss-app.xml --Hibernate.har ---meta-inf hibernate-service.xml ---test all my *.class *.hbm.xml ---hibernate.cfg.xml How do I configure my application.xml (the syntax for JBoss 4.0) in this case as I have defined my jboss-app.xml as? : ?xml version=1.0? jboss-app hibernate.har /jboss-app many thanks Andrew View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3853387#3853387 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853387 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Hibernate.har into .ear...HowTo?
add in your .har file in the ear. In application.xml add hibernate har View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3853385#3853385 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853385 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Hibernate.har into .ear...HowTo?
I have specified my jboss-app.xml file as: ?xml version=1.0? jboss-app module har hibernate.har /har /module /jboss-app I am having trouble declaring my hibernate.har in application.xml. How do I declare the application.xml file? If I have added hibernate.har in the application.xml file do I still need the jboss-app.xml file as well? many thanks Andrew View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3853391#3853391 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853391 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Hibernate.har into .ear...HowTo?
I am getting the following error message in the logs: Incompletely deployed packages: [EMAIL PROTECTED] { url=file:/Library/jboss-4.0.0/server/default/deploy/myHibernateEar.ear/ } deployer: [EMAIL PROTECTED] status: null state: FAILED watch: file:/Library/jboss-4.0.0/server/default/deploy/myHibernateEar.ear/ altDD: null lastDeployed: 1099165264240 lastModified: 1099150867000 mbeans: I have specified my application.xml file as: ?xml version=1.0 encoding=UTF-8? application xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=1.4 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd; display-namebeyarecords/display-name beyarecords hibernate.har Is this the correct way to specify the application.xml file? many thanks Andrew View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3853392#3853392 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853392 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Nukes User] - Re: Error in deploying nukes.ear
I am getting the same errors. I am running JBoss 3.2.6 with nukes 1.1.0RC3. It seems all of the nukes war are getting the nested throwable. Has anyone seen a fix? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3853394#3853394 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853394 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Hibernate.har into .ear...HowTo?
I have now declared my application.xml file as: ?xml version=1.0 encoding=UTF-8? display-namebeyarecords/display-name beyarecords module connector hibernate.har /connector /module /application In the logs I now get the following: 01:48:46,377 INFO [EARDeployer] Init J2EE application: file:/Library/jboss-4.0.0/server/default/deploy/myHibernateEar.ear/ 01:48:50,273 INFO [EARDeployer] Started J2EE application: file:/Library/jboss-4.0.0/server/default/deploy/myHibernateEar.ear/ But what I do not get is any log information regarding the status of Hibernate! I presume application.xml file is incorrect? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3853397#3853397 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853397 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Jboss and HypersonicDB.
Hello to all. I'm new to Jboss and HypersonicDB. I've installed Jboss 4 in a Mandrake 10 Linux. I'm trying to run the Duke's Bank sample from J2EE but the HSQL Mbean seems to not been working. At the jboss server log file is registered the folowing messages when I try to start de DatabaseManager: 2004-10-30 23:24:05,460 ERROR [org.jboss.jdbc.HypersonicDatabase] Failed to start database manager java.lang.reflect.InvocationTargetException 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.jdbc.HypersonicDatabase$1.run(HypersonicDatabase.java:562) Caused by: java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62) at java.awt.Window.init(Window.java:231) at java.awt.Window.(Window.java:275) at java.awt.Frame.(Frame.java:401) at javax.swing.JFrame.(JFrame.java:198) at org.hsqldb.util.DatabaseManagerSwing.main(Unknown Source) at org.hsqldb.util.DatabaseManagerSwing.main(Unknown Source) ... 5 more The scripts to create the Duke's bank database isn't working too, but with no error messages... Can someone help? Thanks in advance. Carlson View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3853398#3853398 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853398 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Hibernate.har into .ear...HowTo?
ok, I am now at the stage whereby I am getting the following messagein the logs: 02:03:33,611 INFO [EARDeployer] Init J2EE application: file:/Library/jboss-4.0.0/server/default/deploy/myHibernateEar.ear/ 02:03:33,820 INFO [Environment] Hibernate 2.1.5 02:03:33,830 INFO [Environment] hibernate.properties not found 02:03:33,835 INFO [Environment] using CGLIB reflection optimizer 02:03:33,859 INFO [Configuration] Mapping file: /Library/jboss-4.0.0/server/default/deploy/myHibernateEar.ear/hibernate.har/test/Artist.hbm.xml 02:03:34,037 INFO [Binder] Mapping class: test.Artist - artisttbl 02:03:34,249 INFO [Configuration] Mapping file: /Library/jboss-4.0.0/server/default/deploy/myHibernateEar.ear/hibernate.har/test/ArtistImages.hbm.xml 02:03:34,265 INFO [Binder] Mapping class: test.ArtistImages - artistimagestbl 02:03:34,272 INFO [Configuration] Mapping file: /Library/jboss-4.0.0/server/default/deploy/myHibernateEar.ear/hibernate.har/test/Order.hbm.xml 02:03:34,297 INFO [Binder] Mapping class: test.Order - orderstbl 02:03:34,345 INFO [Configuration] Mapping file: /Library/jboss-4.0.0/server/default/deploy/myHibernateEar.ear/hibernate.har/test/OrderItem.hbm.xml 02:03:34,376 INFO [Binder] Mapping class: test.OrderItem - orderitemstbl 02:03:34,378 INFO [Configuration] Mapping file: /Library/jboss-4.0.0/server/default/deploy/myHibernateEar.ear/hibernate.har/test/Stock.hbm.xml 02:03:34,399 INFO [Binder] Mapping class: test.Stock - stocktbl 02:03:34,408 INFO [Configuration] Mapping file: /Library/jboss-4.0.0/server/default/deploy/myHibernateEar.ear/hibernate.har/test/StockImages.hbm.xml 02:03:34,422 INFO [Binder] Mapping class: test.StockImages - stockimagestbl 02:03:34,423 INFO [Configuration] Mapping file: /Library/jboss-4.0.0/server/default/deploy/myHibernateEar.ear/hibernate.har/test/User.hbm.xml 02:03:34,461 INFO [Binder] Mapping class: test.User - usertbl 02:03:34,467 INFO [Binder] Mapping collection: test.User.ArtistChoice - choicetbl 02:03:34,468 INFO [Configuration] processing one-to-many association mappings 02:03:34,469 INFO [Binder] Mapping collection: test.Order.OrderItems - orderitemstbl 02:03:34,470 INFO [Binder] Mapping collection: test.Stock.StockImages - stockimagestbl 02:03:34,472 INFO [Configuration] processing one-to-one association property references 02:03:34,472 INFO [Configuration] processing foreign key constraints 02:03:34,567 INFO [Dialect] Using dialect: net.sf.hibernate.dialect.PostgreSQLDialect 02:03:34,572 INFO [SettingsFactory] Use outer join fetching: true 02:03:34,587 INFO [NamingHelper] JNDI InitialContext properties:{} 02:03:34,596 INFO [DatasourceConnectionProvider] Using datasource: java:/PostgresDS 02:03:34,600 INFO [TransactionFactoryFactory] Transaction strategy: net.sf.hibernate.transaction.JTATransactionFactory 02:03:34,602 INFO [NamingHelper] JNDI InitialContext properties:{} 02:03:34,606 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: net.sf.hibernate.transaction.JBossTransactionManagerLookup 02:03:34,607 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup 02:03:34,608 INFO [NamingHelper] JNDI InitialContext properties:{} 02:03:34,610 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: net.sf.hibernate.transaction.JBossTransactionManagerLookup 02:03:34,611 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup 02:03:34,774 INFO [SettingsFactory] Use scrollable result sets: true 02:03:34,774 INFO [SettingsFactory] Use JDBC3 getGeneratedKeys(): false 02:03:34,775 INFO [SettingsFactory] Optimize cache for minimal puts: false 02:03:34,775 INFO [SettingsFactory] echoing all SQL to stdout 02:03:34,776 INFO [SettingsFactory] Query language substitutions: {} 02:03:34,776 INFO [SettingsFactory] cache provider: net.sf.ehcache.hibernate.Provider 02:03:34,786 INFO [Configuration] instantiating and configuring caches 02:03:34,824 WARN [Configurator] No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/Library/jboss-4.0.0/server/default/lib/ehcache-1.0.jar!/ehcache-failsafe.xml But when I runs the following code: InitialContext ctx = new InitialContext(); transaction = (UserTransaction)ctx.lookup(java:/UserTransaction); transaction.begin(); session = HibernateContext.getSession(java:/hibernate/SessionFactory); //Get User details query = session.createQuery(from test.User as user where user.UserName=:username and user.UserPassword=:password) .setString(username,username) .setString(password,password); user = (User) query.uniqueResult(); transaction.commit(); I now get the following error
[JBoss-user] [Security JAAS/JBoss] - Principal=null after a successful JDBC login and following h
Any ideas? I've looked at other posts regarding this same issue and have not been able to solve the problem that the subject and principals are not retained between http requests. In JSP's (or other code - Struts application), a call to request.getUserPrincipal() returns null after a successful login and subsequent requests using the DatabaseServerLoginModule configuration. The login.jsp page is always presented if a restricted page is accessed - even after authentication is passed. If I change web.xml to use BASIC instead of FORM based for authentication, the problem goes away - principals are retained between requests and the login.jsp page is only presented once. In trying to narrow down the problem, it seems that when using DatabaseServerLoginModule for authentication, the credentials are not automatically propagated. I have set up my JBoss 3.2.6 environment like the post: http://www.javaworld.com/javaforums/showflat.php?Cat=2Board=JavaSecurityNumber=2500page=0view=collapsedsb=5o=fpart=1 The environment consists of WinXP and MySQL: login-config.xml: ... | application-policy name=mcApp | authentication | login-module code=org.jboss.security.ClientLoginModule flag=required/ | login-module code=org.jboss.security.auth.spi.DatabaseServerLoginModule flag=required | module-option name=dsJndiNamejava:/MySqlDS/module-option | module-option name=principalsQueryselect password from n_user where user_id=?/module-option | module-option name=rolesQueryselect role 'Roles', RoleGroup 'RoleGroup' from user_roles where user_id=?/module-option | /login-module | /authentication | /application-policy | ... | jboss-web.xml: jboss-web |security-domainjava:/jaas/mcApp/security-domain | /jboss-web | web.xml: ... | security-constraint | web-resource-collection | web-resource-nameadmin/web-resource-name | descriptionAdministration Profile/description | url-pattern/restricted/*/url-pattern | http-methodGET/http-method | http-methodPOST/http-method | /web-resource-collection | auth-constraint | descriptionAdministration/description | role-nameAdminRole/role-name | /auth-constraint | user-data-constraint | transport-guaranteeNONE/transport-guarantee | /user-data-constraint | /security-constraint | login-config | auth-methodFORM/auth-method | realm-namemcApp/realm-name | form-login-config | form-login-page/login.jsp/form-login-page | form-error-page/badlogin.jsp/form-error-page | /form-login-config | /login-config | !-- | login-config | auth-methodBASIC/auth-method | realm-namemcApp/realm-name | /login-config | -- | security-role | descriptionAdministration/description | role-nameAdminRole/role-name | /security-role | ... | LoginAction.java: ... | try { | SecurityAssociationHandler handler = new SecurityAssociationHandler(); | SimplePrincipal user = new SimplePrincipal(j_username); | handler.setSecurityInfo(user, new String(j_password)); | LoginContext loginContext = new LoginContext(mcApp, (CallbackHandler)handler); | loginContext.login(); | Subject subject = loginContext.getSubject(); | Set principals = subject.getPrincipals(); | System.out.println(- LoginAction: Principals: + principals.toString()); | } | catch(LoginException e) { | e.printStackTrace(); | errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(Wrong Username or Password)); | saveErrors(request, errors); | return (mapping.getInputForward()); | } | ... | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3853402#3853402 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853402 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user