[jboss-user] [EJB 3.0] - Re: @Local and @Remote version of the same interface?

2006-07-29 Thread lhoriman
I'm finding that even in-process, @Remote interfaces result in serialization.

Isn't JBoss supposed to detect this case and optimize out the serialization?

Thanks,
Jeff

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

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


[jboss-user] [JBoss Seam] - Exception sending context initialized event to listener inst

2006-07-29 Thread lucas f m r
Stack:

...
23:00:48,811 INFO  [Initialization] initializing Seam
23:00:48,952 INFO  [Component] Component: org.jboss.seam.core.init, scope: 
APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
23:00:48,967 ERROR [[/seam-usuario]] Exception sending context initialized 
event to listener instance of class org.jboss.seam.servlet.SeamListener
java.lang.NullPointerException
at sun.beans.editors.BoolEditor.setAsText(BoolEditor.java:38)
at org.jboss.seam.Component.initInitializers(Component.java:314)  ...

what happen , i´ve tried to do a seam app clone of the seam-registration 
example but i´m get´n this error

tanx

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961712

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


[jboss-user] [JBoss Messaging] - Re: Consumed messages redelivered ?

2006-07-29 Thread joellindheimer
Lakshmi, Tim, Ovidiu,
I have isolated the variable that caused the problem. When I configured my 
consumer with Spring the problem was duplicated. I noticed that there was a 
difference between my test and the Spring configuration and that was the user 
of our own configured QueueConnectionFactory. I then switched from using 
Click's configured WMXQueueConnectionFactory: 

  
WMXQueueConnectionFactory
false

jms-ra.rar

org.jboss.resource.adapter.jms.JmsConnectionFactory
javax.jms.Queue
6
5
45
5
  


To using the generic Jboss "/XAConnectionFactory" and the problem went away. 
This is very good news... however, I imagine that it would be important to 
Jboss to understand why the problem occurs with the WMXConnectionFactory 
configuration as to avoid others encountering the same problem.

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

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


[jboss-user] [JBoss Messaging] - Re: Consumed messages redelivered ?

2006-07-29 Thread joellindheimer
Tim/Ovidiu/Lakshmi
1) I created a JMS Async consumer which is created in a new thread within the 
init() method of a startup servlet.
2) The onMessage() wrapps  a UserTransaction
3) I created a client that sends 9 messages

There were no residual messages in the Messages Table.  I will contact Juergen 
Hoeller and see if he has any suggestions.

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

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


[jboss-user] [JBoss/Spring Integration] - Re: Is it SpringLifecycleInterceptor or just me?

2006-07-29 Thread alesj
anonymous wrote : Currently I am using annotations and pushing manager to the 
service layer. Yet wiring it up from outside, Spring, I mean, would be kinda 
kool to me.
  | 

>> but why not using @PersistenceContext ... and then wire-ing it up to Spring 
>> layer?

Ok ... missed this one ... but what's the problem here?
I guess you can still use JPA from Spring ... but EJB3 container will probably 
not be able to join into that context.
It depends what you want to do.

Rgds, Ales

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

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


[jboss-user] [JBoss jBPM] - using JBPM to string together 5 Perl webservices (they manip

2006-07-29 Thread wyckoff

is this a good application for JBPM/JBOSS.

I would prefer to write the minimum amount of Java possible and just use bpel 
or something to specify the flow from service to service (serially, but they do 
have error transitions from each node).

The services would be long running, so we'd want to make them asynchronous.  

If I have to, I can wrap the 5 services, but this seems like something that 
should be more config driven??

Thanks, pete


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

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


[jboss-user] [JBoss/Spring Integration] - Re: Is it SpringLifecycleInterceptor or just me?

2006-07-29 Thread alesj
Looks like you are using old ejb3 impl:
 - 
http://jboss.org/jbossBlog/blog/bburke/2006/06/02/JBoss_EJB_3_0_Preview_RC8.txt

>> Another question - how to inject EntityManager from Spring configuration

This you have to look it up from Spring docs ... but why not using 
@PersistenceContext ... and then wire-ing it up to Spring layer?

Rgds, Ales

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

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


[jboss-user] [JBoss/Spring Integration] - Re: Is it SpringLifecycleInterceptor or just me?

2006-07-29 Thread Arno Werr
Exception from SpringLifecycleInterceptor:

  | Error message: java.lang.RuntimeException: java.lang.RuntimeException: 
java.lang.NoSuchMethodError: 
javax.interceptor.InvocationContext.getTarget()Ljava/lang/Object;
  | Exception in thread "main" javax.ejb.EJBException: 
java.lang.RuntimeException: java.lang.RuntimeException: 
java.lang.NoSuchMethodError: 
javax.interceptor.InvocationContext.getTarget()Ljava/lang/Object;
  | at 
org.jboss.ejb3.cache.simple.SimpleStatefulCache.create(SimpleStatefulCache.java:223)
  | at 
org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:288)
  | at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
  | at 
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
  | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
  | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
  | at 
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
  | at 
