How to install JBoss with MyEclipse IDE? I am having problems
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I am trying to install JBoss with MyEclipse and downloaded JBoss 4.22 to C:\jboss-4.2.2.GA and set the JBOSS_HOME environment variable to the same directory and then clicked on Windows->Preferences->Servers and set the enable server with the same JBOss_home and server name to JBoss 4.2.2-localhost. I clicked on servers and run for JBoss server to run and I get this error.
jboss: unused non-option argument: 4.2.2-localhost
08:46:50,855 INFO [Server] Starting JBoss (MX MicroKernel)...
08:46:50,856 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)
08:46:50,858 INFO [Server] Home Dir: C:\jboss-4.2.2.GA
08:46:50,866 INFO [Server] Home URL: file:/C:/jboss-4.2.2.GA/
08:46:50,867 INFO [Server] Patch URL: null
08:46:50,867 INFO [Server] Server Name: JBoss
08:46:50,867 INFO [Server] Server Home Dir: C:\jboss-4.2.2.GA\server\JBoss
08:46:50,867 INFO [Server] Server Home URL: file:/C:/jboss-4.2.2.GA/server/JBoss/
08:46:50,867 INFO [Server] Server Log Dir: C:\jboss-4.2.2.GA\server\JBoss\log
08:46:50,868 INFO [Server] Server Temp Dir: C:\jboss-4.2.2.GA\server\JBoss\tmp
08:46:50,868 INFO [Server] Root Deployment Filename: jboss-service.xml
08:46:51,322 INFO [ServerInfo] Java version: 1.5.0_11,Sun Microsystems Inc.
08:46:51,322 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_11-b03,Sun Microsystems Inc.
08:46:51,322 INFO [ServerInfo] OS-System: Windows Vista 6.0,x86
08:46:51,614 INFO [Server] Core system initialized
Failed to boot JBoss:
08:46:51,633 INFO [Server] Runtime shutdown hook called, forceHalt: true
08:46:51,634 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
org.jboss.deployment.DeploymentException: url file:/C:/jboss-4.2.2.GA/server/JBoss/conf/jboss-service.xml could not be opened, does it exist?
at org.jboss.deployment.DeploymentInfo.<init>(DeploymentInfo.java:214)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:781)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Unknown Source)
08:46:51,639 INFO [Server] Shutdown complete
Shutdown complete
Halting VM
I checked to see if jboss-service.xml existed and it is there in the right directory. Should I run the run.bat file from the command line? If so, how to do it. When I do that nothing happens. Please help me with the installation.
Thanks,
Vidya
[ June 13, 2008: Message edited by: Vidya Moorthy ]
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
file:/C:/jboss-4.2.2.GA/server/JBoss/conf/jboss-service.xml
Did you create the "JBoss" folder under C:/jboss-4.2.2.GA/server? Because, a clean installation of JBoss does not have that folder.
To start JBoss from the command prompt, you can use the run.bat file:
If you are trying to start the "default" profile then use:
If you want to start the profile which you created, then use:
And for details about the -b option with 4.2.2 version of JBoss, see this
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Thank you so much for the help. After creating the folder, the problem was solved. I can't believe that I overlooked that conf folder not being under JBoss folder. The server started but there are some java.net.socketExceptions. It doesn't look like major problems. I'll paste the message below. I am downloading the jems installer now for configuring JBoss with a GUI tool. Will that help me in correcting this?
Thanks in advance
Vidya
[Edited by Jaikiran, to remove some lines from the log for better formatting of the post]
[ June 13, 2008: Message edited by: Vidya Moorthy ]
[ June 30, 2008: Message edited by: Jaikiran Pai ]
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Originally posted by Vidya Moorthy:
The server started but there are some java.net.socketExceptions. It doesn't look like major problems. I'll paste the message below. I am downloading the jems installer now for configuring JBoss with a GUI tool. Will that help me in correcting this?
I would recommend not to use the JEMS installer for installing JBoss. There are many issues reported against it. The WARN messages you see are because you have made your server cluster aware. I guess you created the JBoss profile by copying the "all" profile. If you don't need clustering you can create the JBoss profile by copying the "default" profile.
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I am so sorry for thanking you so late. Only today, I saw your message and redid the whole installation accordingly and it is working. I can't thank you enough!
I am trying to deploy an existing application which seems to work well with MyEclipse Tomcat. I get the index page displayed. If I remove that from Tomcat Server and redeploy the package in JBoss 4.2.2 server, it doesn't work! I am sure that I am missing something. Could you please tell me what is wrong?
I pointed the browser to http://localhost:8080/StrutsDatabase/ and here is the console information for the server startup.
Thanks again
Vidya
[ June 30, 2008: Message edited by: Vidya Moorthy ]
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Looking at the logs, i don't see your application being deployed. You will have to place the war file (StrutsDatabase.war) in C:\vidya\jboss-4.2.0.GA\jboss-4.2.0.GA\server\JBoss\deploy folder, for the application to be deployed. Have you done that?
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
In tomcat you can just Copy/Paste the folder. But for JBoss you'll need to deploy your ear/war file.
- Padmarag Lokhande
SCJP5 - http://blog.padmarag.com
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
MyEclipse was deploying it to JBoss 4.2 under servers whereas JBoss is deplying it under JBoss which is also under servers. I copied a test.war from JBoss 4.2/deploy to JBoss/deploy and it is working fine. When I do the same to my StrutsDatabase, I get the binding exception posted below. It looks like my DB jndi name is jdbc/TestDB. How could I change the jndi datasource name for JBoss server? Is this the one causing the problem?
Thanks in advance
Vidya
[ July 01, 2008: Message edited by: Vidya Moorthy ]
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
By the way, the logs dont show that your datasource is being deployed. Have you configured the datasource through a *-ds.xml file and placed it in the deploy folder?
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
No, I didn't do that. How do I do that?
Vidya
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Originally posted by Vidya Moorthy:
How do I do that?
You can find the examples in %JBOSS_HOME%\docs\examples\jca folder. The datasource filename has to end with -ds.xml and has to be placed in the deploy folder. See this too for advanced datasource configurations.
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
[ July 15, 2008: Message edited by: Vidya Moorthy ]
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
The hibernate part of the application is working now. I was trying to add struts 2 jar files and a simple action and jsp to the project. When I did that, I got an exception. Now, it doesn't even let me deploy the project. Could you please help me with the error? Sorry for troubling you so many times!
Thanks in advance
Vidya
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork has already been loaded by bean
Looks like you are deploying the same bean more than once through some xml file.
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Thanks for the quick response. I deleted the file at this location.
Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork has already been loaded by bean - jar:file:/C:/vidya/jboss-4.2.0.GA/jboss-4.2.0.GA/server/JBoss/tmp/deploy/tmp56674struts2-core-2.0.11.2.jar!/struts-default.xml:30:72
and then redeployed. But I kept getting messages about how the file could not be redeployed and it asked me to start and stop the server in myeclipse. I deployed it manually. But even before I did that, there was a red x on my project and this started only after I added struts files and jar files. Now, I have deleted all my struts files and jars and still that is there. After my manual redployment, this is the error message which I get. Please shed some light on this! Thanks again.
Vidya
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Caused by: java.lang.SecurityException: SHA1 digest error for javax/mail/SecuritySupport12.class
If you have 'mail.jar' and 'activation.jar' in your webapp's WEB-INF/lib, this Exception can be thrown.
Just remove all mail.jar and activation.jar from your webapp's WEB-INF/lib, JBoss already has 'mail.jar' and 'activation.jar' in some version, and they are loaded at server startup.
Regards, Rene Larsen
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Thanks. I deleted mail.jar from WEB-INF/lib and removed it from the build path too. When I try to deploy now, this is what I get.
Deployment failure on JBoss 4.x. Could not copy all resources to C:\vidya\jboss-4.2.0.GA\jboss-4.2.0.GA\server\JBoss\deploy\InnowixCustomer.war. If a file is locked, you can wait until the lock times out to redeploy, or stop the server and redeploy, or manually remove the deployment at C:\vidya\jboss-4.2.0.GA\jboss-4.2.0.GA\server\JBoss\deploy\InnowixCustomer.war. Looks like some file is locked and my project itself still shows a red x meaning there is an error in the project itself.
Thanks in advance
Vidya
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Originally posted by Vidya Moorthy:
If a file is locked, you can wait until the lock times out to redeploy, or stop the server and redeploy, or manually remove the deployment at C:\vidya\jboss-4.2.0.GA\jboss-4.2.0.GA\server\JBoss\deploy\InnowixCustomer.war.
Have you tried what the error says?? and did it work??
Originally posted by Vidya Moorthy:
[...] and my project itself still shows a red x meaning there is an error in the project itself.
What do the error say in eclipse's 'Problems' view??
Regards, Rene Larsen
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Thanks for your response. It didn't work when I tried that suggestion. When I checked the problems after seeing your response, it says that the project is missing a hibernate jar file. I'll add that and let you know how it works tommorrow since I am just leaving.
Thanks,
Vidya
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Thanks,
Vidya
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
This happens only if I turn off my pc and start it again. Otherwise, the jar files are fine in the library.
Can it get any weirder!
Thanks
Vidya
| Would anybody like some fudge? I made it an hour ago. And it goes well with a tiny ad ... The new gardening playing cards kickstarter is now live! https://www.kickstarter.com/projects/paulwheaton/garden-cards |








