[Installation, Configuration & DEPLOYMENT] - Problems starting jboss on linux when using -b
by QBQ
Hi,
I'm running SUSE Linux Enterprise Server 10 SP2 - 2.6.16.60-0.34 with an instance of JBoss AS 5.0.0.GA. When I was running as root I could run jboss with the -b command, but now that I run su jboss it runs fine until I add the binding param.
Error Trace:
| 2009-04-28 13:47:41,472 DEBUG [org.jboss.invocation.iiop.IIOPInvoker] (main) Starting jboss:service=invoker,type=iiop
| 2009-04-28 13:47:41,502 DEBUG [org.jnp.interfaces.TimedSocketFactory] (main) createSocket, hostAddr: localhost/127.0.0.1, port: 1099, localAddr: null, localPort: 0, timeout: 0
| 2009-04-28 13:47:41,506 DEBUG [org.jnp.interfaces.NamingContext] (main) Failed to connect to localhost:1099
| javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]
| at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:311)
| at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1698)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:680)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
| at org.jboss.util.naming.Util.createSubcontext(Util.java:70)
| at org.jboss.util.naming.Util.rebind(Util.java:130)
| at org.jboss.util.naming.Util.rebind(Util.java:117)
| at org.jboss.invocation.iiop.IIOPInvoker.startService(IIOPInvoker.java:228)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
| at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
| at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)
| at $Proxy36.start(Unknown Source)
| at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
| at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
| at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
| at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
| at org.jboss.system.ServiceController.start(ServiceController.java:460)
| at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
| at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
| at org.jboss.Main.boot(Main.java:209)
| at org.jboss.Main$1.run(Main.java:547)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]
| at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:281)
| ... 60 more
| Caused by: java.net.ConnectException: Connection refused
| at java.net.PlainSocketImpl.socketConnect(Native Method)
| at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
| at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
| at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
| at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
| at java.net.Socket.connect(Socket.java:520)
| at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:97)
| at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:82)
| at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:277)
| ... 60 more
|
|
My start command is
| $JBOSS_HOME/bin/run.sh -c all -b atl1335 -Djava.net.preferIPv4Stack=true -Djboss.messaging.serverPeerId=1
|
I found the suggestion for prefer ipv4 stack from this thread: http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4121889 but it still fails with and without this setting.
our hosts file minus our ip:
| 127.0.0.1 localhost
|
| # special IPv6 addresses
| ::1 localhost ipv6-localhost ipv6-loopback
|
| fe00::0 ipv6-localnet
|
| ff00::0 ipv6-mcastprefix
| ff02::1 ipv6-allnodes
| ff02::2 ipv6-allrouters
| ff02::3 ipv6-allhosts
| *.*.*.* atl1335.abc atl1335
|
|
I've tried chmod 645 and 777 on /etc/hosts with no luck. I've also tried using the ip instead of atl1335
What other suggestions can I try to get the -b part working? Please let me know if you need more info to help.
Thanks!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227320#4227320
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227320
16 years, 12 months
[Beginners Corner] - Re: trouble with greeter example...
by Meghiddo
BTW, when I restart the tomcat server I get the followin, hopefully it will provide needed insight because I realize there isnt much info to go on here, I just dont knwo what else to post to help figure this out:
Apr 28, 2009 2:09:21 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:greeter' did not find a matching property.
Apr 28, 2009 2:09:21 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\
Apr 28, 2009 2:09:21 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
Apr 28, 2009 2:09:21 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 324 ms
Apr 28, 2009 2:09:21 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Apr 28, 2009 2:09:21 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Apr 28, 2009 2:09:22 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class com.sun.faces.config.ConfigureListener
java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3786)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Apr 28, 2009 2:09:22 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Apr 28, 2009 2:09:22 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Apr 28, 2009 2:09:22 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/greeter] startup failed due to previous errors
Apr 28, 2009 2:09:22 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-80
Apr 28, 2009 2:09:22 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Apr 28, 2009 2:09:22 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16 config=null
Apr 28, 2009 2:09:22 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 315 ms
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227314#4227314
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227314
16 years, 12 months
[Beginners Corner] - trouble with greeter example...
by Meghiddo
Hi all, Im very new to most of this, I won a design challenge at my school so now Im working on a real project for a company, so I have been having to teach myself all kinds of new things. I have been joking that I have taught myself more in the last two months thans I have learned in the last two semesters, and its really kind of true. On to my problem -
I did everything I was supposed to do in order to see the greeter sample app. I am getting no compile errors or warnings (eclipse ide). However when I try to go to http://localhost/Greeter/index.jsf I get this:
type Status report
message /Greeter/index.jsf
description The requested resource (/Greeter/index.jsf) is not available.
I dont know what the problem is. I have added the project to my tomcat server and restarted the server, so that isn't the problem. And I have changed the port in tomcat to 80, so I know that isnt the problem. I have other projects that I can access just fine, there is just somethign about this one that is not working. I have no idea what to try now, its really frustrating. Any ideas will be appreciated
thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227311#4227311
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227311
16 years, 12 months
[JBoss Tools (users)] - Problem with Ejb3PropertyGetAnnotation.ftl
by pouncilt
Hello,
I have an error while trying to run the hibernate tools plugin 3.2.4GA-R200903141626-H5 for eclipse when I run the <hbm2java> tag in my hibernatetools ant script. I believe the plugin I have does not have the method defined for the Cfg2HbmTool class. However when I check out the source code for the project from subversion; which is located under tags/TOOLS_3_2_4_GA, the isOneToOne() method is defined for the Cfg2HbmTool class.
Since I have the source of the Hibernate Tools, I would like to rebuild the code from the source. Is there any instruction on how to do this?
Is there a way to plugin in a new version of the Cfg2HbmTool class during the reverse engineering process?
How do I ensure that the version 3.2.4GA-R200903141626-H5 I have has the correct class with the correct methods?
I've commented out the lines associated with the call to the c2h.isOneToOne call and all works find, However I am not sure it the generated class is correct.
See error msg below.
Any help is appreciated!
Thanks!
Tonté
[hibernatetool] An exception occurred while running exporter #2:generic exporterclass: org.hibernate.tool.hbm2x.MyPOJOExportertemplate: Pojo.ftl
| [hibernatetool] To get the full stack trace run ant with -verbose
| [hibernatetool] org.hibernate.tool.hbm2x.ExporterException: Error while processing Entity: com.aviall.edi.jedi.persistence.core.models.generated.Person with template Pojo.ftl
| [hibernatetool] freemarker.core.InvalidReferenceException: Expression c2h.isOneToOne is undefined on line 11, column 14 in freemarker-templates/pojo/Ejb3PropertyGetAnnotation.ftl.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227307#4227307
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227307
16 years, 12 months