org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:412)
  | at 
org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
  | Caused by: java.lang.RuntimeException: java.lang.RuntimeException: 
java.lang.NoSuchMethodError: 
javax.interceptor.InvocationContext.getTarget()Ljava/lang/Object;
  | at 
org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.postConstruct(LifecycleInterceptorHandler.java:109)
  | at 
org.jboss.ejb3.EJBContainer.invokePostConstruct(EJBContainer.java:582)
  | at org.jboss.ejb3.AbstractPool.create(AbstractPool.java:108)
  | at org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:48)
  | at 
org.jboss.ejb3.cache.simple.SimpleStatefulCache.create(SimpleStatefulCache.java:207)
  | at 
org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:288)
  | at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
  | at 
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
  | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
  | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
  | at 
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
  | at 
org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:412)
  | at 
org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
  | at 
org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:190)
  | at org.jboss.remoting.Client.invoke(Client.java:525)
  | at org.jboss.remoting.Client.invoke(Client.java:488)
  | at 
org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:55)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:65)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateful.StatefulRemoteProxy.invoke(StatefulRemoteProxy.java:133)
  | at $Proxy1.initAirports(Unknown Source)
  | at com.ileonov.client.Client.init(Client.java:97)
  | at com.ileonov.client.Client.run(Client.java:39)
  | at com.ileonov.client.Client.main(Client.java:23)
  | Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodError: 
javax.interceptor.InvocationContext.getTarget()Ljava/lang/Object;
  | at 
org.jboss.ejb3.interceptor.LifecycleInvocationContextImpl.proceed(LifecycleInvocationContextImpl.java:141)
  | at 
org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.postConstruct(LifecycleInterceptorHandler.java:105)
  | at 
org.jboss.ejb3.EJBContainer.invokePostConstruct(EJBContainer.java:582)
  | at org.jboss.ejb3.AbstractPool.create(AbstractPool.java:108)
  | at org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:48)
  | at 
org.jboss.ejb3.cache.simple.SimpleStatefulCache.create(SimpleStatefulCache.java:207)
  | at 
org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:288)
  | at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
  | at 
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
  | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
  | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
  | at 
org.jboss.remoting.transport.sock

[jboss-user] [JBoss/Spring Integration] - Is it SpringLifecycleInterceptor or just me?

2006-07-29 Thread Arno Werr
The other day I decided to play a little with batch processing on JBoss + 
Spring EJB3 and all.
Created this stateful session bean to force the Entity manager do a batch job 
for me on remove


  | @Stateful
  | @Interceptors(SpringLifecycleInterceptor.class)
  | @TransactionAttribute(NOT_SUPPORTED)
  | public class StetefulBean implements Init {
  | @PersistenceContext(unitName = "titan", type = EXTENDED)
  | private EntityManager manager;
  |  
  | @Spring(jndiName = "spring-pojo", bean = "statefulService")
  | private TravelService service;
  | 
  | @PostConstruct
  | public void postConstruct() {
  | service.setManager(manager);
  | }
  | 
  | public void initAirports(int index) {
  | if (isInit(Airport.class)) {
  | return;
  | }
  | List lst = new ArrayList();
  |
  | for (int i = 0; i < index; i++) {
  | Airport port = new Airport();
  | if (i % 2 == 0) {
  | port.setName("Denver " + (i + 1));
  | port.setAirportCode("dnvr_" + (i + 1));
  | } else {
  | port.setName("Hoover " + (i + 1));
  | port.setAirportCode("hvr_" + (i + 1));
  | }
  | lst.add(port);
  | }
  | service.createAirports(lst);
  | }
  |
  | @Remove
  | @TransactionAttribute(REQUIRED)
  | public void flush() {
  | // syncrhonize with database;
  | }
  | 
  | private boolean isInit(Class clazz) {
  | return service.getNumberOfObjects(clazz) == 0 ? false : true;
  | }
  | }
  | 

