[jboss-user] [JBoss OSGi Users] - test forward to mailing list

2009-08-23 Thread thomas.dies...@jboss.com
test forward to mailing list

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251075#4251075

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251075
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: event type="assigned" doesn't fire

2009-08-23 Thread aroeder
I rechecked it again: I'm using jBPM 3.3.1 not JBPM 3.2.2. Sorry!

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251073#4251073

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251073
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: extending tasks

2009-08-23 Thread sravyts
But in jbpm3 we could register a custom task factory, so the tasks were created 
using the extended class with the extra properties initialized in the 
constructor (using the execution context).

I can't seem to find anything in the manuals (user en dev) for doing this?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251070#4251070

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251070
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools Users] - jboss 4.2.3 behavs diffrently under jboss tools 3.1 m2

2009-08-23 Thread Elhanan
hi.. when i start jbosss server and my ear delpoyed 
under jboss tools 3.1 in eclipse 3.5 i get: 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'HypertensionLogic' defined in URL 
[file:/C:/Workdir/jboss/jboss-4.2.3/server/pmp/deploy/underwrite.ear/classes/com/pnx/underwrite/command/spring-cmd.xml]:
 Instantiation of bean failed; nested exception is 
java.lang.ExceptionInInitializerError 
at 
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)
 
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
 
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
 
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
 
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
 
at java.security.AccessController.doPrivileged(Native Method) 
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
 
at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
 
at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
 
at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
 
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
 
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
 
at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
 
at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
 
at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
 
at 
org.springframework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:140)
 
at 
org.springframework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:84)
 
at com.pnx.underwrite.bo.utils.BeanWiring.init(BeanWiring.java:14) 
at com.pnx.underwrite.command.AppConfig.init(AppConfig.java:49) 
at 
com.pnx.pmp.configuration.webapp.Bootstrap.handleLifeCycle(Bootstrap.java:172) 
at 
com.pnx.pmp.configuration.webapp.Bootstrap.handleLifeCycles(Bootstrap.java:155) 
at com.pnx.pmp.configuration.webapp.Bootstrap.init(Bootstrap.java:71) 
at 
com.pnx.pmp.configuration.webapp.Bootstrapper.contextInitialized(Bootstrapper.java:41)
 
at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
 
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361) 
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790) 
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770) 
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553) 
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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296) 
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 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 
at java.lang.reflect.Method.invoke(Method.java:585) 
at 
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296) 
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) 
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 
at 
org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
 
at 
org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
 
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375) 
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.ServiceM

[jboss-user] [jBPM Users] - event type="task-assign" doesn't fire

2009-08-23 Thread aroeder
I'm using jBPM 3.2.2 and my task node looks like that:

  | 
  |   
  |  
  |
  |  
  |  
  |  
  |  
  |  
  |  
  |   
  |   
  | 
  | 

But the event type="task-assign" never gets fired, when I assign an actor by: 


  | TaskInstance task = ctx.getTaskInstance(pTaskInstanceId);
  | task.start(actorID);
  | 


What am I doing wrong?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251066#4251066

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251066
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Rollback Problem in JBM 2.0.0 BETA4

2009-08-23 Thread kazuno
Hello.

I'm evaluating JBoss Messaging 2.0.0 BETA4 .
And, I tried the following procedure to check JBM's rollback functionality.

 1. Start up JBM.
 2. Check MessageCount of ExampleQue by jconsole. and 0 message found.
 3. Producer sends 1000 messages to ExampleQue by a single transaction. and 
commit.
 4. Check MessageCount of ExampleQue by jconsole. and 1000 messages found.
 5. Consumer tries to receive 1000 messages using a transaction for each 
message. and makes a rollback one out of ten trials.
 
My Consumer received 30 messages and looks like freezed, seems to wait the 
arraival of a message.
10 messsages, 100 messages are OK. But at the case of 1000 messages, this 
problem happens.


