[jboss-user] [JCA/JBoss] - Trying to use a connection factory that has been shut down

2009-06-29 Thread rajwants2jboss
Hi All,
I am using jboss 5.0.0.GA in my production environment. Recently my application 
deployment has started throwing the following error:

2009-06-26 15:05:11,946 ERROR [STDERR] (http-0.0.0.0-80-3) 
org.jboss.util.NestedSQLException: You are trying to use a connection factory 
that has been shut down: ManagedConnectionFactory is null.; - nested throwable: 
(javax.resource.ResourceException: You are trying to use a connection factory 
that has been shut down: ManagedConnectionFactory is null.)

A little up in the log I found that the HDScanner has removed my datasource 
deployment and redeploying the same. This is causing my previously open 
connections to become unavailable.

My question is that, why is jboss redeploying my datasource in the middle of 
execution?

Regards
Rajdeep

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

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


[jboss-user] [EJB 3.0] - Re: EJB3 entity inheritance override getter in subclass

2009-06-29 Thread asafz
I changed t he code a little (wanted to create a workaround) and moved the 
getUser method to the father class. 

I'm still having the following problem: 
I dont want that the "nullUser" will be persist to the database, I just want it 
to be virtually returned to the user when the real user is null
but jboss is persisting this value to the database anyway (even tough I'm not 
setting the member just returning this value in the getter)

Is there any way to do such a thing? return a value in a bean getter that will 
not get persist?

is there a way to add a member + getter/setter in indicate him as not 
persistable?

Is there a way to deattach a single bean (not all EM with clear)?

thanks

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

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


[jboss-user] [JBoss Portal] - Re: Portal database

2009-06-29 Thread hilmer
What do you mean by a application server?

If you mean that you have some application implementing your business  logic 
(perhaps as EJB3's) and you then have your portlets as a way to realize your UI 
towards that application, then surely the portlets and the business app can 
reside on different servers.

But your portlets and JBoss Portal must be on the same server (and it must be a 
JBoss AS) which makes totally sense. I will not call that a tightly coupled 
architecture, the Portal is responsible for deploying your portlets, so they 
logically lives together.

Only exception (I can think of) is if you use WSRP, then your portlet can 
reside in another portal on another server and be shown in your JBoss Portal, 
but here we are talking about multiple portals not application servers (well 
actually both).

If on the other hand you have realized your business logic inside your 
portlets, well you have chosen to tightly couple your application and your 
portlet and IMO you ought to refactor your implementation.

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

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


[jboss-user] [EJB/JBoss] - Re: Interface inheritence / SessionContext.getInvokedBusines

2009-06-29 Thread rmz
Is there really noone who experienced such problems?

Is there a forum better suited for this problem?

Thanks,
-Rainer

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

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


[jboss-user] [EJB 3.0] - Re: ServiceBean and depends clause - Help Please

2009-06-29 Thread jaikiran
"rnicholson10" wrote : 
  | 1) How do I put SourceBridgeCheckTimerBean into JNDI with a common name so 
no matter what EAR it resides in I can call it in a common way (not another 
EJB, I'm calling it in a POJO so have to do a JNDI lookup)?
  | 

You can override the default JNDI names by using the @RemoteBinding or the 
@LocalBinding annotations. You can even use the jboss.xml to override these. 
See these tutorials:
http://www.jboss.org/file-access/default/members/jbossejb3/freezone/docs/tutorial/1.0.7/html/JNDI_Bindings.html

http://www.jboss.org/file-access/default/members/jbossejb3/freezone/docs/tutorial/1.0.7/html/jboss.xml_deployment_descriptor.html
 

"rnicholson10" wrote : 
  | I would need to recompile phase-input.jar to change this. In fact, I would 
need to recompile it for every different EAR I want to add it to. ...
  | 
  | 2) Similarly, how do I depend on my timer bean in the Service bean no 
matter what EAR file it's part of?
  | 
How about adding the dependency through the jboss.xml instead of the 
annotations?


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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: EAR undeploys in JBAS 5.1.0GA

2009-06-29 Thread jaikiran
The discussion was continued here 
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=156898

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

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


[jboss-user] [JBoss jBPM] - Re: Error while completing task

2009-06-29 Thread dahai
I have run into the similar problem. Until now ,I have not yet found how to 
resolve it . Quite looking forward to be able to find a way

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: virtual directories in Jboss 5

2009-06-29 Thread huntp
Was there ever a solution posted for this?  I am also having the problem - 
"Context not found as a child of Host".

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

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


[jboss-user] [JBoss Portal] - Re: Portal database

2009-06-29 Thread dorothy
Well I do not mean the AS where the business logic resides. I mean to say the 
portal server's app server only and as you suggested that in case of WSRP also 
we have multiple portal servers and hence multiple app servers. 

Why I am calling this as tightly coupled is because a portal application is in 
essencec a web app only and how does it matter if the app server needs to be a 
specific one (like JBoss AS, in case of JBOss PS) and that too in the same 
machine. If we consider the portal app. as just a normal web app., which it 
actually is, then it should be able to run on any app server on any machine.

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

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


[jboss-user] [JBoss Portal] - Re: Portal database

2009-06-29 Thread thomas.he...@jboss.com
Not any webapp can run on any AS...

Yes JBoss Portal relies on JBoss AS as we are using services provided by JBoss 
AS that are not available on other AS (or done in a different way because not 
defined by a standard)

A portal framework consumes services from JBoss AS to deliver services to you.


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

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


[jboss-user] [JNDI/Naming/Network] - Getting DB connection from jboss pool via JNDI

2009-06-29 Thread amayen
Hi!


I have a problem with the look up of a database resource.
I have the following setup:

One standalone Tomcat 5.x
One standalone JBoss 4.x

They are both running on the same pyhsical host machine.

The Jboss is configured with a datasource *-ds.xml. This can be used by the 
EJB's running inside JBOSS.

The JSP's running in Tomcat are also sometimes trying to get the datasource 
from JBoss via JNDI. That fails if I do not set false.

But as I read setting this property to true is an anti pattern (and I'm seeing 
errors over time getting db connections which did not occur before).

Furthermore the application seems to have been running with this setup without 
even mentioning  (The default should be true, shouldn't it?) 
very successful.

So my question is if it could be possible somehow that this setup can work 
without setting  to false (It seemed to have worked that 
way, but all I'm reading suggests that this does never ever work)?

And second, what is the preferred way to let tomcat access the database 
resource via jndi (where jboss and tomcat run in the same machine but in 
different jvm instances)?


I also tried setting up a reference in web.xml and jboss-web.xml which I put 
into the WEB-INF directory.

Here the contents:

web.xml:


   fdjlf
   java:postgresqlDS
   javax.sql.DataSource
   Container


jboss-web.xml:



   fdjlf
   java:postgresqlDS
   javax.sql.DataSource
   java:postgresqlDS


Does this web.xml jboss-web.xml configuration only work for stuff put into the 
global namespace of jndi?

Thanks for any answers!

Kind regards,

Anatol

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

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


[jboss-user] [JBoss Messaging] - Re: Questions on JBoss Messaging 1.4

2009-06-29 Thread unwavering
Thanks gaohoward.  I still need some explanations:

Q1: Is there a configurable way to define default message headers from JBoss?

Q2: How do you define 'delivery'?  Is it delivery between internal components 
of JBoss?  Or is it delivery between external clients and JBoss?



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

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


[jboss-user] [Clustering/JBoss] - Problem for JNDI database connection pooling

2009-06-29 Thread Allen_Lei
Hi,all

I hava an app which runs on JBoss 4.* with the JNDI connection datasource 
pooling named testDs,and sometimes it does not work.At that time I view the 
"jboss.system"-"type=ServerInfo" in jmx-console,invoke the "java.lang.String 
listThreadDump()" operation button and find there are several BLOCKING state 
threads which indicate they are blocking in getting datasource connection.

In the meantime,i try to view 
"jboss.jca"-"name=testDs,service=ManagedConnectionPool" in jmx-console,but find 
there is no response when i click that link,which means i could't access the 
attribute page for the testDs connection pooling.When i restart the JBoss,it 
works.Anybody knows how this happened? What lead to the connnection pooling 
attribute page can't be accessible?

Your reply will by most appreciated.

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

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


[jboss-user] [Beginners Corner] - How to enable APR in JBoss 5?

2009-06-29 Thread philip142au
Hi,

How do I enable APR in JBoss 5?

I see a article on it for JBoss 4, 
http://www.jboss.org/community/wiki/HowToAddAprToJBoss

Thanks very much, Philip



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

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


[jboss-user] [Clustering/JBoss] - Can JNDI ds reconnect automatically after DB server restarts

2009-06-29 Thread Allen_Lei
Hi,all

I've had that "The JBoss server must be restarted when db server restarted" 
idea in my head for a long time,maybe because I used the C3P0 database 
connnection pooling which just like what i think formerly .But it's just wrong.

Today i try to restart the Mysql db service without restarting the JBoss 
server,then i find it can work however.The Oracle db server i have not 
tried,but i think it will work too.

Is this which i mean above right?Is this the datasource connection pooling 
mechanism for JBoss only?

Your reply will by most appreciated.



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

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


[jboss-user] [EJB 3.0] - Re: EJB3 entity inheritance override getter in subclass

2009-06-29 Thread Wolfgang Knauf
Hi,

where did you place the @Column annotations? On the field or on the 
getter/setter? Or did you use the JBoss defaults? You might try to place them 
on the field instead of the getter, then it will hopefully get the persisted 
value from the field, not from the property. Note that this would change the 
field/property access for all properties of this entity, not just for the 
single field.

anonymous wrote : is there a way to add a member + getter/setter in indicate 
him as not persistable?
Sure, use the @Transient annotation.

Unfortunately, I cannot answer your last question.

Best regards

Wolfgang

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

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


[jboss-user] [JBoss jBPM] - i have problem need help please

2009-06-29 Thread bayanaa
hi all. 
my goal is run seam's dvdstore example. (i download dvdstore example is
http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbosstools/workspace/snjeza/seam-examples/dvdstoreall.zip?revision=14398&pathrev=14398)
but my jboss as starting problem. 
my jboss as is jboss-4.2.3.GA
seam is jboss-seam-2.1.1.GA
jbpm is jbpm-4.0.CR1
eclipse is eclipse-jee-ganymede-win32
java version "1.6.0_11"

Throwable while attempting to get a new connection: null
org.jboss.resource.JBossResourceException: Could not create connection; - 
nested throwable: (java.sql.SQLException: Access denied for user 
'jbpmtest'@'localhost' (using password: NO))
at 
org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.createManagedConnection(XAManagedConnectionFactory.java:155)
at 
org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:619)
at 
org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:264)
at 
org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:575)
at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:347)
at 
org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:330)
at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:402)
at 
org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:849)
at 
org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
at org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.fixTableName(SQLUtil.java:172)
at 
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntityBridge.java:157)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:435)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:368)
at 
org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:172)
at org.jboss.ejb.EjbModule.startService(EjbModule.java:414)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy31.start(Unknown Source)
at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:662)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
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.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
at 
org.jboss.syste