I am using this SpringLifecycleInterceptor.class from the JBoss+Spring 
distribution. Unfortunately, that one is giving me kinda trouble throwing all 
kind of exceptions

OK. Made my own interceptor a la SpringLifecycleInterceptor

  | public class StatefulBeanInterceptor extends SpringPassivationInterceptor {
  | private static final long serialVersionUID = 1243234L;
  | @PostConstruct
  | public void postConstruct(InvocationContext ctx) throws Throwable {
  | inject(ctx.getBean());
  | ctx.proceed();
  | }
  | }
  | 

Wired it up. @Interceptors(StatefulBeanInterceptor.class) 
Ran JBoss. 
No problemo! Works like a charm. There might be something wrong with that 
SpringLifecyleInterceptor thing from the distribution, or mine might be a bit 
obsolete (I've downloaded sometime late June, I guess). No idea...

Another question - how to inject EntityManager from Spring configuration. 
Currently I am using annotations and pushing manager to the service layer. Yet 
wiring it up from outside, Spring, I mean, would be kinda kool to me.

Cheers,
Arno

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

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


[jboss-user] [Security & JAAS/JBoss] - Re: Adding roles to user on the fly

2006-07-29 Thread kuzmiigo
Some additional information.

jboss-web.xml:

  | java:/jaas/testdomain
  | 

>From login-config.xml:

  |   
  | 
  |   useFirstPass
  |   java:/DefaultDS
  | 
  | 
  |   useFirstPass
  |   java:/DefaultDS
  | 
  |   
  | 


Flushing code:
String domain = "testdomain";
  | Principal principal = new SimplePrincipal(user.getUsername());
  | ObjectName jaasMgr = new 
ObjectName("jboss.security:service=JaasSecurityManager");
  | Object[] params = { domain, principal };
  | String[] signature = { "java.lang.String", Principal.class.getName() };
  | MBeanServer server = (MBeanServer) 
MBeanServerFactory.findMBeanServer(null).get(0);
  | server.invoke(jaasMgr, "flushAuthenticationCache", params, signature);

Credentials caching is disabled, after flushing (just in case) Subject is not 
populated again (LoginModules are not called again to populate "Roles" group).

I would be grateful for your comments,

Igor

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

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


[jboss-user] [Clustering/JBoss] - Re: Data file synchronization

2006-07-29 Thread ScottMarlowNovell
As Ben suggested, others like to use a shared file system (JBoss can be 
configured to deploy from a shared folder).

Regarding the "no deployer available" deployment message that you are 
receiving, it is true as we expect to only share applications via farm 
deployment.

After farm deployment, is the xml configuration file accessible to your 
application on each of the cluster nodes?  

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

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


[jboss-user] [EJB 3.0] - Unable to persist timer

2006-07-29 Thread treespace
I added a timer service to a stateless EJB: 


  | private @Resource TimerService timer;
  | 
  | public void startTimer() 
  | {
  | timer.createTimer(1000, 1000,  "clock");
  | }
  | 
  | @Timeout public void timeou(Timer timer)
  | {
  |logger.info("tick");
  | }
  | 

This works wonderfully but there's a problem that ONLY appears when I'm running 
on Windows. I do not run in to this problem using the same app on OS X. I am 
using JBoss 4.0.4.GA. I get this error after killing and restarting JBoss a few 
times: 

08:50:19,421 ERROR [TimerServiceImpl] Cannot create txtimer
java.lang.IllegalStateException: Unable to persist timer
at 
org.jboss.ejb.txtimer.DatabasePersistencePolicy.insertTimer(DatabasePersistencePolicy.java:126)

I am not given an opportunity to catch this exception (tried that) before it 
chokes so I cannot retry the create call. I resolve the problem by taking a 
clean copy of the default configuration and then redeploying my app. 

Any suggestions appreciated. 


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

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


[jboss-user] [The Lizzard's corner] - Re: Repository for JBossCommon and Checkout instructions

2006-07-29 Thread raja05
I figured out a way to this. The following url works for cvsgrab to checkut a 
branch from CVS
sh /apps/cvsgrab-2.2.2/cvsgrab.sh -url 
http://viewcvs.forge.jboss.com/cgi-bin/viewcvs.cgi/jboss-common/src/?only_with_tag=JBossMC_1_0_2
  -destDir .

That would checkout the JBossMC_1_0_2 branch from jboss-common

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

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


[jboss-user] [Beginners Corner] - JBoss 4.0.4, IDE 2.0, Eclipse 3.2 - cannot configure a serve

2006-07-29 Thread jcurtin2ski
Hi all,

I'm trying to do an evaluation of JBoss as a lower cost option for our WAS 
servers.  Today I downloaded JBoss 4.0.4 and used the Eclipse update site to 
download JBoss IDE 2.0 into my brand new Eclipse 3.2 IDE.  I also downloaded 
org.eclipse.jst.server.jboss_1.0.0 which someone recommended but I still cannot 
get past the first step of configuring a server.  I'm following these steps:

1.  Open the 'Servers' tab in Eclipse
2.  Right click, 'New', 'Server'.  This brings up the 'Define a new server' 
dialog.
3.  Click on JBoss/JBoss 4.0.x.
4.  I get the error 'Missing classpath entry jboss-4.0.x\bin\run.jar
5.  Set the App Server Directory and Classpath variables to 'C:\Program 
Files\jboss-4.0.4.GA\
6.  New Error displayed = "C:\Program 
Files\jboss-4.0.4.GA\server\default\lib\javax.servlet.jar"

I know I'm missing something - but this is very frustrating.  Does anyone have 
a clear set of instructions on how to integrate these 3 versions of each 
package?

Thanks in advance for the help!

John

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

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


[jboss-user] [EJB 3.0] - Re: How to store information about many-to-many relationship

2006-07-29 Thread scotttam
Check out this posting, it covers the same scenario.

http://www.jboss.com/index.html?module=bb&op=viewtopic&t=87407


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

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


[jboss-user] [JCA/JBoss] - Re: Can't connect to global namespace datasource from servle

2006-07-29 Thread wmprice
The local java namespace is used for ApplicationComponents (ie Servlets, EJB's) 
residing in the same application server. It is known as the ENC (environment 
naming context). 

anonymous wrote : 
  | - If it is local then can servlets on other servers access it? 
  | 

No.Using a datasource outside of the local container is discouraged. It was put 
in place solely for TCK compatiblity. From the Wiki:

anonymous wrote : 
  | Note: JBoss does not recommend using this feature on a production 
environment. It requires accessing a connection pool remotely and this is an 
anti-pattern as connections are not serializable. Besides, transaction 
propagation is not supported and it could lead to connection leaks if the 
remote clients are unreliable (i.e crashes, network failure). If you do need to 
access a datasource remotely, JBoss recommends accessing it via a remote 
session bean facade.
  | 

anonymous wrote : 
  | What if it is a clustered environment? 
  | 

Datasources are non-clusterable. Each datasource is particular to the node on 
which it resides. 

anonymous wrote : 
  | - If that tag is present then I can access the DS using java:/jdbc/MySqlDS, 
not using java:/comp/env/jdbc/MySqlDS.
  | 

You could, but this would defeat the purpose of using an resource-ref. A 
resource-ref is a logical binding of a resource-ref name to an actual JNDI 
name. You could very well lookup the DataSource directly from JNDI, but if the 
JNDI name were to change, your code would have to change. The resource-ref 
shields you 'hard-coding' the JNDI name in your application. 

This is the purpose of the java:comp/env namespace. Basically it's a read-only 
JNDI namespace reserved for application components to store references to J2EE 
resources. 

anonymous wrote : 
  | - Are these the only files I need to modify to make the DS available?
  | 

Yes.

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

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


[jboss-user] [JBossWS] - 1.0.2: client exception when receiving an array Long[]

2006-07-29 Thread Juergen.Zimmermann
My webservice server transmits an array. The log looks ok:

2006-07-29 16:45:22,695 DEBUG org.jboss.ws.soap.SOAPContentElement - 
getXMLFragment from Object 
[xmlType={http://de.hska.ws/jaws}Long.Array,javaType=class [Ljava.lang.Long;]
  | 2006-07-29 16:45:22,705 DEBUG org.jboss.ws.soap.SOAPContentElement - 
xmlFragment: http://www.w3.org/2001/XMLSchema-instance";>http://de.hska.ws/jaws";>1http://de.hska.ws/jaws";>2http://de.hska.ws/jaws";>3
  | 

However, the client throws the following exception. Any hint is appreciated!
2006-07-29 16:45:22,635 DEBUG org.jboss.ws.soap.SOAPContentElement - 
setObjectValue: Alpha
  | 2006-07-29 16:45:22,645 DEBUG org.jboss.ws.soap.SOAPContentElement - 
getXMLFragment from Object 
[xmlType={http://www.w3.org/2001/XMLSchema}string,javaType=class 
java.lang.String]
  | 2006-07-29 16:45:22,645 DEBUG org.jboss.ws.soap.SOAPContentElement - 
xmlFragment: Alpha
  | 2006-07-29 16:45:22,715 DEBUG org.jboss.ws.soap.SOAPContentElement - 
setXMLFragment: 123
  | 2006-07-29 16:45:22,725 DEBUG org.jboss.ws.soap.SOAPContentElement - 
getObjectValue [xmlType={http://de.hska.ws/jaws}Long.Array,javaType=class 
[Ljava.lang.Long;]
  | 2006-07-29 16:45:22,735 ERROR org.jboss.ws.jaxrpc.CallImpl - Call 
invocation failed with unkown Exception
  | javax.xml.rpc.JAXRPCException: org.jboss.ws.binding.BindingException: 
org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: 
{http://de.hska.ws/jaws}value not found as a child of result
  | at 
org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:292)
  | at 
org.jboss.ws.binding.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:233)
  | at 
org.jboss.ws.binding.EndpointInvocation.getReturnValue(EndpointInvocation.java:182)
  | at org.jboss.ws.jaxrpc.CallImpl.syncOutputParams(CallImpl.java:873)
  | at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:704)
  | at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
  | at org.jboss.ws.jaxrpc.CallProxy.invoke(CallProxy.java:148)
  | at $Proxy7.findIdsByNachname(Unknown Source)
  | at de.hska.test.WebServicesTest.findIdsByNachname(Unknown Source)
  | 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.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
  | at 
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
  | at 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
  | at 
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
  | at 
org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
  | at 
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)
  | at 
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
  | at 
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
  | at 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
  | at 
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
  | at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:32)
  | at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:361)
  | at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:809)
  | at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:670)
  | Caused by: org.jboss.ws.binding.BindingException: 
org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: 
{http://de.hska.ws/jaws}value not found as a child of result
  | at 
org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeserializer.java:100)
  | at 
org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:229)
  | ... 26 more
  | Caused by: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: 
{http://de.hska.ws/jaws}value not found as a child of result
  | at 
org.jboss.ws.jaxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:67)
  | at 
