[EJB/JBoss] - Error when logging inside EJB s
by MmarcoM
hi all,
i am having troubles iwth logging with jboss 4.0.4.GA..
I have deployed (successfully) few EJBs in an .ear file on jboss-4.0.4
all my ejbs and web action classes use log4j for logging (i have my own log4j.properties file).
what happens is that whenever i run my application, log is fine on the web, but whenever i call an ejb, the console hangs giving me back this message
| ERROR: invalid console appender config detected, console stream is looping
|
in one of ejbs, i have tried to replace log4j with System.err callls and it works just fine..
since my logger works in my web project, i have excluded it from being cause of probblems.
So, the trouble is that i cannt do logging in my ejbs... can anyone tell me why?
are there any settings i need to modify?
can anyone help?
thanks in advance and regards
marco
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975098#3975098
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975098
19 years, 2 months
[Beginners Corner] - Axis.war can't deploy in a .ear
by peb_jboss
Hi,
I try to deploy the axis.war into my ear, the Jboss version is: 4.0.2.
The application.xml contains the following lines:
<web-uri>axis.war</web-uri>
<context-root>axis</context-root>
the structure of the EAR:
META-INF (with application.xml)
TestBean.jar
axis.war (with my webservice in WEB-INF/lib) the axis version is: 1.2.1
lib (with required libraries)
if jboss starts, the following exception is thrown:
17:27:52,770 ERROR [MainDeployer] Could not initialise deployment: file:/C:/jboss-4.0.2/server/all/deploy/myApplication.ear
org.jboss.deployment.DeploymentException: Failed to find module file: axis.war
at org.jboss.deployment.EARDeployer.init(EARDeployer.java:244)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:828)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:765)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
at sun.reflect.GeneratedMethodAccessor18.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:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy8.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:325)
at
I'm thankful for all tips
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975096#3975096
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975096
19 years, 2 months
[Management, JMX/JBoss] - failed to start web module
by fuzebest
I have web module dependant on MBean (plain mbean, not JBoss Service)
with jboss-web.xml like
| <jboss-web>
| <class-loading>
| <loader-repository>dot.com:loader=MyLoader</loader-repository>
| </class-loading>
|
| <depends>my.service.dot.com:service=MyService</depends>
| </jboss-web>
|
upon redeployment of referenced MBean a got
| java.lang.NullPointerException
| at org.jboss.web.WebModule.startModule(WebModule.java:82)
| at org.jboss.web.WebModule.startService(WebModule.java:61)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| 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: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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| ......
|
If web module undeployed, and then deployed again everything works fine.
How can i fix this?
JBoss is 4.0.4.GA
Sar dependant on this mbean works just fine
Thank you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975093#3975093
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975093
19 years, 2 months