[JBoss and NetBeans] - NetBeans 6.1 & JBoss 5.0.0CR1 doesn't run
by nightnic
Hello,
I'm using NetBeans from JDK 5.0 Update 16 bundle and trying to run a web application for JBoss version 5.0.0CR1. The web application is created by wizard and no functionality is added. I try to run it as it is.
When I press run button, IDE builds the project says "Starting JBoss Application Server" and remains in this state indefinitely. Log file of NetBeans contains the following:
anonymous wrote :
| Failed to initalize plugin: org.jboss.logging.log4j.Log4jLoggerPlugin@1bdd094, cause: org/apache/log4j/LogManager
| Failed to initalize plugin: org.jboss.logging.log4j.Log4jLoggerPlugin@1c514a7, cause: org/apache/log4j/LogManager
| INFO [org.netbeans.modules.j2ee.deployment.impl.ServerInstance]: DebuggerInfo cannot be found for: JBoss Application Server
| Failed to initalize plugin: org.jboss.logging.log4j.Log4jLoggerPlugin@adf14, cause: org/apache/log4j/LogManager
| Failed to initalize plugin: org.jboss.logging.log4j.Log4jLoggerPlugin@db5354, cause: org/apache/log4j/LogManager
| INFO [org.netbeans.modules.j2ee.deployment.impl.ProgressObjectUtil]
| java.lang.InterruptedException
| at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:926)
| at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1201)
| at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:245)
| [catch] at org.netbeans.modules.j2ee.deployment.impl.ProgressObjectUtil.trackProgressObject(ProgressObjectUtil.java:107)
| at org.netbeans.modules.j2ee.deployment.impl.ServerInstance._start(ServerInstance.java:1295)
| at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1251)
| at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1062)
| at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.start(ServerInstance.java:939)
| at org.netbeans.modules.j2ee.deployment.impl.TargetServer.startTargets(TargetServer.java:428)
| at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:143)
| at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104)
| at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
| at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
| at org.apache.tools.ant.Task.perform(Task.java:348)
| at org.apache.tools.ant.Target.execute(Target.java:357)
| at org.apache.tools.ant.Target.performTasks(Target.java:385)
| at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
| at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
| at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
| at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
| at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
| at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
| at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
| INFO [global]
| org.netbeans.modules.j2ee.deployment.impl.ServerException: Starting JBoss Application Server
| at org.netbeans.modules.j2ee.deployment.impl.ServerInstance._start(ServerInstance.java:1297)
| at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1251)
| at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1062)
| at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.start(ServerInstance.java:939)
| at org.netbeans.modules.j2ee.deployment.impl.TargetServer.startTargets(TargetServer.java:428)
| [catch] at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:143)
| at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104)
| at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
| at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
| at org.apache.tools.ant.Task.perform(Task.java:348)
| at org.apache.tools.ant.Target.execute(Target.java:357)
| at org.apache.tools.ant.Target.performTasks(Target.java:385)
| at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
| at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
| at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
| at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
| at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
| at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
| at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
| Failed to initalize plugin: org.jboss.logging.log4j.Log4jLoggerPlugin@1eaed4b, cause: org/apache/log4j/LogManager
| Failed to initalize plugin: org.jboss.logging.log4j.Log4jLoggerPlugin@111735e, cause: org/apache/log4j/LogManager
| INFO [org.netbeans.modules.j2ee.deployment.impl.ServerInstance]: DebuggerInfo cannot be found for: JBoss Application Server
| Failed to initalize plugin: org.jboss.logging.log4j.Log4jLoggerPlugin@1f5d5ea, cause: org/apache/log4j/LogManager
| Failed to initalize plugin: org.jboss.logging.log4j.Log4jLoggerPlugin@c43f00, cause: org/apache/log4j/LogManager
|
When run outside IDE, JBoss starts ok. In case this error due to incompatible JBoss version, please let me know, which is the latest one which works good with NetBeans 6.1.
Product Version: NetBeans IDE 6.1 (Build 200805300101)
Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-b02
No other JRE in the system, never was one.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165921#4165921
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165921
17 years, 9 months
[Installation, Configuration & DEPLOYMENT] - Re: Annoyance with EARs and .properties file
by sil
Sure thing. This is from an XML file in our WAR. This is what we do to load it:
<bean id="propertyConfigurer"
| class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
| <property name="location" value="classpath:some.properties" />
| </bean>
This is how we read something from it (where some.datasource is an entry in there):
<jndi:jndi-lookup id="dataSource" jndi-name="${some.datasource}"/>
Additionally, in a seperate XML file associated with our core JAR, we use:
<util:properties id="someProps" location="classpath:some.properties" />
to which someProps is referenced a bunch throughout various .java files as it is tied to the bean entries for the Java classes. The information inside is referenced in other ways, but those are the only two places where we make mention of some.properties.
I should note that I was not the one who initially wrote what is going on, so I am not too keen on the path things are taking. I am just the one who gets to port it from Weblogic to JBoss and try to get it to run on both with minimal config changes.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165909#4165909
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165909
17 years, 9 months