[jboss-user] [JBoss Tools (users)] - Seam hot-deploy feature + JBoss Tools - possible?
Hello I'm using Eclipse w/JBoss Tools as my primary development platform, and our application is being developed with the help of Seam. One issue I have is that I can't find a way to take advantage of Seams hot deployment feature from Eclipse in any way. For this to work with seam, it requires that my compiled java classes is deployed to WEB-INF/dev/ instead of WEB-INF/classes/, and I can't find a way to change where the files are put. I've been snooping around in the Eclipse .settings files too without seeing any obvious way here, anybody successfully made this work? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4179454#4179454 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4179454 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: One PersistenceUnit, multiple DataSources
So, I think I figured out a solution that works for me. In my persistence.xml in my original application EAR, I removed the jar-references and instead added this; | mapping-filepersistence-mapping-file.xml/mapping-file | Then, in the persistence.jar within the EAR, I added the persistence-mapping-file.xml containing this; | ?xml version=1.0 encoding=UTF-8 ? | entity-mappings xmlns=http://java.sun.com/xml/ns/persistence/orm; | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; | xsi:schemaLocation=http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd; | version=1.0 | | packagemyproject.entities/package | | entity class=myproject.entities.FooEntity name=FooEntity / | entity class=myproject.entities.BarEntity name=BarEntity / | | /entity-mappings | Then I just refer to the same file within the persistence.xmls I deploy in my webapp-EARs and that works more or less as I want. Does seem like a bit non-standard use of the mapping-file from what I could gather from reading some forums and stuff - but hey, it works. And it's good enough. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4019868#4019868 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4019868 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Using container authentication (j_security_check) and having
Hi! I've run into a bit of a problem here which I've tried to solve by myself but I can't seem to find the appropriate solution. What I've set up so far is a web app configured with form authentication - that in turn uses my application policy in login-config.xml to provide JAAS authentication into the webapp. I need this to have some security in the ejb-beans the webapp will consume, and as of now this is working properly as long as I have some restricted content configured in web.xml that I can use to force Tomcat to show the configured login form. Now, my problem is that this webapp is not supposed to demand the user to log in. Rather, logging in is optional and will only provide you with some extra features. I also need to have a login form present on each page, and this becomes troublesome as it isn't possible to make a custom form on a unrestricted page post to j_security_check it seems (that gives the error HTTP Status 400 - Invalid direct reference to form login page). So - basicly - I have the authentication stuff up and running, but I don't want any restricted resources in my webapp. I just want to be able to provide the user with the option to log in (without having to go to a new page to log in, but rather use a login form present on each page), and still be able to use the same authentication methods as I would have using j_security_check. Is there any way to accomplish this? Any input would be appreciated! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4019278#4019278 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4019278 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user