org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeserializer.java:92)
  | ... 27 more
  | Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: 
{http://de.hska.ws/jaws}value not found as a child of result
  | at 
org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:156)
  | at 
org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:126)
  | at 
org.jboss.ws.jaxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshaller

[jboss-user] [JCA/JBoss] - Re: Can't connect to global namespace datasource from servle

2006-07-29 Thread LostJBossIdeUser
I understand that. But if I delete that tag then the DS will come under java:/ 
local namespace. 

- If it is local then can servlets on other servers access it? What if it is a 
clustered environment?
- If that tag is present then I can access the DS using java:/jdbc/MySqlDS, not 
using java:/comp/env/jdbc/MySqlDS. So I guess my question now is what is the 
actual difference between those namespaces?
- Are these the only files I need to modify to make the DS available?

Thanks for your help, wmprice!


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

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


[jboss-user] [The Lizzard's corner] - Repository for JBossCommon and Checkout instructions

2006-07-29 Thread raja05
Im trying to checkout the JBossCommon for the tag JBossMC_1_0_2 . I tried 
looking up
http://wiki.jboss.org/wiki/Wiki.jsp?page=CVSRepository and couldnt succeed in 
checking out. cvsgrab always returned me the directories and no contents inside.
Looking up through fisheye indicated that cvs2svn was run which implies that 
maybe the repository is now in svn ? Since there is no project for JbossCommon 
in the front page, I cant figure out the CVSROOT or the SVN Checkout URL for 
that.

Can someone let me know whats the checkout url for JBossCommon with tag 
JBossMC_1_0_2 ?

Thanks a lot
Raja


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

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


[jboss-user] [JBoss Messaging] - Re: messaging flow control related question

2006-07-29 Thread timfox
Raghu-

Thanks for your test program.

I have been experimenting with it, and here are my findings:

If CONSUMER_SLEEP_TIME and RELAYER_SLEEP_TIME are set to a small value e.g. 
1000, then the entire test runs through successfully - this is because the 
messages are being relayed and consumed at approximately the same rate as they 
are being sent, so they do not build up in the topic subscriptions.

If CONSUMER_SLEEP_TIME and RELAYER_SLEEP_TIME are set to a large value e.g. 
15, then a great many messages get sent before they start being consumed. 
Since each message you are sending is about 100K in size, and (on my machine) 
about 3000 get sent before they start being consumed, this is too much to be 
stored in RAM at once in my JBoss4.0.4 installation since I am using -Xmx100M.

I therefore configured the paging parameters for the topic so a maximum of 200 
messages would be stored in memory at once and the rest paged to storage:

   
 jboss.messaging:service=ServerPeer
 200
 10
 10
   
   
With this config the test also completes successfully - albeit more slowly 
since it has the added overhead of reading and writing from the database. I am 
using MySQL 5.

Finally I tried increasing the amount of memory for the server to 1.2GB 
(-XMx1200M), this should allow all 1 messages to be stored in memory 
without having to page to the db.

For this setup I also changed fullSize to 1, so if more than 1 messages 
arrive then we won't get an OutOfMemory error.

Again this test ran through fine.

After the tests have completed I am not seeing any messages or message 
references in the database, which is correct bahviour.

I can repeat the tests multiple times without seeing any significant change in 
memory on ther server.

I am using the HEAD codebase, which is what will be in RC4 when it is released 
in a few days. I have made many changes in compared to RC3 but not sure if they 
are responsible for seeing the difference in behaviour that you are seeing.

Probably your best bet is to upgrade to RC4 when it comes out and see if you 
still have your problems.

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

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


[jboss-user] [JBoss jBPM] - Re: hibernate.LazyInitializationException with jBPM websale

2006-07-29 Thread kukeltje
hmmm sorry, wrong quoting and no preview done (shame on me)

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

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


[jboss-user] [JBoss jBPM] - Re: hibernate.LazyInitializationException with jBPM websale

2006-07-29 Thread kukeltje
"DerJohannes" wrote : This was exactly the point, thank you!!! I wouldn't have 
figured this out alone...

Ahhh.. come on... I bet you would have I did.

On task.jsp, i added a commons-fileupload field:


[...]
[...]

to make this work, i had to add the following to web.xml:

  
multipartFilter
org.apache.myfaces.component.html.util.ExtensionsFilter
  
  
  
multipartFilter
/*
  http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961678#3961678

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


[jboss-user] [JBoss jBPM] - Re: hibernate.LazyInitializationException with jBPM websale

2006-07-29 Thread DerJohannes
This was exactly the point, thank you!!! I wouldn't have figured this out 
alone...

On task.jsp, i added a commons-fileupload field:


[...]
[...]

to make this work, i had to add the following to web.xml:

  
multipartFilter
org.apache.myfaces.component.html.util.ExtensionsFilter
  
  
  
multipartFilter
/*
  http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961677#3961677

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


[jboss-user] [JBoss jBPM] - Re: hibernate.LazyInitializationException with jBPM websale

2006-07-29 Thread kukeltje
You say exactely 'like' the jbpm webapp (the websale is just a process IN the 
webapp). Did you develop something yourself?

(re) opening the hibernate session happens automagically in the webapp on each 
post to the server by filters configured in web.xml (jbpmcontexfilter). So i'd 
start looking there and compare it to what you did yourself

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

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


[jboss-user] [Installation, Configuration & Deployment] - JBOSS on CentOS - Logging Issue

2006-07-29 Thread onizukanne
We've been running an application on liferay 3.6.1, running in JBoss4 on a 
Windows server.

On migrating the solution to a CentOS server, it appears to run alright at 
first. However, after about 30mins, we notice serious logging activity 
resulting in the log files growing to up to 4GB daily. We change the logger 
from the DailyRollingAppender to the RollingAppender to cut of at 2MB and the 
server generates about 8 2MB logfiles every second.

This is very strange, since once the problem starts, even after we undeploy all 
our ears and the liferay ear from the deploy folder, the logging continues. An 
extract of the logfile is like so:

anonymous wrote : 2006-07-29 02:15:52,884 INFO [STDOUT] ?
  | 2006-07-29 02:15:52,884 INFO [STDOUT] ?
  | 2006-07-29 02:15:52,884 INFO [STDOUT] ?
  | 2006-07-29 02:15:52,884 INFO [STDOUT] ?
  | 2006-07-29 02:15:52,884 INFO [STDOUT] ?
  | 2006-07-29 02:15:52,884 INFO [STDOUT] ?
  | 2006-07-29 02:15:52,884 INFO [STDOUT] ?
  | 2006-07-29 02:15:52,884 INFO [STDOUT] ?
  | 2006-07-29 02:15:52,884 INFO [STDOUT] ?
  | 2006-07-29 02:15:52,884 INFO [STDOUT] ?
  | 2006-07-29 02:15:52,884 INFO [STDOUT] ?
  | 2006-07-29 02:15:52,884 INFO [STDOUT] ?
  | 2006-07-29 02:15:52,885 INFO [STDOUT] ?
  | 2006-07-29 02:15:52,885 INFO [STDOUT] ?
  | 2006-07-29 02:15:52,885 INFO [STDOUT] ?
  | 2006-07-29 02:15:52,885 INFO [STDOUT] ?
  | 2006-07-29 02:15:52,885 INFO [STDOUT] ?
  | 2006-07-29 02:15:52,885 INFO [STDOUT] ?
  | 2006-07-29 02:15:52,885 INFO [STDOUT] ?
  | 2006-07-29 02:15:52,885 INFO [STDOUT] ?
  | 2006-07-29 02:15:52,885 INFO [STDOUT] ?

Notice how many log lines are written every millisecond?

Any one with a similar experience? Any idea what could be responsible? Your 
ideas are highly welcome, this is really driving us crazy. This is happening on 
a life system and consumes lots and lots of system resources, causing us to 
need to restart the service every hour or so. URGENTLY need a solution.

Many thanks


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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - EntityManager not working correctly

2006-07-29 Thread andydale
Hi,

I am currently experiencing some problems using the that JBoss 4.0.4GA 
persistence with postgres 8.1.4. I am having lots of trouble reading Entities 
back out of the database.

The application works as follows, data is received and a new object (Entity) is 
created and then persisted from within a stateless session bean. The a message 
is sent to a Message Driven Bean where the entity is then attempted to be read 
out of the database (with EntityManager.find()) and this is where the problem 
is. Most of the time the find() method cannot find the Entity even though it 
has been persisted (verified persistence by viewing the table in pgAdmin) but 
now this is where it gets interesting, if you code the EntityManager.find() 
code as so

 = EntityManager.find(.class, Integer.valueof(pk))

null is returned most of the time. But if you code the EntityManager.find() 
like below:


 = EntityManager.find(.class, Integer.valueof(pk))
  | if( == null){
  |try{
  |   synchronized(this){
  |  wait(2000);
  |   }  
  |= EntityManager.find(.class, 
Integer.valueof(pk))
  |}
  |catch(InterruptedException e){
  |   e.printStackTrace();
  |}
  | }

the object is always found on the second call of the find method. Has anybody 
else experienced this strange behaviour 

Another few things to note are that if i call the find method directly after 
persisting the Entity in the stateless session bean then is is always found, 
and in both beans the EntityManager is injected with the @PersistenceContext 
using the same persistence unit . Also note that the stateless session bean and 
the message driven bean are in different archives in a .ear file, would this 
make a difference ??

Thanks,

Andy

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

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


[jboss-user] [Management, JMX/JBoss] - Re: start not being call on 4.0.2 startup

2006-07-29 Thread pilhuhn
It looks like create() is not called either.
Try to remove the "throws Exception" from the method signature.

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

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


[jboss-user] [JBoss jBPM] - hibernate.LazyInitializationException with jBPM websale exam

2006-07-29 Thread DerJohannes
Hello,

I get the quoted error when I try to access jBPM taskInstances, like 
"taskInstance.setVariable" or "jbpmContext.save(taskInstance)".

I know that this is due to a closed Hibernate session. But I don't know why the 
session is closed and how to control that.

The situation is as follows:
I extended the jBPM Starters Kit websale example; the structure of the jsps and 
the backing beans is still the same. 

First, the user is on home.jsp and sees a list of "latest process instances". 
When he chooses one, the backing bean "HomeBean.java" runs the method 
"startProcessInstance" before it returns the navigation string "task" to the 
JavaServer Faces context. In HomeBean.startProcessInstance everything is 
working fine. The commands 
- long processDefinitionId = JsfHelper.getId("processDefinitionId");
- ProcessDefinition processDefinition = 
graphSession.loadProcessDefinition(processDefinitionId);
- ProcessInstance processInstance = new ProcessInstance(processDefinition);
- TaskInstance taskInstance = 
processInstance.getTaskMgmtInstance().createStartTaskInstance();
- jbpmContext.save(processInstance);
- taskBean.initialize(taskInstance);
are executed without problems.

On task.jsp, the process graph is correctly displayed by the tag


As you can see, everthing is okay up to this point. 

But...when I hit "Save & Close" now, the TaskBean.saveAndClose method is called 
(exactly like in the jBPM Starters Kit websale example). TaskBean.saveAndClose 
calls TaskBean.save and as soon as this method tries to run the command
- taskInstance.setVariable
- or jbpmContext.save(taskInstance),

I get the following error:

09:42:34,441 ERROR [LazyInitializationException] could not initialize proxy - 
the owning Session was closed
org.hibernate.LazyInitializationException: could not initialize proxy - the 
owning Session was closed
at 
org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:56)
at 
org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:98)
at 
org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:133)
at 
org.jbpm.taskmgmt.exe.TaskInstance$$EnhancerByCGLIB$$1cd1f5d7.getTaskMgmtInstance()
at org.jbpm.JbpmContext.save(JbpmContext.java:297)

Can you please tell me what could be the reason for that? Who told Hibernate to 
close the session? When? Why? How can I prevent Hibernate from closing the 
session? How can I reopen it? Or could there be another reason for this error?

I am searching for the cause since two days but haven't found it yet; i'm kind 
of stuck.

Any help would be appreciated,

Johannes

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

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


[jboss-user] [Installation, Configuration & Deployment] - doubt in exploded-form application deployment

2006-07-29 Thread [EMAIL PROTECTED]
hi

I deployed an application in Jboss 4.0 in exploded form

If iam going to change any java file or deployment descriptor (web.xml)
is there way to reflect these changes automatically other than restarting Jboss

Thanks


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

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