[jboss-user] [JBoss Messaging] - Re: Questions on JBoss Messaging 1.4

2009-06-29 Thread gaohoward
Q1: Is there a configurable way to define default message headers from JBoss?

--- I don't think it has a way to configure default values for message headers. 

Q2: How do you define 'delivery'? Is it delivery between internal components of 
JBoss? Or is it delivery between external clients and JBoss? 

-- here the delivery means the process in which messages are sent from JBM 
server to the clients (consumers).


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

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


[jboss-user] [JBoss jBPM] - Re: Indentityservice- Jbpm4

2009-06-29 Thread kukeltje
"shekharv" wrote : 
  | Regarding the solution that you were trying out, it is not something that 
would not work, but it is not something I would do. 
  | 
  | It still ties in your application domain a little too close to that of the 
jbpm domain. Ideally you would want them to be separated out and joined 
together only in a more versatile 'service' or 'application' layer.
  | 
  | It would just be too tough to change anything about the users going down 
the line, which at some point or the other, always happens.
  | 

I fully agree...

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

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


[jboss-user] [JBoss jBPM] - Re: Error while completing task

2009-06-29 Thread kukeltje
Great to know you have the same problem. I'd just hope you have more 
information on the error, like a unittest, full stacktrace etc...

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

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


[jboss-user] [JBoss Messaging] - Re: Questions on JBoss Messaging 1.4

2009-06-29 Thread timfox
"gaohoward" wrote : Q1: Is there a configurable way to define default message 
headers from JBoss?
  | 
  | --- I don't think it has a way to configure default values for message 
headers. 
  | 
  | 

Actually you can probably do this by providing an AOP interceptor in JBM 1.x.

In JBM 2.0 interceptors are fully supported, see the docs for more info.

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

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


[jboss-user] [JBoss jBPM] - Re: i have problem need help please

2009-06-29 Thread kukeltje
Your MySQL account is not configured correctly in combination with what you 
configured in jBPM. Please use the appropriate forums to fix this.

Oh, btw, jBPM 4 does not work with Seam 2.1 afaik

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

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


[jboss-user] [EJB 3.0] - Re: Quick install guide on EJB3 plugin homepage

2009-06-29 Thread jaikiran
Based on your inputs we have now updated the page 
http://www.jboss.org/ejb3/ejb3plugin.html. Let us know if there's anything more 
you would like to see on this page or any other project page.


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

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


[jboss-user] [JBoss jBPM] - Re: i have problem need help please

2009-06-29 Thread kukeltje
One correction: 

'in jBPM' should be 'in your datasource' (which is an appsserver thing), so 
therefore my reference to other forums
Two more things. 

The search functionality provided by e.g. Google would most likely have given 
you a hint about the cause of your error. 

It is always better to use serious subjects of topics. If you post here it is 
quite obvious that you need help (at least it is in most cases).  This is e.g. 
better for people who use search functionality


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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - INIT_WAITING_DEPLOYER when deploy my maven project

2009-06-29 Thread peibel
hi,

I have a Maven Project, when i make deploy i see the error:

Packages waiting for a deployer:
  | org.jboss.deployment.deploymenti...@20ccbaa5 { 
url=file:/C:/Apli/jboss-4.0.1sp1/server/default/deploy/adminUsuariosDTO.jar }
  |   deployer: null
  |   status: null
  |   state: INIT_WAITING_DEPLOYER
  |   watch: 
file:/C:/Apli/jboss-4.0.1sp1/server/default/deploy/adminUsuariosDTO.jar
  |   altDD: null
  |   lastDeployed: 1246265132601
  |   lastModified: 1246265132601
  |   mbeans:
  | 
  | Incompletely deployed packages:
  | org.jboss.deployment.deploymenti...@20ccbaa5 { 
url=file:/C:/Apli/jboss-4.0.1sp1/server/default/deploy/adminUsuariosDTO.jar }
  |   deployer: null
  |   status: null
  |   state: INIT_WAITING_DEPLOYER
  |   watch: 
file:/C:/Apli/jboss-4.0.1sp1/server/default/deploy/adminUsuariosDTO.jar
  |   altDD: null
  |   lastDeployed: 1246265132601
  |   lastModified: 1246265132601
  |   mbeans:

If I remove the pom.xml in the jar, the deployed fine. 

What error in my pom.xml?

http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  |   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
  |   4.0.0
  |   es.map.sgtic.adminusu
  |   gestion-usuarios-api
  |   jar
  |   1.1-SNAPSHOT
  |   gestion-usuarios-api
  |   http://maven.apache.org
  |   
  | 
  | junit
  | junit
  | 3.8.1
  | test
  | 
  | 
  | com.sopra
  | arquitecturasopra
  | 2.20060222
  | 
  | 
  | org.jboss
  | jbossall-client
  | 4.0.1sp1
  | 
  |   
  |   
  | 
  |   
  | 
  |   maven-compiler-plugin
  |   
  | 1.5
  | 1.5
  |   
  | 
  |   
  | 
  |   
  | 



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

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


[jboss-user] [EJB 3.0] - Re: Quick install guide on EJB3 plugin homepage

2009-06-29 Thread Wolfgang Knauf
Thanks, looks good now.

Wolfgang

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

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


[jboss-user] [JBossWS] - Re: JBossWS Metro 3.1.1 on AS 5.1.0 Startup errors?

2009-06-29 Thread creaturita
Did you find any solution? I have the same problem

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: INIT_WAITING_DEPLOYER when deploy my maven project

2009-06-29 Thread jaikiran
What kind of jar is it? Simple jar file with just java libraries? Or does it 
have any EJBs or any other JBoss services?


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

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


[jboss-user] [JBoss jBPM] - Re: Help needed in deploying 'par' to JBoss server

2009-06-29 Thread vignesh57
Hi Ronald, thanks for the help. I completed this task
What i did was a silly mistake that beginners used to do.

O I wrote a stand-alone java code in which i added the attached code in main 
method itself :o
O Then i realized how it will get Visiblity to the jBPM Database
O Moved the piece of code and embeded it to an ESB Service & it worked !!
O Hope no other beginners does this mistake. This forumn should help them. at 
least.

However, one strange thing i noticed.

O Whenever we deploy, jBPM assigns a (auto-increment type) process definition 
id.
O The id of the last app i deployed was 204.
O But the id the latest deployment is 234.
O So the strange fact is that, my 'dumb old code' actually inserted a record in 
the database BUT it ain't showed up in the jBPM Web Console :0
[/img]

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: INIT_WAITING_DEPLOYER when deploy my maven project

2009-06-29 Thread peibel
"jaikiran" wrote : What kind of jar is it? Simple jar file with just java 
libraries? Or does it have any EJBs or any other JBoss services?
  | 

Hi,

thans for yor reply,

the jar contains beans and the remote class of EJB

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Mapping interfaces

2009-06-29 Thread amnesty_puppy
Hello,

I'm learning to use Hibernate for a project I've been moved to. They want to 
use Envers but it doesn't work with the any-type mapping that they are using 
for a class implementing multiple interfaces, so how could I map this without 
using 'any'.

class User implements Buyer, ITwo

The class needs to be mapped straight to User and also by Buyer and ITwo.

class Transaction { private User user; }
  | 
  | class Purchase { private Buyer buyer; }

Would really appreciate any help on this.

Thanks.

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

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


[jboss-user] [JBoss jBPM] - Re: WARN [ProxyWarnLog] Narrowing proxy to class org.jbpm.g

2009-06-29 Thread vnm
Hi Ronald,
Thanks for your  reply..But are you  sure that this warning can be 
neglected!!! Because as mentioned in my previous post, due to this warning my 
whole processdefintion is not executed and it is halted in between...
  Is there any other reason for the failure of execution of 
process??If you find any problem in design of my processdefinition then please 
let me know...Becasue I need to use super state in my processdefintion...

Thanks and Regards,
vnm

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

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


[jboss-user] [EJB/JBoss] - Re: Interface inheritence / SessionContext.getInvokedBusines

2009-06-29 Thread jaikiran
Rainer,

Sorry, i forgot to look into this. I'll do it today and update this thread.



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

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


[jboss-user] [JBoss jBPM] - Re: WARN [ProxyWarnLog] Narrowing proxy to class org.jbpm.g

2009-06-29 Thread kukeltje
anonymous wrote : Thanks for your reply..But are you sure that this warning can 
be neglected!!!

Yes

anonymous wrote : Because as mentioned in my previous post, due to this warning 
my whole processdefintion is not executed and it is halted in between... 

That is your assumption and I, respectfully, think that is wrong. For the 
simple reason that I get those warnings to depending on how I use the api.

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

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


[jboss-user] [JBoss jBPM] - Re: WARN [ProxyWarnLog] Narrowing proxy to class org.jbpm.g

2009-06-29 Thread kukeltje
Oops, something missing in the post

So I think there is something wrong in how you signal the process that causes 
this. Write a unit test with *everything* in one file, like in 
http://fisheye.jboss.com/browse/~raw,r=4398/JbpmSvn/jbpm3/trunk/modules/core/src/test/java/org/jbpm/job/executor/JobExecutorDbTest.java
 that demonstrates the problem so we can try to reproduce or see what you do 
wrong.

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

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


[jboss-user] [JBoss Messaging] - Re: Questions on JBoss Messaging 1.4

2009-06-29 Thread unwavering
Another question:

I'm using a JMS client to drop messages in JBM 1.4.  Although the client is 
changing the message header properties (expiry and priority), these changes are 
not taking effects on JBM.  For example, the client is setting the message 
expiry to 1 second but JBM is keeping the message forever in the destination 
queue without moving it to the expiry queue.  Can you help me to understand the 
reasons?

