Re: [JBoss-user] No auth prompt using security-constraint
I have got the same problem in JBoss3.0fr. I think it is because of my incorrect login-config.xml, for if i change the security-domain in jboss-web.xml to an invalid one auth will pop up indicating default UsersRolesLoginModule works. Could anyone show me where i miss in my login-config.xml ? Attached is a part of my login-config.xml and WEB-INF files of my war. Thanks for reading. regards, Cloudor - Original Message - From: Piwowar, Heather [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 31, 2002 8:47 AM Subject: [JBoss-user] No auth prompt using security-constraint I'm trying to get BASIC auth up and running for my web application. I have modified my web.xml file (see below). The implementation works fine under the J2EE reference implementation (I get prompted for a username and password when I try to reference the page). However, When I try to deploy my EAR under Jboss-2.4.4_Tomcat-4.0.1, I do not get prompted for a username and password... it acts as if the security-contraint is not set. There are no errors in loading the EAR or showing the page (see below). Any ideas? I'm feeling really stuck! Thanks so much, Heather application-policy name=mydomain authentication login-module code=org.jboss.security.ClientLoginModule flag = required /login-module login-module code = org.jboss.security.auth.spi.DatabaseServerLoginModule flag = required module-option name=dsJndiNamejava:/MySqlDS/module-option module-option name=principalsQuery select passwd from Passwd where username=? /module-option module-option name=rolesQuery select role, 'Roles' from Roles where username=? /module-option module-option name=unauthenticatedIdentitynobody/module-option /login-module /authentication /application-policy ?xml version=1.0 encoding=UTF8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app security-constraint web-resource-collection web-resource-nameROOT/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-nameecho/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method /login-config /web-app jboss-web context-root//context-root security-domainjava:/jaas/mydomain/security-domain /jboss-web
[JBoss-user] When will JBoss 3.0 Documentation be available?
Hi, I'd like to purchase the JBoss documentation from Flashline. However, I'd like to know when will be the version 3 documentation be available? Thanks for your reply. Cheers. Han Ming Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss don't release a connection from the pool
Title: JBoss don't release a connection from the pool Hi All, I'm using JBoss as app server but not using using EJB, only the JBoss pool connection. so from my Beans that access database I get and close the JBoss wrapped connections. The problem is that i have a method when i close the connection, but JBoss don't return it to the pool for a future reuse, I don't know why. I'm sure that i do a connection.close because of my log, and i'm sure that JBoss don't release the connection because i enabled datasource traces. My question is this, Which sitiuations have this performance (Close a connection but don't return it to the pool) Regards, Enrique. (pardon for my poor english.)
Re: [JBoss-user] deployment on 3.0 release
yes, i have seen this before when i miss the META-INF/ejb-jar.xml file in my jar. regards, Cloudor ÔÚ 2002-06-04 ¶þ µÄ 20:21£¬ Gary S. Cuozzo дµÀ£º Hello all, I've got an app that I developed using JBoss3.0Beta and am trying to deploy it on 3.0 release but am having some issues. I don't really get an error, the log just says: 15:56:00,398 INFO [MainDeployer] Deployment of package: file:/usr/local/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/isg-ejb.jar is waiting for an appropriate deployer. Anybody seen this before and have any ideas what I'm doing wrong? Thanks in advance, gary. ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] where condition SQL.
you need to write an EJB-QL statement in the ejb-jar.xml file. see JBoss doc for more explanation. ionel Tejeshwar wrote: Hi How can we achieve an where condition in SQL in container managed persistance Bean. Thanks and regards Tejesh Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Jboss 3 with Ingres JDBC
David, Thanks for reply. This is the file I am using ...as I said I copied tried to adapt the Oracle one. I believe I should be using XaTXConnectionManager as I am using caribou's class 3 JDBC driver, but JBOss doesnt seem to be picking up the class (although I am using the same class jar as I used with Jboss 2.4). The server log shows it is looking for memberdb which is the name of the connection pool used in jboss2.4 configured using XADataSourceLoader mbean but I cannot see how to do this with jboss3. login conf application-policy name=IngresRealm - authentication - login-module code=org.jboss.resource.security.ConfiguredIdentityLoginModule flag=required module-option name=principalguest/module-option module-option name=userNameguest/module-option module-option name=passwordguest/module-option module-option name=managedConnectionFactoryNamejboss.jca:service=XaTxCM,name=DefaultDS /module-option /login-module /authentication /application-policy Ingres-service.xml adapted from oracle-service.xml ?xml version=1.0 encoding=UTF-8? !-- = -- !-- -- !-- JBoss Server Configuration -- !-- -- !-- = -- server !-- -- !-- ConnectionManager setup for Ingres dbs -- !-- Build jmx-api (build/build.sh all) and view for config documentation -- !-- Thanks to Steven Coy -- !-- -- mbean code=org.jboss.resource.connectionmanager.XaTxConnectionManager name=jboss.jca:service=XaTxCM,name=DefaultDS !-- Include a login module configuration named IngresDbRealm. Update your login-conf.xml, here is an example for a ConfiguredIdentityLoginModule: application-policy name = IngresRealm authentication login-module code = org.jboss.resource.security.ConfiguredIdentityLoginModule flag = required module-option name = principalguest/module-option module-option name = userNameguest/module-option module-option name = passwordguest/module-option module-option name = managedConnectionFactoryNamejboss.jca:service=XaTxCM,name=DefaultDS/modu le-option /login-module /authentication /application-policy NOTE: the application-policy name attribute must match SecurityDomainJndiName, and the module-option name = managedConnectionFactoryName must match the object name of the ConnectionManager you are configuring here. -- !--uncomment out this line if you are using the IngresDbRealm above attribute name=SecurityDomainJndiNameIngresDbRealm/attribute -- depends optional-attribute-name=ManagedConnectionFactoryName !--embedded mbean-- mbean code=org.jboss.resource.connectionmanager.RARDeployment name=jboss.jca:service=XaTxDS,name=DefaultDS attribute name=JndiNameDefaultDS/attribute attribute name=ManagedConnectionFactoryProperties properties config-property name=ConnectionURL type=java.lang.Stringjdbc:caribou:jsqlingres://a04695:6024/caworld2002/c onfig-property config-property name=DriverClass type=java.lang.Stringcom.cariboulake.jsql.JSQLDriver/config-property !--set these only if you want only default logins, not through JAAS -- config-property name=UserName type=java.lang.Stringmal/config-property config-property name=Password type=java.lang.Stringfarout/config-property /properties /attribute !--Below here are advanced properties -- !--hack-- depends optional-attribute-name=OldRarDeploymentjboss.jca:service=RARDeployment,n ame=JBoss LocalTransaction JDBC Wrapper/depends /mbean /depends depends optional-attribute-name=ManagedConnectionPool !--embedded mbean-- mbean code=org.jboss.resource.connectionmanager.JBossManagedConnectionPool name=jboss.jca:service=XaTxPool,name=DefaultDS !--criteria indicates if Subject (from security domain) or app supplied parameters (such as from getConnection(user, pw)) are used to distinguish connections in the pool. Choices are ByContainerAndApplication (use both), ByContainer (use Subject), ByApplication (use app supplied params only), ByNothing (all connections are equivalent, usually if adapter supports reauthentication)-- attribute name=CriteriaByContainer/attribute /mbean /depends depends optional-attribute-name=CachedConnectionManagerjboss.jca:service=CachedCo nnectionManager/depends depends optional-attribute-name=JaasSecurityManagerServicejboss.security:name=Jaa sSecurityManager/depends attribute
Re: [JBoss-user] WARN [EmbeddedCatalinaServiceSX] No/WEB-INF/web.xml descriptor found
I have met the same error when i use a command-line jar to generate a war file. I worked around by using ant to generate it. ÔÚ 2002-06-10 Ò» µÄ 18:56£¬ [EMAIL PROTECTED] дµÀ£º Hello ! I am using jboss-3.0.0RC1_tomcat-4.0.3 and I want to deploy a simple Servlet (see attached .war-file), but the following error occours, do you have any idea ? The error is, that no web.xml is found, but there is an web.xml in the war-file, and the WEB-INF directory is spelled in capital letters. Thank you very much, greetings Romeo Kienzler 10:52:26,200 INFO [MainDeployer] Starting deployment of package: file:/usr/local/jboss-3.0.0RC1_tomcat-4.0.3/server/default/deploy/lala.w ar 10:52:26,299 INFO [EmbeddedCatalinaServiceSX] deploy, ctxPath=/lala, warUrl=file:/usr/local/jboss-3.0.0RC1_tomcat-4.0.3/server/default/tmp/de ploy/usr/local/jboss-3.0.0RC1_tomcat-4.0.3/server/default/deploy/lala.wa r/95.lala.war 10:52:26,451 INFO [Engine] WebappLoader[/lala]: Deploying class repositories to work directory /usr/local/jboss-3.0.0RC1_tomcat-4.0.3/catalina/work/localhost/lala 10:52:26,455 INFO [Engine] StandardManager[/lala]: Seeding random number generator class java.security.SecureRandom 10:52:26,462 INFO [Engine] StandardManager[/lala]: Seeding of random number generator has been completed 10:52:26,674 INFO [Engine] ContextConfig[/lala]: Missing application web.xml, using defaults only 10:52:26,676 INFO [Engine] ContextConfig[/lala]: Added certificates - request attribute Valve 10:52:26,678 WARN [EmbeddedCatalinaServiceSX] No /WEB-INF/web.xml descriptor found 10:52:26,691 INFO [Engine] StandardWrapper[/lala:default]: Loading container servlet default 10:52:26,691 INFO [Engine] default: init 10:52:26,694 INFO [Engine] StandardWrapper[/lala:invoker]: Loading container servlet invoker 10:52:26,695 INFO [Engine] invoker: init 10:52:26,701 INFO [Engine] jsp: init 10:52:26,704 INFO [Engine] Internal Error: File /WEB-INF/web.xml not found 10:52:26,708 INFO [MainDeployer] Successfully completed deployment of package: file:/usr/local/jboss-3.0.0RC1_tomcat-4.0.3/server/default/deploy/lala.w ar Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] example ear file deploying to tomcat from Greg Turner to Christopher Watson
In the archives Greg Turner refers to an example .ear file in his response to Christopher Watson's question re deploying using Tomcat/JBoss 3.0 - any chance of a copy as I'm having the same problem. I am able to deploy ok when using jetty with the .war file but the same technique/file fails using tomcat. It would be good if the download had a simple example war deployed - perhaps for future releases? Many thanks Ian Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user