-
1. Re: Unable to deploy EAR using TWIDDLE
peterj Mar 3, 2010 1:48 PM (in response to rpatel1)Your twiddle command looks correct. What happens if you deploy the EAR manullay (that is, copy it to the deploy directory)? -
2. Re: Unable to deploy EAR using TWIDDLE
rpatel1 Mar 3, 2010 1:50 PM (in response to peterj)Hi,
Thanks for your reply.
When we manually deploy the ear using HD or thru admin console (thru add new resource), it works fine except it doesnot explode the .war file inside .ear file. Also in HD mode, I dont know how to deploy the .ear file in exploded mode.
It seems all mystery which gets resolved in this forum. Documentation is not good enough to suss the issue.
regards
Raj
-
3. Re: Unable to deploy EAR using TWIDDLE
peterj Mar 3, 2010 2:13 PM (in response to rpatel1)It is an EAR archive file, and not a directory, correct?
And the JBoss AS can access the file given that URL? Based on yoru twiuddle command, JBoss AS is running on a server name ko-sled10. The file you gave it, /home/rpatel/riskwrite-5.6.17-pNOV001446.ear, is on that server?
-
4. Re: Unable to deploy EAR using TWIDDLE
rpatel1 Mar 3, 2010 2:14 PM (in response to peterj)Absolutely yes.
regards
Raj
-
5. Re: Unable to deploy EAR using TWIDDLE
rpatel1 Mar 4, 2010 9:30 AM (in response to rpatel1)Hi,
Please provide me some help in this regard..
regards
Raj
-
6. Re: Unable to deploy EAR using TWIDDLE
peterj Mar 4, 2010 11:10 AM (in response to rpatel1)Sorry, but I have though of everything that I could ask to try to find the root cause. At this point it looks like someone has to debug what is going on when the EAR is deployed in this way, and I don't have the time to try this. Maybe someone else will have some thoughts? -
7. Re: Unable to deploy EAR using TWIDDLE
jaikiran Mar 5, 2010 4:45 AM (in response to rpatel1)rpatel@salmon.com wrote:
Hi,
I am using the below Twiddle command to deploy ear file.
ko-sled10:/opt/JBoss/jboss-5.1.0.GA/bin # ./twiddle.sh -s ko-sled10 invoke "jboss.system:service=MainDeployer" deploy "file:///home/rpatel/riskwrite-5.6.17-pNOV001446.ear"
'null'
But after running the command, it prints NULL on the screen. In the server logfile, it prints:
2010-03-03 12:58:09,578 INFO [org.jboss.deployment.MainDeployer] (RMI TCP Connection(528)-192.168.216.39) deploy, url=file:/home/rpatel/riskwrite-5.6.17-pNOV001446.ear
It does not do anything after that.I just gave a quick try against my AS 5.1.0. Works fine. I too receive that "null" message on the twiddle prompt. But the deployment of the .ear takes place fine on the server side. Are you worried about that "null" message or are you worried that you don't see any logs on the server side? Absence of log does not always mean that the deployment failed. It might be just a logging configuration issue. Have you tried accessing your application after the twiddle command completes? Also have you tried deploying your application manually outside of the twiddle command? Do you see any difference?
-
8. Re: Unable to deploy EAR using TWIDDLE
rpatel1 Mar 5, 2010 5:10 AM (in response to jaikiran)Hi,
Yesterday evening, I tried twiddle again and it gave me loadonstartup error, which proved that deployment using twiddle does work and after fixing the loadon startup error as per your last advice it went on but gave some error, which are application specific errors. We need to fix that and then I think it will work.
However I wasnt able to figure out to do exploded deployment using twiddle.
regards
Raj
-
9. Re: Unable to deploy EAR using TWIDDLE
peterj Mar 5, 2010 2:21 PM (in response to rpatel1)You cannot do exploded development through twiddle. The deployer mbean allows only archive files to be passed to the deploy operation.