Thanks all.

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

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


[jboss-user] [Beginners Corner] - Re: Log4j Configuration

2009-06-29 Thread Wolfgang Knauf
Hi,

please provide more details. A general question like "I want to use Log4j" will 
not provide you with helpful answers.

As Peter said: Log4j can be configured only through 
"server/xxx/conf/jboss-log4j.xml", so you have to add your own config to it. 
If you want custom config files in your module, you might take a look at this 
wiki article: http://www.jboss.org/community/wiki/Log4jRepositorySelector

Best regards

Wolfgang

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

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


[jboss-user] [JBoss Messaging] - Re: Questions on JBoss Messaging 1.4

2009-06-29 Thread gaohoward
Hi, I think about those values you should consult JMS spec. Some of them are 
determined only when the message is sent. for example in the spec

anonymous wrote : 
  | JMSPriority
  | The JMSPriority header field contains the message’s priority.
  | When a message is sent, this field is ignored. After completion of the 
send, it
  | holds the value specified by the method sending the message.
  | 

That means you need to specify the priority in send() method.


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

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

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


[jboss-user] [Clustering/JBoss] - Re: Two asterisks in JSESSIONID before jvmRoute

2009-06-29 Thread jjfevs
About the version: here is the info:

Version: 4.3.0.GA_EAP (build: SVNTag=JBPAPP_4_3_0_GA date=200801031548)

Version Name: EAP

Built on: January 3 2008

About the webpage I mentioned:  I was implying that I have read it and the 
cluster "seems" to be weel configured. The web where I read about the 
JSESSIONID is this.

https://jira.jboss.org/jira/browse/JBAS-5810


Thank you! If you need any more info, please ask for it.

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

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


[jboss-user] [Clustering/JBoss] - Re: Two asterisks in JSESSIONID before jvmRoute

2009-06-29 Thread jjfevs
About the version: here is the info:



  | Version: 4.3.0.GA_EAP (build: SVNTag=JBPAPP_4_3_0_GA date=200801031548)
  | 
  | Version Name: EAP
  | 
  | Built on: January 3 2008

About the webpage I mentioned:  I was implying that I have read it and the 
cluster "seems" to be weel configured. The web where I read about the 
JSESSIONID is this.

https://jira.jboss.org/jira/browse/JBAS-5810


Thank you! If you need any more info, please ask for it.

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

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


[jboss-user] [Security & JAAS/JBoss] - Jazoon09: AS5 Security Presentation

2009-06-29 Thread anil.saldh...@jboss.com
http://anil-identity.blogspot.com/2009/06/jazoon09-secure-middleware-with.html

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Problem deploying an EJB with empty orm.xml

2009-06-29 Thread creaturita
Hello everyone,

I do not want to use the orm.xml, but when I remove it I get null pointer 
exception.

The exception is thrown from eclipse link, but in weblogic it works well. 

Any idea how to deploy an EJB3 with persistence but not using orm.xml?

Could you provide an example?

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Is this JBoss or an iBatis issue? Classpath issues...

2009-06-29 Thread adriano...@gmail.com
Unfortunately,

That didn't work indeed. I´ve tested a lot of variations too with no sucess

Thanks a lot for your support.

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

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

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


[jboss-user] [JBoss jBPM] - Re: WARN [ProxyWarnLog] Narrowing proxy to class org.jbpm.g

2009-06-29 Thread vnm
Hi Ronald,
   Sending you a single java file that contains all things used in 
my process..



package org.jbpm.job.executor;
  | 
  | import java.util.ArrayList;
  | import java.util.Collections;
  | import java.util.HashSet;
  | import java.util.List;
  | import java.util.Set;
  | import java.util.TreeSet;
  | 
  | import org.jbpm.db.AbstractDbTestCase;
  | import org.jbpm.graph.def.Action;
  | import org.jbpm.graph.def.ActionHandler;
  | import org.jbpm.graph.def.ProcessDefinition;
  | import org.jbpm.graph.exe.ExecutionContext;
  | import org.jbpm.graph.exe.ProcessInstance;
  | 
  | public class JobExecutorDbTest extends AbstractDbTestCase {
  | 
  |   static final int nbrOfConcurrentProcessExecutions = 20;
  |   static final int timeout = 6;
  | 
  |   static Set collectedResults = Collections.synchronizedSet(new 
TreeSet());
  |   static List allocatedProcessIds = Collections.synchronizedList(new 
ArrayList());
  | 
  |   @Override
  |   protected void setUp() throws Exception {
  | super.setUp();
  | getJbpmConfiguration().getJobExecutor().setNbrOfThreads(4);
  |   }
  | 
  |   @Override
  |   protected void tearDown() throws Exception {
  | getJbpmConfiguration().getJobExecutor().setNbrOfThreads(1);
  | super.tearDown();
  |   }
  | 
  |   public void testJobExecutor() {
  | deployProcessDefinition();
  | try {
  |  ServiceVO serviceVO = new ServiceVO();
  |  serviceVO.setProcessDefinitionName("SuperStateSample");
  |   initiateProcess(serviceVO);
  |   processJobs(timeout);
  |  // assertEquals(getExpectedResults(), collectedResults);
  | }
  | finally {
  |  
  | }
  |   }
  | 
  |   void deployProcessDefinition() {
  | ProcessDefinition processDefinition = ProcessDefinition.parseXmlString("
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | ");
  | jbpmContext.deployProcessDefinition(processDefinition);
  |  
  |   }
  | 
  |   void initiateProcess(ServiceVO serviceVO) {
  |   JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
  | String processName = 
serviceVO.getProcessDefinitionName();
  | logger.info("processName==="+processName);
  | ProcessInstance processInstance = 
jbpmContext.newProcessInstanceForUpdate(processName);
  | logger.info("--after getting 
processInstance");
  | long processInstanceId = processInstance.getId();
  | 
  | Token token = processInstance.getRootToken();
  | logger.info("--after getting token");
  | ContextInstance contextInstance = 
processInstance.getContextInstance();
  | logger.info("--after getting 
contextInstance");
  | contextInstance.setVariable("serviceVO", serviceVO);
  | 
  | /*if(processVariables!=null){
  | Set keySet = processVariables.keySet();
  | Iterator keyIterator = keySet.iterator();
  | String key = null;
  | Object obj = null;
  | while(keyIterator.hasNext()){
  | 
  | key = (String)keyIterator.next();
  | obj = processVariables.get(key);
  | 
  | contextInstance.setVariable(key,obj);
  | 
  | }
  | }*/
  | processInstance.signal();
  | logger.info("-after processInstance singal");
  | logger.info("--after signal");
  | 

[jboss-user] [JBossWS] - Using JBossWS-CXF for EJB3.0 Webservice endpoints

2009-06-29 Thread mtirumalreddy
Hi All,

We are going to use JBoss AS 4.2.3 and EJB3.0 in our new project. But my 
concern is whether EJB3.0 endpoints are supported by CXF or not? I read in one 
article saying CXF does not implement JSR-109. So it will not support EJB 
endpoints. But there are some work arounds. 

I searched but i didn't find any suitable articles on this. Can anyone worked 
before using this combination. Please help me on this.

Please see this.
https://issues.apache.org/jira/browse/CXF-1759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644784

Regards,
Tirumal Reddy M



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

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


[jboss-user] [JBoss Messaging] - Re: Questions on JBoss Messaging 1.4

2009-06-29 Thread unwavering
You're right gaohoward.  The priority should be set at the method level (send 
method) rather than at the message level.  But I still can't control the expiry 
of the message even from the send() method.  I will review the specs as you 
suggested.  Thanks.

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

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


[jboss-user] [EJB 3.0] - Inject dependency on JMS topic into servlet on startup

2009-06-29 Thread sanches
Hello All,

I have EAR with multiple EJB and single WAR inside.
EJBs inject JMS administrative resources such as Destination and 
ConnectionFactory using @Resource annotation.
They depend  on the MBean which represents JMS Topic. MBean is configured in 
deployment descriptor within one of EJB and that works well.
But when I try to apply the same dependency for servlet code (servlet is marked 
as load-on-startup in web.xml) and deploy EAR onto JBoss, it fails.
This is happening (as I realized from logs) because JMS Topic has not been 
bound yet.
If I don't mark servlet as load-on-startup, but rather invoke it after server 
has started, injection in servlet works well.

What is the right way to specify that servlet does depend on the JMS resource 
(or MBean which represents this resource)?

Exception:

  | 2009-06-29 16:46:46,218 INFO  
[org.jboss.web.tomcat.service.deployers.TomcatDeployment] (HDScanner) deploy, 
ctxPath=/htc
  | 2009-06-29 16:46:46,734 INFO  
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/htc]] 
(HDScanner) Marking servlet EventListenerServlet as unavailable
  | 2009-06-29 16:46:46,750 ERROR 
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/htc]] 
(HDScanner) Servlet /htc threw load() exception
  | javax.naming.NameNotFoundException: topic not bound
  | at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
  | at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
  | at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
  | at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
  | at org.jnp.server.NamingServer.lookup(NamingServer.java:399)
  | at org.jnp.server.NamingServer.lookup(NamingServer.java:399)
  | at org.jnp.server.NamingServer.lookup(NamingServer.java:399)
  | 
