[JBoss Tools (users)] - Re: upgrade to WTP 2.0.2 breaks EAR deployment in JBoss Tool
by donatasc
I have stumbled upon this bug too. IMHO putting libraries as modules into application.xml breaks Java EE specification compatibility.
Java EE 5 specification (page 152) defines four module types: web, ejb, application client and resource adapter. Libraries, commonly used in ejb and/or web modules may be placed in ear file, but they *are not* modules.
Libraries should be dealt this way (Java EE 5 specification page 167):
...
c. A directory named lib is considered to be the library directory, as described in Section EE.8.2.1, âÂÂBundled Libraries.âÂÂ
d.For all files in the application package with a filename extension of .jar, but not contained in the lib directory, do the following:
i. If the JAR file contains a META-INF/MANIFEST.MF file with a Main-Class attribute, or contains a META-INF/application-client.xml file, consider the JAR file to be an application client module.
ii. If the JAR file contains a META-INF/ejb-jar.xml file, or contains any class with an EJB component annotation (Stateless, etc.), consider the JAR file to be an EJB module.
iii. All other JAR files are ignored unless referenced by a JAR file discovered above using one of the JAR file reference mechanisms such as the Class-Path header in a manifest file.
If deleting tags "modules" with libraries solves the issue, this means, that bug is not with WTP, but with JBoss Tools implementation. Libraries must not be placed within tags "module".
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137060#4137060
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137060
18 years, 1 month
[Installation, Configuration & DEPLOYMENT] - Re: JBoss and Postgres on 2 machines
by mglowacki
hi, i have taken thread dump when jboss became not responsible (I have used JMeter to simulate stress) and I have plenty of
13:23:26"http-0.0.0.0-8100-9" daemon prio=6 tid=0x604a1800 nid=0x1db4 in Object.wait() [
0x5d1cf000..0x5d1cfc98]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x1f9f96a8> (a org.apache.tomcat.util.net.MasterSlaveWorke
rThread)
at java.lang.Object.wait(Object.java:485)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.await(MasterSlaveW
orkerThread.java:81)
- locked <0x1f9f96a8> (a org.apache.tomcat.util.net.MasterSlaveWorkerThr
ead)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
kerThread.java:107)
at java.lang.Thread.run(Thread.java:619)
Guess I have to use remote debugger to find out why threads start to wait and probably block each other?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137033#4137033
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137033
18 years, 1 month
[JBoss jBPM] - Deploy jbpm-console into jboss-4.2.1.GA
by jagr
I have been using jbpm-jpdl-3.2.2 with eclipse plugin designer, and server that it's on the distribution.
I've changed embedded hypersonic database to mysql database, and I've been working succefully.
Now I want to deploy my process to another jboss as.
When I want test my process, only go to deployment tab on eclipse designer and write on fields:
server name:localhost
server port: 8080
Server Deployer: /jbpm/upload
then, I press "Deploy Process Archive". Deploy runs ok, and i can check the process at http://localhost:8080/jbpm-console
Now I want to deploy my process into another jboss AS that it's on another server. jboss is jboss-4.2.1.GA.
I try to deploy process using eclipse designer with
server name: 192.168.1.201 (ip of server with jbosss running)
server port: 8080
Server Deployer: /jbpm/upload
but Exceptions is thrown
| An exception happened while testing the server connection.
| Reason
| An unexpected exception caused the test connection operation to fail.
| >>Details
| http://192.168.1.201:8080/jbpm/upload
|
I've readed that to deploy processo to jboss 4.2.X, on WEBINF/lib dir on jbpm-console.war only should contain:
commons-fileupload.jar
commons-io.jar
gravel.jar
jbpm4jsf.jar
jbpm-identity.jar
jbpm-jpdl.jar
jsf-facelets.jar
Then I 've tried to copy jbpm-console.war that runs ok into my server to jboss-4.2.1.GA and configure WEBINF/lib only with correct jars.
When jboss-4.2.1.GA try to deploy war, large exception is thrown on jboss console.
Sombody knows how to deploy processdefinitioninto another jboss AS?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137032#4137032
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137032
18 years, 1 month
[JBoss Tools (users)] - Using Subclipse with SeamGen'd projects
by mikeeprice
Is anybody using Subclipse with their SeamGen'd projects? Are there some files that shouldn't be checked in when the projects are initally checked in?
Of course when I check the projects out on another machine some of the lib paths and Jre path don't match up so I just delete those and replace them appropriately but then subversion flags the project as being out of sync with the repository.
Also I had a project get flagged as out of sync and I didn't know why. It turned out to be that a file - /.settings/org.jbosstools.jst.web.xml had changed. I know nothing about this file and I am not sure I want to update it to the repository. I looked at it and lot of entries were added to it for jar files with complete path specifications, i.e starting with F:/. So I imagine that would cause problems if I check it out on another machine that doesn't even have an F:.
How would I even know what I should check in or not check in when I do the initial check in?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137029#4137029
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137029
18 years, 1 month