[JCA/JBoss] - MySQL Datasource on JBoss
by jotnarta
Hi All
Any one know how to configure a mysql datasource in JBoss??? I am using JBoss 5 and mysql 5, I tried everything, and read everything, :argh:, can anyone help me , pleassssssssse... I always get the following error
Exception thrown java.sql.SQLException: Table not found in statement [select * from questions]
following is my mysql-ds.xml file:
<?xml version="1.0" encoding="UTF-8"?>
|
| <datasources>
|
| <local-tx-datasource>
|
| <jndi-name>DefaultDS</jndi-name>
|
| <connection-url>jdbc:mysql://localhost:3306/project</connection-url>
|
| <driver-class>com.mysql.jdbc.Driver</driver-class>
|
| <user-name>root</user-name>
|
| <password>admin</password>
|
| <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</valid-connection-checker-class-name>
|
| <metadata>
|
| <type-mapping>mySQL</type-mapping>
|
| </metadata>
|
| </local-tx-datasource>
|
| </datasources>
and following is my client:
<%@page import="java.util.*,javax.naming.*,javax.sql.DataSource,java.sql.*"%>
| <%
| DataSource ds = null;
| Connection con = null;
| //Statement st = null;
| InitialContext ic;
|
| try {
| ic = new InitialContext();
| ds = (DataSource) ic.lookup("java:DefaultDS");
| con = ds.getConnection();
| //out.println( "Connection: " + con. );
|
| Statement st = con.createStatement();
| //DatabaseMetaData md = con.getMetaData();
|
| out.println(" Username: " + md.getUserName());
|
| ResultSet rs = st.executeQuery("select * from questions");
| //ResultSet rs = md.getTables(null, null, "%", null);
|
| while(rs.next()) {
| out.println("<br> " + rs.getString("ID"));
| System.out.println(rs.getString(3));
| }
| rs.close();
| st.close();
|
| out.println("DONE");
| } catch (Exception e) {
| out.println("Exception thrown " + e );
| //e.printStackTrace();
| } finally {
| if (con != null) {
| con.close();
| }
| }
| %>
Another questions is, do i have to change something in other files?? and where can i find the log for JBoss server???
Any help please???
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213319#4213319
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213319
17 years, 1 month
[Installation, Configuration & DEPLOYMENT] - Multiple instances from single EAR/WAR
by davesb
I have a requirement to be able to create multiple instances of the same application on a single server under difference context roots. Additionally, each instance of the application will need to be configurable. At this stage, the only difference between the instances would be the datasource used i.e. there will be multiple identical web applications, each accessing data from a different database. There will be upwards of 50 instances, so this is essentially a maintenance issue - I don't want 50 copies of the same application code/pages when the only difference is the database connection.
The application in question is built using Seam and there is likely to be other instance-specific configuration needed - but I figure that I can store any other configuration information in the database and have the Seam application respond accordingly.
I've seen this done before with a web application in Tomcat - JSPWiki - where there is only one WAR file on the server but you can easily add instances pointing to different configurations, so I'm sure it ought to be relatively easy. I just can't find out how in JBoss at the moment.
Any pointers gratefully received!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213306#4213306
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213306
17 years, 1 month
[JBoss jBPM] - cancel timer failed...
by galanfish
hi all, i am learning the lates PVM source code these days.
i've created a timer which will call signal to of the host execution to change the normal flow.
the process is like this:
start --> do some --> schedule(timer)&wait ---> timeout state ---> ...
| |
| + -----------> signal to cancel timer --->....
the problem is that, when i cancel the timer(call TimerSession#cancel(timer)), then exception cames out:
org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): [org.jbpm.pvm.internal.job.TimerImpl#26]
i thought that i have to remove the reference of the to-be-removed-timer by the Execution instance first, then i call TimerSession#cancel(timer), but i can not find any API to remove a timer from an execution.
or i should modify the 'cascade' attribute in the hibernate configuration file of the class 'Execution'? but i'm affraid that the modification like this would bring more unknow mistake.
or i am totally wrong?
appreciate!!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213300#4213300
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213300
17 years, 1 month
[Installation, Configuration & DEPLOYMENT] - Topics messaging in Jboss 5.0.0 GA
by mayankmit2002
Hello All,
I'm trying to configure JBoss 5.0.0 GA to provide Topic Messaging. As our product is already running on Jboss 4.2.2 and is working fine, but when I tried to make it compatible to Jboss 5.0.0, I'm getting following stack trace.
| 16:29:27,078 WARN [config] Unable to process deployment descriptor for context '/cms'
| 16:29:28,890 INFO [WSDLFilePublisher] WSDL published to: file:/D:/temp/mayank/softwares/jboss-5.0.0.GA/server/default/data/wsdl/PerspectiveManagement.jar/Persp
| ectiveMgtAPI2741479052503334033.wsdl
| 16:29:29,078 ERROR [ExceptionUtil] Topic[events] startService
| java.lang.IllegalStateException: Cannot set paging params when active
| at org.jboss.messaging.core.impl.PagingChannelSupport.setPagingParams(PagingChannelSupport.java:184)
| at org.jboss.jms.server.destination.TopicService.startService(TopicService.java:90)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
| at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:269)
| at org.jboss.mq.server.jmx.Topic.start(Topic.java:277)
| 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:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
| 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:206)
| 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.doInstallParentFirst(DeployersImpl.java:1210)
| 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.hotdeploy.HDScanner.scan(HDScanner.java:290)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
| at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
| at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
| at java.lang.Thread.run(Thread.java:619)
| 16:29:29,265 ERROR [AbstractKernelController] Error installing to Start: name=com.barco.event:name=events,service=Topic state=Create mode=Manual requiredState=I
| nstalled
| java.lang.IllegalStateException: Cannot set paging params when active
| at org.jboss.messaging.core.impl.PagingChannelSupport.setPagingParams(PagingChannelSupport.java:184)
| at org.jboss.jms.server.destination.TopicService.startService(TopicService.java:90)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
| at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:269)
| at org.jboss.mq.server.jmx.Topic.start(Topic.java:277)
| 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:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
| 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:206)
| 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.doInstallParentFirst(DeployersImpl.java:1210)
| 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.hotdeploy.HDScanner.scan(HDScanner.java:290)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
| at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
| at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
| at java.lang.Thread.run(Thread.java:619)
| 16:29:29,453 INFO [TomcatDeployment] undeploy, ctxPath=/cms, vfsUrl=PerspectiveManagement.jar
| 16:29:29,703 INFO [DefaultEndpointRegistry] remove: jboss.ws:context=cms,endpoint=PerspectiveMgtAPIImpl
| 16:29:29,703 INFO [ClientENCInjectionContainer] STOPPED CLIENT ENC CONTAINER: JavaBLM
| 16:29:29,718 INFO [SessionSpecContainer] Stopping jboss.j2ee:jar=PerspectiveManagement.jar,name=LicenseManagerServiceImpl,service=EJB3
| 16:29:29,734 INFO [EJBContainer] STOPPED EJB: com.barco.cms.licensing.LicenseManagerServiceImpl ejbName: LicenseManagerServiceImpl
| 16:29:29,812 INFO [SessionSpecContainer] Stopping jboss.j2ee:jar=PerspectiveManagement.jar,name=LogCategoryPoolImpl,service=EJB3
| 16:29:29,812 INFO [EJBContainer] STOPPED EJB: com.barco.cms.logging.configuration.LogCategoryPoolImpl ejbName: LogCategoryPoolImpl
| 16:29:29,875 INFO [SessionSpecContainer] Stopping jboss.j2ee:jar=PerspectiveManagement.jar,name=PerspectiveMgtAPIImpl,service=EJB3
| 16:29:29,890 INFO [EJBContainer] STOPPED EJB: com.barco.cms.openapi.PerspectiveMgtAPIImpl ejbName: PerspectiveMgtAPIImpl
| 16:29:29,921 INFO [SessionSpecContainer] Stopping jboss.j2ee:jar=PerspectiveManagement.jar,name=EventLoaderImpl,service=EJB3
| 16:29:29,953 INFO [EJBContainer] STOPPED EJB: com.barco.cms.openapi.EventLoaderImpl ejbName: EventLoaderImpl
| 16:29:29,984 INFO [PersistenceUnitDeployment] Stopping persistence unit persistence.unit:unitName=#cms
| 16:29:29,984 INFO [SessionFactoryImpl] closing
| 16:29:29,984 INFO [SessionFactoryObjectFactory] Unbinding factory from JNDI name: persistence.unit:unitName=#cms
| 16:29:29,984 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.p
| kgs=org.jboss.naming:org.jnp.interfaces}
| 16:29:30,000 INFO [SessionFactoryObjectFactory] Unbound factory from JNDI name: persistence.unit:unitName=#cms
| 16:29:30,078 INFO [EJBContainer] STOPPED EJB: com.barco.event.emitters.BarcoBroadcastMDB ejbName: BarcoBroadcastMDB
| 16:29:30,109 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/D:/temp/mayank/softwares/jboss-5.0.0.GA/server/default/deploy/PerspectiveMa
| nagement.jar state=PreReal mode=Manual requiredState=Real
| org.jboss.deployers.spi.DeploymentException: Error deploying: com.barco.event:service=Topic,name=events
| at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:123)
| 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.doInstallParentFirst(DeployersImpl.java:1210)
| 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.hotdeploy.HDScanner.scan(HDScanner.java:290)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
| at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
| at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: java.lang.IllegalStateException: Cannot set paging params when active
| at org.jboss.messaging.core.impl.PagingChannelSupport.setPagingParams(PagingChannelSupport.java:184)
| at org.jboss.jms.server.destination.TopicService.startService(TopicService.java:90)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
| at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:269)
| at org.jboss.mq.server.jmx.Topic.start(Topic.java:277)
| 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:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
| 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:206)
| 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)
| ... 29 more
| 16:29:30,296 WARN [HDScanner] Failed to process changes
| org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
|
| *** CONTEXTS IN ERROR: Name -> Error
|
| vfszip:/D:/temp/mayank/softwares/jboss-5.0.0.GA/server/default/deploy/PerspectiveManagement.jar -> java.lang.IllegalStateException: Cannot set paging params whe
| n active
|
|
| at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:863)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:665)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:293)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
| at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
| at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
| at java.lang.Thread.run(Thread.java:619)
|
The Configuration for Topic MBean is as follows
| <server>
| <mbean code="org.jboss.mq.server.jmx.Topic"
| name="com.barco.event:service=Topic,name=events"
| xmbean-dd="xmdesc/Topic-xmbean.xml">
| <attribute name="JNDIName">events</attribute>
| <depends optional-attribute-name="ServerPeer">
| jboss.messaging:service=ServerPeer
| </depends>
| <depends>jboss.messaging:service=PostOffice</depends>
|
| <depends>jboss.messaging:service=SecurityStore</depends>
| </mbean>
| </server>
|
and I've modified destinations-service.xml as follows
| <?xml version="1.0" encoding="UTF-8"?>
|
| <!--
| Messaging Destinations deployment descriptor.
|
| $Id: destinations-service.xml 81998 2008-12-03 06:46:29Z scott.stark(a)jboss.org $
| -->
|
| <server>
|
| <!--
| The Default Dead Letter Queue. This destination is a dependency of an EJB MDB container.
| -->
|
| <mbean code="org.jboss.jms.server.destination.QueueService"
| name="jboss.messaging.destination:service=Queue,name=DLQ"
| xmbean-dd="xmdesc/Queue-xmbean.xml">
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
| </mbean>
|
| <!--
| The Default Expiry Queue.
| -->
|
| <mbean code="org.jboss.jms.server.destination.QueueService"
| name="jboss.messaging.destination:service=Queue,name=ExpiryQueue"
| xmbean-dd="xmdesc/Queue-xmbean.xml">
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
| </mbean>
|
| <!--
| The Custom Topic Configurations
| -->
| <mbean code="org.jboss.jms.server.destination.TopicService"
| name="jboss.messaging.destination:service=Topic,name=events"
| xmbean-dd="xmdesc/Topic-xmbean.xml">
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
| </mbean>
|
|
| </server>
|
Plz. help to find out, what I'm doing wrong
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213299#4213299
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213299
17 years, 1 month
[Installation, Configuration & DEPLOYMENT] - Freeze and Server killed without any logs
by erache
Hello everyone,
I have a weird problem on my server. I tried an EAR on my computer, it works well and on a virtual machine, it doesn't work...
So this is the configuration of my computer
JBoss 5
Windows
Java 6
And this is the configuration of the virtual machine
JBoss 5 (I tried 5.0.0 and 5.0.1 and same result)
Linux SMP 64 bits
Java 6
The EAR contains a jboss-seam project. So there is an EJB, a WAR and the jboss-seam.jar.
On the linux machine, it deploys normally at the start... and just before deploying the WAR, it freezes and I have just this output :
- KILLED
| .....
| 12:12:21,634 INFO [SessionSpecContainer] Starting jboss.j2ee:ear=FPP-ear.ear,jar=jboss-seam-2.1.1.GA.jar,name=TimerServiceDispatcher,service=EJB3
| 12:12:21,636 INFO [EJBContainer] STARTED EJB: org.jboss.seam.async.TimerServiceDispatcher ejbName: TimerServiceDispatcher
| 12:12:21,647 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
|
| FPP-ear/TimerServiceDispatcher/local - EJB3.x Default Local Business Interface
| FPP-ear/TimerServiceDispatcher/local-org.jboss.seam.async.LocalTimerServiceDispatcher - EJB3.x Local Business Interface
|
| 12:12:21,911 INFO [SessionSpecContainer] Starting jboss.j2ee:ear=FPP-ear.ear,jar=jboss-seam-2.1.1.GA.jar,name=EjbSynchronizations,service=EJB3
| 12:12:21,912 INFO [EJBContainer] STARTED EJB: org.jboss.seam.transaction.EjbSynchronizations ejbName: EjbSynchronizations
| 12:12:21,925 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
|
| FPP-ear/EjbSynchronizations/local - EJB3.x Default Local Business Interface
| FPP-ear/EjbSynchronizations/local-org.jboss.seam.transaction.LocalEjbSynchronizations - EJB3.x Local Business Interface
|
| 12:12:40,871 INFO [TomcatDeployment] deploy, ctxPath=/fpp
| 12:12:42,049 INFO [ContextConfig] WARNING: Security role name NONE used in an <auth-constraint> without being defined in a <security-role>
| 12:12:49,487 INFO [ServletContextListener] Welcome to Seam 2.1.1.GA
| Killed
| ***@***:/apps/jboss-5.0.1.GA/bin#
|
and nothing more, no stackTrace , no log...
I don't really know what it can be ? what I can do ?
If you any ideas, I would be grateful :). Thanks in advance :)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213296#4213296
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213296
17 years, 1 month