Servlet code:

  | @Depends({"jboss.mq.destination:service=Topic,name=NMSTopic"})
  | public class EventListenerServlet extends HttpServlet
  | {
  |   @Resource(name = "NMSTopic", mappedName = "jms/topic")
  |   private Destination destination;
  | 
  |   @Resource(name = "ConnectionFactory", mappedName = 
"java:ConnectionFactory")
  |   private ConnectionFactory connectionFactory;
  | 
  |   private javax.jms.Connection jmsConnection;
  |   private Session session = null;
  | ...
  | 

EJB code:

  | @Stateful
  | @Depends("jboss.mq.destination:service=Topic,name=NMSTopic")
  | public class NMS implements NMSRemote
  | {
  |   private transient Logger logger = Logger.getLogger(NMS.class);
  | 
  |   @Resource(name = "NMSTopic", mappedName = "jms/topic")
  |   private Destination destination;
  | 
  |   @Resource(name = "ConnectionFactory", mappedName = 
"java:ConnectionFactory")
  |   private ConnectionFactory connectionFactory;
  | ...
Deployment descriptor for that bean: (META-INF\jbossmq-destinations-service.xml)

  | 
  | 
  |
  |   jms/topic
  |   jboss.mq:service=DestinationManager
  |
  | 
  | 


Thanks,
Alex.

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

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


[jboss-user] [Security & JAAS/JBoss] - Re: JBOSS Negotiate setup clarification with regards to Acti

2009-06-29 Thread dufferdo25
Any Ideas All?

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

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


[jboss-user] [JBoss jBPM] - Re: WARN [ProxyWarnLog] Narrowing proxy to class org.jbpm.g

2009-06-29 Thread kukeltje
I would like to give it a try, but copy/pasting this into eclipse gives me many 
errors Are you sure this one runs in your environment?
- Processdefinition is not escaped
- class attribute in actions is wrong
- lots of imports missing 
- I do not see any assertions of what you expect
- ...

Please correct it before I can give it another try

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

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


[jboss-user] [JBossWS] - Re: Using JBossWS-CXF for EJB3.0 Webservice endpoints

2009-06-29 Thread alessio.sold...@jboss.com
There are many testscases showing usage of ejb3 webservice endpoints in the 
jbossws testsuite, just take a look.
JSR109 is actually not supported with CXF, but that's most probably not an 
issue for you, as you'd use jaxws for the ejb3 endpoints.

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

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


[jboss-user] [EJB 3.0] - circular references

2009-06-29 Thread robert.geisler
hallo everybody...

i met some problems with circular ejb references and already read postings 
like* http://www.jboss.org/index.html?module=bb&op=viewtopic&t=149299,
  | * http://www.jboss.org/index.html?module=bb&op=viewtopic&t=148042
  | * and some others,that explain me what the problem is and how to solve it 
(@IgnoreDependency).

but my problem still occurs, because jaikiran always told us to remove the 
class level @EJB annotation. but if i only use @EJB on field level, than the 
corresponding ejb will always get injected, no matter if i will use it later.
but i would like to declare some references at class level and lookup later 
through local jndi (java:comp/env), just when i really need the corresponding 
ejb.

but i cannot do that without class level annotations, right?
so is there a solution to* ignore class level dependencies or* lazy inject 
field level dependencies?
thanks in advance
robert

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

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


[jboss-user] [JBossWS] - Re: Using JBossWS-CXF for EJB3.0 Webservice endpoints

2009-06-29 Thread mtirumalreddy
alessio soldano,

Thanks a lot for your quick reply.
I need one more help. iam a bit confused over selecting WS Stack in JBoss. iam 
suggesting Metro Stack, but our architect is suggesting CXF. I have seen many 
WS Stack comparision charts. According to my opinion, metro will be providing 
more features than that of Native or CXF. Can you please suggest me in this 
regard.



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

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


[jboss-user] [Clustering/JBoss] - Re: Two asterisks in JSESSIONID before jvmRoute

2009-06-29 Thread bstansbe...@jboss.com
Thanks.

The companion issue for JBAS-5810 that tracks the issue for EAP is 
https://jira.jboss.org/jira/browse/JBPAPP-1021 . That JIRA shows a fix for EAP 
4.3.0.GA_CP03. If you use CP03 or later, do you still see the problem?

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

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


[jboss-user] [JBoss Cache: Core Edition] - How does JBoss Cache perform with high (15-20) number of jvm

2009-06-29 Thread souravm
Hi,

Has anyone so far used JBoss Cache with high number of jvm instances like 15-20 
?

We are planning to use jboss cache with replication (asynch or synch) for 15 - 
20 jvm instances. 

There is a scenario where new data would be created every day during first time 
login of the users at the start of the day. That point of time every jvm 
instance would get new data and would try to replicate it to others - that way 
giving rise to a situation like 15x15 replications. Just wondering how much CPU 
cycles would be consumed in marshaling/unmarshaling as well as the n/w 
bandwidth. 

The data size won't be much high - around 1KB per data getting replicated in 
other instances. However, in a second 20-25 such data would get created.

Any insight/input in this regard is appreciated.

Regards,
Sourav

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

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


[jboss-user] [JBoss jBPM] - Re: WARN [ProxyWarnLog] Narrowing proxy to class org.jbpm.g

2009-06-29 Thread vnm
Hi Ronald,
Sorry to send you improper code..As I was in bit hurry to send you 
I just skipped to resolve compilation issues,below is my modified code..Before 
you run it I request you to put my processdefintion.xml in src for 
testing,herein with I am also sending you my xml..
 And another thing I want to mention is in my code import 
org.jbpm.db.AbstractDbTestCase; this import couldnt be resolved as this class 
in not in my jbpm-jpdl.jar...I am using jbpm version 3.2.3..And the same class 
is used in java file for which you sent me the link



code of class


  | package org.jbpm.job.executor;
  | 
  | import java.io.Serializable;
  | import java.util.ArrayList;
  | import java.util.Collections;
  | import java.util.HashSet;
  | import java.util.List;
  | import java.util.Set;
  | import java.util.TreeSet;
  | 
  | import org.apache.commons.logging.Log;
  | import org.apache.commons.logging.LogFactory;
  | import org.jbpm.JbpmConfiguration;
  | import org.jbpm.JbpmContext;
  | import org.jbpm.context.exe.ContextInstance;
  | import org.jbpm.db.AbstractDbTestCase;
  | import org.jbpm.graph.def.Action;
  | import org.jbpm.graph.def.ActionHandler;
  | import org.jbpm.graph.def.ProcessDefinition;
  | import org.jbpm.graph.exe.ExecutionContext;
  | import org.jbpm.graph.exe.ProcessInstance;
  | import org.jbpm.graph.exe.Token;
  | import org.jbpm.graph.node.DecisionHandler;
  | 
  | public class JobExecutorDbTest extends AbstractDbTestCase {
  |  final JbpmConfiguration jbpmConfiguration = 
JbpmConfiguration.getInstance("jbpm.cfg.xml");
  |  JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
  |   static final int nbrOfConcurrentProcessExecutions = 20;
  |   static final int timeout = 6;
  |   final Log logger = LogFactory.getLog(getClass());
  |   static Set collectedResults = Collections.synchronizedSet(new 
TreeSet());
  |   static List allocatedProcessIds = Collections.synchronizedList(new 
ArrayList());
  | 
  |   @Override
  |   protected void setUp() throws Exception {
  | super.setUp();
  | getJbpmConfiguration().getJobExecutor().setNbrOfThreads(4);
  |   }
  | 
  |   @Override
  |   protected void tearDown() throws Exception {
  | getJbpmConfiguration().getJobExecutor().setNbrOfThreads(1);
  | super.tearDown();
  |   }
  | 
  |   public void testJobExecutor() {
  | deployProcessDefinition();
  | try {
  |  ServiceVO serviceVO = new ServiceVO();
  |  serviceVO.setProcessDefinitionName("SuperStateSample");
  |   initiateProcess(serviceVO);
  |   processJobs(timeout);
  |  // assertEquals(getExpectedResults(), collectedResults);
  | }
  | finally {
  |  
  | }
  |   }
  | 
  |   void deployProcessDefinition() {
  |   ProcessDefinition processDefinition = 
ProcessDefinition.parseXmlResource("processdefinition.xml");
  | jbpmContext.deployProcessDefinition(processDefinition);
  |  
  |   }
  | 
  |   void initiateProcess(ServiceVO serviceVO) {
  | JbpmContext jbpmContext = 
jbpmConfiguration.createJbpmContext();
  | String processName = 
serviceVO.getProcessDefinitionName();
  | logger.info("processName==="+processName);
  | ProcessInstance processInstance = 
jbpmContext.newProcessInstanceForUpdate(processName);
  | logger.info("--after getting 
processInstance");
  | long processInstanceId = processInstance.getId();
  | 
  | Token token = processInstance.getRootToken();
  | logger.info("--after getting token");
  | ContextInstance contextInstance = 
processInstance.getContextInstance();
  | logger.info("--after getting 
contextInstance");
  | contextInstance.setVariable("serviceVO", serviceVO);
  | 
  | /*if(processVariables!=null){
  | Set keySet = processVariables.keySet();
  | Iterator keyIterator = keySet.iterator();
  | String key = null;
  | Object obj = null;
  | while(keyIterator.hasNext()){
  | 
  | key = (String)keyIterator.next();
  | obj = processVariables.get(key);
  | 
  | contextInstance.setVariable(key,obj);
  | 
  | }
  | }*/
  | processInstance.signal();
  | logger.info("-after processInstance singal");
  | logger.info("--after signal");
  | 
  | l

[jboss-user] [EJB 3.0] - Re: circular references

2009-06-29 Thread jaikiran
anonymous wrote : but i cannot do that without class level annotations, right? 

As far as i know, it's not possible to do this at class level.
anonymous wrote : 
  | so is there a solution to
  | 
  | * ignore class level dependencies or
  | * lazy inject field level dependencies ?

Can you please provide a bit more details about the issue you are running into? 
Preferably with the relevant code and the logs.


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

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


[jboss-user] [JBoss jBPM] - Re: WARN [ProxyWarnLog] Narrowing proxy to class org.jbpm.g

2009-06-29 Thread kukeltje
PLEAEE, come on 

The testcase I posted is an example. Might be that the AbstractDBTestCase is 
not in 3.2.2. Could be, not sure, but removing it would show only a few things 
that need removal and you *could* be up and running but you can't for the 
very reason you again posted things that do *not* work at all.

You might have limited time, but so so I and by spending to little to provide 
me with a good testcase, you are unfortunately now on your own.  I'm sorry, but 
I'm not going to put any more effort (over 1 hour now) in solving this for you. 
Maybe others can help.

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

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


[jboss-user] [EJB 3.0] - Re: flushing EJB3 for use with EJB2.1

2009-06-29 Thread robert.geisler
some update here...

we are almost done with our ejb2.1-to-ejb3.0-migration. but some weeks ago we 
have been in deep doo-doo(?). the problem was the performance of the ejb3 
entity manager when it came to persist, update and remove very, very much 
entities in one long transaction (long >= 2 minutes).
we tried to log and debug the data layer and finally recognized, that 
performance of calling entity manager's cud methods (create, update, delete) 
slows down more and more the longer the transaction is running.

our sample transaction took about 8 minutes before ejb 3.0. after migration, it 
always met the transaction timeout (>= 30 minutes (for testing)!!) and we had 
no idea what could be the reason. question: Hibernate? well, we tried another 
persistence provider (thanks JBoss for easy changing the persistence provider! 
:) *noirony*), EclipseLink, and got it done in about 10 minutes. answer: 
Hibernate!?

kind of strange behaviour, we thought, but we were able to find a solution: we 
now dont call flush after single cud methods, but call flush and clear on 
entity manager just before our data layer returns. that improved our 
performance extremly; after applying the new pattern, our sample transaction 
took about 2 minutes (Hibernate! EclipseLink now needs about 22 minutes ;)).

so far...
i hope, our experiments and experience may help others, too.
regards
robert

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

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


[jboss-user] [JBoss Cache: Core Edition] - Re: How does JBoss Cache perform with high (15-20) number of

2009-06-29 Thread b...@jboss.com
So I'm assuming we have a 20 node cluster, and every node sends 25KBytes/sec 
(25 KBytes == 200KBits).

When using UDP, every node sends 1 multicast packet, to be received by every 
other node. So you scenario above (15x15) doesn't apply. 

When using TCP, every node sends a message N-1 (19) times, so your scenario 
*does* apply in this case.

With respect to network bandwidth, sending is not the issue because every node 
has a full duplex line to the switch. 

However, when receiving, a line from the switch to a node has to be shared 
between 19 (N-1) instances. In other words, every node can receive concurrent 
traffic from the 19 other nodes.

So if you have a 1GB switch, then the effective rate / node is 1000MBits/19 = 
52MBits = 52'000KBits = 6'500KBytes /sec. That 260 times more that you need !

So this is peanuts traffic-wise. The bottleneck might lie somewhere else, 
namely in the data: when everyone replicates its date to everybody else, every 
node has to store DATA * 20 on average. So if every node has data of 1MB, then 
the avg data size on a node is 20MB. This is fine, but of course not scalable 
if (1) your avg data size increases or (2) your cluster size increases.


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

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


[jboss-user] [EJB 3.0] - Re: flushing EJB3 for use with EJB2.1

2009-06-29 Thread jaikiran
Robert,

I guess if you brought this up in the hibernate forum 
https://forum.hibernate.org/viewforum.php?f=1, you might probably get some 
inputs on this.


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

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


[jboss-user] [Clustering/JBoss] - Implementation JMS Failover (Clustring) In jBoss 4.2.3 GA

2009-06-29 Thread sjunejo
Hi All,

I search through internet and this forum but couldn't find a complete guid 
through which I can even start. Some of the documents mention on 'Home Page' of 
jBoss Clustring talking about some cluster-service.xml and cluster folder in my 
deploy directiry but i dont have anything here.can anyone please provide me 
some inof on how to setup a clusterw ith four jboss server instances. I am 
attaching a failover diagram in this post for better understanding.

[img]http://img37.imageshack.us/i/ideak.png/%5D%5BIMG%5Dhttp://img37.imageshack.us/img37/962/ideak.th.png[/img]

Server 1 and Server 2 will hold my Web Application and possible targets of each 
other in case of failure where Server 3 and Server 4 will hold my Message MDB 
and possible targets for each other in case of failure. All three Queues should 
be distributed destinations cluster wide.

FYI: I have already implemeted the same using WebLogic 10.3.

Is it going to be simillar using jBoss.

Your help will be appreciated.

Thanks & Regards,

Sheeraz

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

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


[jboss-user] [Beginners Corner] - Re: NoClassDefFoundError in client class using jms Topic

2009-06-29 Thread PeterJ
anonymous wrote : The xml file orders-Topic.xml is deployed in 
/server/default/deploy/jbossall-client.jar/.

This makes no sense on two counts:
First, when declaring a topic, it must be placed in a file named *-service.xml 
(e.g., orders-service.xml)
Second, jbossall-client.jar is a file and not a directory, and it is located in 
the client directory, so I don't understand how you could deploy your file 
there.

anonymous wrote : Sorry, obviously Publisher and Purchase classes are the same 
class! 

Does this mean you solved your compilation issue?

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Is this JBoss or an iBatis issue? Classpath issues...

2009-06-29 Thread jaikiran
It's mainly related to which classloader iBatis ends up using. I guess it's 
using the wrong classloader. I thought passing the classloader would fix the 
issue, but as you mention it doesn't. It probably might be a good idea to open 
a forum thread in iBatis forums.


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

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


[jboss-user] [Beginners Corner] - Re: Tutorial that WORKS? and jboss source code?

2009-06-29 Thread PeterJ
Do you have JBoss Tools installed?  Have you seen this: 
http://docs.jboss.org/tools/3.0.1.GA/en/jboss_portal_tools_ref_guide/html/starting_project.html
The next chapter has a JSF example.

For source, the link you gave is for AS, not Portal. For Portal source, start 
at the Portal home page http://www.jboss.org/jbossportal/, click Downloads, 
then click on the source download.

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

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


[jboss-user] [EJB 3.0] - Re: circular references

2009-06-29 Thread robert.geisler
you are always very fast, jaikiran :)
god bless you ; )


"jaikiran" wrote : 
  | As far as i know, it's not possible to do this at class level.
  | 
to do what at class level? to @IgnoreDependency?

"jaikiran" wrote : 
  | Can you please provide a bit more details about the issue you are running 
into? Preferably with the relevant code and the logs.
  | 
our problem is, that we do not want to use dependency injection on some 
stateless beans, because we want to lazy lookup a few ejbs just when we really 
use them. earlier we achieved that through private getters that looked up the 
ejbs by their local jndi name (@LocalBinding). but we cannot use this pattern 
anymore, because we want our .ear to be portable to WebSphereAS (WAS doesnt 
have such a thing like @LocalBinding, but requires a "ejblocal:/" prefix for 
local business interfaces).
thats why we put class level @EJBs annotation on that stateless beans and use 
getters that lookup the ejbs by the logical name declared in @EJB.
we thought this way we may avoid injection of ejbs that mostly never will get 
used. but when we now deploy our .ear on JBoss, JBoss complains about circular 
references (as we would use dependency injection).

please have a look at the simplified code below.

here is one statless bean that declares dependency on class level. it dont use 
injection, but lazy lookup the referenced ejb through getter-method.
@Stateless(name = "StatlessOne")
  | @Local(value = StatlessOne.class)
  | @EJBs(value = { //
  | @EJB(name = "StatlessTwo", beanName = "StatlessTwo", beanInterface = 
StatlessTwo.class)
  | })
  | public class StatlessOneBean implements StatlessOne {
  |   @Resource
  |   private SessionContext sessionContext;
  | 
  |   // lookup "on-demand"
  |   public StatlessTwo getStatlessTwo() {
  | return (StatlessTwo) sessionContext.lookup("java:comp/env/" + 
"StatlessTwo";
  |   }
  | 
  |   ...
  |   
  | }
here is the corresponding ejb. the first ejb gets injected, beause the second 
one will always use the first ejb.
@Stateless(name = "StatlessTwo")
  | @Local(value = StatlessTwo.class)
  | public class StatlessTwoBean implements StatlessTwo {
  |   @Resource
  |   private SessionContext sessionContext;
  | 
  |   @EJB(beanName = "StatlessOne") // lookup "always"
  |   private StatlessOne statlessOne;
  | 
  |   public boolean hasStatlessOne() {
  | return (statlessOne != null);
  |   }
  | 
  |   ...
  |   
  | }
and thats the errors, JBoss loggs when we deploy our .ear:
2009-06-29 13:23:15,054 INFO  [org.jboss.ejb3.EJB3Deployer] Starting java:comp 
multiplexer
  | ...
  | // all ejbs got deployed without errors:
  | INFO  [org.jboss.ejb3.EJB3Deployer] Deployed: 
file:/...MyServer.ear-contents/StatelessOne.jar
  | INFO  [org.jboss.ejb3.EJB3Deployer] Deployed: 
file:/...MyServer.ear-contents/StatelessTwo.jar
  | ...
  | INFO  [org.jboss.deployment.EARDeployer] Started J2EE application: 
file:/...MyServer.ear
  | // AFTER deployment these erros are shown:
  | ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete 
Deployment listing:
  | 
  | --- MBeans waiting for other MBeans ---
  | ObjectName: 
jboss.j2ee:ear=MyServer.ear,jar=StatelessTwo.jar,name=StatelessTwo,service=EJB3
  |   State: NOTYETINSTALLED
  |   I Depend On:
  | 
jboss.j2ee:ear=AfpsServer.ear,jar=StatelessOne.jar,name=StatelessOne,service=EJB3
  | 
  | ObjectName: 
jboss.j2ee:ear=MyServer.ear,jar=StatelessOne.jar,name=StatelessOne,service=EJB3
  |   State: NOTYETINSTALLED
  |   I Depend On:
  | 
jboss.j2ee:ear=MyServer.ear,jar=StatelessTwo.jar,name=StatelessTwo,service=EJB3
  | 
  | ...
  | 
  | INFO  [org.jboss.system.server.Server] JBoss (MX MicroKernel) [4.2.2.GA 
[...] Started [...]

maybe i missunterstood the @EJB annotation at all?
i thought, that * @EJB on class level just declares a dependency and the 
application server puts the corresponding ejb into the local jndi context, 
while * @EJB on field level injects an instance of the corresponding ejb into 
the fieldam i wrong?


regards robert



ps:
its complicated for me to explain all these things in english.
so i hope you will forgive me if i confuse you O: )


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

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


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Servlet depending on MBean: loading order

2009-06-29 Thread sanches
Hello All,

How to specify that particular servlet in WAR has dependency on MBean and 
should not be loaded until that MBean is loaded first?
JBoss ver. 5.0.1.GA

Thanks,
Alex.

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

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


[jboss-user] [EJB 3.0] - Re: flushing EJB3 for use with EJB2.1

2009-06-29 Thread robert.geisler
your are right, of course.
continuing in Hibernate Forum 
(https://forum.hibernate.org/viewtopic.php?f=1&t=997949).
thank you : )

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

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


[jboss-user] [Beginners Corner] - Re: How to enable APR in JBoss 5?

2009-06-29 Thread PeterJ
Download and install JBoss Native, just like is described in the wiki page you 
mentioned.

However, there are some combinations of OS, JVM and JBoss Native that do not 
work. For example, Windows 32-bit will not work, but 64-bit Windows with a 
64-bit JVM does work. (At least that was the case the last time I tried with 
JBoss Native 2.0.5 and 2.0.6.)

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

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


[jboss-user] [JBoss jBPM] - Problem with examples in jBPM 4.0 CR1

2009-06-29 Thread GertLeenders
After i deployed the examples i get the following error in the gwt console when 
i try to access the overview of the process definitions:

org.jbpm.api.JbpmException: 
  warning: unrecognized event listener: timer [line=11 column=36 ]
  error: couldn't interpret the dom model: couldn't create object: couldn't 
load class org.jbpm.examples.timer.event.Escalate : 
org.jbpm.pvm.internal.wire.WireException: couldn't create object: couldn't load 
class org.jbpm.examples.timer.event.Escalate
  error: couldn't interpret the dom model: couldn't create object: couldn't 
load class org.jbpm.examples.eventlistener.LogListener : 
org.jbpm.pvm.internal.wire.WireException: couldn't create object: couldn't load 
class org.jbpm.examples.eventlistener.LogListener
  warning: unrecognized event listener: timer [line=11 column=57 ]
  error: couldn't interpret the dom model: couldn't create object: couldn't 
load class org.jbpm.examples.timer.repeat.Escalate : 
org.jbpm.pvm.internal.wire.WireException: couldn't create object: couldn't load 
class org.jbpm.examples.timer.repeat.Escalate
  xml validation error: cvc-complex-type.3.2.2: Attribute 'continue' is not 
allowed to appear in element 'on'. [line=10 column=43 ]: 
org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'continue' is 
not allowed to appear in element 'on'.
  xml validation error: cvc-complex-type.2.4.a: Invalid content was found 
starting with element 'mail'. One of '{"http://jbpm.org/4.0/jpdl":swimlane, 
"http://jbpm.org/4.0/jpdl":on, "http://jbpm.org/4.0/jpdl":timer, 
"http://jbpm.org/4.0/jpdl":start, "http://jbpm.org/4.0/jpdl":end, 
"http://jbpm.org/4.0/jpdl":end-cancel, "http://jbpm.org/4.0/jpdl":end-error, 
"http://jbpm.org/4.0/jpdl":state, "http://jbpm.org/4.0/jpdl":decision, 
"http://jbpm.org/4.0/jpdl":fork, "http://jbpm.org/4.0/jpdl":join, 
"http://jbpm.org/4.0/jpdl":script, "http://jbpm.org/4.0/jpdl":hql, 
"http://jbpm.org/4.0/jpdl":sql, "http://jbpm.org/4.0/jpdl":java, 
"http://jbpm.org/4.0/jpdl":task, "http://jbpm.org/4.0/jpdl":sub-process}' is 
expected. [line=11 column=26 ]: org.xml.sax.SAXParseException: 
cvc-complex-type.2.4.a: Invalid content was found starting with element 'mail'. 
One of '{"http://jbpm.org/4.0/jpdl":swimlane, "http://jbpm.org/4.0/jpdl":on, 
"http://jbpm.org/4.0/jpdl":timer, "http://jbpm.org/4.0/jpdl":star!
 t, "http://jbpm.org/4.0/jpdl":end, "http://jbpm.org/4.0/jpdl":end-cancel, 
"http://jbpm.org/4.0/jpdl":end-error, "http://jbpm.org/4.0/jpdl":state, 
"http://jbpm.org/4.0/jpdl":decision, "http://jbpm.org/4.0/jpdl":fork, 
"http://jbpm.org/4.0/jpdl":join, "http://jbpm.org/4.0/jpdl":script, 
"http://jbpm.org/4.0/jpdl":hql, "http://jbpm.org/4.0/jpdl":sql, 
"http://jbpm.org/4.0/jpdl":java, "http://jbpm.org/4.0/jpdl":task, 
"http://jbpm.org/4.0/jpdl":sub-process}' is expected.
  error: mail template not found: rectify-template [line=11 column=26 ]
  xml validation error: cvc-complex-type.2.4.a: Invalid content was found 
starting with element 'custom'. One of '{"http://jbpm.org/4.0/jpdl":swimlane, 
"http://jbpm.org/4.0/jpdl":on, "http://jbpm.org/4.0/jpdl":timer, 
"http://jbpm.org/4.0/jpdl":start, "http://jbpm.org/4.0/jpdl":end, 
"http://jbpm.org/4.0/jpdl":end-cancel, "http://jbpm.org/4.0/jpdl":end-error, 
"http://jbpm.org/4.0/jpdl":state, "http://jbpm.org/4.0/jpdl":decision, 
"http://jbpm.org/4.0/jpdl":fork, "http://jbpm.org/4.0/jpdl":join, 
"http://jbpm.org/4.0/jpdl":script, "http://jbpm.org/4.0/jpdl":hql, 
"http://jbpm.org/4.0/jpdl":sql, "http://jbpm.org/4.0/jpdl":java, 
"http://jbpm.org/4.0/jpdl":task, "http://jbpm.org/4.0/jpdl":sub-process}' is 
expected. [line=11 column=26 ]: org.xml.sax.SAXParseException: 
cvc-complex-type.2.4.a: Invalid content was found starting with element 
'custom'. One of '{"http://jbpm.org/4.0/jpdl":swimlane, 
"http://jbpm.org/4.0/jpdl":on, "http://jbpm.org/4.0/jpdl":timer, 
"http://jbpm.org/4.0/jpdl":!
 start, "http://jbpm.org/4.0/jpdl":end, "http://jbpm.org/4.0/jpdl":end-cancel, 
