[Beginner's Corner] - Installed JBoss 4.2.3.GA but can't get my server started
by mkanters
Hi, I'm new to Linux and to JBoss but need to learn how to manage a JBoss server.
I've downloaded and installed JBoss 4.2.3.GA but can't get it to start when I execute run.sh (from in the jboss/bin folder). Here's my current system specs:
Fedora
Release 11(Leonidas)
Kernel Linux 2.6.30.5-43.fc11.x86_64
GNOME 2.26.3
I've tried using Java 1.5 and 1.6 (am currently trying 1.5 because that's what we code in at work).
All software is the 64 bit version.
I've researched the error below and found very few weblinks (google only returned about a dozen) and none of them have helped. I've tried:
- various versions of Java
- making sure that all users have total access to both the java and jboss folders
- making sure my symbolic java link is fully accessible to all users (it points to the java file under the jre sub-folder of the 1.5 JDK)
The one suggestion I don't know how to implement is to make sure my host file is properly configured for my computer name. I will greatly appreciate any help anyone can offer. The error I receive is:
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /opt/jboss-4.2.3.GA
JAVA: java
JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true
CLASSPATH: /opt/jboss-4.2.3.GA/bin/run.jar
=========================================================================
20:57:09,869 INFO [Server] Starting JBoss (MX MicroKernel)...
20:57:09,870 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)
20:57:09,871 INFO [Server] Home Dir: /opt/jboss-4.2.3.GA
20:57:09,871 INFO [Server] Home URL: file:/opt/jboss-4.2.3.GA/
20:57:09,872 INFO [Server] Patch URL: null
20:57:09,872 INFO [Server] Server Name: default
20:57:09,872 INFO [Server] Server Home Dir: /opt/jboss-4.2.3.GA/server/default
20:57:09,872 INFO [Server] Server Home URL: file:/opt/jboss-4.2.3.GA/server/default/
20:57:09,872 INFO [Server] Server Log Dir: /opt/jboss-4.2.3.GA/server/default/log
20:57:09,872 INFO [Server] Server Temp Dir: /opt/jboss-4.2.3.GA/server/default/tmp
20:57:09,873 INFO [Server] Root Deployment Filename: jboss-service.xml
20:57:10,473 INFO [ServerInfo] Java version: 1.5.0_18,Sun Microsystems Inc.
20:57:10,473 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 1.5.0_18-b02,Sun Microsystems Inc.
20:57:10,473 INFO [ServerInfo] OS-System: Linux 2.6.30.5-43.fc11.x86_64,amd64
20:57:10,745 INFO [Server] Core system initialized
20:57:13,202 WARN [BasicMBeanRegistry] javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@7cf01771)]
20:57:13,233 ERROR [MainDeployer] Could not create deployment: file:/opt/jboss-4.2.3.GA/server/default/conf/jboss-service.xml
org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
at org.jboss.system.ServiceController.install(ServiceController.java:226)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
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: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 $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:251)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
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:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:1 42)
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: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(Thread.java:595)
Caused by: java.lang.reflect.InvocationTargetException
at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1451)
at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1350)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:345)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
... 36 more
Caused by: javax.management.MBeanException
at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180 )
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:1 42)
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:659)
at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1417)
... 41 more
Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@7cf01771)]
at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:713)
at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
at sun.reflect.GeneratedMethodAccessor1.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:155)
... 51 more
Caused by: java.lang.RuntimeException: Exception creating identity: mkanters: mkanters
at org.jboss.remoting.ident.Identity.get(Identity.java:211)
at org.jboss.remoting.network.NetworkRegistry.preRegister(NetworkRegistry.java:268)
at org.jboss.mx.server.AbstractMBeanInvoker.invokePreRegister(AbstractMBeanInvoker.java:966)
at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:489)
at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:654)
at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)
... 56 more
20:57:13,303 INFO [Server] Runtime shutdown hook called, forceHalt: true
20:57:13,304 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
20:57:13,308 INFO [Server] Shutdown complete
Shutdown complete
Halting VM
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254949#4254949
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254949
15 years, 4 months
[JBoss AOP Users] - Re: Jboss AOP maven plugin problems.
by ruado
After trying one day, I discovered one strange thing about the jbossaop maven plugin.When I commented out
| <aoppaths>
| <aoppath>${project.build.outputDirectory}/jboss-aop.xml</aoppath>
| </aoppaths> in pom, both of the jbossaop:compile and jbossaop:run goal didn't use the jboss-aop.xml file at src/main/resources as the default value of aoppaths property.
Here are the debug output:
anonymous wrote :
| [DEBUG]Configuring mojo 'org.jboss.maven.plugins:maven-jbossaop-plugin:2.1.3.GA:run' -->
| [DEBUG] (f) aoppaths = []
| [DEBUG] (f) executable = demo.simple.Driver
| [DEBUG] (f) includeProjectDependency = false
| [DEBUG] (f) loadtime = true
| [DEBUG] (f) pluginArtifacts = [org.codehaus.plexus:plexus-utils:jar:1.4.9:runtime, org.apache.maven.plugins:maven-surefire-plugin:jar:2.4:runtime, org.apache.maven.surefire:surefire-booter:jar:2.4:runtime, org.apache.maven.surefire:surefire-api:jar:2.4:runtime, org.jboss.aop:jboss-aop:jar:2.1.3.GA:runtime, org.apache.ant:ant:jar:1.7.0:runtime, org.apache.ant:ant-launcher:jar:1.7.0:runtime, javassist:javassist:jar:3.10.0.GA:runtime, org.jboss:jboss-reflect:jar:2.0.2.GA:runtime, org.jboss.logging:jboss-logging-spi:jar:2.0.5.GA:runtime, org.jboss:jboss-common-core:jar:2.2.11.GA:runtime, org.jboss:jboss-mdr:jar:2.0.1.GA:runtime, trove:trove:jar:2.1.1:runtime, org.jboss.logging:jboss-logging-log4j:jar:2.0.5.GA:runtime, org.apache.maven:maven-plugin-api:jar:2.0.9:runtime, org.apache.maven:maven-project:jar:2.0.9:runtime]
| [DEBUG] (f) project = MavenProject: org.jboss.aop:constructor-execution:1.0.0 @ /home/ruado/NetBeansProjects/simple/pom.xml
| [DEBUG] (f) verbose = false
| [DEBUG]-- end configuration --
| [jbossaop:run]
| [DEBUG]Executing aop: /bin/sh -c "cd /home/ruado/NetBeansProjects/simple/target/classes && java -javaagent:/home/ruado/.m2/repository/org/jboss/aop/jboss-aop/2.1.3.GA/jboss-aop-2.1.3.GA.jar -cp /home/ruado/.m2/repository/org/jboss/aop/jboss-aop/2.1.3.GA/jboss-aop-2.1.3.GA.jar:/home/ruado/.m2/repository/javassist/javassist/3.10.0.GA/javassist-3.10.0.GA.jar:/home/ruado/.m2/repository/org/jboss/jboss-reflect/2.0.2.GA/jboss-reflect-2.0.2.GA.jar:/home/ruado/.m2/repository/org/jboss/logging/jboss-logging-spi/2.0.5.GA/jboss-logging-spi-2.0.5.GA.jar:/home/ruado/.m2/repository/org/jboss/jboss-common-core/2.2.11.GA/jboss-common-core-2.2.11.GA.jar:/home/ruado/.m2/repository/org/jboss/jboss-mdr/2.0.1.GA/jboss-mdr-2.0.1.GA.jar:/home/ruado/.m2/repository/trove/trove/2.1.1/trove-2.1.1.jar:/home/ruado/.m2/repository/org/jboss/logging/jboss-logging-log4j/2.0.5.GA/jboss-logging-log4j-2.0.5.GA.jar:/home/ruado/NetBeansProjects/simple/target/classes -Djboss.aop.verbose=false demo.simple.Driv!
er"
| --- new POJO(); ---
| empty constructor
| --- new POJO(String); ---
| String constructor
| --- new POJO(int); ---
| int constructor
|
Any idea about this problem?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254943#4254943
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254943
15 years, 4 months
[Beginner's Corner] - Connection handle has been closed and is unusable
by wabania
i am using jboss4.0.5. recently , the log comes up such error frequently:
connection handle has been closed and is unusable query.
i have checked my code and correct one error which have not closed the connection,but after that ,the error still going on.
can anybody help me, thank you very much!
private static DataSource ds;
static {
readJRunOracleDSInfo();
Context initContext = new InitialContext();
Context envContext = (Context)initContext.lookup("java:/comp/env");
ds = (DataSource)envContext.lookup("IBASDB");
}
} else {
try {
Class.forName(jdbcDriver);
} catch (Exception exp) {
logger.error(exp);
}
}
}
public Connection getConnection() throws SQLException {
logger.debug(">>>getConnection()");
if (dbConn == null) {
try {
dbConn = newConnection();
} catch (Exception e) {
logger.error(e);
e.printStackTrace();
//throw e;
}
}
logger.debug("<<<getConnection()");
return dbConn;
}
public Connection newConnection() throws SQLException {
Connection conn = null;
if (jdbcDriver != null) {
try {
conn = DriverManager.getConnection(jdbcUrl, jdbcUser, jdbcPass);
} catch (Exception exp) {
logger.error(exp);
}
} else {
conn = ds.getConnection();
}
return conn;
}
public void closeConnection() throws SQLException {
logger.debug(">>>closeConnection()");
if (!transactionStarted) {
try {
DbUtils.close(dbConn);
} catch (SQLException e) {
logger.error(e);
throw e;
}
dbConn = null;
}
}
10:28:46,983 ERROR [DbHelper] java.sql.SQLException: Connection handle has been closed and is unusable Query: qpay_budget_maintain_pck.prc_check_button_status Parameters: [1493, 23991, 96, 30]
10:28:46,983 DEBUG [Session] >>>closeConnection()
10:28:46,983 DEBUG [Session] <<<closeConnection()
10:28:46,983 ERROR [STDERR] java.sql.SQLException: Connection handle has been closed and is unusable Query: qpay_budget_maintain_pck.prc_check_button_status Parameters: [1493, 23991, 96, 30]
10:28:46,983 ERROR [STDERR] at com.pccw.commons.database.BaseCaller.rethrow(BaseCaller.java(Compiled Code))
10:28:46,983 ERROR [STDERR] at com.pccw.commons.database.ProcCaller.query(ProcCaller.java(Compiled Code))
10:28:46,983 ERROR [STDERR] at com.pccw.commons.database.BaseCaller.query(BaseCaller.java(Inlined Compiled Code))
10:28:46,983 ERROR [STDERR] at com.pccw.commons.database.DbHelper.runProcQuery(DbHelper.java(Compiled Code))
10:28:46,983 ERROR [STDERR] at com.pccw.payroll.global.common.impl.ButtonDAOImpl.checkButtonAvailable(ButtonDAOImpl.java:64)
10:28:46,983 ERROR [STDERR] at com.pccw.payroll.global.common.action.ButtonAction.checkButtonAvailable(ButtonAction.java:93)
10:28:46,983 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor219.invoke(Unknown Source)
10:28:46,983 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
10:28:46,983 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
10:28:46,983 ERROR [STDERR] at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270)
10:28:46,983 ERROR [STDERR] at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)
10:28:46,983 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
10:28:46,983 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
10:28:46,983 ERROR [STDERR] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
10:28:46,983 ERROR [STDERR] at com.pccw.eHR.workflow.WorkflowActionServlet.process(WorkflowActionServlet.java:15)
10:28:46,983 ERROR [STDERR] at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
10:28:46,983 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
10:28:46,984 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
10:28:46,984 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java(Compiled Code))
10:28:46,984 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java(Compiled Code))
10:28:46,984 ERROR [STDERR] at com.pccw.hades.framework.filter.LoginFilter.doFilter(LoginFilter.java(Compiled Code))
10:28:46,984 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java(Compiled Code))
10:28:46,984 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java(Compiled Code))
10:28:46,984 ERROR [STDERR] at com.pccw.hades.framework.filter.DynamicPasswordFilter.doFilter(DynamicPasswordFilter.java(Compiled Code))
10:28:46,984 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java(Compiled Code))
10:28:46,984 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java(Compiled Code))
10:28:46,984 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java(Compiled Code))
10:28:46,984 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java(Compiled Code))
10:28:46,984 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java(Compiled Code))
10:28:46,984 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java(Compiled Code))
10:28:46,984 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java(Compiled Code))
10:28:46,984 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java(Compiled Code))
10:28:46,984 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java(Compiled Code))
10:28:46,984 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java(Compiled Code))
10:28:46,984 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java(Compiled Code))
10:28:46,984 ERROR [STDERR] at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java(Compiled Code))
10:28:46,984 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java(Compiled Code))
10:28:46,984 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java(Compiled Code))
10:28:46,984 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java(Compiled Code))
10:28:46,984 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
10:28:46,984 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
10:28:46,984 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
10:28:46,984 ERROR [STDERR] at java.lang.Thread.run(Thread.java:570)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254924#4254924
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254924
15 years, 4 months