[Installation, Configuration & DEPLOYMENT] - scheduler problem
by rikibarkiki
Hello friend,
I saw some post of you at the JBoss forum and I have a similar problem,
I try to run the Scheduler example from the jboss site and it run o.k but when I restart the server I got this error
I put some code at scheduler-service.xml
true
ejb.ExSchedulable
TheName,123456789
java.lang.String,long
NOW
4000
1
And create some class file at ejb package under the ejb lib
package ejb;
import java.util.Date;
import org.jboss.varia.scheduler.Schedulable;
import org.apache.log4j.Logger;
public class ExSchedulable implements Schedulable
{
private static final Logger log = Logger.getLogger(ExSchedulable.class);
private String name;
private long value;
private String response;
public ExSchedulable(String name, long value)
{
this.name = name;
this.value = value;
log.info("ctor, name: " + name + ", value: " + value);
}
public void perform(Date now, long remainingRepetitions)
{
log.info("perform, now: " + now +
", remainingRepetitions: " + remainingRepetitions +
", name: " + name + ", value: " + value);
response=SendAndReciveRequest.sendAndRecive("http://localhost:8080/SkillogicAS-war/CounterServlet");
log.info("Response "+response);
}
}
The error that show when the server start is
--- MBeans waiting for other MBeans ---
ObjectName: jboss.docs:service=Scheduler
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Exception setting attribute SchedulableClass = ejb.ExSchedulable on mbean jboss.docs:service=Scheduler; - nested throwable: (java.security.InvalidParameterException: Given class ejb.ExSchedulable is not not found)
10x a lot ï
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131640#4131640
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131640
18 years, 1 month
[JBoss Tools (users)] - Runnigs test
by hispeedsurfer
Hi,
I have problem to runnig tests inside a Seam Web Project using the JBoss Tools IDE.
Environment: JBoss Tools 2.0.GA, Seam 2.0.1.GA
When I create a new Seam Web (ear)Project with a simple Seam Action and try to run TestNG test as discriped in 'Seam Dev Tools Reference Guide' the first excetion is
[Parser] Running:
| V:\workspaces\datenvisualisierung\testproject-test\test-src\org\domain\testproject\test\ActionTest.xml
|
| WARN [org.jboss.seam.init.Initialization] Did not install PojoCache due to NoClassDefFoundError: org/jgroups/MembershipListener
| INFO [org.ajax4jsf.cache.CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
| INFO [org.ajax4jsf.cache.LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {}
| INFO [org.ajax4jsf.cache.LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
| INFO [org.ajax4jsf.cache.CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
| INFO [org.ajax4jsf.cache.LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {}
| INFO [org.ajax4jsf.cache.LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
| FAILED CONFIGURATION: @BeforeMethod begin
| org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.security.identity
| at org.jboss.seam.Component.newInstance(Component.java:1970)
| at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
| at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
| at org.jboss.seam.contexts.Lifecycle.beginSession(Lifecycle.java:191)
| at org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:124)
| at org.jboss.seam.mock.BaseSeamTest.begin(BaseSeamTest.java:912)
| at org.jboss.seam.mock.SeamTest.begin(SeamTest.java:28)
| Caused by: org.drools.RuntimeDroolsException: Unable to load dialect 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java'
| at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:152)
| at org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap(PackageBuilderConfiguration.java:140)
| at org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:117)
| at org.drools.compiler.PackageBuilderConfiguration.<init>(PackageBuilderConfiguration.java:94)
| at org.jboss.seam.drools.RuleBase.compileRuleBase(RuleBase.java:40)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
| at org.jboss.seam.Component.callComponentMethod(Component.java:2082)
| at org.jboss.seam.Component.callCreateMethod(Component.java:2005)
| at org.jboss.seam.Component.newInstance(Component.java:1976)
| at org.jboss.seam.Component.getInstance(Component.java:1873)
| at org.jboss.seam.Component.getInstance(Component.java:1840)
| at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
| at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
| at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
| at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
| at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
| at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
| at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
| at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:111)
| at org.jboss.seam.Component$ELInitialValue.getValue(Component.java:2360)
| at org.jboss.seam.Component.initialize(Component.java:1389)
| at org.jboss.seam.Component.instantiateJavaBean(Component.java:1315)
| at org.jboss.seam.Component.instantiate(Component.java:1268)
| at org.jboss.seam.Component.newInstance(Component.java:1966)
| ... 30 more
| Caused by: java.lang.RuntimeException: The Eclipse JDT Core jar is not in the classpath
| at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.setCompiler(JavaDialectConfiguration.java:93)
| at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.init(JavaDialectConfiguration.java:54)
| at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:148)
| ... 58 more
| ... Removed 28 stack frames
| SKIPPED CONFIGURATION: @AfterMethod end
| SKIPPED CONFIGURATION: @AfterClass cleanup
| SKIPPED: test
|
| ===============================================
| Action Test
| Tests run: 1, Failures: 0, Skips: 1
| Configuration Failures: 1, Skips: 2
| ===============================================
|
|
| ===============================================
| Action Tests
| Total tests run: 1, Failures: 0, Skips: 1
| Configuration Failures: 1, Skips: 2
| ===============================================
|
After this i putted org.eclipse.jdt.core_3.3.1.v_780_R33x.jar from Eclipse installation to classpath and the following error occurs:
[Parser] Running:
| V:\workspaces\datenvisualisierung\testproject-test\test-src\org\domain\testproject\test\ActionTest.xml
|
| WARN [org.jboss.seam.init.Initialization] Did not install PojoCache due to NoClassDefFoundError: org/jgroups/MembershipListener
| INFO [org.ajax4jsf.cache.CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
| INFO [org.ajax4jsf.cache.LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {}
| INFO [org.ajax4jsf.cache.LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
| INFO [org.ajax4jsf.cache.CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
| INFO [org.ajax4jsf.cache.LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {}
| INFO [org.ajax4jsf.cache.LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
| FAILED CONFIGURATION: @BeforeMethod begin
| org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.security.identity
| at org.jboss.seam.Component.newInstance(Component.java:1970)
| at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
| at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
| at org.jboss.seam.contexts.Lifecycle.beginSession(Lifecycle.java:191)
| at org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:124)
| at org.jboss.seam.mock.BaseSeamTest.begin(BaseSeamTest.java:912)
| at org.jboss.seam.mock.SeamTest.begin(SeamTest.java:28)
| Caused by: java.lang.IllegalStateException: could not locate rule file: /security.drl
| at org.jboss.seam.drools.RuleBase.compileRuleBase(RuleBase.java:51)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
| at org.jboss.seam.Component.callComponentMethod(Component.java:2082)
| at org.jboss.seam.Component.callCreateMethod(Component.java:2005)
| at org.jboss.seam.Component.newInstance(Component.java:1976)
| at org.jboss.seam.Component.getInstance(Component.java:1873)
| at org.jboss.seam.Component.getInstance(Component.java:1840)
| at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
| at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
| at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
| at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
| at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
| at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
| at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
| at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:111)
| at org.jboss.seam.Component$ELInitialValue.getValue(Component.java:2360)
| at org.jboss.seam.Component.initialize(Component.java:1389)
| at org.jboss.seam.Component.instantiateJavaBean(Component.java:1315)
| at org.jboss.seam.Component.instantiate(Component.java:1268)
| at org.jboss.seam.Component.newInstance(Component.java:1966)
| ... 30 more
| ... Removed 28 stack frames
| SKIPPED CONFIGURATION: @AfterMethod end
| SKIPPED CONFIGURATION: @AfterClass cleanup
| SKIPPED: test
|
| ===============================================
| Action Test
| Tests run: 1, Failures: 0, Skips: 1
| Configuration Failures: 1, Skips: 2
| ===============================================
|
|
| ===============================================
| Action Tests
| Total tests run: 1, Failures: 0, Skips: 1
| Configuration Failures: 1, Skips: 2
| ===============================================
Than I removed securityRules from component.xml and all is ok
<!--drools:rule-base name="securityRules">
| <drools:rule-files>
| <value>/security.drl</value>
| </drools:rule-files>
| </drools:rule-base-->
|
| <security:identity authenticate-method="#{authenticator.authenticate}" remember-me="true"/>
Is this a kown problem or what's wrong in my case?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131638#4131638
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131638
18 years, 1 month
[Persistence, JBoss/CMP, Hibernate, Database] - Entity Inheritence with primitive datatypes causes a Propert
by gecco
hi,
when using entity inheritence with jboss 4.2.2 the EntityManager.find() call causes a org.hibernate.PropertyAccessException when called on superclass type and the subclass contains a field of primitive type.
For example, i have two entities Person and Employee
| @Entity
| @Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
| public class Person implements Serializable{
| @Id
| @Column(name="ID", nullable=false)
| private int id;
|
| @Column(name="NAME", nullable=false)
| private String name;
| // getter and setter.....
| }
|
| @Entity
| public class Employee extends Person implements Serializable {
|
| @Column(name="SSN", nullable=false)
| private int ssn;
| //getter and setter
|
| }
|
now after persisting a Employee a call on entityManager.find(Person.class, id) will result in a PropertyAccessException:
Caused by: javax.persistence.PersistenceException: org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of org.example.entity.Employee.ssn
the value in the database is not null, and it worked fine with JbossAS 4.0.5
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131628#4131628
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131628
18 years, 1 month
[JBoss Tools (users)] - Seam Web Project in JBossIDE
by roxello
Hello -
the Seam forum on jboss.org is closed and I have not been able to login
at seamframework.org so this i hope is the most appropriate alternative.
The ~/WebContent/home.xhtml page generated with a new skeleton
project created using new... Seam Web Project mentions the creation
of an ant build file as part of the project. The projects I've built however
do not feature a build.xml file.
I am firstly wondering if anyone else is having a similar experience?
If not then there is something i am not doing right or an incompatibility
lurking somewhere. I've installed JBossIDE a few times using different
methods, ie Eclipse software update, unzip into plugins etc, without
success so far.
Given the volume of artifacts and sub-projects present in a project built
this way retro-fitting a build file would be a project in itself, especially if
a .ear deployment is selected.
Environment is WinXPsp2, jdk1.5.0_10
Any guidence, information most appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131624#4131624
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131624
18 years, 1 month
[JBoss Tools (users)] - Deployment error with Jboss Tools 2.0.0, Seam 2.0 and RichFa
by ljmckinn
Hi,
I am getting this error every time I try to run my application. The application deploys fine, no problems.
Here is the Error I recieve when trying to view the application with a browser(Firefox)
03:35:09,093 ERROR [AjaxPhaseListener] Exception on get current Skin
java.lang.IllegalArgumentException: Illegal group reference
at java.util.regex.Matcher.appendReplacement(Matcher.java:706)
at java.util.regex.Matcher.replaceAll(Matcher.java:806)
at java.lang.String.replaceAll(String.java:2000)
at org.richfaces.skin.SkinFactoryImpl.loadProperties(SkinFactoryImpl.java:290)
at org.richfaces.skin.SkinFactoryImpl.buildSkin(SkinFactoryImpl.java:269)
at org.richfaces.skin.SkinFactoryImpl.getSkinByName(SkinFactoryImpl.java:120)
at org.richfaces.skin.SkinFactoryImpl.getSkin(SkinFactoryImpl.java:135)
at org.ajax4jsf.event.AjaxPhaseListener.beforePhase(AjaxPhaseListener.java:143)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:595)
It's 4:00 am and I have sore from beating my head on this problem. Does anyone have any ideas?
LM
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131622#4131622
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131622
18 years, 1 month
[JBoss jBPM] - problem with transaction
by mkalibek
Hello, I'm quite new to jBPM.
I wrote such part of code
| JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
| JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
| try {
| TaskInstance ti = jbpmContext.loadTaskInstanceForUpdate(taskID);
| // do something
| ti.end();
| }
| finally {
| jbpmContext.close();
| }
|
Here after task instance is finished, process instance must end.
As I understand, jbpmContext saves task instance and then process instance attempts to be saved to. But following error occurs:
| 16:08:22,015 ERROR [EjbSchedulerService] javax.naming.NameNotFoundException: ejb not bound
| 16:08:22,015 ERROR [GraphElement] action threw exception: ejb local timer lookup problem
| org.jbpm.JbpmException: ejb local timer lookup problem
| at org.jbpm.scheduler.ejbtimer.EjbSchedulerService.<init>(EjbSchedulerService.java:34)
| at org.jbpm.scheduler.ejbtimer.EjbSchedulerServiceFactory.openService(EjbSchedulerServiceFactory.java:11)
| at org.jbpm.svc.Services.getService(Services.java:144)
| at org.jbpm.svc.Services.getCurrentService(Services.java:91)
| at org.jbpm.graph.exe.ProcessInstance.end(ProcessInstance.java:329)
| 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:585)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| ...
| ...
| ...
|
In jbpm.cfg.xml settings are:
| <service name="persistence">
| <factory>
| <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
| <field name="isCurrentSessionEnabled">
| <true/>
| </field>
| </bean>
| </factory>
| </service>
|
In hibernate.cfg.xml are:
| <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
| <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
| <property name="jta.UserTransaction">java:comp/UserTransaction</property>
|
Anyone knows why it is?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131619#4131619
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131619
18 years, 1 month