"http://jbpm.org/4.0/jpdl":end-error, "http://jbpm.org/4.0/jpdl":state, 
"http://jbpm.org/4.0/jpdl":decision, "http://jbpm.org/4.0/jpdl":fork, 
"http://jbpm.org/4.0/jpdl":join, "http://jbpm.org/4.0/jpdl":script, 
"http://jbpm.org/4.0/jpdl":hql, "http://jbpm.org/4.0/jpdl":sql, 
"http://jbpm.org/4.0/jpdl":java, "http://jbpm.org/4.0/jpdl":task, 
"http://jbpm.org/4.0/jpdl":sub-process}' is expected.
  xml validation error: cvc-complex-type.3.2.2: Attribute 'continue' is not 
allowed to appear in element 'java'. [line=13 column=24 ]: 
org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'continue' is 
not allowed to appear in element 'java'.
  xml validation error: cvc-complex-type.3.2.2: Attribute 'continue' is not 
allowed to appear in element 'java'. [line=21 column=25 ]: 
org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'continue' is 
not allowed to appear in element 'java'.

org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:169)

org.jbpm.pvm.inte

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: INIT_WAITING_DEPLOYER when deploy my maven project

2009-06-29 Thread PeterJ
What version of JBoss AS? AS 5.x scans the contents of the archive looking for 
key deployment descriptors; perhaps the deployer is tripping over the pom.xml. 
If you are using AS 5.5, then asking on the following forum might get some 
answers: http://www.jboss.org/index.html?module=bb&op=viewforum&f=287

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

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


