[Beginners Corner] - Error when starting Jboss after deploying jbossws
by kgreen169
I just installed jboss 4.2.3 and deployed jbossws-native-3.0.5.GA. When I start jboss by calling %JBOSS_HOME%/bin/run I get multiple errors. I did try one thing since it looks like some jar files are not in the classpath. I copied jaxb_api.jar, jboss-jaxrpc.jar, jboss-jaxws.jar, jboss-saaj.jar from client to lib/endorsed (or maybe the other way around) because I read that some where.
Anyway if you could look at these error and let me know if you know what the problem is, I would much appreciate it. I just took a few lines from each error.
thanks for your time Kay
|
| 2009-01-27 04:37:40,283 ERROR [org.jboss.deployment.MainDeployer] Could not initialise deployment: file:/C:/jboss/jboss-4.2.3.GA/server/default/deploy/jbossws.sar/
| java.lang.NoClassDefFoundError: javax/ejb/Stateless
| at org.jboss.ejb3.EJB3Util.isStateless(EJB3Util.java:42)
| at org.jboss.ejb3.EJB3Deployer.hasEjbAnnotation(EJB3Deployer.java:219)
| at org.jboss.ejb3.EJB3Deployer.accepts(EJB3Deployer.java:271)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
|
|
|
| 2009-01-27 04:37:43,548 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Using session cookies default setting
| 2009-01-27 04:37:44,006 ERROR [org.apache.tomcat.util.modeler.Registry] Null component jboss.web:type=JspMonitor,name=jsp,WebModule=//localhost/,J2EEApplication=none,J2EEServer=none
| 2009-01-27 04:37:44,011 ERROR [org.apache.tomcat.util.modeler.BaseModelMBean] Exception invoking method addChild
| java.lang.NoClassDefFoundError: javax/annotation/Resource
| at org.apache.catalina.startup.WebAnnotationSet.loadClassAnnotation(WebAnnotationSet.java:158)
| at
|
| at java.lang.Thread.run(Thread.java:595)
| 2009-01-27 04:37:44,477 ERROR [org.apache.tomcat.util.modeler.BaseModelMBean] Exception invoking method init
| javax.management.RuntimeErrorException: Error invoking method addChild
| at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:307)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at
|
| 2009-01-27 04:37:45,353 ERROR [org.jboss.deployment.MainDeployer] Could not start deployment: file:/C:/jboss/jboss-4.2.3.GA/server/default/deploy/jboss-web.deployer/ROOT.war/
| org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.management.RuntimeOperationsException: Exception invoking method init)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:384)
| at org.jboss.web.WebModule.startModule(WebModule.java:83)
| at org.jboss.web.WebModule.startService(WebModule.java:61)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at
|
| 2009-01-27 04:37:45,804 ERROR [org.jboss.deployment.MainDeployer] DeploymentException while trying to deploy a package with a new deployer
| org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.management.RuntimeOperationsException: Exception invoking method init)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:384)
| at org.jboss.web.WebModule.startModule(WebModule.java:83)
| at org.jboss.web.WebModule.startService(WebModule.java:61)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org
|
| 2009-01-27 04:37:46,346 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Using session cookies default setting
| 2009-01-27 04:37:46,428 ERROR [org.apache.tomcat.util.modeler.Registry] Null component jboss.web:type=JspMonitor,name=jsp,WebModule=//localhost/invoker,J2EEApplication=none,J2EEServer=none
| 2009-01-27 04:37:46,432 ERROR [org.apache.tomcat.util.modeler.BaseModelMBean] Exception invoking method addChild
| java.lang.NoClassDefFoundError: javax/annotation/Resource
| at org.apache.catalina.startup.WebAnnotationSet.loadClassAnnotation(WebAnnotationSet.java:158)
| at org.apache.catalina.startup.WebAnnotationSet.loadApplicationListenerAnnotations(WebAnnotationSet.java:73)
| at
|
| 2009-01-27 04:37:46,844 ERROR [org.apache.tomcat.util.modeler.BaseModelMBean] Exception invoking method init
| javax.management.RuntimeErrorException: Error invoking method addChild
| at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:307)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at
|
| 2009-01-27 04:37:47,732 ERROR [org.jboss.deployment.MainDeployer] Could not start deployment: file:/C:/jboss/jboss-4.2.3.GA/server/default/deploy/http-invoker.sar/invoker.war/
| org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.management.RuntimeOperationsException: Exception invoking method init)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:384)
| at org.jboss.web.WebModule.startModule(WebModule.java:83)
| 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.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.
|
| 2009-01-27 04:37:48,698 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Using session cookies default setting
| 2009-01-27 04:37:48,780 ERROR [org.apache.tomcat.util.modeler.Registry] Null component jboss.web:type=JspMonitor,name=jsp,WebModule=//localhost/jbossmq-httpil,J2EEApplication=none,J2EEServer=none
| 2009-01-27 04:37:48,896 ERROR [org.apache.tomcat.util.modeler.BaseModelMBean] Exception invoking method addChild
| java.lang.NoClassDefFoundError: javax/annotation/Resource
| at org.apache.catalina.startup.WebAnnotationSet.loadClassAnnotation(WebAnnotationSet.java:158)
| at
|
| 009-01-27 04:37:51,271 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Using session cookies default setting
| 2009-01-27 04:37:51,490 ERROR [org.apache.tomcat.util.modeler.Registry] Null component jboss.web:type=JspMonitor,name=jsp,WebModule=//localhost/juddi,J2EEApplication=none,J2EEServer=none
| 2009-01-27 04:37:51,494 ERROR [org.apache.tomcat.util.modeler.BaseModelMBean] Exception invoking method addChild
| java.lang.NoClassDefFoundError: javax/annotation/Resource
| at org.apache.catalina.startup.WebAnnotationSet.loadClassAnnotation(WebAnnotationSet.java:158)
| at
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205117#4205117
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205117
17 years, 2 months
[Persistence, JBoss/CMP, Hibernate, Database] - JBoss 4.2.3GA and Oracle 11g
by wecucho
Hi, i have two enviroments for working, the devel enviroment where i have a JBoss 4.2.3 and Oracle 10g, in this enviroment i have develop an application with entities, beans, etc and all works fine, but in the producction enviroment where i have Oracle 11g, when i try to deploy my app there i get the Exception about the unsupported version (major version [11]) for this Oracle, so, i already know that the hibernate that comes with 4.2.3GA does not support this Oracle, the problem is that i don't know which jars i have to replace, version, locations, etc.
Can anyone help me with this ? i already try with the hibernate3.jar thats comes in hibernate 3.2.4sp1 but other missing class comes in new exception, and i even know if this is helping..
Any help will be appreciated :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205115#4205115
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205115
17 years, 2 months
[JBoss Tools (users)] - Re: FreeMarker IDE Hangs Consistently
by kaliatech
Cool. I'll create the report in JIRA. I started looking through the code in SVN. I haven't done Eclipse plugin dev in a long time, and can't take the time to learn/setup a plugin dev environment right now. Maybe in a week or so.
Just looking through code in SVN trunk though, I doesn't look like the label images used in the tree are ever being disposed. The ImageManager creates the image here:
public static Image getImage(String filename) {
| if (null == filename) return null;
| ImageDescriptor temp = getImageDescriptor(filename);
| if(null!=temp) {
| return temp.createImage();
| } else {
| return null;
| }
| }
They get used in OutlineLabelProvider here:
public Image getImage(Object anElement) {
| if (null == anElement)
| return null;
| if (anElement instanceof Item) {
| return ImageManager.getImage(((Item) anElement).getTreeImage());
| }
| else {
| return null;
| }
| }
And from what I can see, they are never disposed. My guess is that the outline labels are reconstructed quite often, and so more and more images get created but never disposed.
Assuming SWT images are immutable and can be reused, the fix could be as simple as modifying OutlineLabelProvider to cache the images in a map by filename. Then, making sure they are reused on every call to the provider. (Should also dispose them when the OutlineLabelProvider is disposed, but if the images are being reused, it probably doesn't matter much.)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205103#4205103
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205103
17 years, 2 months
[EJB 3.0] - Re: Ejb3 - MDB
by rudreshtcs
Hi,
I had build it using the Eclipse IDE, usually i do it with that (export as EJB project)
This time i used the build scripts as given in the tutor. the errors are same
Class:org.jboss.tutorial.interceptor.bean.EmailSystem
17:53:08,784 INFO [JBossASKernel] jndi:EmailSystemBean/remote-org.jboss.tutorial.interceptor.bean.EmailSystem
17:53:08,784 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=jboss-ejb3-tutorial-interceptor.jar,name=EmailSystemBean,service=EJB3) to KernelDeployment of: jboss-ejb3-tutorial-interceptor.jar
17:53:08,941 INFO [EJBContainer] STARTED EJB: org.jboss.tutorial.interceptor.bean.AccountsMDB ejbName: AccountsMDB
17:53:09,050 WARN [JmsActivation] Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@35025a(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter(a)d7244e destination=queue/tutorial/accounts destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5)
javax.naming.NameNotFoundException: queue not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
STARTED EJB: org.jboss.tutorial.interceptor.bean.EmailMDB ejbName: EmailMDB
17:53:09,316 WARN [JmsActivation] Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@1e1401(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter(a)d7244e destination=queue/tutorial/email destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5)
javax.naming.NameNotFoundException: queue not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205100#4205100
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205100
17 years, 2 months
[Beginners Corner] - How to configure XA Datasource for JBoss 4.2.2 and Postgres?
by allapetrova
I am on JBoss 4.2.2 and I need to configure XA Datasource for Postgres.
Here is exempt from my postgres-ds.xml
| <datasources>
| <xa-datasource>
| <jndi-name>DefaultDS</jndi-name>
| <connection-url>jdbc:postgresql://some_url/ecommdb</connection-url>
| <driver-class>org.postgresql.Driver</driver-class>
| <user-name>some_name</user-name>
| <password>foo</password>
|
| <!-- sql to call when connection is created -->
| <new-connection-sql>select count(*) from status</new-connection-sql>
|
| <!-- sql to call on an existing pooled connection when it is obtained from pool -->
| <check-valid-connection-sql>select count(*) from status</check-valid-connection-sql>
|
| <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
| <metadata>
| <type-mapping>PostgreSQL 7.2</type-mapping>
| </metadata>
| </xa-datasource>
| ......
| </datasources>
But when I try connecting to this database I get the following exception:
anonymous wrote : Caused by: org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: No XADataSourceClass supplied!)
| at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.createManagedConnection(XAManagedConnectionFactory.java:144)
| at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:577)
| at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:262)
| at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:500)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:341)
| at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:315)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:396)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
| ... 84 more
What did I miss?
Thanks in advance for any help you can give.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205095#4205095
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205095
17 years, 2 months
[Datasource Configuration] - How to configure XA Datasource correctly? Getting org.jboss.
by allapetrova
I am on JBoss 4.2.2 and I need to configure XA Datasource for Postgres.
Here is exempt from my postgres-ds.xml
<datasources>
| <xa-datasource>
| <jndi-name>DefaultDS</jndi-name>
| <connection-url>jdbc:postgresql://some_url/ecommdb</connection-url>
| <driver-class>org.postgresql.Driver</driver-class>
| <user-name>some_name</user-name>
| <password>foo</password>
|
| <!-- sql to call when connection is created -->
| <new-connection-sql>select count(*) from status</new-connection-sql>
|
| <!-- sql to call on an existing pooled connection when it is obtained from pool -->
| <check-valid-connection-sql>select count(*) from status</check-valid-connection-sql>
|
| <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
| <metadata>
| <type-mapping>PostgreSQL 7.2</type-mapping>
| </metadata>
| </xa-datasource>
| ......
| </datasources>
But when I try connecting to this database I get the following exception:
anonymous wrote :
| Caused by: org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: No XADataSourceClass supplied!)
| at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.createManagedConnection(XAManagedConnectionFactory.java:144)
| at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:577)
| at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:262)
| at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:500)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:341)
| at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:315)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:396)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
| ... 84 more
What did I miss?
Thanks in advance for any help you can give.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205091#4205091
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205091
17 years, 2 months