My Consumer's output is here.
  
  | message 0 received. payload is 0
  | === Rollback ===
  | message 1 received. payload is 0
  | message 2 received. payload is 1
  | message 3 received. payload is 2
  | message 4 received. payload is 3
  | message 5 received. payload is 4
  | message 6 received. payload is 5
  | message 7 received. payload is 6
  | message 8 received. payload is 7
  | message 9 received. payload is 8
  | message 10 received. payload is 9
  | message 11 received. payload is 10
  | === Rollback ===
  | message 12 received. payload is 10
  | message 13 received. payload is 11
  | message 14 received. payload is 12
  | message 15 received. payload is 13
  | message 16 received. payload is 14
  | message 17 received. payload is 15
  | message 18 received. payload is 16
  | message 19 received. payload is 17
  | message 20 received. payload is 18
  | message 21 received. payload is 19
  | message 22 received. payload is 20
  | === Rollback ===
  | message 23 received. payload is 20
  | message 24 received. payload is 21
  | message 25 received. payload is 22
  | message 26 received. payload is 23
  | message 27 received. payload is 24
  | message 28 received. payload is 25
  | message 29 received. payload is 26
  | message 30 received. payload is 27
  | message 31 received. payload is 28
  | message 32 received. payload is 29
  | message 33 received. payload is 30
  | === Rollback ===
  | 

I confirmed following by jconsole.
 o ExampleQueue has 70 messages.

And my environment is 
 o Windows XP SP3
 o Sun JDK 1.6.0_15
 o JBoss Messaging 2.0.0 BETA4

Any comments or suggestions?



Producer.java

  | import java.util.HashMap;
  | import java.util.Map;
  | 
  | import javax.jms.Connection;
  | import javax.jms.ConnectionFactory;
  | import javax.jms.DeliveryMode;
  | import javax.jms.Message;
  | import javax.jms.MessageProducer;
  | import javax.jms.Queue;
  | import javax.jms.Session;
  | 
  | import org.jboss.messaging.core.config.TransportConfiguration;
  | import 