[jboss-user] [JCA/JBoss] - Re: JBoss + Oracle InstantClient 10g - works for Tomcat, not

2009-06-29 Thread pbdavey
I only added C:\Users\Phillip.OFFICE\dev\instantclient_10_2\ to 
java.library.path.  I'm a concerned that something like dependencywalker won't 
show me what I need to know since Tomcat runs fine, so I believe my environment 
is fine, it's just something about JBoss' configuration that is messing it up.

Another piece of info is that I don't need java.library.path set for Tomcat, it 
uses PATH just fine.  Which I suppose points to JBoss messing with the PATH 
variable.

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Problem deploying an EJB with empty orm.xml

2009-06-29 Thread PeterJ
I don't use an orm.xml and it works fine for me. What do you mean by "The 
exception is thrown from eclipse link"? Also, please post the full stack trace 
for the exception.

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

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


[jboss-user] [JCA/JBoss] - Re: JBoss + Oracle InstantClient 10g - works for Tomcat, not

2009-06-29 Thread PeterJ
You java.library.path is not set correctly. As it is currently set, it will 
pick up ocijdbc10.dll but none of the DLLs on which it depends. Please read my 
previous reply again.

If you do not pass java.library.path to JBoss AS, it too will use PATH. You 
will have to edit run.bat because that is where java.library.path is being set 
(that is because it tries to see if JBoss Native is installed). 

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

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


[jboss-user] [JBoss jBPM] - Re: Indentityservice- Jbpm4

2009-06-29 Thread nilspreusker
Hi guys, thanks for your feedback! Regarding the idea of modifying the 
hibernate mappings of the jBPM UserImpl, I did get it to work, but I agree with 
your point that it ties the two application domains too close together.

