Showing posts with label deploy. Show all posts
Showing posts with label deploy. Show all posts

Mar 19, 2014

Debug in eclipse with remote web application on tomcat

First ,

Solution is for ubuntu 13.10 but it's the same for all linux as well as windows.
(On windows you just need to change the export)

export JPDA_ADDRESS=8888

Next, run the catalina.sh

./catalina.sh jpda run



That's it.


From eclipse, go to Run->Debug configuration -> select the Remote Java Application -> Add new
don't change anything except the port with the above port.
Select the web project in my case.

And debug.

Dor


Nov 23, 2010

SRVE0255E: A WebGroup/Virtual Host to handle /mytest has not been defined.

Hi,
Check that all of your EAR's or WAR's deployed because it's seems that one of them
is missing, that was my problem regard this issue.
Dor

JBoss deployment sequence

I have found two possible ways of changing jboss deployment sequence. If you know more, share with us.
  1. Edit "org.jboss.deployment.MainDeployer-xmbean.xml" file, which can be foundon "jbossdirectory\server\default\conf\xmdesc" directory. Inside the file you have a line like this "100:deployer,100:deployer.xml,200:sar,200:service.xml,300:rar,300:ds.xml,500:jar,600:war,600:wsr,600:ear,700:zip,900:last"This section defines the priority or sequence of *.sar for example before *.rar. You can switch between *.sar to be 700 for example and it will run after deploying the war. I would use it only for test environment but not for deployment or release. Choosing this option for my opinion is not a good design.
  2. In case you have a jboss service like i did as a "SAR" file, you can add a dependency tags into the "jboss-service.xml" file. For example: jboss:service=invoker,type=jrmp
Have a good day,
Dor

JBoss deployment sequence

I have found two possible ways of changing jboss deployment sequence. If you know more, share with us.
  1. Edit "org.jboss.deployment.MainDeployer-xmbean.xml" file, which can be foundon "jbossdirectory\server\default\conf\xmdesc" directory. Inside the file you have a line like this "100:deployer,100:deployer.xml,200:sar,200:service.xml,300:rar,300:ds.xml,500:jar,600:war,600:wsr,600:ear,700:zip,900:last"This section defines the priority or sequence of *.sar for example before *.rar. You can switch between *.sar to be 700 for example and it will run after deploying the war. I would use it only for test environment but not for deployment or release. Choosing this option for my opinion is not a good design.
  2. In case you have a jboss service like i did as a "SAR" file, you can add a dependency tags into the "jboss-service.xml" file. For example: jboss:service=invoker,type=jrmp
Have a good day,
Dor