org.jboss.messaging.integration.transports.netty.NettyConnectorFactory;
  | import org.jboss.messaging.jms.JBossQueue;
  | import org.jboss.messaging.jms.client.JBossConnectionFactory;
  | 
  | /**
  |  * A Producer.
  |  */
  | public class Producer {
  | 
  | public static void main(String[] args) throws Exception {
  | 
  | Connection connection = null;
  | Queue queue = null;
  | Session session = null;
  | MessageProducer producer = null;
  | 
  | try {
  | 
  | // Step 1. Create a ConnectionFactory
  | Map params = new HashMap();
  | params.put("jbm.remoting.netty.host","localhost");  

  | params.put("jbm.remoting.netty.port","5445");   

  | TransportConfiguration transportConfiguration =
  | new 
TransportConfiguration(NettyConnectorFactory.class.getName(), params);
  | ConnectionFactory cf = new 
JBossConnectionFactory(transportConfiguration);
  | 
  | // Step 2. Create a Connection and start.
  | connection = cf.createConnection();
  | connection.start();
  | 
  | // Step 3. Create a Session that transactedl.
  | session = connection.createSession(true, 
Session.SESSION_TRANSACTED);
  | 
  | // Step 4. Create a Queue.
  | queue = new JBossQueue("ExampleQueue");
  | 
  | // Step 5. Create a Producer.
  | producer = session.createProducer(queue);
  | 
  | // Step 7. Set delivery mode to persistent.
  | producer.setDeliveryMode(DeliveryMode.PERSISTENT);
  | 
  | // Step 8. Send 1000 messages.
  | for (int i = 0; i < 1000; i++) {
  | Message message = 
session.createObjectMessage(new Integer(i));
  | producer.send(message);
  |  

[jboss-user] [jBPM Users] - JBPM Java Task return value

2009-08-23 Thread jbpmjboss11
Hi I am trying to run a Java task with return var as a part of my JBPM flow. I 
could successfully pass input arguments to the class mentioned in Java task but 
while getting value back from the Java task it throws exception saying ...

java.lang.NullPointerException
at 
org.jbpm.pvm.internal.cmd.GetExecutionVariablesCmd.execute(GetExecutionVariablesCmd.java:60)
at 
org.jbpm.pvm.internal.cmd.GetExecutionVariablesCmd.execute(GetExecutionVariablesCmd.java:36)

org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at 
org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
at 
org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54)
at 
org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
at 
org.jbpm.pvm.internal.svc.ExecutionServiceImpl.getVariable(ExecutionServiceImpl.java:130)

Please respond if someone has already faced and resolved this issue...

Thanks
Yucon

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251063#4251063

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251063
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - Re: jboss behaves diffrently under jboss tools 3.1

2009-08-23 Thread jaikiran
A better place for this question, would be the JBoss Tools users forum here 
http://www.jboss.org/index.html?module=bb&op=viewforum&f=201

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251062#4251062

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251062
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: JMS Bridge between IBM MQ and JBM

2009-08-23 Thread gaohoward
you probably need to change to XAConnectionFactory

javax.jms.XAConnectionFactory

I don't know the WAS adapter configuration, you can refer to their doc for 
help. 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251061#4251061

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251061
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: JBPM 3.3.1 with Role

2009-08-23 Thread optixpro
"kukeltje" wrote : access-control to pages in the jbpm 3 console is just basic 
jsf/web access control, nothing special
the mean i have to create my own web console?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251057#4251057

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251057
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] Deciding on File Upload's Location

2009-08-23 Thread Alexander Enrique Urieles Nieto
Hi,

While developing a web application I got stuck on file upload's issues:
1.- How do I choose a proper non-volatile location with writing privileges?
2.- Can be the "deploy\myapp.war" folder a good location or it's reset
on each server's restart?

Thanks in advance,

Alexander Enrique Urieles Nieto
Estudiante Ingeniería de Sistemas
Universidad Nacional de Colombia - Sede Bogotá

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: JBPM 3.3.1 with Role

2009-08-23 Thread kukeltje
access-control to pages in the jbpm 3 console is just basic jsf/web access 
control, nothing special

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251051#4251051

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251051
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - jboss behaves diffrently under jboss tools 3.1

2009-08-23 Thread Elhanan
hi.. when i start jbosss server and my ear delpoyed 
under jboss tools 3.1 in eclipse 3.5 i get:
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'HypertensionLogic' defined in URL 
[file:/C:/Workdir/jboss/jboss-4.2.3/server/pmp/deploy/underwrite.ear/classes/com/pnx/underwrite/command/spring-cmd.xml]:
 Instantiation of bean failed; nested exception is 
java.lang.ExceptionInInitializerError
at 
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at 
org.springframework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:140)
at 
org.springframework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:84)
at com.pnx.underwrite.bo.utils.BeanWiring.init(BeanWiring.java:14)
at com.pnx.underwrite.command.AppConfig.init(AppConfig.java:49)
at 
com.pnx.pmp.configuration.webapp.Bootstrap.handleLifeCycle(Bootstrap.java:172)
at 
com.pnx.pmp.configuration.webapp.Bootstrap.handleLifeCycles(Bootstrap.java:155)
at com.pnx.pmp.configuration.webapp.Bootstrap.init(Bootstrap.java:71)
at 
com.pnx.pmp.configuration.webapp.Bootstrapper.contextInitialized(Bootstrapper.java:41)
at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
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 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at 
org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
at 
org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
at org.jbo

[jboss-user] [jBPM Users] - JBPM 3.3.1 with Role

2009-08-23 Thread optixpro
hi i'm just student now i have some question about how to limit access level on 
jbpm-console (JSF Console) on first install. 
my question is
1. can i add new role on jbpm? ex. driver,super manager ...
2. if i want to limit access page or process level i need to create my own 
business process choreographer(BPC) now i understand the jbbm-console just only 
example BPC 

thank much for any answer bacasue i have to do my senior project rigth now. 
thank you

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251044#4251044

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251044
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Javassist Users] - How to add an import statement

