[JBoss jBPM] - Re: [size=16][b]JobExecutor not started when restart jboss s
by karluqs
Hi kasabov,
I had the same problem. Configure in the web.xml the following listener
| <listener>
| <description>
| Starts the job executor on servlet context initialization and stops it on
| servlet context destruction.
| </description>
| <listener-class>org.jbpm.web.JobExecutorLauncher</listener-class>
| </listener>
|
This will start the jobscheduler
You can also configure the following servlet, that's optional, only for information on jobScheduler health
| <servlet>
| <description>
| This servlet has the purpose of executing pending jobs. Deprecated,
| replaced by JobExecutorLauncher.
| </description>
| <servlet-name>JobExecutorServlet</servlet-name>
| <servlet-class>org.jbpm.job.executor.JobExecutorServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
| <servlet-mapping>
| <servlet-name>JobExecutorServlet</servlet-name>
| <url-pattern>/jobs</url-pattern>
| </servlet-mapping>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205200#4205200
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205200
17 years, 2 months
[EJB/JBoss] - Problem establishing socket connection for InvokerLocator
by kutts4u
Hi
We have a web application on jsp+struts + ejb 2.0 + oracle 10g hosted on RedHat Linux 4. It is deployed on JBoss 4.2.2 GA.
Under heavy load we see the following error
[org.jboss.remoting.transport.socket.ClientSocketWrapper] reset timeout: 0
---------
----------
---------
DEBUG [org.jboss.remoting.transport.socket.ClientSocketWrapper] remote endpoint has closed
2009-01-28 00:11:37,618 DEBUG [org.jboss.remoting.transport.socket.SocketWrapper] ClientSocketWrapper[Socket[addr=/128.1.1.155,port=4446,localport=44961].fc375d] closing
2009-01-28 00:11:37,618 DEBUG [org.jboss.remoting.transport.socket.ClientSocketWrapper] reset timeout: 0
-----------
-----------
rg.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://128.1.1.155:4446/?dataType=invocation&enableTcpNoDelay=true&marshaller=org.jboss.invocation.unified.marshall.InvocationMarshaller&socketTimeout=600000&unmarshaller=org.jboss.invocation.unified.marshall.InvocationUnMarshaller]
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:559)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
at org.jboss.remoting.Client.invoke(Client.java:1634)
at org.jboss.remoting.Client.invoke(Client.java:548)
at org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.invoke(UnifiedInvokerProxy.java:184)
at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
at org.jboss.invocation.MarshallingInvokerInterceptor.invoke(MarshallingInvokerInterceptor.java:63)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy163.create(Unknown Source)
... 34 more
Caused by: java.lang.IllegalStateException: Timeout waiting for a free socket
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:772)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:551)
Any ideas on if this to do with configuration settings ? If so what all should we change ?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205199#4205199
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205199
17 years, 2 months
[EJB 3.0] - Re: MDB redeploy with ...-service.xml
by jaikiran
anonymous wrote : On first deploy, this is the console output:
|
|
| | 20:10:29,250 WARN [AbstractDeploymentContext] Unable to register deployment mbean vfszip:/C:/temp/j
| | boss-5.0.0.GA/server/default/deploy/Message.ear/MessageEJB.jar/knaufmq-service.xml
| | javax.management.InstanceAlreadyExistsException: jboss.deployment:id="vfszip:/C:/temp/jboss-5.0.0.GA/server/default/deploy/Message.ear/MessageEJB.jar/knaufmq-service.xml",type=SubDeployment already registered.
| |
If the exception is coming up on the first deployment, then i guess there's some problem. I believe, you are not deploying the same service from some other place (maybe deploy folder?)
I see that you have placed the -service.xml at the root of the jar. How about moving it into the META-INF of the jar?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205187#4205187
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205187
17 years, 2 months
[EJB 3.0] - Re: Ejb3 - MDB
by jaikiran
Rudresh,
Wolfgang is correct. You seem to be missing the queue-example-service.xml. Here's a part of the build script which does the deployment:
<target name="ejbjar" depends="compile">
| ...
| <copy file="${basedir}/queue-example-service.xml" todir="${jboss.home}/server/${jboss.server.config}/deploy"/>
| ...
| </target>
Are you sure you are using the correct build script (and you followed the instructions on the wiki)?
By the way, i just ran the tutorial succesfully, with this output on server console:
| 16:28:16,221 INFO [QueueService] Queue[queue/tutorial/email] started, fullSize=200000, pageSize=2000, downCacheSize=2000
| 16:28:16,236 INFO [QueueService] Queue[queue/tutorial/accounts, name=trace] started, fullSize=200000, pageSize=2000, downCacheSize=2000
| 16:28:21,932 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@27245763{vfszip:/opt/jpai/jboss-5.0.0.GA/server/default/deploy/jboss-ejb3-tutorial-interceptor.jar}
| 16:28:21,932 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@27245763{vfszip:/opt/jpai/jboss-5.0.0.GA/server/default/deploy/jboss-ejb3-tutorial-interceptor.jar}
| 16:28:21,933 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@27245763{vfszip:/opt/jpai/jboss-5.0.0.GA/server/default/deploy/jboss-ejb3-tutorial-interceptor.jar}
| 16:28:21,933 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@27245763{vfszip:/opt/jpai/jboss-5.0.0.GA/server/default/deploy/jboss-ejb3-tutorial-interceptor.jar}
| 16:28:22,522 INFO [JBossASKernel] Created KernelDeployment for: jboss-ejb3-tutorial-interceptor.jar
| 16:28:22,526 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=jboss-ejb3-tutorial-interceptor.jar,name=AccountsMDB,service=EJB3
| 16:28:22,526 INFO [JBossASKernel] with dependencies:
| 16:28:22,526 INFO [JBossASKernel] and demands:
| 16:28:22,526 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
| 16:28:22,526 INFO [JBossASKernel] and supplies:
| 16:28:22,526 INFO [JBossASKernel] Class:javax.jms.MessageListener
| 16:28:22,526 INFO [JBossASKernel] jndi:null
| 16:28:22,527 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=jboss-ejb3-tutorial-interceptor.jar,name=AccountsMDB,service=EJB3) to KernelDeployment of: jboss-ejb3-tutorial-interceptor.jar
| 16:28:22,527 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=jboss-ejb3-tutorial-interceptor.jar,name=EmailMDB,service=EJB3
| 16:28:22,528 INFO [JBossASKernel] with dependencies:
| 16:28:22,528 INFO [JBossASKernel] and demands:
| 16:28:22,528 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
| 16:28:22,528 INFO [JBossASKernel] and supplies:
| 16:28:22,528 INFO [JBossASKernel] Class:javax.jms.MessageListener
| 16:28:22,528 INFO [JBossASKernel] jndi:null
| 16:28:22,528 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=jboss-ejb3-tutorial-interceptor.jar,name=EmailMDB,service=EJB3) to KernelDeployment of: jboss-ejb3-tutorial-interceptor.jar
| 16:28:22,528 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=jboss-ejb3-tutorial-interceptor.jar,name=EmailSystemBean,service=EJB3
| 16:28:22,528 INFO [JBossASKernel] with dependencies:
| 16:28:22,529 INFO [JBossASKernel] and demands:
| 16:28:22,529 INFO [JBossASKernel] persistence.unit:unitName=#tempdb
| 16:28:22,529 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
| 16:28:22,529 INFO [JBossASKernel] and supplies:
| 16:28:22,529 INFO [JBossASKernel] jndi:EmailSystemBean/remote
| 16:28:22,529 INFO [JBossASKernel] Class:org.jboss.tutorial.interceptor.bean.EmailSystem
| 16:28:22,529 INFO [JBossASKernel] jndi:EmailSystemBean/remote-org.jboss.tutorial.interceptor.bean.EmailSystem
| 16:28:22,529 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=jboss-ejb3-tutorial-interceptor.jar,name=EmailSystemBean,service=EJB3) to KernelDeployment of: jboss-ejb3-tutorial-interceptor.jar
| 16:28:22,660 INFO [EJBContainer] STARTED EJB: org.jboss.tutorial.interceptor.bean.AccountsMDB ejbName: AccountsMDB
| 16:28:22,813 INFO [EJBContainer] STARTED EJB: org.jboss.tutorial.interceptor.bean.EmailMDB ejbName: EmailMDB
| 16:28:22,973 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=#tempdb
| 16:28:23,068 INFO [Version] Hibernate Annotations 3.4.0.GA
| 16:28:23,212 INFO [Environment] Hibernate 3.3.1.GA
| 16:28:23,220 INFO [Environment] hibernate.properties not found
| 16:28:23,226 INFO [Environment] Bytecode provider name : javassist
| 16:28:23,255 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
| 16:28:23,599 INFO [Version] Hibernate Commons Annotations 3.1.0.GA
| 16:28:23,606 INFO [Version] Hibernate EntityManager 3.4.0.GA
| 16:28:23,700 WARN [Ejb3Configuration] Persistence provider caller does not implement the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null.
| 16:28:23,833 INFO [AnnotationBinder] Binding entity from annotated class: org.jboss.tutorial.interceptor.bean.Confirmation
| 16:28:23,982 INFO [EntityBinder] Bind entity org.jboss.tutorial.interceptor.bean.Confirmation on table Confirmation
| 16:28:24,194 INFO [Version] Hibernate Validator 3.1.0.GA
| 16:28:24,309 INFO [HibernateSearchEventListenerRegister] Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
| 16:28:24,456 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
| 16:28:24,466 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
| 16:28:24,474 INFO [SettingsFactory] RDBMS: HSQL Database Engine, version: 1.8.0
| 16:28:24,474 INFO [SettingsFactory] JDBC driver: HSQL Database Engine Driver, version: 1.8.0
| 16:28:24,545 INFO [Dialect] Using dialect: org.hibernate.dialect.HSQLDialect
| 16:28:24,563 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
| 16:28:24,568 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
| 16:28:24,571 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
| 16:28:24,571 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
| 16:28:24,571 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
| 16:28:24,571 INFO [SettingsFactory] JDBC batch size: 15
| 16:28:24,572 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
| 16:28:24,573 INFO [SettingsFactory] Scrollable result sets: enabled
| 16:28:24,573 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
| 16:28:24,573 INFO [SettingsFactory] Connection release mode: auto
| 16:28:24,574 INFO [SettingsFactory] Default batch fetch size: 1
| 16:28:24,574 INFO [SettingsFactory] Generate SQL with comments: disabled
| 16:28:24,574 INFO [SettingsFactory] Order SQL updates by primary key: disabled
| 16:28:24,574 INFO [SettingsFactory] Order SQL inserts for batching: disabled
| 16:28:24,574 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
| 16:28:24,578 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
| 16:28:24,578 INFO [SettingsFactory] Query language substitutions: {}
| 16:28:24,579 INFO [SettingsFactory] JPA-QL strict compliance: enabled
| 16:28:24,579 INFO [SettingsFactory] Second-level cache: enabled
| 16:28:24,579 INFO [SettingsFactory] Query cache: disabled
| 16:28:24,592 INFO [SettingsFactory] Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge
| 16:28:24,592 INFO [RegionFactoryCacheProviderBridge] Cache provider: org.hibernate.cache.HashtableCacheProvider
| 16:28:24,594 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
| 16:28:24,594 INFO [SettingsFactory] Cache region prefix: persistence.unit:unitName=#tempdb
| 16:28:24,594 INFO [SettingsFactory] Structured second-level cache entries: disabled
| 16:28:24,603 INFO [SettingsFactory] Statistics: disabled
| 16:28:24,603 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
| 16:28:24,605 INFO [SettingsFactory] Default entity-mode: pojo
| 16:28:24,605 INFO [SettingsFactory] Named query checking : enabled
| 16:28:24,783 INFO [SessionFactoryImpl] building session factory
| 16:28:25,100 INFO [SessionFactoryObjectFactory] Factory name: persistence.unit:unitName=#tempdb
| 16:28:25,102 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 16:28:25,107 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.unit:unitName=#tempdb
| 16:28:25,107 WARN [SessionFactoryObjectFactory] InitialContext did not implement EventContext
| 16:28:25,121 INFO [SchemaExport] Running hbm2ddl schema export
| 16:28:25,122 INFO [SchemaExport] exporting generated schema to database
| 16:28:25,123 INFO [SchemaExport] schema export complete
| 16:28:25,128 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 16:28:25,226 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=jboss-ejb3-tutorial-interceptor.jar,name=EmailSystemBean,service=EJB3
| 16:28:25,241 INFO [EJBContainer] STARTED EJB: org.jboss.tutorial.interceptor.bean.EmailSystemBean ejbName: EmailSystemBean
| 16:28:25,312 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
|
| EmailSystemBean/remote - EJB3.x Default Remote Business Interface
| EmailSystemBean/remote-org.jboss.tutorial.interceptor.bean.EmailSystem - EJB3.x Remote Business Interface
|
|
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205186#4205186
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205186
17 years, 2 months