Instalation JDK 1.5.0_09 didn't helped.
I need to stay on Seam 1.2.1GA,
If this example seam pay works on tomcat I think this must be my problem.
Maybe I not installed somethink well. I tell u what I done when, moved my app from JBoss
AS to Tomcat 5.5.
1. added components.properties,
2. changed components.xml to
| <?xml version="1.0" encoding="UTF-8"?>
| <components
xmlns="http://jboss.com/products/seam/components"
|
xmlns:core="http://jboss.com/products/seam/core"
|
xmlns:security="http://jboss.com/products/seam/security"
|
xmlns:drools="http://jboss.com/products/seam/drools"
|
xmlns:web="http://jboss.com/products/seam/web"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation=
| "http://jboss.com/products/seam/core
http://jboss.com/products/seam/core-1.2.xsd
|
http://jboss.com/products/seam/components
http://jboss.com/products/seam/components-1.2.xsd
|
http://jboss.com/products/seam/security
http://jboss.com/products/seam/security-1.2.xsd
|
http://jboss.com/products/seam/web
http://jboss.com/products/seam/web-1.2.xsd
|
http://jboss.com/products/seam/drools
http://jboss.com/products/seam/drools-1.2.xsd">
|
| <core:init jndi-pattern="#{ejbName}/local"
debug="true"/>
|
| <core:manager conversation-timeout="120000"
| concurrent-request-timeout="500"
| conversation-id-parameter="cid"
| conversation-is-long-running-parameter="clr"/>
|
| <core:transactionListener/>
|
| <core:ejb />
| <core:dispatcher/>
|
| <component name="org.jboss.seam.remoting.remoting">
| <property name="debug">false</property>
| <property name="pollTimeout">2</property>
| <property name="pollInterval">1</property>
| </component>
|
| <drools:rule-base name="securityRules">
|
<drools:rule-files><value>/META-INF/security-rules.drl</value></drools:rule-files>
| </drools:rule-base>
|
| <security:identity
authenticate-method="#{authenticator.authenticate}"/>
|
| <property
name="persistenceUnitJndiName">java:/sguEntityManagerFactory</property>
| </component> -->
| <core:managed-persistence-context name="em"
| auto-create="true"
|
persistence-unit-jndi-name="java:/sguEntityManagerFactory" />
|
| <factory name="remoteAddr"
value="#{facesContext.externalContext.request.remoteAddr}" />
|
| <core:locale-selector cookie-enabled="true"/>
| </components>
3. changed jboss-beans.xml to like in booking example:
| <?xml version="1.0" encoding="UTF-8"?>
| <deployment
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="urn:jboss:bean-deployer
bean-deployer_1_0.xsd"
| xmlns="urn:jboss:bean-deployer">
|
| <bean name="UniversumDatasourceBootstrap"
class="org.jboss.resource.adapter.jdbc.local.LocalTxDataSource">
| <property
name="driverClass">org.postgresql.Driver</property>
| <property
name="connectionURL">jdbc:postgresql://localhost:5432/Universum</property>
| <property name="userName">postgres</property>
| <property name="password">root</property>
| <property
name="jndiName">java:/UniversumDatasource</property>
| <property name="minSize">0</property>
| <property name="maxSize">10</property>
| <property name="blockingTimeout">1000</property>
| <property name="idleTimeout">100000</property>
| <property name="transactionManager"><inject
bean="TransactionManager"/></property>
| <property name="cachedConnectionManager"><inject
bean="CachedConnectionManager"/></property>
| <property name="initialContextProperties"><inject
bean="InitialContextProperties"/></property>
| </bean>
|
| <bean name="UniversumDatasource"
class="java.lang.Object">
| <constructor factoryMethod="getDatasource">
| <factory bean="UniversumDatasourceBootstrap"/>
| </constructor>
| </bean>
|
| </deployment>
4. and I added mc-conf.jar and also same libs like in booking example to war file.
Also files structure is same like in booking example.
Application now works fine, for me without this scheduler.
Scheduler processor and whole classes are same like in seam-pay example, I just copied
them to my project and little changed.
| @Name("engineControler")
| public class EngineControler {
| public EngineControler() {}
|
| @In
| EngineProcessor processor;
|
and scheduler
| long interval = 2 * 1000;
| @SuppressWarnings("unused")
| Timer timer = processor.scheduleBuildings(new Date(), interval, null);
|
my method scheduleBuildings is empty, just System.out....
maybe I must install somethink else, I read about microcontainer, but don't know if
this must be installed?
Any idea?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069992#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...