2009-08-23 Thread spatnaik77
HI,
I am using jassist to instrument the byte code. I want to add following 
statement to all methods:
method.insertBefore("{ Profiler.start(); }");
In addition to this i should add the import statement for Profiler class. How 
should i do it ?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251041#4251041

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251041
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal Users] - CMS Service cannot start !!

2009-08-23 Thread lord_david
Hello, there is my case , I have installed jboss portal on a solaris system , 
It works fine in last week, but the last weekend the machin was shutdown and 
later the server start but the CMS service on the portal didnt, I let you the 
log thanks . 

2009-08-21 15:03:24,040 WARN  [com.arjuna.ats.arjuna.logging.arjLoggerI18N] 
[com.arjuna.ats.arjuna.coordinator.BasicAction_58] - Abort of action id 
a098119:8d33:4a8efbca:3b invoked while multiple threads active within it.
2009-08-21 15:03:24,041 WARN  [com.arjuna.ats.arjuna.logging.arjLoggerI18N] 
[com.arjuna.ats.arjuna.coordinator.CheckedAction_2] - CheckedAction::check - 
atomic action a098119:8d33:4a8efbca:3b aborting with 1 threads active!
2009-08-21 15:04:03,317 ERROR [org.apache.jackrabbit.core.RepositoryImpl] 
failed to persist repository properties
javax.jcr.RepositoryException: failed to persist repository properties: Current 
transaction is not in progress: Current transaction is not in progress
at 
org.apache.jackrabbit.core.RepositoryImpl.storeRepProps(RepositoryImpl.java:1147)
at 
org.apache.jackrabbit.core.RepositoryImpl.doShutdown(RepositoryImpl.java:1009)
at 
org.apache.jackrabbit.core.RepositoryImpl.shutdown(RepositoryImpl.java:948)
at org.apache.jackrabbit.core.RepositoryImpl.(RepositoryImpl.java:348)
at 
org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:557)
at 
org.jboss.portal.cms.impl.jcr.jackrabbit.JackrabbitJCRService.start(JackrabbitJCRService.java:108)
at org.jboss.portal.cms.impl.jcr.JCRCMS.startJCR(JCRCMS.java:591)
at org.jboss.portal.cms.impl.jcr.JCRCMS.startService(JCRCMS.java:357)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
at 
org.jboss.portal.jems.as.system.AbstractJBossService.start(AbstractJBossService.java:73)
at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.portal.jems.as.system.JBossServiceModelMBean$ServiceMixin.execute(JBossServiceModelMBean.java:486)
at 
org.jboss.portal.jems.as.system.JBossServiceModelMBean$ServiceMixin.startService(JBossServiceModelMBean.java:452)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
at 
org.jboss.portal.jems.as.system.JBossServiceModelMBean$6.invoke(JBossServiceModelMBean.java:374)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanPro

[jboss-user] [JBoss Portal Users] - Re: No such method --> org.jboss.portal.portlet.impl.jsr168.

2009-08-23 Thread jber...@hotmail.com
I've done the following which solved my problem. I overwrite the class:
org.jboss.portal.portlet.impl.jsr168.api.MimeResponseImpl

and added the following:
anonymous wrote : 
  |public OutputStream getOutputStream() throws IOException {
  |return this.getPortletOutputStream();
  |}
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251039#4251039

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251039
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0 Users] - Can't read with native query a type of CHAR(2)

2009-08-23 Thread ja...@laposte.net
Hello
I'm working with mysql 5 / jboss4.2.2/EJB3/JDK6
I want from a nativequery read a field of CHAR(n) in a database, when I user 
varchar , it s works, but if i use char(n), I always get a Character instead of 
a String.


  | CREATE TABLE testchar(
  | myid CHAR(2) PRIMARY KEY
  | )

When i user native query to retrive data then I get a java.lang.Character 
instead of a String.


  | q=em.createNativeQuery("SELECT myid FROM testchar");
  | q.setMaxResults(2);
  | List r= q.getResultList();
  | log.info("class="+ r.get(0).getClass()+" "+r.get(0));
  |  -->return java.lang.Character and value is the first character of the row