The reason I'm working with the trunk is that I'm using some spring integration 
code that was only added after the CR1 release. This also means that it will be 
rather difficult to test with the CR1 version, since the rest of my jBPM code 
won't work anymore. Whats more, according to the svn logs, there haven't been 
any significant changes to IdentitySessionBinding.java since the CR1 release 
(I'm assuming this class is responsible for wiring the classes from the 
configuration, please correct me if I'm wrong). 

"kukeltje" wrote : If you want to help and make it fully plugable (which is not 
targeted at the 4.0 release) please discuss things in the dev forum.
I'd be happy to contribute, but to be honest, I'm a bit confused now. 
Shekharv's post suggest that the plugable configuration is already working, 
whereas the above quote indicates that it isn't even intended to be part of the 
4.0 release. Maybe someone can shed some light on this.

Thanks! Nils

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

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


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Referencing ${catalina.base}

2009-06-29 Thread juanavelez
I am a newbie to JBoss and the reason for using JBoss is that we have a 
tomcat-based application which our customer wants to run in JBoss. Our app is 
also a spring-based application and we have some properties file needed by 
spring referenced by some spring-configuration files by

${catalina.base}/properties/someproperty.file

The above was a requirement from our customer which was using JBossAS as their 
AS instead of Tomcat. According to our customer this is what they do inside 
JBoss to reference a property file out of a WAR file (They have centralized the 
location of properties files out of WAR files for better managing).

I downloaded 5.1.0GA and installed it. Using the "default" server, I copied my 
war file onto %JBOSS_HOME%/server/default/deploy but when it runs, it complains 
that ${catalina.base} can not be resolved. 

I am using JBossAS 5.1.0 GA, WinXP, jdk 1.5.0_15.

Any help will be gladly appreciated.

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

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


[jboss-user] [JBoss Tools (users)] - Re: High CPU on JSF auto-complete

2009-06-29 Thread jboden
nothing at all in the eclipse error log (show view -> error log)

I would expect the first time to be slow, then cache the methods index. But 
it's acting as if it doesn't do that. Is there any type of debug option I can 
run to determine what it's doing? I saw this before on a very old jboss dev 
studio, then some patch fixed it, can't remember what it was.

Thanks for your help!

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

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


[jboss-user] [JBoss Tools (users)] - Re: High CPU on JSF auto-complete

2009-06-29 Thread PeterJ
Try taking a few thread dumps during the 100% CPU time, that might help 
pinpoint the code causing this issue. 

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Is this JBoss or an iBatis issue? Classpath issues...

2009-06-29 Thread adriano...@gmail.com
I see, thanks for the help and explanation...

Could you, please, tell me a little more about the classloaders...

I got it when you said that Ibatis ends using the wrong one what I didnt 
get was what are it's options? 

Is there more than one classloader in a web app? why is that?

Thanks.

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

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


[jboss-user] [JBoss Cache: Core Edition] - Re: How does JBoss Cache perform with high (15-20) number of

2009-06-29 Thread souravm
Hi Bela,

Thanks for your inputs.

Yes I agree with you, n/w bandwidth wise it may not be an issue.

However, I've not got your point on how data store can be issue w.r.t 
scalability. Let me explain the data model a bit more here. All together I've 
around 250x1000 such entities, which would be replicated across 20 nodes (in 
about 2-3 mins timeframe). Now each entity being a size of 1 KB, we have 
provisioned for 250MB memory at each instance level (that means every node has 
all the state of the system). Given that I think with increase in number of 
instances in the cluster, the memory need would not increase. Please let me 
know if you think otherwise. However, I agree increase in average data size 
would surely be a scalability issue.

My concern is more with the CPU cycles which will go in marshaling/unmarshaling 
data. Given that every instance would receive data from all other (N-1) 
instances, the CPU cycles in marshaling the data would grow in all nodes in 
addition of more nodes in the cluster. 

Also I'm not sure how it would impact the locking. Assuming that use of MVCC 
locking strategy would take care of this.

By the way, I'm interested to know when is the target date of release of 
consistent hash algorithm (CHA) based (select where keys reside) distributed 
caching mode (ISPN-30). That would surely solve the scalability problem what I 
see in this case.

Regards,
Sourav

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

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


[jboss-user] [Clustering/JBoss] - Re: Lost in the documentation UDP->TCP

2009-06-29 Thread bstansbe...@jboss.com
Thanks, giddion for the correction and the details. Yep, in my comment format 
for the initial_hosts list was incorrect.

Note that if you use -b 0.0.0.0, JGroups will not bind to all interfaces. 
Rather it ends up using the value returned by 
InetAddress.getLocalHost().getHostName(). You can control this what interface 
is used by using -Djgroups.bind_addr=xxx.

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

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


[jboss-user] [Beginners Corner] - How to check a jdbc configuration

2009-06-29 Thread Agorka
Hello
I've started with JBoss AS as administrator. I configured the datasource 
according to doc. I set also  a min pool, new connection sql (select 1 from 
sys.dual). But I can't see any connection from the JBoss in the database level 
(It is Oracle). Should this connection automatically appear in the database ? 
or should I run something?

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

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


[jboss-user] [Beginners Corner] - Re: How to check a jdbc configuration

2009-06-29 Thread PeterJ
Connections are lazy-loaded - none will be made until an app requests one, then 
min connections are made.

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

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


[jboss-user] [Beginners Corner] - Re: How to check a jdbc configuration

2009-06-29 Thread Agorka
Thanks, is it something I can do to force JBoss to open the min connections? I 
have none application yet.

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

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


[jboss-user] [Beginners Corner] - Re: How to check a jdbc configuration

2009-06-29 Thread PeterJ
Write a service with a startup class and have it access the database. To write 
a startup class, see http://www.jboss.org/community/wiki/CreateAStartupClass. 
That wiki page is rather sparse, but the example MBean should get you started.

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

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


[jboss-user] [Clustering/JBoss] - Re: Can JNDI ds reconnect automatically after DB server rest

2009-06-29 Thread jaikiran
This question is more appropriate in the JCA forum 
http://www.jboss.org/index.html?module=bb&op=viewforum&f=136. Here's a wiki 
entry which has an explanation for your question:

http://www.jboss.org/community/wiki/WhatHappensToJBossIfIRestartTheDatabase

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

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


[jboss-user] [Clustering/JBoss] - Re: HASingletonDeployer ERROR upon secondary server startup

2009-06-29 Thread bstansbe...@jboss.com
The "DEPLOYMENTS MISSING DEPENDENCIES:" error message is rather cryptic; I'm 
looking into it to make sure it means what I think it means. But my 
interpretation is not that the microcontainer expects the bean to be in 
"Described" but rather that it doesn't recognize the name at all.

Looking at the Barrier in the jmx-console and seeing "Create" state is what I 
would expect on the non-master node, so that aspect of it looks good.

Hmm, a possibility here is the BarrierController is directly registering the 
Barrier in JMX, and the microcontainer is bypassed. So the microcontainer is 
unaware of the barrier.

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

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


[jboss-user] [JBoss jBPM] - do timers and multithreaded environment cause db deadlocking

2009-06-29 Thread johndvm
I was wondering if there were any issues with using timers and multi-threaded 
execution.

I am using JBPM 3.2.6-SP1 and it seems like when I run two threads through my 
process workflow, I get a database deadlock.

It seems like 1 thread is holding open a transaction for the duration of the 
entire workflow, and has locked the JBPM_JOB table, and another thread starts 
and as it tries to transition between stages, it tries to delete from the 
JBPM_JOB table, and the entire thing gets deadlocked.  It appears the problem 
is with trying to delete the timer at the same node.

org.jbpm.JbpmException: could not delete timers by name 'validate' for Token(/)
at org.jbpm.db.JobSession.deleteTimersByName(JobSession.java:216)
at 
org.jbpm.scheduler.db.DbSchedulerService.deleteTimersByName(DbSchedulerService.java:64)
at 
org.jbpm.scheduler.def.CancelTimerAction.execute(CancelTimerAction.java:46)
at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:281)

Is this something that is known, or have other people been able to use JBPM 
with timers in a multi-threaded environment?

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

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


[jboss-user] [JBoss jBPM] - Re: Best way to get audit or history information

2009-06-29 Thread sbhatti
Thanks Swati for the code snippet, I will give it a try.

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

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


[jboss-user] [Performance Tuning] - Re: java.net.SocketException: Too many open files on Red Hat

2009-06-29 Thread vons1234
try to see what file handles are open using following command
lsof -p PID

I did face same problem while using Jboss 4.3 on SunOS.
We were using jboss webservices module and while load testing it was throwing 
same exception for WSDL

java.net.SocketException: Too many open files 

I believe there is a patch available for this. We used that patch and that 
resolved the problem.

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

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


[jboss-user] [Management, JMX/JBoss] - HtmlAdaptorServer from JBoss 3.2.7 is not found in JBoss 5.1

2009-06-29 Thread alskor
I need to migrate a Jboss 3.2.7 application to Jboss 5.1.0GA.
I see there's deploy\jmx-html-adaptor1.sar\META-INF\jboss-service.xml file in 
my old Jboss 3.2.7 install:

 
  | 
  |   10 
  |
  |   49802   
  |  
  | 
  | 


I also have some java code to shutdown our server remotely using this connector 
on port 49802:

  | public static void shutdown(String host, int port)  {
  | System.out.println("Shutting down server at " + host + ":" + port);
  |  
  | try{
  |   URL url = new URL("http", host, port, COMMAND);
  |   url.getContent();
  | }catch (Exception ignore){
  |   System.err.println("ignoring " + ignore.toString());
  | }
  | System.out.println("Shutdown complete.");
  |   }
  |  
  |   private static final String COMMAND
  | = 
"/InvokeAction//jboss%2Esystem%3Atype%3DServer/action=shutdown?action=shutdown";
  | 


I don't see "\jmx-html-adaptor1.sar" folder in new JB5 server. what's the 
equivalent of this stuff in jboss 5?
basically, I just need to shutdown the server remotely.

For this particular need I could use this solution from 
http://www.jboss.org/file-access/default/members/jbossas/freezone/docs/Installation_And_Getting_Started_Guide/5/html/The_JBoss_Server___A_Quick_Tour.html#Starting_and_Stopping_the_Server-Stopping_the_Server
 :

9.3.4. Stopping the Server
  |  
  | To shutdown the server, you simply issue a Ctrl-C sequence in the console 
in which JBoss was started. Alternatively, you can use the shutdown.sh command.
  |  
  | [bin]$ ./shutdown.sh -S
  |  
  | The shutdown script supports the following options:
  |  
  | A JMX client to shutdown (exit or halt) a remote JBoss server.
  |  
  | usage: shutdown [options] 
  |  
  | options:
  | -h, --helpShow this help message (default)
  | -D[=]Set a system property
  | --Stop processing options
  | -s, --server=Specify the JNDI URL of the remote server
  | -n, --serverName=Specify the JMX name of the ServerImpl
  | -a, --adapter=  Specify JNDI name of the MBeanServerConnection to 
use
  | -u, --user= Specify the username for authentication
  | -p, --password= Specify the password for authentication
  |  
  | operations:
  | -S, --shutdownShutdown the server
  | -e, --exit= Force the VM to exit with a status code
  | -H, --halt= Force the VM to halt with a status code
  | 

 but anyway - what happened to this deploy\jmx-html-adaptor1.sar service in 
JBoss 5.1.0? it existed in JBoss 3.2.7


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

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


[jboss-user] [Beginners Corner] - Re: How to check a jdbc configuration

2009-06-29 Thread Agorka
Thank you, i'll try to do it.

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

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


[jboss-user] [Security & JAAS/JBoss] - Re: Single Sign On with LDAP Examples

2009-06-29 Thread rathinaganesh
Greetings,

I am trying to do the same thing, Install Federated SSO and test it.
I am using 
Jboss-4.2.2.GA on Windows XP
OpenDS-1.2.0 on FreeBSD
I have set up the OpenDS for the testuser login.
Previously, I got the error as testuser is not activated.  So, I took out the 
source from the trunk mentioned above. Updated the trunk and build the sso sar 
and ear files.

