Re: [JBoss-user] Farm drops app on redeploy
To Jeff Schnitzer As I see it, you have an EAR deployer that you want to make dependant on your datasource? I've just tried editing my conf/jboss-service.xml, before it was: Now it's: jboss.jca:service=LocalTxCM,name=DefaultDS Not that I've had any troubles before - but imho this should have the effect that your EAR deployer depends on your datasource (this way you make a dependancy from "conf/" into "deploy/" - which might not be that nice - but that's just aesthetics). From my feeble attempts it seems to have the correct effect on my system - but that might just be coincidental. I haven't played that much around with this setup, but one effect might be that if you edit the xml for your datasource, and hence redeploy your connection pool, then your EAR deployer gets redeployed, and with it, all your EAR's Jakob PS: so you're the guy to talk to for all us europeans that can get the Sims Online Beta test CD shipped over the pond?! (just kidding) Jakob Dalsgaard Udvikler e-mail: [EMAIL PROTECTED] Vesterbrogade 149 1620 København V Tlf.: 70 25 80 30 Fax.: 70 25 80 31 "Schnitzer, Jeff" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 10/08/02 05:08 AM Please respond to jboss-user To: <[EMAIL PROTECTED]> cc: Subject: [JBoss-user] Farm drops app on redeploy Hi! I have a JBoss (3.0.2/tomcat 4.0.4) cluster (right now just 2 machines) which is farmed. For the most part, farming works (although it seems to like to pick up my EAR before the oracle-service.xml which provides the data source), but I just started experiencing a peculiar bit of behavior. A normal deploy from scratch farms out my EAR just fine; it's picked up by both JBoss instances and all is well. If I redeploy the application, it installs to both instances and then is immediately removed from both instances (!) What may have something to do with this is that my app now takes a long time (a couple minutes) to load and initialize. Back when it was almost instantaneous, I didn't notice this problem. Is there something I can do about this? Also, is there some way of forcing my EAR to deploy _after_ my oracle-service.xml? Thanks, Jeff Schnitzer [EMAIL PROTECTED] (JBoss is finding its way into The Sims Online :-) --- 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] problems deploying with DatabaseServerLoginModule, java.lang.SecurityException, principal=null
To anyone who can help me. I am trying to use the DatabaseServerLoginModul to authenticate people in my web application against some database tables; but miles before I got this far, I got this Exception: 13:13:20,438 ERROR [EjbModule] Initialization failed java.lang.SecurityException: Invalid authentication attempt, principal=null at org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubject(BaseConnectionManager2.java:662) at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:503) at org.jboss.resource.adapter.jdbc.local.LocalDataSource.getConnection(LocalDataSource.java:101) at org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.fixTableName(SQLUtil.java:38) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.(JDBCEntityBridge.java:103) . When trying to deploy my ear-file. I have created a new application-policy with the lines: java:/MyDS select password from user where userid=? select role, null from user,userrole where userrole.iduser = user.id and user.userid=? The MyDS is specified in the deploy/hsqldb-service.xml file and works fine with my ear. In my ear application I am _not_ using the "JakobsPolicy" - I've set the securitydomain to "java:/jaas/other" - and I have a hard time finding that much documentation on the whole application-policy / authentication issues (Jboss.org seems to be under semi-serious rebuilt :-). If I leave out the aboe application-policy, my application is being deployed fine - using the "other" authencation, default install using users.properties and roles.properties - and I've verified that it works. I then add the above lines to make a "JakobsPolicy" and everything starts to fail. Shall I make another datasource for the login-module to use? Could the problem be that the DatabaseServerLoginModule is not authenticating itself to the Datasource? I've tried to specify "optional" instead of "required" as flag to the login-module - with no luck :-( I hope someone can help me out - or at least give me some documentation links! Jakob Dalsgaard Udvikler e-mail: [EMAIL PROTECTED] Vesterbrogade 149 1620 København V Tlf.: 70 25 80 30 Fax.: 70 25 80 31
[JBoss-user] newbie question about CMR and permissions
To the Jboss-User list I am trying to use CMR in Jboss 3.0RC2 and RC3 with Xdoclet generated CMPs and Stateless session beans - and it works fine when I have no security domain, and run my web application without authentication and the such. But when I add authentication to my webapp (form based, restricted access to a subpart of the webapp) -- I suddenly cannot access the getters that model the relation ships. If for example a Category can have many Subcategories, then called: category.getSubcategories (), gives me an error saying that I have not set any permissions on the "getRelatedID()" method (or maybe it was "getRelatedIds()") -- I have no knowledge of this method - maybe it's in the generated proxy classes? -- using Xdoclet I have specified "unchecked="true"" on Bean level as well as on method level. I have no idea whether this is a J2EE question, whether it is a JBOSS question - but I would like to know if there is any special settings for CMR concerning permissions and security and whether anyone has any experience with it?! If it's just me being stupid - pls. tell me so Jakob Dalsgaard Udvikler e-mail: [EMAIL PROTECTED] Vesterbrogade 149 1620 København V Tlf.: 70 25 80 30 Fax.: 70 25 80 31