There is someone who have an idea of what is wrong?
Thanks

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251037#4251037

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251037
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: Bridge - Once and only once, connections failing after i

2009-08-23 Thread rnicholson10
Howard,

I'd like to raise another point on this issue. Every time this happens we 
simply restart each JBoss instance and it all starts working again. The main 
problem being that when the issue arises we cannot send messages to the local 
queue, so we essentially have lost these messages before we restart JBoss.

Example:

Box1: Just has a locally deployed queue
Box2: Contains the remote queue we wish to send to and the bridge from the 
local queue on box1 to the remote queue here.

When the bridge dies, we cannot send any messages to the local queue on box1. 
Surely we should always be able to send messages to the local queue on box1? 
The bridge should not be able to effect this action. If this happened then 
repairing the bridge would let messages be delivered to the remote queue once 
more with no loss of messages. 

I know you can't reproduce the error I'm getting but at least if all messages 
always made onto onto the local queue recovery would be possible.

I think that a good rule of thumb would be: "If the local queue is deployed 
correctly, it should always be possible to put messages on this queue".

What do you think?

Ross

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251036#4251036

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251036
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal Users] - Re: No such method --> org.jboss.portal.portlet.impl.jsr168.

2009-08-23 Thread jber...@hotmail.com
The problem is that the request is not even reaching my method for generating 
the chart. It crashes when trying to get the outputStream (maybe a question for 
rich faces guys). The ajax4jsf tag need to have a method with the following 
parameters: genChart(OutputStream out, Object value)

So I think I've misconfigured something, because 
org.ajax4jsf.resource.FacesResourceContext.getOutputStream lookup the stream on 
ResourceResponseImpl.getOutputStream instead of 
ResourceResponseImpl.getPortletOutputStream.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251033#4251033

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251033
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA] - DataSource Failover in Cluster JBoss

2009-08-23 Thread NJaganMohanRao
Hello Every One,

My Application Environment is :
1. JBoss 4.2.3 GA,
2. Postgres 3.3.1,
3. Ejb 3.0.

I am facing a problem while Data Source Fail over in JBoss Cluster, I am 
receiving a WARN: message while fail over takes place, I would like to over 
come this problem.
I have implemented org.jboss.resource.adapter.jdbc.ValidConnectionChecker but I 
don't find the any clue how to verify the postgres connection(valid connection 
/ invalid connection).

The WARNING as follows: 



[jboss-user] [JBoss Portal Users] - Re: No such method --> org.jboss.portal.portlet.impl.jsr168.

2009-08-23 Thread wesleyhales
Try this when you generate the chart:

  | Object responseObject = 
FacesContext.getCurrentInstance().getExternalContext().getResponse();
  |   if (responseObject instanceof RenderResponse) {
  | BufferedRenderResponseWrapper brrw = 
(BufferedRenderResponseWrapper)responseObject;
  |  RenderResponse response = brrw.getResponse();
  |  
response.getPortletOutputStream().write(getFiles().get((Integer)object).getData());
  | 
  |   }else{
  |  //servlet response
  |  stream.write(getFiles().get((Integer)object).getData());
  |   }
  | 
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251028#4251028

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251028
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0 Users] - Re: EJB injection into an MDB listening to a remote queue. B

2009-08-23 Thread jaikiran
Is this solved? I see another thread in this forum, created by you 
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=160202  which is very 
similar to this. If these are the same issue then let's continue the discussion 
in your other thread.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251027#4251027

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251027
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0 Users] - Re: Unable to inject EJBs into an MDB listening to a remote

2009-08-23 Thread jaikiran
Please post the entire exception stacktrace. Is your MDB and the other EJB 
packaged in the same jar or ear?


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251026#4251026

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251026
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0 Users] - Re: persistence-context-ref always yields same object instan

2009-08-23 Thread jaikiran
Looking into the way this is handled, this appears to be an issue with the web 
layer where the ENC injections happen only once (during the start). 
Effectively, the EntityManager is injected once into the ENC of that component. 
The spec says:

