[JBoss Tools (users)] - Re: How does -test project reference dependent libraries?
by cpopetz
There are two issues here, both of which may be too specific to more complicated EAR deployments to be worth fixing in the projects that jboss tools generates in its wizard.
(1) I'm using junit rather than testng, because the latter's output leaves much to be desired, and we have testing tools that work with junit's xml output. Junit respects the "Exported" checkbox set in the the "Order and Export" section of the Java Build Path. Testng must not. Because if I don't check to export the EAR directories to dependent projects in the build path for the WAR, then the tests running from the test project don't find the ear directories. The jboss tools don't check this box by default.
(2) I have an EJB that depends on Utility jars in the Ear. The EJB lists those in its Manifest.MF. The WAR _doesn't_ list those in its Manifest.MF, because it doesn't need them, and it is sometimes packaged in a different EAR without those libs present. Now, in order to have the test project find the libs on the classpath in order to test the EJB module, I have to include those utility libs in the MANIFEST.MF of the WAR, so that they get picked up by the test project. Does that make sense?
So I guess what I'd like to see: The test project is testing dependent EJB modules and the WAR module. The latter both pick up Utility Jar dependencies through Manifest.MF and EarContent, via that whizzy "EAR Libraries" thing. It would be nice if the test project did that as well.
I'm new to the WST tools; for the past couple years they were too broken to really use, in my opinion. So perhaps the above comments reflect my own ignorance of how to best use these tools to manage dependencies between projects.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139109#4139109
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139109
18 years
[JBoss jBPM] - HTTP Status 403 - Access to the requested resource has been
by wootenator
I have recently purchased the book by Matt Cumberlidge titled "Business Process Management with JBoss jBPM". The book has a good demo that you build while learning about jBPM called "Bland Records".
The book directs you to download jpdl3.2.GA, jdk 1.5_09 and eclipse 3.2.
I downloaded jpdl3.2.2 suite, which includes a JBoss 4.0.4 app server.
I also have JDK 1.5 and eclipse 3.3.
All of the steps of building the app as described in the book work fine. I generate the forms from the task nodes in the process definition. I see the xhtml files generated and have inspected and compared to that in the book and it is the same jsf source code. The book provides sql scripts that set up the users in the Hypersonic database. This all runs correctly.
Then the book says to deploy to the JBoss server and this part seems go correctly. I test the connection to the server and that returns correctly. But when I try to log in as the user specified I get the tomcat server exception listed in the subject line.
Hoping that someone might provide me a hint of where to look to see what may be causing this. It seems like it may be a permissions setting in the JBoss config. Any suggestions or additional questions would be appreciated. I have written a simple application using jBPM and am quite familiar with the server side components thanks to some useful tips from this forum in the past.
Would also be interested in any other tutorials or links that show how to deploy jBPM generated forms to the JBoss app server.
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139103#4139103
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139103
18 years