The security-config.xml inside the jboss-sso-test.ear\META-INF looks like this


  | 
  | 
  | 
  |
  |
  |  
  | guest
  | useFirstPass   
  | 
  | Authenticated,RegisteredUsers 

  |  
  |  
  | guest
  | useFirstPass 
  | Authenticated,RegisteredUsers 
 
  |  
  |   
  | 
  | 
  | 
  | 


The sso.cfg.xml file under jboss-sso.sar looks like this

  | 
  | 
  | 
  | 
  | 
jdbc:ldap://10.10.60.4:389/dc=jboss,dc=com?SEARCH_SCOPE:=subTreeScope&secure:=false&concat_atts:=true&size_limit:=1000
  | 
  | uid=admin,dc=jboss,dc=com
  | jbossrocks
  | People
  | roles
  | 
  | 
  | 
  | 

and this is how it looks like in the ldapsearch


  | /usr/local/OpenDS-1.2.0/bin/ldapsearch -s sub -b 
cn=testuser,ou=People,dc=jboss,dc=com "(objectclass=*)"
  | dn: cn=testuser,ou=People,dc=jboss,dc=com
  | objectClass: person
  | objectClass: inetOrgPerson
  | objectClass: organizationalPerson
  | objectClass: top
  | mail: [EMAIL PROTECTED]
  | uid: test
  | cn: testuser
  | displayName: Test User
  | sn: true
  | 


When I try to use testuser and secret as login and password, I get login failed 
on the jsp. I am not getting any errors on the jboss server log.
On the OpenDS log, I see the following message. 


  | 
  | [29/Jun/2009:11:19:54 -0700] CONNECT conn=176 from=10.10.1.145:3241 
to=10.10.60.4:389 protocol=LDAP
  | [29/Jun/2009:11:19:54 -0700] BIND REQ conn=176 op=0 msgID=19 type=SIMPLE 
dn="uid=admin,dc=jboss,dc=com"
  | [29/Jun/2009:11:19:54 -0700] BIND RES conn=176 op=0 msgID=19 result=0 
authDN="uid=admin,dc=jboss,dc=com" etime=1
  | [29/Jun/2009:11:19:54 -0700] SEARCH REQ conn=176 op=1 msgID=20 
base="cn=testuser,ou=People,dc=jboss,dc=com" scope=wholeSubtree 
filter="(objectClass=*)" attrs="cn"
  | [29/Jun/2009:11:19:54 -0700] SEARCH RES conn=176 op=1 msgID=20 result=0 
nentries=1 etime=2
  | [29/Jun/2009:11:19:54 -0700] UNBIND REQ conn=176 op=2 msgID=21
  | [29/Jun/2009:11:19:54 -0700] DISCONNECT conn=176 reason="Client Unbind"
  | [29/Jun/2009:11:19:54 -0700] CONNECT conn=177 from=10.10.1.145:3242 
to=10.10.60.4:389 protocol=LDAP
  | [29/Jun/2009:11:19:54 -0700] BIND REQ conn=177 op=0 msgID=22 type=SIMPLE 
dn="uid=admin,dc=jboss,dc=com"
  | [29/Jun/2009:11:19:54 -0700] BIND RES conn=177 op=0 msgID=22 result=0 
authDN="uid=admin,dc=jboss,dc=com" etime=1
  | [29/Jun/2009:11:19:54 -0700] SEARCH REQ conn=177 op=1 msgID=23 
base="cn=testuser,ou=People,dc=jboss,dc=com" scope=wholeSubtree 
filter="(objectClass=*)" 
attrs="cn,sn,userPassword,givenName,displayName,o,employeeType,title,postalAddress,mail,telephoneNumber"
  | [29/Jun/2009:11:19:54 -0700] SEARCH RES conn=177 op=1 msgID=23 result=0 
nentries=1 etime=1
  | [29/Jun/2009:11:19:54 -0700] UNBIND REQ conn=177 op=2 msgID=24
  | [29/Jun/2009:11:19:54 -0700] DISCONNECT conn=177 reason="Client Unbind"
  | [29/Jun/2009:11:19:54 -0700] CONNECT conn=178 from=10.10.1.145:3243 
to=10.10.60.4:389 protocol=LDAP
  | [29/Jun/2009:11:19:54 -0700] BIND REQ conn=178 op=0 msgID=25 type=SIMPLE 
dn="uid=admin,dc=jboss,dc=com"
  | [29/Jun/2009:11:19:54 -0700] BIND RES conn=178 op=0 msgID=25 result=0 
authDN="uid=admin,dc=jboss,dc=com" etime=1
  | [29/Jun/2009:11:19:54 -0700] SEARCH REQ conn=178 op=1 msgID=26 
base="cn=testuser,ou=People,dc=jboss,dc=com" scope=wholeSubtree 
filter="(objectClass=*)" attrs="cn"
  | [29/Jun/2009:11:19:54 -0700] SEARCH RES conn=178 op=1 msgID=26 result=0 
nentries=1 etime=1
  | [29/Jun/2009:11:19:54 -0700] UNBIND REQ conn=178 op=2 msgID=27
  | [29/Jun/2009:11:19:54 -0700] DISCONNECT conn=178 reason="Client Unbind"
  | [29/Jun/2009:11:19:54 -0700] CONNECT conn=179 from=10.10.1.145:3244 
to=10.10.60.4:389 protocol=LDAP
  | [29/Jun/2009:11:19:54 -0700] BIND REQ conn=179 op=0 msgID=28 type=SIMPLE 
dn="uid=admin,dc=jboss,dc=com"
  | [29/Jun/2009:11:19:54 -0700] BIND RES conn=179 op=0 msgID=28 result=0 
authDN="uid=admin,dc=jboss,dc=com" etime=1
  | [29/Jun/2009:11:19:54 -0700] SEARCH REQ conn=179 op=1 msgID=29 
base="cn=testuser,ou=People,dc=jboss,dc=com" scope=wholeSubtree 
filter="(objectClass=*)" 
attrs="cn,sn,userPassword,givenName,displayName,o,employeeType,title,postalAddress,mail,telephoneNumber"
  | [29/Jun

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Does Jboss4.2.3.GA specific support for Whitespace and U

2009-06-29 Thread TobiasF
Yes, that seems to be an ugly bug. I have the same problem for a German 
"Umlaut". Someone should file a bug :-)

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

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


[jboss-user] [JBoss Messaging] - Re: Thread Pool questions

2009-06-29 Thread andy.mil...@jboss.com
"gaohoward" wrote : Hi, 
  | 
  | I don't know if jms-ds.xml has such a parameter, you can ask the JCA forum 
about it. JBoss remoting does has such a parameter, you can read about it in 
the jboss remoting's doc. The remoting configuration file is set at the JBM 
server side only. 
  | 

I know there is a JCA thread pool, as I already talked to them, and that's not 
what I'm after.

I find maxPoolSize in jms-ds.xml in the current releases of AS, so I also know 
about that.

So, what I'm trying to make sure I understand is what parameter does what?  The 
remoting configuration seems an unlikely place to be setting a thread pool for 
an in JVM invocation.

For example, in EJB 3 land, there is a thread pool for remote clients that make 
EJB calls, but that is bypassed when the call comes from within the same JVM.

I would expect the same behavior from messaging, where the remoting 
configuration would be only for remote clients, and there would be different 
behavior for the in JVM calls.

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

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


[jboss-user] [JBoss jBPM] - Re: Indentityservice- Jbpm4

2009-06-29 Thread kukeltje
Sorry for the confusion. With 'fully pluggable' I meant 100% stable and 
documented api, testcases, example etc. Afaik, this is not (yet) the case and 
therefore it is not targeted at 4.0. This does not mean however that things 
will change drastically, on the contrary, most is quite ok.

If you have a small testcase, I'd be more than happy to give it a try and do 
some puzzling on my side.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Does Jboss4.2.3.GA specific support for Whitespace and U

2009-06-29 Thread TobiasF
Filed a bug report: https://jira.jboss.org/jira/browse/JBAS-7066

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

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


[jboss-user] [EJB 3.0] - Re: circular references

2009-06-29 Thread jaikiran
anonymous wrote : to do what at class level? to @IgnoreDependency ?
  | 

Yes, i meant you can't have an @IgnoreDependency at class level.

anonymous wrote : i thought, that
  | 
  | * @EJB on class level just declares a dependency and the application 
server puts the corresponding ejb into the local jndi context, while
  | * @EJB on field level injects an instance of the corresponding ejb into 
the field

That's correct. 

[ Some internal details - A @EJB adds an internal MC dependency on the bean 
which is being added to the ENC of another bean or being injected in another 
bean]

Wouldn't this work:

  | ...
  | public class StatlessTwoBean implements StatlessTwo
  | {
  | ...
  | @EJB(beanName = "StatlessOne") // lookup "always"
  | @IgnoreDependency
  |   private StatlessOne statlessOne;

anonymous wrote : ps:
  | its complicated for me to explain all these things in english.
  | so i hope you will forgive me if i confuse you O: ) 

No problem with the language :)


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

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


[jboss-user] [Clustering/JBoss] - Re: HASingletonDeployer ERROR upon secondary server startup

2009-06-29 Thread bstansbe...@jboss.com
"bstansbe...@jboss.com" wrote : Hmm, a possibility here is the 
BarrierController is directly registering the Barrier in JMX, and the 
microcontainer is bypassed. So the microcontainer is unaware of the barrier.

OK, I checked that theory out and the microcontainer isn't bypassed; things 
work as they should.

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

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


[jboss-user] [JBoss jBPM] - How to find the current task?

2009-06-29 Thread gfargone
Hello,

I am using JBPM 3.2.6.SP1 through the Command Service bean interface.
Is there a way to find the current task instance for a process instance?
For example, the users want to know where their process instances are stuck and 
they want to know which node/task is not getting done by someone else.

Thank You,
Tamas

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: External Directories On JBoss 4.2.x

2009-06-29 Thread vladimir.albis
Hi to all and thanks for your replies. My question is: can i add access 
restrictions to virtual directories?. I was reading different posts and no luck 
about this, is it possible to use  and my own class?. This virtual folders 
contains images, but my application requieres these resources to be restricted.

Again thanks,
Vladimir

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

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


  1   2   >