anonymous wrote :  In general, lookups of objects in the JNDI java: 
namespace are required to return a new instance of the requested object every 
time. Exceptions are allowed for the following:
  | 
  |   The container knows the object is immutable (for example, objects of type 
java.lang.String), or knows that the application cannot change the state of the 
object.
  | 
  |   The object is defined to be a singleton, such that only one instance of 
the object may exist in the JVM.
  | 
  |   The name used for the lookup is defined to return an instance of the 
object that might be shared. The name java:comp/ORB is such a name.
  | 

So this looks like a bug to me. Could you please create an issue in JBAS here 
https://jira.jboss.org/jira/browse/JBAS

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251025#4251025

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251025
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal Users] - No such method --> org.jboss.portal.portlet.impl.jsr168.api.

2009-08-23 Thread jber...@hotmail.com
Hello,

On my xhtml page I've the following tag:

  | 
  | 

And it seems that this entry causes the following exception as it is looking 
for an outputstream to write the image:


  | 15:39:45,557 ERROR [home_prototype_portal_quote_portlet_QuoteListPortlet] 
The portlet threw an exception
  | javax.faces.FacesException: java.lang.NoSuchMethodException: 
org.jboss.portal.portlet.impl.jsr168.api.ResourceResponseImpl.getOutputStream()
  | at 
org.ajax4jsf.resource.FacesResourceContext.getOutputStream(FacesResourceContext.java:124)
  | at org.ajax4jsf.resource.UserResource.send(UserResource.java:108)
  | 

And obviously, the method getOutputStream does not exists as it is 
getPortletOutputStream. Does someone knows what I could have misconfigured.

Regards,


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251024#4251024

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251024
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache Users] - Cache configuration out of hbm files

2009-08-23 Thread luuzz
Hello,
I am trying to make cache configuration in the hibernate-service.xml file. I 
tried to uste the class-cache tag but it doesn't seem to be working.
Need help please

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251023#4251023

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251023
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Apache & Tomcat Users] - Work arround

2009-08-23 Thread erahamim
I was able to find a work arround for this problem.

My original IE request was like this:

var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("POST", URL, false); 
xmlhttp.send(xmlRequest); -- some xml

I disabled the request user agent header by using to the folowing api:
xmlhttp.setRequestHeader("User-Agent","new user agent");

Now it is working fine. though I still don't know why I originally got the 
exception.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251022#4251022

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251022
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP Users] - Re: JBoss AOP ISSUE

2009-08-23 Thread kabir.k...@jboss.com
Your annotation does not contain a valid pointcut expression. Try
execution(* POJO->someMethod(..)))", type= org.jboss.aop.AdviceType.AFTER) 
  | 
To post xml, click the 'code' box


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251021#4251021

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251021
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP Users] - Re: JBoss AOP ISSUE

2009-08-23 Thread pvenkatesh
aop.xml file is as follows, due to lessthen, greaterthen symbal's blocking in 
this site, i have removed them

aop
   aspect class="MyAspect"/
   bind pointcut="execution(* POJO->someMethod(..))"
  after aspect="MyAspect" name="after"/
   /bind
/aop


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251020#4251020

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251020
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP Users] - JBoss AOP ISSUE

2009-08-23 Thread pvenkatesh
Hi 

I have tried to execute following sample JBOSS AOP application, my 
aspect(MyAspect .java) class is never gets invoked. Can someone helpe me to 
resolve this issue.

For the attached files, aspect class is never invoked.

When I have added the following property @ build.xml at run-load-time target, 
---
sysproperty key="jboss.aop.class.path" value="${build.classes.dir}"/
---

I am getting the following Exception
===
D:\EclipseWorkspace\Aspect>ant run-load-time
Buildfile: build.xml

clean:
   [delete] Deleting directory D:\EclipseWorkspace\Aspect\build\classes
[mkdir] Created dir: D:\EclipseWorkspace\Aspect\build\classes

common:read_params:

compile:
[javac] Compiling 3 source files to D:\EclipseWorkspace\Aspect\build\classes

run-load-time:
 [java] java.lang.reflect.InvocationTargetException
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [java] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 [java] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [java] at java.lang.reflect.Method.invoke(Method.java:597)
 [java] at 
sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:323)
 [java] at 
sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338)
 [java] Caused by: org.jboss.aop.pointcut.ast.TokenMgrError: Lexical error 
at line 1, column 1.  Encountered: "*" (4
2), after : ""
 [java] at 
org.jboss.aop.pointcut.ast.PointcutExpressionParserTokenManager.getNextToken(PointcutExpressionParser
TokenManager.java:3315)
 [java] at 
org.jboss.aop.pointcut.ast.PointcutExpressionParser.jj_scan_token(PointcutExpressionParser.java:3163)

 [java] at 
org.jboss.aop.pointcut.ast.PointcutExpressionParser.jj_3R_12(PointcutExpressionParser.java:2622)
 [java] at 
org.jboss.aop.pointcut.ast.PointcutExpressionParser.jj_3_6(PointcutExpressionParser.java:2594)
 [java] at 
org.jboss.aop.pointcut.ast.PointcutExpressionParser.jj_3R_9(PointcutExpressionParser.java:2601)
 [java] at 
org.jboss.aop.pointcut.ast.PointcutExpressionParser.jj_3_2(PointcutExpressionParser.java:2650)
 [java] at 
org.jboss.aop.pointcut.ast.PointcutExpressionParser.jj_3R_8(PointcutExpressionParser.java:2642)
 [java] at 
org.jboss.aop.pointcut.ast.PointcutExpressionParser.jj_3_1(PointcutExpressionParser.java:2655)
 [java] at 
org.jboss.aop.pointcut.ast.PointcutExpressionParser.jj_2_1(PointcutExpressionParser.java:1718)
 [java] at 
org.jboss.aop.pointcut.ast.PointcutExpressionParser.Expression(PointcutExpressionParser.java:89)
 [java] at 
org.jboss.aop.pointcut.ast.PointcutExpressionParser.Start(PointcutExpressionParser.java:28)
 [java] at 
org.jboss.aop.pointcut.PointcutExpression.(PointcutExpression.java:61)
 [java] at 
org.jboss.aop.AspectManagerAnnotationLoaderStrategy.deployAspectMethodBinding(AspectManagerAnnotation
LoaderStrategy.java:100)
 [java] at 
org.jboss.aop.AspectAnnotationLoader.deployAspectMethodBindings(AspectAnnotationLoader.java:422)
 [java] at 
org.jboss.aop.AspectAnnotationLoader.deployAspect(AspectAnnotationLoader.java:213)
 [java] at 
org.jboss.aop.AspectAnnotationLoader.deployClassFile(AspectAnnotationLoader.java:125)
 [java] at 
org.jboss.aop.AspectAnnotationLoader.deployInputStreamIterator(AspectAnnotationLoader.java:115)
 [java] at 
org.jboss.aop.Deployment.deployThroughClassAnnotations(Deployment.java:118)
 [java] at org.jboss.aop.Deployment.deploy(Deployment.java:53)
 [java] FATAL ERROR in native method: processing of -javaagent failed
 [java] at org.jboss.aop.AspectManager$1.run(AspectManager.java:339)
 [java] at org.jboss.aop.AspectManager$1.run(AspectManager.java:268)
 [java] at java.security.AccessController.doPrivileged(Native Method)
 [java] at 
org.jboss.aop.AspectManager.initManager(AspectManager.java:266)
 [java] at org.jboss.aop.AspectManager.instance(AspectManager.java:245)
 [java] at org.jboss.aop.AspectManager.instance(AspectManager.java:234)
 [java] at org.jboss.aop.standalone.Agent.premain(Agent.java:51)
 [java] ... 6 more
 [java] Exception in thread "main"

BUILD FAILED
D:\EclipseWorkspace\Aspect\build.xml:71: Java returned: 1

===


Thanks
Venkatesh
venkat...@yahoo.com




--
Driver.java

package aspect;

public class Driver {
public static void main(String[] args) {
POJO pojo = new POJO(); 
pojo.someMethod("hi");  
}
}