RE: [JBoss-user] [OT] can't run xdoclet ;(
You have to use Ant 1.5 with the latest versions of XDoclet. -Original Message- From: Markus Garscha [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 9 October 2002 7:56 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] [OT] can't run xdoclet ;( * kiuma <[EMAIL PROTECTED]> [2002-10-08 23:30]: > xdoclet from cvs > and last stable ant version ant 1.4.1 xdoclet 1.2.0-beta1 should work, because all other things work too... i don't have any idea what to do next .( cu markus --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Single Sign On Support Between Multiple WebApps in Jetty
It turns out that Jetty currently doesn't support sign sign-on between web apps - guess I'll have to try Tomcat instead : http://groups.yahoo.com/group/jetty-support/message/3947 In answer to your question, if you want to use FORM based authentication, its defined in the web app deployment descriptor (web.xml) as follows : FORM WebSecurityRealm /login.jsp /fail_login.jsp The realm name needs to be the name of a JAAS security realm - this is defined in the JAAS configuration file (login-config.xml) and the JBoss specific deployment dexcriptor (jboss-web.xml). in jboss-web.xml : java:/jaas/WebSecurityRealm in login-config.xml : java:/OracleDS select Password from Principals where PrincipalId=? select Role, RoleGroup from Roles where PrincipalId=? -Original Message- From: KRALIK Vladimir [mailto:[EMAIL PROTECTED]] Sent: Friday, 4 October 2002 4:39 PM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] Single Sign On Support Between Multiple WebApps in Jetty I think, that FORM-based security need Session on server-side. Each webapp has its own Session-object, and when this session doesn't exists the login form is showed. Try BASIC autentification. In this form browser sends security data (login and password) to server in HTTP-header. I use this form when I develop webapps, and often need restart server. Browser holds login and password between server restart. vlk BTW: Can you please send me a link to a description how set up this on form based autentification on Tomcat/Catalina ? Thanks. > -Original Message- > From: Gavin Hughes [mailto:[EMAIL PROTECTED]] > Sent: 4. oktobra 2002 6:41 > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Single Sign On Support Between Multiple > WebApps in Jetty > > > > I've been looking around to see if I could perform a single sign on > between multiple web applications deployed under the same server > instance of JBoss, but have not found a way to do this with Jetty > (although I have seen a description of how to do this with > Tomcat/Catalina). > > I currently have 2 web apps deployed - both apps use standard J2EE > security (FORM based). > > Each of the web apps are configured to use the same security realm in > their deployment descriptors (web.xml), and the same security domain > in the JBoss specific deployment descriptor (jboss-web.xml). > > Each web app requires me to authenticate independently though > - is there > anything in particular I need to do to get single sign-on working ? > > I am using JBoss 3.0.3 (with Jetty bundled) with JDK 1.4.1 on Windows > XP. > > Any help appreciated. > > Gavin. > > > > --- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Single Sign On Support Between Multiple WebApps in Jetty
I've been looking around to see if I could perform a single sign on between multiple web applications deployed under the same server instance of JBoss, but have not found a way to do this with Jetty (although I have seen a description of how to do this with Tomcat/Catalina). I currently have 2 web apps deployed - both apps use standard J2EE security (FORM based). Each of the web apps are configured to use the same security realm in their deployment descriptors (web.xml), and the same security domain in the JBoss specific deployment descriptor (jboss-web.xml). Each web app requires me to authenticate independently though - is there anything in particular I need to do to get single sign-on working ? I am using JBoss 3.0.3 (with Jetty bundled) with JDK 1.4.1 on Windows XP. Any help appreciated. Gavin. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] RE: many-many CMR relationships for JBoss with XDoclet 1.1.2
Sorry - please ignore this question - I should have searched the mailing list archive properly - I found that there is an undocumented "@jboss:relation-table" tag... @jboss:relation-table table-name="table" create-table="true" remove-table="false" pk-constraint="true" -Original Message- From: Gavin Hughes Sent: Tuesday, 1 October 2002 9:17 AM To: '[EMAIL PROTECTED]' Subject: many-many CMR relationships for JBoss with XDoclet 1.1.2 Hi, Can anyone explain to me how many-many relationships are defined for JBoss using XDoclet 1.1.2 ? I can see how this is done for Weblogic (using @weblogic:relation), but the @jboss:relation tag doesn't appear to allow the mapping table name to be specified - so I don't see how a many-many relationship can be defined for JBoss. Any pointers would be much appreciated. Gavin. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] many-many CMR relationships for JBoss with XDoclet 1.1.2
Hi, Can anyone explain to me how many-many relationships are defined for JBoss using XDoclet 1.1.2 ? I can see how this is done for Weblogic (using @weblogic:relation), but the @jboss:relation tag doesn't appear to allow the mapping table name to be specified - so I don't see how a many-many relationship can be defined for JBoss. Any pointers would be much appreciated. Gavin. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] many-many CMR relationships for JBoss with XDoclet 1.1.2
Hi, Can anyone explain to me how many-many relationships are defined for JBoss using XDoclet 1.1.2 ? I can see how this is done for Weblogic (using @weblogic:relation), but the @jboss:relation tag doesn't appear to allow the mapping table name to be specified - so I don't see how a many-many relationship can be defined for JBoss. Any pointers would be much appreciated. Gavin. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Problem with ejbRemove
Hi, I was wondering if anyone can give me any idea why ejbRemove would fail to work. I have a small application which I've just migrated from JBoss3.0.0 to JBoss3.0.2 - everything works fine, except for deleting an entity - ejbRemove() executes without complaint, however the entity is not deleted from the database. I've turned tracing on and get absolutely no output in the section where ejbRemove is called (see the console output below) - as all other database related calls show the SQL that is being executed, I suspect that the container isn't implementing ejbRemove() for me - does anyone have any suggestions as to why this would happen ? I've defined the ejbRemove method in the bean, and the method that calls it has a transaction defined (transaction type "Required"). I'm running JBoss3.0.2, Xdoclet 1.1.2, JDK1.4.0 on Windows XP - this behaviour occurs with both Oracle9i and Hypersonic SQL. Any suggestions would be greatly appreciated, as I'm completely confused as to what is happening... Console output : 17:18:48,562 DEBUG [DeleteAddressServlet] DeleteAddressServlet: service: start 17:18:48,562 DEBUG [CommonDelegate] CommonDelegate: constructor: getting commonManagerHome 17:18:48,562 DEBUG [CommonDelegate] CommonDelegate: constructor: getting finderHome 17:18:48,562 DEBUG [DeleteAddressServlet] DeleteAddressServlet: service: deleting address : 96 17:18:48,562 DEBUG [CommonManagerBean] CommonManagerBean: deleteAddress: start 17:18:48,577 INFO [LocalTxConnectionManager] getManagedConnection returning unassociated connection 17:18:48,577 INFO [LocalTxConnectionManager$LocalConnectionEventListener] enlisting currenttx: TransactionImpl:XidImpl [FormatId=257, GlobalId=nrma-drspsvj3cv/ /34, BranchQual=], cel: org.jboss.resource.connectionmanager.LocalTxConnectionManager$LocalConne ctionEventListener@4aa2db 17:18:48,577 DEBUG [findByPrimaryKey] Executing SQL: SELECT id FROM ADDRESS WHERE id=? 17:18:48,593 INFO [LocalTxConnectionManager$LocalConnectionEventListener] enlisting currenttx: TransactionImpl:XidImpl [FormatId=257, GlobalId=nrma-drspsvj3cv//34, BranchQual=], cel: org.jboss.resource.connectionmanager.LocalTxConnectionManager$LocalConne ctionEventListener@4aa2db 17:18:48,593 DEBUG [common/Address] Executing SQL: SELECT propertyName, propertyNumber, street, postcode, city, region, creationDate, modificationDate, version FROM ADDRESS WHERE (id=?) 17:18:48,593 DEBUG [CommonManagerBean] CommonManagerBean: deleteAddress: calling delete for address : 96 17:18:48,609 DEBUG [AddressBean] AddressBean : delete: start 17:18:48,609 DEBUG [AddressBean] AddressBean : delete: calling this.ejbRemove for 96 17:18:48,609 DEBUG [AddressBean] AddressBean : ejbRemove: called 17:18:48,609 DEBUG [AddressBean] AddressBean : delete: end 17:18:48,609 DEBUG [CommonManagerBean] CommonManagerBean: deleteAddress: complete 17:18:48,609 DEBUG [DeleteAddressServlet] DeleteAddressServlet: service: getting dispatcher for JSP page 17:18:48,609 DEBUG [DeleteAddressServlet] DeleteAddressServlet: service: forwarding to JSP page 17:18:48,624 DEBUG [DeleteAddressServlet] DeleteAddressServlet: service: end Relevant snippets from AddressBean : /** * Deletes this entity and any dependent objects. * * @ejb:interface-method view-type="both" * @ejb:transaction type="Required" */ public void delete() throws RemoveException { debug("delete: start "); // delete entity debug("delete: calling this.ejbRemove for " + getId()); this.ejbRemove(); debug("delete: end "); } public void ejbRemove() throws javax.ejb.RemoveException { debug("ejbRemove: called"); } --- This SF.NET email is sponsored by: AMD - Your access to the experts on Hammer Technology! Open Source & Linux Developers, register now for the AMD Developer Symposium. Code: EX8664 http://www.developwithamd.com/developerlab ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Chaining login modules
Title: Chaining login modules I'm trying to set up a chain of login modules to support authenticating users accessing a web application. I can get the UsersRolesLoginModule to work fine, but I'm now trying to chain this with the DatabaseServerLoginModule, with little success. If I attempt to login with user credentials for a user stored in the properties files for UsersRolesLoginModule, I get an exception from the DatabaseServerLoginModule. Vice versa, if I attempt to login with user credentials for a user stored in the database for DatabaseServerLoginModule , I get an exception from the UsersRolesLoginModule. The relevant section from login-conf.xml is : flag = "sufficient"> java:/OracleDS select Password from Principals where PrincipalId=? select Role, RoleGroup from Roles where PrincipalId=? nobody flag = "sufficient" > users.properties roles.properties nobody >From the documentation, I'm under the impression that setting "flag=sufficient" for each login module means that if a login module succeeds, then authentication is successful, otherwise the next login module in the chain is called. Is this correct ? Can someone point out what is wrong in the configuration above ? I'm using JBoss3.0.0, XDoclet 1.1.2 and Oracle 9i on Windows XP. Thanks, Gavin.
RE: [JBoss-user] (Retry) Problem with findByPrimaryKey
Title: (Retry) Problem with findByPrimaryKey The problem turned out to be that I wasn’t specifying the primkey-field attribute in the XDoclet @ejb:bean tag. So the generated descriptors had this empty, hence the “missing expression” in the SQL being passed to Oracle. I guess it would be nice if JBoss complained loudly about this when the EJB jar is deployed. Thanks for the answers all. -Original Message- From: Sebastien CHAUSSON [mailto:[EMAIL PROTECTED]] Sent: Friday, 6 September 2002 5:01 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] (Retry) Problem with findByPrimaryKey How do you call this finder ? - Original Message - From: Gavin Hughes To: [EMAIL PROTECTED] Sent: Friday, September 06, 2002 6:26 AM Subject: [JBoss-user] (Retry) Problem with findByPrimaryKey Hi, I’m getting the following error when calling the default finder “findByPrimaryKey” for a CMP entity bean. javax.ejb.FinderException: Find failed: java.sql.SQLException: ORA-00936: missing expression Can anyone explain what this means and how I can fix it ? I’m using JBoss3.0.0, XDoclet 1.1.2 and Oracle 9i on Windows XP. I haven’t done any explicit definition of this finder or any other finder in my Bean class – other than XDoclet generating a findByPrimaryKey method in the Home interface. Thanks, Gavin.
RE: [JBoss-user] 2 Quick Question - Xerces 2 & Oracle 9i
I've got Jboss 3.0.0 using oracle 9i as the CMP datastore. I just followed the instructions in the Getting Started guide, using the default configuration provided for Oracle in Jboss3.0.0/docs/examples/jca/oracle-service.xml. You need to add part of this to login-conf.xml and the rest to jboss-service.xml, as described in the comments in the file. -Original Message- From: Michael Stanley [mailto:[EMAIL PROTECTED]] Sent: Friday, 6 September 2002 1:56 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] 2 Quick Question - Xerces 2 & Oracle 9i Has anyone had any luck setting up Jboss to use Xerces v2 as their default XML parser? Has anyone set up Oracle 9i DB as the default data store for CMP beans? Seeking sample configuration ... Thanks in advance. -- --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] (Retry) Problem with findByPrimaryKey
Title: (Retry) Problem with findByPrimaryKey Hi, I’m getting the following error when calling the default finder “findByPrimaryKey” for a CMP entity bean. javax.ejb.FinderException: Find failed: java.sql.SQLException: ORA-00936: missing expression Can anyone explain what this means and how I can fix it ? I’m using JBoss3.0.0, XDoclet 1.1.2 and Oracle 9i on Windows XP. I haven’t done any explicit definition of this finder or any other finder in my Bean class – other than XDoclet generating a findByPrimaryKey method in the Home interface. Thanks, Gavin.
[JBoss-user] Test
Title: Test
[JBoss-user] Problem with findByPrimaryKey
Title: Problem with findByPrimaryKey Hi, I’m getting the following error when calling the default finder “findByPrimaryKey” for a CMP entity bean. javax.ejb.FinderException: Find failed: java.sql.SQLException: ORA-00936: missing expression Can anyone explain what this means and how I can fix it ? I’m using JBoss3.0.0, XDoclet 1.1.2 and Oracle 9i on Windows XP. I haven’t done any explicit definition of this finder or any other finder in my Bean class – other than XDoclet generating a findByPrimaryKey method in the Home interface. Thanks, Gavin.