[jboss-user] [JBoss Seam] - Re: Need definitive answers on unit testing with Seam

2008-01-18 Thread [EMAIL PROTECTED]
All of the threads you link to are from people who didn't read the updated 
documentation of Seam 2.0:

anonymous wrote : 
  | The Java Persistence API can be used with both Java SE and Java EE — 
when the above component is used inside an Application Server (Java EE) the 
container is responsible for transaction management, however in the unit test 
(Java SE) the transaction must be managed explicitly using a resource local 
entity manager. This requires configuration in persistence.xml.
  | 

Note the last sentence. All the postersl (and probably you) have problems 
because they are using the wrong persistence.xml. If you don't understand how 
the persistence.xml needs to look like for a standalone EntityManager test 
(without SeamTest container), read the second chapter of my book (it's free).



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121192#4121192

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121192

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


[jboss-user] [JBoss Seam] - Re: programmatic starting a list of conversations

2008-01-18 Thread tschnoelzer
Hi Pete,

it is clear to have only one active converstion. I need a list of conversations 
for choosing the one I work on with the workspace switcher.

Talking in seam example hotel booking it is like choosing x (e.g. 4) hotels 
from the hotel list, than switch one by one for booking using the workspace 
pulldown.

In my project, order people choose e.g. 10 cars from a list and than choose 
options and calc one by one while switching their workspace.

So I need to do something like:

Contexts.getConversationContext().add(new CarManagedBean(carId));

Thx for any info


Timo

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121194#4121194

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121194
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Vista 64 problems

2008-01-18 Thread [EMAIL PROTECTED]
Open the Error Log View or use
Help  Report problem which collects the log files into a zip.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121193#4121193

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121193
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS JBossMQ] - Re: [JAVA-JMS]+Jboss confiurazione

2008-01-18 Thread erasmo78
I have try
but now i have this error

xception in thread main javax.naming.NameNotFoundException: order not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at 
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
at java.lang.Thread.run(Thread.java:595)
at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at 
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at erasmo.jms.Sender.main(Sender.java:55)


I have add code in my class java

   System.setProperty(java.security.policy, c:/client.policy);  
  if (System.getSecurityManager() == null) 
  
  {
  System.setSecurityManager(new RMISecurityManager()); 
  } 
  
  
  Properties properties = new Properties();
  properties.put(Context.INITIAL_CONTEXT_FACTORY, 
org.jnp.interfaces.NamingContextFactory);
  properties.put(Context.URL_PKG_PREFIXES, org.jnp.interfaces);
  properties.put(Context.PROVIDER_URL, 10.173.172.176);
//  properties.put(Context.SECURITY_AUTHENTICATION, no);
 //properties.put(Context., no);
 
  ctx = new InitialContext(properties);


   



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121196#4121196

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121196
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Need definitive answers on unit testing with Seam

2008-01-18 Thread [EMAIL PROTECTED]
http://jira.jboss.com/jira/browse/JBSEAM-2506

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121197#4121197

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121197
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS JBossMQ] - Re: [JAVA-JMS]+Jboss confiurazione

2008-01-18 Thread erasmo78
I have found the error

   
  

  


Thanks you

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121200#4121200

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121200
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: JBPM, mail and ws

2008-01-18 Thread szaccaria
As I promised, post the full exception and stack trace.
Thanks in advance


  | java.lang.IllegalStateException: Application was not properly initialized 
at startup, could not find Factory: javax.faces.application.ApplicationFactory
  | 09:24:37,535 ERROR [STDERR] at 
javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256)
  | 09:24:37,535 ERROR [STDERR] at 
org.jboss.seam.mock.MockFacesContext.init(MockFacesContext.java:60)
  | 09:24:37,535 ERROR [STDERR] at 
org.jboss.seam.ui.facelet.FaceletsRenderer$RenderingContext.init(FaceletsRenderer.java:95)
  | 09:24:37,535 ERROR [STDERR] at 
org.jboss.seam.ui.facelet.FaceletsRenderer$RenderingContext.run(FaceletsRenderer.java:77)
  | 09:24:37,535 ERROR [STDERR] at 
org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:169)
  | 
Here is the problem
09:24:37,535 ERROR [STDERR] at 
org.thezak3.wf.bpm.InfoNewTask.execute(InfoNewTask.java:75)
  | 

  | 09:24:37,535 ERROR [STDERR] at 
org.jbpm.graph.def.Action.execute(Action.java:122)
  | 09:24:37,535 ERROR [STDERR] at 
org.jboss.seam.bpm.SeamUserCodeInterceptor$1.process(SeamUserCodeInterceptor.java:80)
  | 09:24:37,535 ERROR [STDERR] at 
org.jboss.seam.bpm.SeamUserCodeInterceptor$ContextualCall.run(SeamUserCodeInterceptor.java:33)
  | 09:24:37,535 ERROR [STDERR] at 
org.jboss.seam.bpm.SeamUserCodeInterceptor.executeAction(SeamUserCodeInterceptor.java:74)
  | 09:24:37,535 ERROR [STDERR] at 
org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:262)
  | 09:24:37,535 ERROR [STDERR] at 
org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:220)
  | 09:24:37,535 ERROR [STDERR] at 
org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:190)
  | 09:24:37,535 ERROR [STDERR] at 
org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:174)
  | 09:24:37,535 ERROR [STDERR] at 
org.jbpm.taskmgmt.exe.TaskInstance.setActorId(TaskInstance.java:298)
  | 09:24:37,535 ERROR [STDERR] at 
org.jbpm.taskmgmt.exe.TaskInstance.setActorId(TaskInstance.java:268)
  | 09:24:37,535 ERROR [STDERR] at 
org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignmentActorIdExpr(TaskMgmtInstance.java:244)
  | 09:24:37,535 ERROR [STDERR] at 
org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignment(TaskMgmtInstance.java:204)
  | 09:24:37,535 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 09:24:37,535 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | 09:24:37,535 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | 09:24:37,535 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Unknown Source)
  | 09:24:37,535 ERROR [STDERR] at 
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
  | 09:24:37,535 ERROR [STDERR] at 
org.jbpm.taskmgmt.exe.TaskMgmtInstance_$$_javassist_19.performAssignment(TaskMgmtInstance_$$_javassist_19.java)
  | 09:24:37,535 ERROR [STDERR] at 
org.jbpm.taskmgmt.exe.TaskInstance.assign(TaskInstance.java:204)
  | 09:24:37,535 ERROR [STDERR] at 
org.jbpm.taskmgmt.exe.TaskMgmtInstance.createTaskInstance(TaskMgmtInstance.java:154)
  | 09:24:37,535 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 09:24:37,535 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | 09:24:37,535 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | 09:24:37,535 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Unknown Source)
  | 09:24:37,535 ERROR [STDERR] at 
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
  | 09:24:37,535 ERROR [STDERR] at 
org.jbpm.taskmgmt.exe.TaskMgmtInstance_$$_javassist_19.createTaskInstance(TaskMgmtInstance_$$_javassist_19.java)
  | 09:24:37,535 ERROR [STDERR] at 
org.jbpm.graph.node.TaskNode.execute(TaskNode.java:168)
  | 09:24:37,535 ERROR [STDERR] at 
org.jbpm.graph.def.Node.enter(Node.java:319)
  | 09:24:37,535 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 09:24:37,535 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | 09:24:37,535 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | 09:24:37,535 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Unknown Source)
  | 09:24:37,535 ERROR [STDERR] at 
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
  | 09:24:37,535 ERROR [STDERR] at 
org.jbpm.graph.def.Node_$$_javassist_59.enter(Node_$$_javassist_59.java)
  | 09:24:37,535 ERROR [STDERR] at 

[jboss-user] [JBoss Seam] - Re: no-connection servlet issue

2008-01-18 Thread mars1412
Seam 2.0.0.CR2 on jboss-4.2.0.GA


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121201#4121201

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121201
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Could not instantiate Seam component

2008-01-18 Thread axismundi
I get the same exception. I suppose it has a root cause, which is a cycle in 
page-redirection. But I wonder why the root-cause is not logged.
As you can draw from the stacktrace, we are using Icefaces (1.6.1).
Btw., the ApplicationUser-class is not the problem.

2008-01-18 09:51:02,984 ERROR 
[com.icesoft.faces.facelets.D2DFaceletViewHandler] Problem in renderResponse: 
Could not instantiate Seam component: applicationUser
  | org.jboss.seam.InstantiationException: Could not instantiate Seam 
component: applicationUser
  | at org.jboss.seam.Component.newInstance(Component.java:1962)
  | at org.jboss.seam.Component.getInstance(Component.java:1865)
  | at org.jboss.seam.Component.getInstance(Component.java:1832)
  | at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
  | at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
  | at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
  | at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
  | at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
  | at 
com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
  | at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
  | at org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
  | at 
org.jboss.el.parser.AstDeferredExpression.getValue(AstDeferredExpression.java:26)
  | at 
org.jboss.el.parser.AstCompositeExpression.getValue(AstCompositeExpression.java:31)
  | at 
org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
  | at 
com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
  | at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
  | at 
com.icesoft.faces.renderkit.dom_html_basic.DomBasicInputRenderer.getValue(DomBasicInputRenderer.java:60)
  | at 
com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.getValue(DomBasicRenderer.java:153)
  | at 
com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeEnd(DomBasicRenderer.java:125)
  | at 
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
  | at 
com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:361)
  | at 
com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:357)
  | at 
com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:357)
  | at 
com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:357)
  | at 
com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:357)
  | at 
com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:92)
  | at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
  | at 
com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:351)
  | at 
com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:92)
  | at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
  | at 
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:585)
  | at 
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:589)
  | at 
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:589)
  | at 
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:589)
  | at 
com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:322)
  | at 
com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)
  | at 
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
  | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  | at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
  | at 
com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:26)
  | at 
com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:147)
  | at 
com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
  | at 
com.icesoft.faces.webapp.http.core.PageServer.service(PageServer.java:31)
  | at 
com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:46)
  | at 
com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
  | at 
com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
  | 

[jboss-user] [JBoss Seam] - Re: Could not instantiate Seam component

2008-01-18 Thread nickarls
And you have a no-args constructor on ApplicationUser?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121206#4121206

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121206
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Classsloader issue: jBPM update from version 3.1.4 == 3.2.2

2008-01-18 Thread holly77
I'm trying to update from jBPM version 3.1.4 to 3.2.2.
The Portal inside my JBoss AS is still using jBPM version 3.1.4.
I got jBPM as SAR version 3.2.2 configured in an EAR.
Obviously within the EAR jBPM lib 3.1.4 from Portal is used (found out by  
error messages complaining about missing methods).
How can I force the JBoss classloader to use the jBPM lib from within my EAR.
I've been searching for a solution in the forums, tried EAR isolation, etc. but 
nothing worked for me.
Anybody had the same prob and got a quick solution for me?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121210#4121210

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121210
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: JSF component

2008-01-18 Thread mars1412
try these:
http://www.jsftoolbox.com/documentation/help/12-TagReference/index.jsf
http://horstmann.com/corejsf/jsf-tags.html
http://www.exadel.com/tutorial/jsf/jsftags-guide.html

BTW: wrong forum

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121209#4121209

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121209
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: LocalTx, ClientTransaction leak?

2008-01-18 Thread ataylor
There are no plans to release an SP4 at this time. The branch Branch_Stable is 
the maintenance branch which you should use to build against. 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121211#4121211

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121211
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS JBossMQ] - Re: [JAVA-JMS]+Jboss confiurazione

2008-01-18 Thread erasmo78
I've forgotten to  post error


   
  

  


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121208#4121208

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121208
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA/JBoss] - ManagedConnectionFactory.setLogger

2008-01-18 Thread iit
Hi,

we are testing JBoss 4.0.5 with the SwiftMQ JCA RA. Everything works fine 
expect that JBoss sets a logger at the ManagedConnectionFactory. This produces 
huge log output for outbound messaging. I don't find any hint in the JBoss docs 
how to avoid setting the logger. 

Any hints?

Thanks,
Andreas Mueller
(SwiftMQ)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121207#4121207

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121207
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: programmatic starting a list of conversations

2008-01-18 Thread tschnoelzer
Hi all,

once more to the point

List listOfCars;

iterate over list of cars{

Contexts.getConversationContext().add(new CarManagedBean(car.carId));

}

forward to info page with workspace switcher

Timo

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121204#4121204

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121204
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: relative vs absolute urls (problem with proxy)

2008-01-18 Thread sztank
Ok, I managed to solve this problem. It was possible to configure Apache 
reverse proxy to translate jboss http headers (302 redirect). So now the JSF 
navigation works ok behind the proxy.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121205#4121205

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121205
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - url mapping schemalocation

2008-01-18 Thread AJanz
Hi,

i got some problem with the schema location url.

the source wsdl file has an import like

xsd:import namespace=mynamespace
schemaLocation=myschema.xsd/

after deploying the wsdl looks like

xsd:import namespace=mynamespace

schemaLocation=http:/mycomputer:8080/project/Service?wsdlresource=myschema.xsd/

the problem is that mycomputer isn't reachable over the internet, so it 
should look like this 

xsd:import namespace=mynamespace

schemaLocation=http:/myalias:8080/project/Service?wsdlresource=myschema.xsd/

how can i solve this? 


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121213#4121213

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121213
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Any plan to release 2.0.1.GA soon?

2008-01-18 Thread [EMAIL PROTECTED]
We need to resolve all critical and blocking items before releasing another CR, 
then the GA.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121220#4121220

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121220
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @DataModelSelection always returns first row

2008-01-18 Thread Sventevith
I have the same problem, any suggestions ?



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121218#4121218

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121218
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: EntityManager injection in Webservice

2008-01-18 Thread froden
Having stopped being an idiot, I guess I can answer my own questions above.

- Is the @WebContext annotation JBossWS = 2.0.0 only? No. My problem was that 
I had imported org.jboss.wsf.spi.annotation.WebContext instead of 
org.jboss.ws.annotation.WebContext.

- Is using an EJB as a web service class possible in version =2.0.0 only? No.
- Is injection of EntityManager with @PersistenceContext  limited to version 
=2.0.0? No

Perhaps this can be helpful for someone.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121216#4121216

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121216
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam with Hibernate Search

2008-01-18 Thread [EMAIL PROTECTED]
But FullTextHibernateSessionProxy implements FullTextSession, which does extend 
the classic Session.

Post the code you are using to inject the session.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121225#4121225

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121225
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Any plan to release 2.0.1.GA soon?

2008-01-18 Thread thejavafreak
Pete,

So there will be a another CR before the GA ? Ok thanks, that information is 
sufficient enough for me.

Regards,

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121223#4121223

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121223
___
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: Hibernate sql output in Server Log and Console

2008-01-18 Thread jaikiran
Set the level for org.hibernate.type to TRACE as follows

category name=org.hibernate.type
  |  priority value=TRACE/
  |   /category   
  | 

More details can be found at 
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2835

Also, if you look at the code in org.hibernate.type.NullableType, you will find 
that there is a check to see whether TRACE level logging is enabled.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121236#4121236

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121236
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: Cannot obtain java type mapping for: {http://org.mazurek

2008-01-18 Thread pipo323400
Hi,

I have been working several days with this issue. At last this problem is 
caused in the Client application. In my case a web app. It was not able to 
recognize the type that the server was returning (ArrayList in this case). 

Another important thing, correct me if I am wrong, is that Web Services Soap 
Messages not support ArrayList directly, so if you would like to use it you 
must implement an ArrayList by yourself. A pretty hard work. The thing that I 
have done is to return an Array (suported by the Web Services) of my own 
objects, that I have mapped previously.  

My solution was to create a Web Service Client using Eclipse Wtp. It creates a 
EAR that includes all the necessary stuff for map the user types.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121231#4121231

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121231
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: Cannot obtain java type mapping for {http://business/jaw

2008-01-18 Thread pipo323400
Hi,

I have been working several days with this issue. At last this problem is 
caused in the Client application. In my case a web app. It was not able to 
recognize the type that the server was returning (ArrayList in this case). 

Another important thing, correct me if I am wrong, is that Web Services Soap 
Messages not support ArrayList directly, so if you would like to use it you 
must implement an ArrayList by yourself. A pretty hard work. The thing that I 
have done is to return an Array (suported by the Web Services) of my own 
objects, that I have mapped previously.  

My solution was to create a Web Service Client using Eclipse Wtp. It creates a 
EAR that includes all the necessary stuff for map the user types.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121230#4121230

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121230
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Page Navigation Problem

2008-01-18 Thread nhpvti
grdzeli_kaci wrote : hi all,
  | i have page navigation from login page.xhtml to /inbox/maillist.xhtml  but 
it does not working, because i have maillist.xhtml into inbox folder, if i move 
this page into root directory it works,, is there any specific configuration 
?
  | 
  | my example code :
  | 1. login.page.xml 
  | 
  |   | page
  |   |navigation from-action=#{identity.login}
  |   |   rule if=#{identity.loggedIn}
  |   |  redirect view-id=/inbox/maillist.xhtml/
  |   |   /rule
  |   |/navigation
  |   | /page
  |   | 
  | 
  | if i change maillist path it works :( , i want create pages into different 
folders, but it does not working :(
  | 

I suppose maillist.xhtml uses a template, something like

ui:composition template=layout/template.xhtml

You have to change it so:

ui:composition template=/layout/template.xhtml


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121226#4121226

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121226
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: JBPM, mail and ws

2008-01-18 Thread [EMAIL PROTECTED]
Ok, please file a bug in JIRA for this...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121228#4121228

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121228
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EntityQuery and Icefaces

2008-01-18 Thread marthoff
Hello again,

i found a solution for the problem (maybe).

First the concrete Exception is:

Caused by: javax.el.ELException: /client/claim_list.xhtml @16,52 value=#{testLi
  | st.dataModel}: Error reading 'dataModel' on type 
de.iseki.garantieext.card.Test
  | List_$$_javassist_0
  | at 
com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.ja
  | va:76)
  | at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
  | ... 69 more
  | Caused by: java.lang.IllegalStateException: EntityManager is closed
  | at 
org.hibernate.ejb.EntityManagerImpl.getSession(EntityManagerImpl.java
  | :42)

So the reason was the closed EntityManager. My solution is to add:


  | @In private EntityManager entityManager;
  | 
  | @Override
  | public EntityManager getEntityManager() {
  | return entityManager;
  | }
  | 

Do you think that it is good solution? Why is the EntityManager fetched in such 
a complicated way by the EntityQuery class (by using the PersistentContext)?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121251#4121251

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121251
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: WS-Security Newbie Question...

2008-01-18 Thread lafaserem
Ups... I forgot to say that of course wsse.keystore and wsse.truststore are 
placed at c:\keys

Thanks ;)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121249#4121249

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121249
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: ui example: How to add ajax support for selectItems

2008-01-18 Thread nickarls
Override hashcode() and equals() on your entity

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121247#4121247

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121247
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - ui example: How to add ajax support for selectItems

2008-01-18 Thread jneubert
I have a use case very similar to the continent/country fields in the ui 
example, and try to add ajax: The selectItems list for countries should be 
updated and rerendered when the user selects a continent.

I tried the straightforward approach:

  | s:decorate template=decorateField.xhtml
  |   ui:define name=labelContinent of Birth/ui:define
  |   h:selectOneMenu value=#{personHome.instance.continent} required=true 
id=continent
  | s:selectItems value=#{continents.resultList} var=continent 
label=#{continent.name} noSelectionLabel=Please Select.../
  | s:convertEntity /
  | a:support event=onchange reRender=countrySelect /
  |   /h:selectOneMenu
  | /s:decorate
  | 
  | s:decorate template=decorateField.xhtml
  |   ui:define name=labelCountry of Birth/ui:define
  |   h:selectOneRadio id=countrySelect 
value=#{personHome.instance.country} required=true disabled=#{empty 
person.continent}
  | s:selectItems value=#{personHome.instance.continent.countries} 
var=country label=#{country.name} (#{country.continent.name}) 
noSelectionLabel=Please Select... hideNoSelectionLabel=true/
  | s:convertEntity /
  |   /h:selectOneRadio
  | /s:decorate
  | 
(and a lot more), but nothing worked, the country selection is not rerendered. 
Can anybody help, please?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121245#4121245

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121245
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Using Solaris JDK

2008-01-18 Thread fox1212
Hi all.

I've installed JBoss 4.0.5.GA on Solaris 10 using a new-installed jdk 
(jdk1.5.0_11) and it works without problems. However, I've discovered that 
solaris 10 comes with a pre-installed JDK, in package SUNWj5rt

$ pkginfo -l SUNWj5rt
   PKGINST:  SUNWj5rt
  NAME:  JDK 5.0 Runtime Env. (1.5.0_11)
  CATEGORY:  system
  ARCH:  sparc
   VERSION:  1.5.0,REV=2004.12.07.00.07
   BASEDIR:  /usr
VENDOR:  Sun Microsystems, Inc.
  DESC:  Java Platform virtual machine and core class libraries
PSTAMP:  tiger-sparc20061215052356
  INSTDATE:  Jun 15 2007 10:46
   HOTLINE:  Please contact your local service provider
STATUS:  completely installed


This JDK seems to be incomplete (for instance, there's no 'lib' folder), and 
I'm not sure if it can be safely used to run JBoss. If it is, it would be 
easier to just use it, since the patching and upgrading will be done when 
patching solaris.

I've tried to start jboss using run.sh, and I get this warning:

run.sh: Missing file: /usr/jdk/jdk1.5.0_12/lib/tools.jar
run.sh: Unexpected results may occur.  Make sure JAVA_HOME points to a JDK and 
not a JRE.

After the warning, JBoss seems to start, but I don't know what problems I could 
get in the future. Any help would be appreciated.

Regards,
Josep

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121244#4121244

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121244
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - EntityQuery and Icefaces

2008-01-18 Thread marthoff
Hello,

i've a problem using the EntityQuery in page Scope. If the Scope of an 
EntityQuery extending class is set to Page an exception occurs saying that the 
dataModel can't be found. Has anyone of you experience in using EntityQuery and 
icefaces components? It would be very helpful to find a working example, which 
uses all features like pagination, row selection and filters.

Thanks
Martin

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121238#4121238

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121238
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: JBPM, mail and ws

2008-01-18 Thread szaccaria
Hi Pete,
  I done it!
Look at http://jira.jboss.org/jira/browse/JBSEAM-2507

PS: I try with a test application, where there is only a action that send a 
e-mail in asynchronous mode, but the problem persist

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121237#4121237

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121237
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: Problem with backlog queue behavior ?

2008-01-18 Thread nicolas.medoc
Finally I have downloaded the 4.2.2 version of JBoss and the 2.2.2.SP3 version 
of Remoting.
I have proceed with the same approach as previously, using the folowing 
configuration :

  | invoker transport=socket
  |attribute 
name=serverBindAddress${jboss.bind.address}/attribute
  |attribute name=serverBindPort3873/attribute
  |attribute name=maxPoolSize400/attribute
  |attribute name=backlog200/attribute
  |attribute name=clientMaxPoolSize 
isParam=true404/attribute
  |attribute name=timeout isParam=true5/attribute
  |  /invoker
  | 

With this new version, the clientMaxPoolSize must be increase up to maxPoolSize 
for testing the backlog queue (there was not the case with 1.4.3 version of 
remoting, it was a bug ?).
When 500 threads are created on the client, the following behavior is observed 
: around the first 400 client threads, all finish and works fine. Then in 
between around the 400th and the 500th client thread, 3 of these (sometime 1, 
sometime 2) throws an exception  :

  |  org.jboss.remoting.CannotConnectException:Can not get connection to 
server. Problem establishing socket connection for InvokerLocator 
[socket://127.0.0.1:3873/?clientMaxPoolSize=404timeout=5]
  |caused by : java.lang.reflect.InvocationTargetException:null
  |caused by : java.net.SocketTimeoutException:Read timed out
  | 


A server side exception is thrown :


  | ERROR [ServerThread] Worker thread initialization failure
  | java.net.SocketException: Connection reset
  | at java.net.SocketInputStream.read(SocketInputStream.java:168)
  | at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
  | at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
  | at 
java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2200)
  | at 
java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2380)
  | at 
java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2447)
  | at 
java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2519)
  | at java.io.ObjectInputStream.read(ObjectInputStream.java:789)
  | at 
org.jboss.remoting.transport.socket.ServerThread.readVersion(ServerThread.java:824)
  | at 
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:510)
  | at 
org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:373)
  | at 
org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
  | 

when the clientMaxPoolSize is increased up to 450, there are around 50 client 
threads that failes.
On the JMX consol the currentClientPoolSize value is 400 until the socket 
timeout delay has passed. Then the 400 server threads return on the pool.

The maxPoolSize + backlog is sufficient to accept the 500 thread connections. 
So I don't understand why method invokations failes when they waits in the 
backlog queue (or in the accept thread). When the client has finish, the 
server thread should release the connection and return in the pool. (but it 
isn't...why?)

What is the problem in my configuration ?
What is the good approach for managing server side bursts client connections ?
 
PS: When the number of concurrent client threads (and also clientMaxPoolThread) 
is greater than maxPoolSize + backlog (ie 550), the same SocketTimeoutException 
is thrown. However when it is lesser, there are no fails.


Thanks for your help.
Nicolas Medoc.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121240#4121240

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121240
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: Make WebLogic use a JNP RMI implementation

2008-01-18 Thread fmsoares
Posted: Fri Jan 18, 2008 10:05 amPost subject:  


 
The problem is resolved now. 

I can now connect weblogic 10 web application to application server running on 
a JBOSS Server by: 

1. Include jbossall-client.jar from $JBOSS_HOME/client in the application 
classpath 

2. Set the system properties 

System.setProperty(java.naming.factory.initial,org.jnp.interfaces.NamingContextFactory);
 

3. Get the connection 

Connection conn = Factory.Connection.getConnection(jnp://host:1099/...) 


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121222#4121222

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121222
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Aborting transactions by clearing the persistence context

2008-01-18 Thread karypid
Hi,

I'm rather inexperienced in J2EE and even more so with Seam, so I need some 
feedback regarding the following trick I've come up with:

I have the typical scenario where a web page backed by a stateful session bean 
is used to edit some entities, with all changes performed in ACID fashion when 
a save() action is called on the SSB.

To gracefully abort the transaction without throwing an exception I simply call 
em.clear(), and return to another web page that shows a list of entities and a 
facesMessage that editing was aborted.

In the book JBoss Seam, simplicity and power beyond Java EE there's an entire 
chapter dedicated on rolling back transactions. Why is  the detachment of 
entities not mentioned? Is there something wrong with this approach?


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121227#4121227

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121227
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: url mapping schemalocation

2008-01-18 Thread [EMAIL PROTECTED]
Backup your wsdl file on local disk.
Modify it accordingly (fix the urls).
Force your webservice to use this wsdl file using 
@WebService(wsdlLocation='relativePath') annotation on your endpoint

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121215#4121215

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121215
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Servlet Filter issue with Jboss Portal 2.6

2008-01-18 Thread mhinten
I had the same problem.

An old thread, but for completeness sake: Kudos to swisst. It works.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121221#4121221

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121221
___
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: Hibernate sql output in Server Log and Console

2008-01-18 Thread jdijkmeijer
I do have exactly the same problem:

I checked the jboss-log4j.xml, checked for Threshold settings etc. I do see the 
org.hibernate.pretty.Printer output reacting to changes to log4j settings but 
not the org.hibernate.type.[types].
I also decompiled the org.hibernate.type.StringType 
/Applications/jboss-4.2.2.GA/server/default/lib/Hibernate3.jar, but I dont see 
the logging statements in there.
Is there a fix?

regards,
Jeroen.
ENV:
13:47:21,453 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: 
SVNTag=JBoss_4_2_2_GA date=200710221139)
13:47:21,732 INFO [ServerInfo] Java version: 1.5.0_07,Apple Computer, Inc.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121219#4121219

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121219
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: ExtJs and JBoss Seam with web remoting

2008-01-18 Thread cvigouroux
Code exampes are online at :
http://ntispace.blogspot.com/2008/01/seam-extjs-ext-store-reader-proxy.html

Comments and documentation are now in english.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121229#4121229

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121229
___
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: Observing connection usage

2008-01-18 Thread jaikiran
Have a look at the jmx-console. Access jmx-console at 
http://localhost:8080/jmx-console. On this page under jboss.jca, you will find 
a link like name=myDS,service=ManagedConnectionPool (where myDS is the 
jndi-name of your datasource). Click on this link and you will be forwarded to 
a page which will have the connection count and other details about this 
connection pool.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121243#4121243

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121243
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: WS-Security Newbie Question...

2008-01-18 Thread lafaserem
Hi!

Ok.. now actually I'm about getting crazy!! :)

PeterJ, which is that location? I don't mind if it's not free... I have tried 
to send you a PM but it seems it doesn't work... 

My problem is implementing the client in Java..  I think I have all the files I 
have to package. 

I'm gonna explain all the things I've done with the client

Hello.java

  | package wssec;
  | 
  | import javax.jws.WebMethod;
  | import javax.jws.WebParam;
  | import javax.jws.WebService;
  | import javax.jws.soap.SOAPBinding;
  | 
  | import org.jboss.ws.annotation.EndpointConfig;
  | 
  | @WebService(name = Hello, targetNamespace = urn:ws.sec)
  | @EndpointConfig(configName = Standard WSSecurity Endpoint) 
  | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT)
  | public class Hello
  | {
  |@WebMethod
  |public String echo(@WebParam(name = nombre) String nombre)
  |{
  |   return nombre;
  |}
  | }

HelloClient.java

  | package wssec;
  | 
  | import java.io.File;
  | import java.net.URL;
  | import java.util.Map;
  | 
  | import javax.xml.namespace.QName;
  | import javax.xml.ws.BindingProvider;
  | import javax.xml.ws.Service;
  | 
  | import org.jboss.ws.core.StubExt;
  | 
  | public class HelloClient
  | {
  |public static void main(String args[])
  |{
  |   if (args.length != 1)
  |   {
  |  System.err.println(usage: HelloClient message);
  |  System.exit(1);
  |   }
  |
  | System.setProperty(org.jboss.wsse.keyStore, c:/keys/wsse.keystore);
  | System.setProperty(org.jboss.wsse.keyStorePassword, jbossws);
  | System.setProperty(org.jboss.wsse.keyStoreType, x509v3);
  | System.setProperty(org.jboss.wsse.trustStore, 
c:/keys/wsse.truststore);
  | System.setProperty(org.jboss.wsse.trustStorePassword, jbossws);
  | System.setProperty(org.jboss.wsse.trustStoreType, x509v3);
  | 
  | try{
  | Hello hello = getPort();
  | System.out.println(Server said:  + hello.echo(args[0]));
  | } catch (Exception e){
  | e.printStackTrace();
  | }
  |} 
  | 
  |private static Hello getPort() throws Exception
  |{
  |   URL wsdlURL = new URL(http://127.0.0.1:8080/Hello/Hello?wsdl;);
  |   URL securityURL = new File(META-INF/jboss-wsse-client.xml).toURL();
  |   QName serviceName = new QName(urn:ws.sec, HelloService);
  | 
  |   Service service = Service.create(wsdlURL, serviceName);
  |   
  |   Hello port = (Hello)service.getPort(Hello.class);
  |   ((StubExt)port).setSecurityConfig(securityURL.toExternalForm());
  |   ((StubExt)port).setConfigName(Standard WSSecurity Client);
  | 
  |   MapString, Object reqContext = 
((BindingProvider)port).getRequestContext();
  |   reqContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, 
http://127.0.0.1:8080/Hello;);
  | 
  |   return port;
  |}
  | 
  | }
  | 

jboss-wsse-client.xml

  | ?xml version=1.0 encoding=ISO-8859-1?
  | jboss-ws-security xmlns=http://www.jboss.com/ws-security/config; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://www.jboss.com/ws-security/config 
http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd;
  | config
  | sign type=x509v3 alias=wsse/
  | requires
  | signature/
  | /requires
  | /config
  | /jboss-ws-security
  | 

The keystore and the truststore are the same as the server's ones.

The structure is
wssec
  | Hello.class
  | HelloClient.class
META-INF
  | wsse.keystore
  | wsse.truststore
  | jboss-wsse-client.xml

When I run the client, I do it like this:


  | wsrunclient prueba.HelloClient Hello
  | 

What am I missing? Shall I do anything more? Or maybe less? :)

Thanks a lot.. ;)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121248#4121248

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121248
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - process variables - how to acces

2008-01-18 Thread Pebbels
Hi @all,

I am confused in using process variables:

I have a processdefinition.xml which calls an ActionHandler when leaving a node.
Within this ActionHandler I need the value of an input field from a form(xhtml) 
which belongs to processdefinition.xml.
- The form includes an input type 'date' its value I need within the 
ActionHandler.
So I am having the following questions:
1. Is 'date' a process variable?
2. How to acces the value of 'date' within the ActionHandler?

Thx for help,
Tina

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121250#4121250

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121250
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: WS-Security Newbie Question...

2008-01-18 Thread [EMAIL PROTECTED]
lafaserem wrote : 
  | 
  |   | System.setProperty(org.jboss.wsse.keyStoreType, x509v3);
  |   | System.setProperty(org.jboss.wsse.trustStoreType, x509v3);
  |   | 
Why x509v3? Try with jks that should be the type of key stores you 
generated.

This said, what's the problem you have? your conf seems OK, are you getting any 
exception? How do you understand something is wrong? Please post some log/error 
here so that we can better understand.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121252#4121252

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121252
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Strange Asynchronous Behaviour of JBPM(3.2.2)

2008-01-18 Thread soumya_in
In connection to my previuos post.
Now my point is that if at all the command had reached to the asynch node then 
why do i have to add the leave code in my action class explicitly?
If I don't add this code to the one with aynch=true then any other new project 
with a synchronous node goes blocking.
Why is this strange behaviour?
Please advice.
Thanks,

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121256#4121256

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121256
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: WS-Security Newbie Question...

2008-01-18 Thread lafaserem
This is the error that it's giving to me when I run 


  | wsrunclient wssec.HelloClient Hello
  | 


  | [Fatal Error] :1:1: Content is not allowed in prolog.
  | org.jboss.ws.WSException: java.io.IOException: 
org.xml.sax.SAXParseException: Co
  | ntent is not allowed in prolog.
  | at 
org.jboss.ws.metadata.config.JBossWSConfigFactory.getNamespaceURI(JBo
  | ssWSConfigFactory.java:116)
  | at 
org.jboss.ws.metadata.config.JBossWSConfigFactory.parse(JBossWSConfig
  | Factory.java:80)
  | at 
org.jboss.ws.metadata.config.JBossWSConfigFactory.getConfig(JBossWSCo
  | nfigFactory.java:134)
  | at 
org.jboss.ws.metadata.umdm.EndpointMetaData.initEndpointConfig(Endpoi
  | ntMetaData.java:704)
  | at 
org.jboss.ws.metadata.umdm.EndpointMetaData.setConfigNameInternal(End
  | pointMetaData.java:695)
  | at 
org.jboss.ws.metadata.umdm.EndpointMetaData.setConfigName(EndpointMet
  | aData.java:679)
  | at 
org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.proces
  | sEndpointConfig(JAXWSClientMetaDataBuilder.java:323)
  | at 
org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.rebuil
  | dEndpointMetaData(JAXWSClientMetaDataBuilder.java:287)
  | at 
org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPortInternal(Servi
  | ceDelegateImpl.java:262)
  | at 
org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPort(ServiceDelega
  | teImpl.java:233)
  | at javax.xml.ws.Service.getPort(Service.java:185)
  | at wssec.HelloClient.getPort(HelloClient.java:46)
  | at wssec.HelloClient.main(HelloClient.java:31)
  | Caused by: java.io.IOException: org.xml.sax.SAXParseException: Content is 
not al
  | lowed in prolog.
  | at org.jboss.wsf.common.DOMUtils.parse(DOMUtils.java:156)
  | at 
org.jboss.ws.metadata.config.JBossWSConfigFactory.getNamespaceURI(JBo
  | ssWSConfigFactory.java:111)
  | ... 12 more
  | 

The WSDL file is taken directly from the server. It seems to be an error with 
some XML file structure, but I don't know which one can be the one that is 
giving me the mistake...

Thanks ;)

P.d: I've changed the keyStore and trustStore Type to jks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121255#4121255

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121255
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Strange Asynchronous Behaviour of JBPM(3.2.2)

2008-01-18 Thread soumya_in
Hi all,
I have deployed the jbpm-enterprise.ear into my existing jpm-jpdl-suite 
3.2.2.The ear got successfully deployed.
However when I am trying to achieve asynchronous execution by declaring one 
node as asynch=true which I tried with the following code:
  | ?xml version=1.0 encoding=UTF-8?
  | process-definition  xmlns=urn:jbpm.org:jpdl-3.2  name=synch-process
  | start-state name=start-state1
  | task name=task-1/task
  | transition to=node1/transition
  | /start-state
  | node name=node1 async=true
  | action name=action-1 class=CustomerActionHandler1/action
  | transition to=node2/transition
  | /node
  | node name=node2
  | action name=actio-2 class=CustomActionHandler2/action
  | transition to=end-state1/transition
  | /node
  | end-state name=end-state1/end-state
  | /process-definition
  | 
I turned on SOPs in the following classes 
:-JmsMessageServiceImpl.java,JobListenerBean.java,ExecuteJobCommand.java,CommandServiceBean.java,CommandListenerBean.java
 and redployed the ear.
The classes generated the SOPs properly stating the job message was dumped into 
the jbpm job queue and command was executed from the command service bean: 
Following is the trace-

17:27:45,053 INFO  [STDOUT] [EMAIL PROTECTED]
17:27:45,053 INFO  [STDOUT] [EMAIL PROTECTED]
17:27:45,053 INFO  [STDOUT] 
Destination***QUEUE.JbpmJobQueue
17:27:45,069 INFO  [STDOUT] **JOB [EMAIL PROTECTED]
17:27:45,085 INFO  [STDOUT] **JOB ID***3884
17:27:45,085 INFO  [STDOUT] Message sent successfully to 
QUEUE.JbpmJobQueue
17:27:45,225 INFO  [STDOUT] ^JOB LISTENER BEAN IS 
CALLED^^
17:27:45,225 INFO  [STDOUT] getting job id from jms message...
17:27:45,225 INFO  [STDOUT] retrieved jobId '3884' via jms message
17:27:45,225 INFO  [STDOUT] looking up local command service
17:27:45,240 INFO  [STDOUT] executing command with local command service
17:27:45,349 INFO  [STDOUT] Action class of asynch node is executed
17:27:45,381 INFO  [STDOUT] Action class of synchronous node is called
.
However in the action class attached with the asynch node I had to write the 
following code snippet so that the process continued to the next node:-

  | executionContext.getNode().leave(executionContext);
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121254#4121254

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121254
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: url mapping schemalocation

2008-01-18 Thread AJanz
something i must do wrong.

i edited the wsdl file, but then could no longer build the project because

xsd:import namespace=mynamespace 
schemaLocation=http:/myalias:8080/project/Service?wsdlresource=myschema.xsd/
 

references the remote computer where i want to publish the service.

i am using  @WebService(wsdlLocation='relativePath') annotation, so the correct 
wsdl is used.

any ideas? is there an other way?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121257#4121257

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121257
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Troubles getting RichFaces to work. [SOLVED]

2008-01-18 Thread djkrite
BrandonBarlow wrote : Got this working for JBoss AP 4.3, RichFaces 3.1.3.
  | 
  | Try adding commons-digester-1.8.jar and commons-beanutils.jar (I used 
version 1.6) to server\production\lib (or server\[your config]\lib) . Both 
provided by Apache.
  | 
  | Hope this works for you - I'm running my apps in Liferay 4.3.6 portlets - 
you may also need some other dependencies.
  | 

Dude! Thank you. It's working on JBoss 4.2 w/dgester1.8 and beanutils1.7.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121282#4121282

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121282
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - access URL parameters directly

2008-01-18 Thread mars1412
I have a servlet, that will, in cas of an error, redirect to a custom errorpage.
the errormessage is URL encoded and appended to the custom error page URL: e.g. 
http://domain.my/myproject/customerror.seam?err=Some+error

what would be the easiest was to just display the URL parameter in the custom 
errorpage?

now I have created a staless session bean and I use the @RequestParameter 
annotation
in the page, I simply access this SLB: 
#{errorHelper.err}

creating a SLB (including local interface) just to display a URL parameter 
seems quite a lot of work...

using javascript is not an option, since the app should also work when js is 
disabled.
could I maybe use a trick in the pages.xml file?

any better ideas?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121277#4121277

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121277
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: LocalTx, ClientTransaction leak?

2008-01-18 Thread ataylor
yes, that would make sense

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121276#4121276

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121276
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - How to case seam components in different jars?

2008-01-18 Thread Jump
I've decided to divide my project. So I've putted several components into 
separate jar, added blank components.xml and faces-config.xml to META-INF and 
putted that jar into EAR lib folder. I had no problems at deployment time, but 
at runtime I've got an exception


  | SEVERE: Error Rendering View[/task.xhtml]
  | org.jboss.seam.InstantiationException: Could not instantiate Seam 
component: structureBean
  | at org.jboss.seam.Component.newInstance(Component.java:1970)
  | at org.jboss.seam.Component.getInstance(Component.java:1873)
  | at org.jboss.seam.Component.getInstance(Component.java:1840)
  | at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
  | at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
  | at 
org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
  | at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
  | at 
javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
  | at 
com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
  | at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
  | at org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
  | at 
org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
  | at 
com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
  | at javax.faces.component.UIData.getValue(UIData.java:582)
  | at org.richfaces.component.UITree.createDataModel(UITree.java:512)
  | at org.richfaces.component.UITree.resetDataModel(UITree.java:291)
  | at 
org.ajax4jsf.component.UIDataAdaptor.encodeBegin(UIDataAdaptor.java:1032)
  | at 
org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:280)
  | at 
org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
  | at 
org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:199)
  | at 
org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:194)
  | at 
org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:121)
  | at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
  | at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
  | at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
  | at 
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
  | at 
org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
  | at 
org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
  | at 
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
  | at 
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at 
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at 
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at 
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
  | at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
  | at 
org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at 
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at 

[jboss-user] [JBoss Messaging] - Re: Subscribe two diferent topics

2008-01-18 Thread rolmovel
Thank you very much

I'll try it 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121274#4121274

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121274
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - ServletContexts component returns null request during Servle

2008-01-18 Thread jacob.orshalick
The ServletContexts.instance().getRequest() currently returns null during a JSF 
request. I would think this should be returning the ExternalContext for a JSF 
request if the request is a Servlet request (the type of the ExternalContext is 
not guaranteed since could be in a portal environment).

UserPrincipal, IsUserInRole, and other seam components rely on the 
ServletContexts instance to return the current HttpServletRequest.  Has anyone 
else run into this issue?  Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121296#4121296

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121296
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Add JSF Capabilites or any JBoss Tools options are disabled

2008-01-18 Thread chris.simons

Working on upgrading a few other developers from Exadel Studio Pro to Eclipse 
with JBoss Tools.  I can't get the Add JSF Capabilities option on the project 
to show any options other than Add Struts capabilities.  Because of this, I 
am unable to add new TLDs, such as IceFaces, to these users' workspaces.

Is there a way I can clean whatever setting is telling the project that it 
already has JSF capabilities?

Please keep in mind that we are working off a branch in SVN; I believe some of 
the JSF settings may have been saved to the branch (as my copy is working fine) 
and now is causing some issues on the other end.

Any ideas?

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121321#4121321

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121321
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: WS-Security Newbie Question...

2008-01-18 Thread PeterJ
The book JBoss in Action (http://www.manning.com/jamae/) contains a chapter on 
web services (chapter 9).  (You have to sign up for MEAP to get access to that 
chapter.) In that chapter, I describe all of the steps necessary to set up 
WSSecurity for a web service and its client, including both encryption and 
signing.  The section on signing uses both signing and encryption, but you can 
leave off the encryption part.

The example code in that chapter is complete, even the statements to build the 
keystores are provided. So it should have everything you need. (At some point, 
the source code for the book will also be posted. Not sure of the timing for 
that.)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121363#4121363

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121363
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Begin method invoked from a long-running conversation - what

2008-01-18 Thread MSchmidke
Hello all,

sometimes I get the well known begin method invoked from a long-running 
conversation exception.

Usually this is because I have some error in my program logic. It simply says 
that when the execution comes to my @Begin method, someone else has already 
unexpectedly started a conversation

I found that it is often very difficult to find such kind of error.

Is there any option which can help me to find the point back in time where the 
Conversation was started? Any useful location for a breakpoint, for example, or 
some logging facility?


Marcus.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121360#4121360

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121360
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Persist of @Lob fails with

2008-01-18 Thread Lupson
Lots of googling and searching of these forums havn't solved my problem, so 
here comes a question with a rather lengthy description:

Environment:
Windows XP
JBoss 4.0.5.GA
JBoss-Seam 1.2.1GA
Oracle 9 (ojdbc14.jar)

(Note: This problem might also be related to JBoss Seam or the EJB3 timer 
service)

Basic problem: I schedule a report using the TimerService, when @Timeout hits, 
the report is assembled and stored in a @Lob. As long as the JBoss isn't 
restarted before the job has run, this works as a charm. If I stop and start 
the server, the actual generation of the report happens just fine (since the 
Timer is persistent and resumes after startup), BUT - Hibernate fails with 
classloading errors when it tries to write that resulting POJO into the @Lob 
field. The full stacktrace is posted at the end of this post.

And oh - the POJO stored in the @Lob is read by a Seam Component and then 
displayed as PDF using the seam-pdf stuff in a JSF page if someone wonders...


  | @Stateless
  | @Name(reportTimerBean)
  | public class ReportTimerBean implements ReportTimer {
  | 
  | private static final String BEAN_JNDI = 
myApp/ScheduledReportProcessorBean/local;
  | 
  | @Resource
  | TimerService timerService;
  | public void startReportTimer(Schedulable schedulableReport)
  | GregorianCalendar startTime= new GregorianCalendar();
  | startTime.add(GregorianCalendar.MINUTE, 3);
  | timerService.createTimer(startTime.getTime(), schedulableReport);
  | }
  | 
  | @Timeout
  | public void createScheduledReport(Timer timer) {
  | try {   
  | Context ctx = new InitialContext();
  | ScheduledReportProcessor scheduledReportProcessor =   
  | (ScheduledReportProcessor) 
  |  ctx.lookup(REPORT_PROCESSOR_BEAN_JNDI);
  |  scheduledReportProcessor.processReport(
  |  (Schedulable) timer.getInfo());
  | } catch (NamingException e) {   
  | throw e;
  | }
  | }
  | 

At time of timeout, @Timeout methid is invoked which calls the 
ScheduledReportProcessor EJB which generates the report data into a POJO using 
Hibernate queries. This POJO (which implements Serializable) is then set into 
an @Entity bean field, i.e:


  | @Column(name=DATAMODEL)
  | @Lob @Basic(fetch = FetchType.EAGER)
  | private Serializable data;
  | 

and is persisted using a normal EntityManager


  | @AutoCreate
  | @Name(scheduledReportProcessor)
  | @Scope(ScopeType.APPLICATION)
  | @Stateless
  | public class ScheduledReportProcessorBean implements 
ScheduledReportProcessor {
  | @PersistenceContext(unitName=myApp)
  | private EntityManager entityManager;
  | 
  | public void processReport(Schedulable schedulableReport) {
  | schedulableReport.doReport(entityManager);
  | }
  | }
  | 
As seen, the Schedulable instance contains its own report creation code in 
command-pattern style.

The supplied EntityManager is first used to assemble the data from the 
database, and is then used to insert the resulting data into the Serializable 
field shown further up.


  | private int createAndPersistReportDataModel(MyAppReportDataModel 
reportDataModel, EntityManager entityManager) {
  | 
  | 
  | ReportDataModel dataModel = new ReportDataModel();
  | dataModel.setData(reportDataModel);
  | dataModel.setCreated(new java.util.Date());
  | entityManager.persist(dataModel); // HERE IT CAN GO WRONG!
  | }
  | 
The class MyAppReportDataModel normally contains a lot of fields, but in order 
to narrow possible causes, it is a simple POJO now containing only 2 simple 
strings.

The stacktrace below, I repeat, happens AFTER all of the data has been 
assembled, the only thing left is to write it to the database. Also, I repeat - 
as long as a scheduled report runs before any server stop/start, this works 
perfectly.


17:00:29,834 ERROR [STDERR] javax.persistence.PersistenceException: 
org.hibernate.type.SerializationException: could not deserialize
17:00:29,834 ERROR [STDERR] at 
org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:647)
17:00:29,834 ERROR [STDERR] at 
org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:218)
17:00:29,834 ERROR [STDERR] at 
org.jboss.ejb3.entity.TransactionScopedEntityManager.persist(TransactionScopedEntityManager.java:175)
17:00:29,834 ERROR [STDERR] at 
org.jboss.seam.persistence.EntityManagerProxy.persist(EntityManagerProxy.java:128)
17:00:29,834 ERROR [STDERR] at 
com.myapp.reports.MyReportPojo.createAndPersistReportDataModel(MyReportPojoPojo.java:209)
17:00:29,834 ERROR [STDERR] at 
com.myapp.reports.MyReportPojo.doReport(MyReportPojo.java:167)
17:00:29,834 ERROR [STDERR] at 

[jboss-user] [JBoss Tools (users)] - Re: JBoss 4.3.0 fails to start

2008-01-18 Thread [EMAIL PROTECTED]
i'm curious, when you installed jboss as 4.3 did it ask for specifying username 
and password or not ?

and what entry in jmx-console-users.proeprties was commented ? It should just 
work out of the box so i'm just trying to identify if 4.3 have a bad change or 
this is just normal since a 4.3 installed by the AS installer is secured by 
default.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121357#4121357

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121357
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Two login pages/methods

2008-01-18 Thread hubaghdadi
david.spark wrote : 
  | Incidentally are you saying that your general users require to enter 
password but that your admin users don't?!
  | 
  | ...or just do like Shane says :-)
What I'm saying that the public users have two fields to fill and the 
administrators have only one field (which it could be a secret code given by 
their manager).
Maybe my original question doesn't live in the real world, but I just liked to 
know how to solve such cases

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121356#4121356

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121356
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam 2.0 on Glassfish

2008-01-18 Thread ruettimac
Please have a look the the blog of Michael Yuan. You will find some 
advices/changes you have to do in the comments.

http://www.michaelyuan.com/blog/category/seam/

I am developing on glassfish - but with hibernate instead of toplink. No 
problems so far!


Regards,

Cyrill

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121354#4121354

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121354
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Using Solaris JDK

2008-01-18 Thread PeterJ
I don't have Solaris so I am just venturing a guess. Considering that Sun 
develops Solaris and Java, I would guess that SUNWj5rt is an official JRE (Java 
Runtime Environment), that is, the say JRE you would download from the Sun Java 
web site. This is in contrast to Linux distributions which come a pseudo-JVM 
that is not fit to run JBossAS (in which case you need the JDK from Sun).

The error your got is because JBossAS really prefers to run with a JDK (which 
includes the compilers and tools). In ancient times (say 3 or 4 years ago), web 
containers (such as Tomcat) required a JDK to compile the JSPs found in web 
applications, and the check for a JDK is still in the startup scripts.  You 
should not have any problem using the JRE unless you are using, in one of your 
applications,  a Java library that needs it.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121353#4121353

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121353
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Need definitive answers on unit testing with Seam

2008-01-18 Thread [EMAIL PROTECTED]
This is just a really bad example of unit testing with Seam. I replaced it with 
a good unit test that tests business logic (which is what you should unit test 
imo).

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121352#4121352

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121352
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: FailedConfiguration while running test

2008-01-18 Thread hubaghdadi
BTW, my ant build file is the one that is listed in Michael Yuan's book JBoss 
Seam

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121347#4121347

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121347
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Problems migrating from 4.0.4 to 5.0.0B3

2008-01-18 Thread PeterJ
You might try deploying your EJBs to JBossAS 4.2.2. That will at least tell you 
if the problem is one of configuration (if the EJBs do not successfully deploy 
to 4.2.2) or a problem with the rewrite of the deployers for 5.0 (if the EJBs 
deploy successfully to 4.2.2).

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121344#4121344

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121344
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: JBoss 4.3.0 fails to start

2008-01-18 Thread kapilanand
This worked.

The entry in jmx-console-users.properties was commented.
I uncommented it and specified the same user/pass in the JBoss Server 
configuration.

JBoss server started correctly, but now stop server does not work. Will figure 
it out myself.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121339#4121339

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121339
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Iterate List of entities

2008-01-18 Thread vikramchhetryy
Hi all,
I am getting class cast exception when I try to execute this code in this line 
roles = (Roles) it.next();

public void loadRolesList() {
  | ListRoles list = (ListRoles) em
  | .createQuery(
  | select r.iroleId, 
r.strDescription from Roles r order by r.iroleId)
  | .getResultList();
  | log.info(Query executed =  + list.size());
  | Roles roles;
  | ListIterator? it = list.listIterator(); 
  | while(it.hasNext()){
  | roles = (Roles) it.next();
  | log.info(Id =  + roles.getIroleId());
  | rolesList.add(new SelectItem(roles.getIroleId(), roles
  | .getStrDescription()));
  | }
  | }
  | 

I am not sure if it is the right way of doing it but I want to iterate the list 
in java only.

Any help would be appreciated.

Thanks,
Vikram

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121340#4121340

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121340
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Ticketing and other portlets available?

2008-01-18 Thread aamonten
try at http://labs.jboss.com/portletswap/

regards
Alejandro

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121336#4121336

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121336
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: https starting up on wrong port

2008-01-18 Thread PeterJ
What version of JBossAS are you using?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121335#4121335

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121335
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Simple POC requested : status-only workflow with hiding butt

2008-01-18 Thread somersst
I'm searching for a simple Proof Of Concept with the following requirements :

- creating dossier where some fields need to be filled in
- the workflow is only consisting of different states. There is no real need to 
create tasks
- every user is allowed to work on every status
- depending on the status, some buttons are showed to go to one of the next 
statuses
- depending on the status certain fields are shown, and are required to be 
filled in before going to next status
- dossier is persisted in a database
- possible to work further on a dossier after a while


There is no need for different pages, only one page is used, and depending on 
the status fields are shown or not



I hope I'm a little bit clear. If anyone has an example of something similar, 
please feel free to e-mail me ([EMAIL PROTECTED])



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121334#4121334

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121334
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: [Newbie] Understanding Bijection

2008-01-18 Thread jpbievenour
Great! Thanks for looking that over, Oberiko.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121333#4121333

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121333
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How to reliably count active sessions and connected user

2008-01-18 Thread gaboo
A little bit more about this : the org.jboss.seam.security.loggedOut event is 
not raised when the web session expire and there was a connected user.

Can I consider this a seam bug or not ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121331#4121331

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121331
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Handy class to get Hibernate entity validation failures

2008-01-18 Thread lpmon
Hopefully it is useful to you!

This would be used when an exception is thrown in a method that saves an entity 
bean, the Hibernate validator is being used, and you are using the Seam 
FacesMessages object.  It tries to find the Hibernate InvalidStateException 
object, which may be wrapped in the cause of another exception object.  Note: 
I did not write this to go down the cause stack trace to find the 
InvalidStateException.  I have not seen that need in my experiments.  Notice 
the 2 different signatures (different exception classes) for the method. 

package com.shockwatch.jsf;
import org.hibernate.validator.InvalidStateException;
import org.hibernate.validator.InvalidValue;
import org.jboss.seam.core.FacesMessages;

public class ValidationUtil {

// add error messages from Hibernate Validator
public static void addInvalids(FacesMessages fMsgs, InvalidStateException ex)
{
   for (InvalidValue error : ex.getInvalidValues()) 
   {
   fMsgs.add(error.getPropertyName() +   + 
error.getMessage());
   }
}

/* Sometimes another exception type is thrown by EJB container, like 
EJBTransactionRolledbackException
   Attempt to find InvalidStateException and add validation failure if 
found,otherwise add exception message
   */ 
public static void addInvalids(FacesMessages fMsgs, Exception ex)
{
if (ex instanceof InvalidStateException)  // just add messages
{
addInvalids(fMsgs, (InvalidStateException)ex);
return;
}

try
{   // try to extract Hibernate Validator exception, cast exception 
if not found
InvalidStateException ise = 
(InvalidStateException)ex.getCause();
addInvalids(fMsgs, ise);
}
catch (ClassCastException castEx) // not a validation exception
{
fMsgs.add(ex.getLocalizedMessage() +  Caused by:  + 
ex.getCause().getLocalizedMessage());
}
}
}


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121323#4121323

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121323
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Debugging page flow

2008-01-18 Thread UTDrew
I still haven't managed to figure this one out.  Anybody?

Thanks,

Drew

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121322#4121322

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121322
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - [Newbie] Understanding Bijection

2008-01-18 Thread jpbievenour
I've been reading through the Seam docs and the concept of Bijection is still a 
little hazy for me.

How I understand it so far:
Injection is used on the session bean to make the entity available without 
having to manually construct it.

  | @In
  | Foo foo;
  | 
VS.

  | Foo foo = new Foo();
  | 

When using injection, Seam searches its context for a component named foo and 
injects it into the session bean. If it is in a stateful context (such as 
SESSION), this injection may already have data, which otherwise would not be 
available using the simple constructor. If it doesn't have data, a factory can 
be called to instantiate the injection. 

To make a component available to the presentation tier, you must outject it  so 
it can be referenced in JSF.

  | Java
  | 
  | @Out
  | Bar bar;
  | 

  | JSF
  | 
  | h:outputText value=#{bar.value}/
  | 

Is my understanding correct so far?

Thanks!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121325#4121325

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121325
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: [Newbie] Understanding Bijection

2008-01-18 Thread Oberiko
Yup, looks right to me.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121328#4121328

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121328
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP] - Problems with prepackaged transaction aspect

2008-01-18 Thread nitesh
My environment is: JBoss 4.0.3 SP1, Java 1.5.10
I'm trying to use loadtime weaving with the pre-packaged transaction aspect. 
I'm getting the following exceptions - has anyone seen it and is there a known 
resolution?

java.lang.RuntimeException: javassist.NotFoundException: 
org.apache.commons.validator.CreditCardValidator

java.lang.RuntimeException: javassist.NotFoundException: 
JACE.SOCK_SAP.SOCKStream

-
More detailed stack trace
-

[main]: 2008-01-17 19:07:41,014 INFO  [STDOUT] java.lang.RuntimeException: 
javassist.NotFoundException: org.apache.commons.validator.CreditCardValidator
[main]: 2008-01-17 19:07:41,016 INFO  [STDOUT]  at 
org.jboss.aop.pointcut.FieldMatcher.visit(FieldMatcher.java:98)
[main]: 2008-01-17 19:07:41,016 INFO  [STDOUT]  at 
org.jboss.aop.pointcut.ast.ASTField.jjtAccept(ASTField.java:23)
[main]: 2008-01-17 19:07:41,016 INFO  [STDOUT]  at 
org.jboss.aop.pointcut.Util.has(Util.java:207)
[main]: 2008-01-17 19:07:41,016 INFO  [STDOUT]  at 
org.jboss.aop.pointcut.Util.has(Util.java:196)
[main]: 2008-01-17 19:07:41,016 INFO  [STDOUT]  at 
org.jboss.aop.pointcut.ExecutionConstructorMatcher.visit(ExecutionConstructorMatcher.java:80)
[main]: 2008-01-17 19:07:41,016 INFO  [STDOUT]  at 
org.jboss.aop.pointcut.ast.ASTHasField.jjtAccept(ASTHasField.java:17)
[main]: 2008-01-17 19:07:41,016 INFO  [STDOUT]  at 
org.jboss.aop.pointcut.MatcherHelper.visit(MatcherHelper.java:116)

...

[main]: 2008-01-17 19:08:20,654 INFO  [STDOUT] java.lang.RuntimeException: 
javassist.NotFoundException: JACE.SOCK_SAP.SOCKStream
[main]: 2008-01-17 19:08:20,655 INFO  [STDOUT]  at 
org.jboss.aop.pointcut.FieldMatcher.visit(FieldMatcher.java:98)
[main]: 2008-01-17 19:08:20,655 INFO  [STDOUT]  at 
org.jboss.aop.pointcut.ast.ASTField.jjtAccept(ASTField.java:23)
[main]: 2008-01-17 19:08:20,655 INFO  [STDOUT]  at 
org.jboss.aop.pointcut.Util.has(Util.java:207)
[main]: 2008-01-17 19:08:20,655 INFO  [STDOUT]  at 
org.jboss.aop.pointcut.Util.has(Util.java:196)
[main]: 2008-01-17 19:08:20,655 INFO  [STDOUT]  at 
org.jboss.aop.pointcut.ExecutionConstructorMatcher.visit(ExecutionConstructorMatcher.java:80)
[main]: 2008-01-17 19:08:20,655 INFO  [STDOUT]  at 
org.jboss.aop.pointcut.ast.ASTHasField.jjtAccept(ASTHasField.java:17)




View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121326#4121326

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121326
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - openId authentication to seam app

2008-01-18 Thread koenhandekyn
i have a seam app and want to integrate openId based integration.

the openid4java lib comes with an example servlet that handles authantication 
and redirection.

any proposal on how to integrate openid based authentication with the seam 
security framework???

in the servlet i have a point where i have confirmation of the identifier. a 
simple approach would be to be able to make it clear to seam that the user is 
authenticated at that point. but i can't find how to do that?

thanx for any comments.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121315#4121315

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121315
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Problem with Seam tests and dependsOnGroups

2008-01-18 Thread chawax
Hi,

I have problems on TestNG tests for Seam components when using dependsOnGroups 
attribute of @Test annotation.

For example, this test works :

@org.testng.annotations.Test (groups=groupe1)
  | public void testUsageUnite() throws Exception 
  | {
  | new ComponentTest() {
  | @Override
  | protected void testComponents() throws Exception {

while this one doesn't work :

@org.testng.annotations.Test (
  | groups=groupe2,
  | dependsOnGroups=groupe1)
  | public void testCreerUnitesOrganisationFromCodeUnique() throws Exception 
  | {
  | new ComponentTest() {
  | @Override
  | protected void testComponents() throws Exception {

The stack trace is the following :

begin(fr.myCompanycore.organisation.test.ServiceOrganisationExterneTest)  Time 
elapsed: 0.062 sec   FAILURE!
  | java.lang.IllegalStateException: Attempted to invoke a Seam component 
outside the an initialized application
  | at org.jboss.seam.contexts.Lifecycle.getApplication(Lifecycle.java:36)
  | at org.jboss.seam.contexts.Lifecycle.beginSession(Lifecycle.java:169)
  | at 
org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:124)
  | at org.jboss.seam.mock.BaseSeamTest.begin(BaseSeamTest.java:920)
  | at org.jboss.seam.mock.SeamTest.begin(SeamTest.java:28)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:552)
  | at 
org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:322)
  | at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:156)
  | at org.testng.internal.Invoker.invokeMethod(Invoker.java:365)
  | at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:785)
  | at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:114)
  | at org.testng.TestRunner.privateRun(TestRunner.java:693)
  | at org.testng.TestRunner.run(TestRunner.java:574)
  | at org.testng.SuiteRunner.privateRun(SuiteRunner.java:241)
  | at org.testng.SuiteRunner.run(SuiteRunner.java:145)
  | at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:901)
  | at org.testng.TestNG.runSuitesLocally(TestNG.java:863)
  | at 
org.apache.maven.surefire.testng.TestNGExecutor.executeTestNG(TestNGExecutor.java:69)
  | at 
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:78)
  | at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:308)
  | at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:879)
  | 

If I remove the dependsOnGroups attribute, the tests are successful.

Is it a known problem ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121306#4121306

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121306
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS JBossMQ] - EJB3 MDB in JBoss 4.0.4 not behaving as per specification

2008-01-18 Thread irajeev
Hi,
 I posted this problem with MDB and JBoss on the EJB/JBoss forum but no one 
has replied to it. I do not know if this is the place I should posted it on, 
below is the link to the original post.

http://www.jboss.org/index.html?module=bbop=viewtopict=127924


Thanks
Rajeev

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121297#4121297

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121297
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Occasional NPE when use JGroups multiplexor

2008-01-18 Thread Jeremy Stone
When we start up our JBoss application we sometimes get the exception shown 
below. It occurs on roughly 1/4 of startups. We are running JBossAS 4.2.0.GA 
with JBoss Messaging 1.4.0.SP3 (also saw problem with SP2). We are running with 
clustered destinations (but with just one cluster node at present). We use 
JGroups 2.5.1 with the multiplexor using the udp-sync channel config (shown 
below) for the control channel.

Debugging, the following seems to happen at application server startup:

- Main thread calls GroupMember.start() which connects to the controlChannel
- Multiplexer thread calls back to the ControlMembershipListener viewAccepted() 
which creates the latch object
- Main thread continues to call latch.countDown(). There is clearly a race 
condition here which causes latch to be null sometimes. Bang!

Note:
- problem does not occur if dont use multiplexor in JBoss messaging config 
(i.e. use configuration bundled with JBM): i.e. callback to viewAccepted() is 
on the main thread.

- but it does  occur if use multiplexor with the udp-sync channel config 
replaced by that in the configuration bundled with JBM. This differs from that 
in udp-sync (below) in that in the former use_flush is set for STATE_TRANSFER 
and GMS, and in udp-sync use_concurrent_stack=true with thread_pool and 
oob.thread_pool.enabled both =true. So these differences do not account for the 
problem.

Setting the system property jgroups.mux.enabled=false makes it work again (with 
the multiplexor-style configuration) and is our solution for the time being.

Any thoughts?

2008-01-17 19:02:33,118 37694 WARN  [org.jboss.system.ServiceController]
  | (main:) Problem starting service jboss.messaging:service=PostOffice
  | java.lang.NullPointerException
  | at
  | 
org.jboss.messaging.core.impl.postoffice.GroupMember.start(GroupMember.java:160)
  | at
  | 
org.jboss.messaging.core.impl.postoffice.MessagingPostOffice.start(MessagingPostOffice.java:347)
  | at
  | 
org.jboss.messaging.core.jmx.MessagingPostOfficeService.startService(MessagingPostOfficeService.java:427)
  | at
  | 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at
  | org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at
  | 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at
  | 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at
  | 
org.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.server.Invocation.invoke(Invocation.java:88)
  | at
  | 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at
  | 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)
  | at $Proxy0.start(Unknown Source)
  | at 
org.jboss.system.ServiceController.start(ServiceController.java:417)
  | at 
org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at 
org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at 
org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at 
org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at 
org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at 
org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
  | at
  | 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at
  | 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at
  | 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy4.start(Unknown Source)
  | at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
  | 

[jboss-user] [JBoss jBPM] - Re: How to retrieve the Task list of a user ?

2008-01-18 Thread francis1970
Thanks for your kind replies.
At the moment I have solved the problem using an assignment handler which fires 
when the Task node is entered.
Thanks for your hints.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121285#4121285

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121285
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How to retrieve the Task list of a user ?

2008-01-18 Thread dleerob
In your process definition, you have: 

  | swimlane name=user
  | /swimlane
  | 

You've defined a swimlane called user, but you haven't assigned any users to 
that swimlane.

Also, to get a list of tasks that can potentially be assigned to a user, I use 
a method like this:
/**
  |  * Gets all task instances that a user with the given actor id could 
claim.
  |  * @return List of jbpm task instances.
  |  */
  | public static List getUnClaimedTaskInstancesForActorId (JbpmContext 
jbpmContext, String actorId) {
  | Session session = jbpmContext.getSession();
  | 
  | //create list of possible id's (this includes groups) that 
  | //belong to the current user.
  | List actorsList = new ArrayList();
  | actorsList.add(actorId);
  | IdentitySession identitySession = new IdentitySession(session);
  | org.jbpm.identity.User jbpmUser = 
identitySession.getUserByName(actorId);
  | Iterator i = jbpmUser.getMemberships().iterator(); 
  | while(i.hasNext()){ 
  | Membership m = (Membership) i.next(); 
  | actorsList.add(m.getGroup().getName()); 
  | } 
  | List pooledTaskInstances = 
jbpmContext.getTaskMgmtSession().findPooledTaskInstances(actorsList);
  | List jbpmTaskInstanceList = session.createQuery(from 
org.jbpm.taskmgmt.exe.TaskInstance ti where ti.start is null and ti.end is null 
and actorId = '+actorId+').list();
  | //add pooledTaskInstances to taskList
  | jbpmTaskInstanceList.addAll(pooledTaskInstances);
  | 
  | //TODO sort jbpmTaskInstanceList by task instance id
  | 
  | return jbpmTaskInstanceList;
  | }

Hope this helps a bit. Good luck!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121272#4121272

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121272
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: WS-Security Newbie Question...

2008-01-18 Thread lafaserem
Ups... Ok... That's was consecuence of so many copy-pastes that I have done 
during all these days :) 

My Hello.java file is now like this:


  | package wssec;
  | 
  | import javax.jws.WebMethod;
  | import javax.jws.WebParam;
  | import javax.jws.WebResult;
  | import javax.jws.WebService;
  | import javax.xml.ws.RequestWrapper;
  | import javax.xml.ws.ResponseWrapper;
  | 
  | 
  | /**
  |  * This class was generated by the JAX-WS RI.
  |  * JAX-WS RI 2.1.1-b03-
  |  * Generated source version: 2.0
  |  * 
  |  */
  | @WebService(name = Hello, targetNamespace = urn:ws.sec)
  | public interface Hello {
  | 
  | 
  | /**
  |  * 
  |  * @param nombre
  |  * @return
  |  * returns java.lang.String
  |  */
  | @WebMethod
  | @WebResult(targetNamespace = )
  | @RequestWrapper(localName = echo, targetNamespace = urn:ws.sec, 
className = sec.ws.Echo)
  | @ResponseWrapper(localName = echoResponse, targetNamespace = 
urn:ws.sec, className = sec.ws.EchoResponse)
  | public String echo(
  | @WebParam(name = nombre, targetNamespace = )
  | String nombre);
  | 
  | }
  | 

but now I have this error:

  | Exception in thread main java.lang.NoClassDefFoundError: 
org/apache/xml/securi
  | ty/Init
  | at 
org.jboss.ws.extensions.security.SecurityEncoder.init(SecurityEncod
  | er.java:47)
  | at 
org.jboss.ws.extensions.security.WSSecurityDispatcher.handleOutbound(
  | WSSecurityDispatcher.java:302)
  | at 
org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleOutbou
  | ndSecurity(WSSecurityHandler.java:95)
  | at 
org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient.handle
  | Outbound(WSSecurityHandlerClient.java:45)
  | at 
org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericH
  | andler.java:55)
  | at 
org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(Ha
  | ndlerChainExecutor.java:295)
  | at 
org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(Ha
  | ndlerChainExecutor.java:140)
  | at 
org.jboss.ws.core.jaxws.client.ClientImpl.callRequestHandlerChain(Cli
  | entImpl.java:160)
  | at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:297)
  | at 
org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243)
  | 
  | at 
org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:16
  | 4)
  | at 
org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:15
  | 0)
  | at $Proxy15.echo(Unknown Source)
  | at wssec.HelloClient.main(HelloClient.java:32)
  | 

I don't know what's happening now.. I'm with it, but if you see something, i'll 
be grateful for your advices ;)

At least now I see errors refering to WSSecurity and that makes me happy hehe :)

Thanks ;)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121266#4121266

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121266
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: ports for application and consoles

2008-01-18 Thread justkeys
I'ld use 8080 for jboss, and put an Apache in front of jboss, and configure it 
there: which external ports should accept which urls.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121264#4121264

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121264
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Subscribe two diferent topics

2008-01-18 Thread rolmovel
Hi all,

Is it possible to subscribe a class to two diferent topics?

Tahnks in advance,

Rodrigo

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121262#4121262

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121262
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: WS-Security Newbie Question...

2008-01-18 Thread [EMAIL PROTECTED]
Last time I didn't noticed this: on the client side you should have the 
interface of you web service, not the implementation. This applies for every 
webservice client.
And of course the interface (which can be generated by wsconsume, otherwise you 
can code it manually, it is easy for your service) should not have the 
@EndpointConfig with the server endpoint configuration ;-)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121260#4121260

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121260
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - jBPM BPEL - hello example error: no processdefinition.xml

2008-01-18 Thread xhiloy
Hi All!

I'm using jbpm-bpel-1.1.GA on jbpm-starters-kit-3.1.4\jbpm-server.

I have built the jbpm-bpel and deployed it on jbmp-server.

Now I can access BPEL console: http://localhost:8080/jbpm-bpel/index.jsp.

My second step was to deploy simple BPEL application.

I've chosen the hello example.

From Eclipse I run Ant (target order is: clean, main [default]) and I get this 
error:

Buildfile: C:\Studia\programy\jbpm-bpel-1.1.GA\examples\hello\build.xml
clean:
define.register.task:
register.partners:
package.process:
[mkdir] Created dir: 
C:\Studia\programy\jbpm-bpel-1.1.GA\examples\hello\target
  [zip] Building zip: 
C:\Studia\programy\jbpm-bpel-1.1.GA\examples\hello\target\hello.zip
deploy.process:
[deployprocess] 13:43:16,468 DEBUG [header]  POST /jbpm-bpel/deployment 
HTTP/1.1[\r][\n]
[deployprocess] 13:43:16,484 DEBUG [header]  User-Agent: Jakarta 
Commons-HttpClient/3.0[\r][\n]

and so on... file is sent to server and the response is:


[deployprocess] 13:43:16,500 DEBUG [header]  HTTP/1.1 500 Internal Server 
Error[\r][\n]
[deployprocess] 13:43:16,500 DEBUG [header]  Server: 
Apache-Coyote/1.1[\r][\n]

// some more headers and HTML tags go here

// the most important thing is the following line

h1HTTP Status 500 - /h1type Exception reportmessage description The server 
encountered an internal error () that prevented it from fulfilling this 
request.exception org.jbpm.jpdl.JpdlException: [[ERROR] no 
processdefinition.xml inside process archive][\n]
[deployprocess] 13:43:16,515 DEBUG [content]  
[0x9]org.jbpm.jpdl.par.JpdlArchiveParser.readFromArchive(JpdlArchiveParser.java:43)[\n]


Indeed, there is no processdefinition.xml in jbpm-bpel-1.1.GA.

How can I get it? Should I write/generate it myself?

thanks in advance for tips
best regards
Lukasz

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121259#4121259

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121259
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam with Hibernate Search

2008-01-18 Thread przemjaskier
I've run into this problem a while ago. I don't recall how I solved this. (Just 
trying to recall -) this is reported on on HS forum or it's JIRA (cannot 
access these sites at this moment to provide concrete points, servers 
overloaded?) and is caused by behind-the-scene casting against an unimplemented 
interface. That's all I recall. Search there, make a postback to Pete, please.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121258#4121258

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121258
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - deploying web application as a singleton

2008-01-18 Thread uabramov
Hi,
Is it possible to deploy web application as a singleton ?

When I deploy ear into deploy-hasingleton it looks like the only Web component 
does not get deployed as singleton. 

Thanks You,

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121361#4121361

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121361
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - ProcessArchives and ProcessState problem

2008-01-18 Thread rodrobin
Hey...,

  I've run into a nasty problem when deploying via process archives (PARs) and 
utilizing sub-processes in process definitions: ClassNotFoundExceptions in the 
referenced sub-process.

  The super-process class loader works as expected and locates its serialized 
resources in the database but the class loader for the sub-process fails.

  Of course if the offending class(es) are available to the jBPM class loader 
the problem goes away but then using PARs for versioning resources won't work.

  So I guess my questions are, isn't this a bug in jBPM and is there a 
workaround?

Thanks,

/Robin

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121362#4121362

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121362
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Add JSF Capabilites or any JBoss Tools options are disab

2008-01-18 Thread chris.simons
Will do.

Thanks, Max.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121355#4121355

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121355
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: The old ClassLoading problem with ICEfaces

2008-01-18 Thread jguglielmin
If you are using the async components or render push at all, you will want to 
load all 3 icefaces jars in the ear\lib.  Using seam-gen for Seam-2.0.0.GA just 
set your icefaces.home property to your 1.7.0.DR3 directory, and use seam 
new-project to show you the proper configuration for this.

If you aren't using any async stuff, then the icefaces example in the seam 
distribution is OK too.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121349#4121349

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121349
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Services with EJB dependency do not start up

2008-01-18 Thread tina99
ups, there is copy  paste error in my previous post. the mbean declaration is:


mbean code=org.jboss.varia.scheduler.Scheduler 
name=de.dis.set:service=RemoveUnused
  | attribute name=StartAtStartuptrue/attribute
  | attribute 
name=SchedulableClassde.dis.service.DeleteUnusedPicsSchedule/attribute
  | attribute name=InitialStartDateNOW/attribute
  | attribute name=SchedulePeriod600/attribute
  | attribute name=InitialRepetitions-1/attribute
  | 
dependsjboss.j2ee:service=EJB,plugin=pool,jndiName=ImportManager/depends
  | /mbean   

Tina

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121342#4121342

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121342
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration DEPLOYMENT] - Services with EJB dependency do not start up

2008-01-18 Thread tina99
Hi,

I am currently upgrading from JBoss 4.0.5 to 4.2.2ga. We have some services 
defined in the service.xml. This xml has not changed since working with JBoss 
4.0.5. However with JBoss 4.2.2ga we get the following error message: 


  | INFO  [JmxKernelAbstraction] installing MBean: 
jboss.j2ee:ear=dp.ear,jar=dp.jar,name=ImportManagerBean,service=EJB3 with 
dependencies:
  | INFO  [JmxKernelAbstraction]   
jboss.j2ee:ear=dp.ear,jar=dp.jar,name=QManagerBean,service=EJB3
  | INFO  [JmxKernelAbstraction]   
jboss.j2ee:ear=dp.ear,jar=dp.jar,name=VManagerBean,service=EJB3
  | 
  | ...
  | ...
  | 
  | [EJBContainer] STARTED EJB: de.dis.set.ejb.ImportManagerBean ejbName: 
ImportManagerBean
  | 
  | ...
  | ...
  | 
  | ObjectName: de.dis.set:service=InitializeApplication
  |   State: CONFIGURED
  |   I Depend On:
  | jboss.j2ee:service=EJB,plugin=pool,jndiName=ImportManager
  | 
  | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  | ObjectName: jboss.j2ee:service=EJB,plugin=pool,jndiName=ImportManager
  |   State: NOTYETINSTALLED
  |   Depends On Me:
  | de.dis.set:service=ReimportScheduler
  | de.dis.set:service=RemoveUnused
  | de.dis.set:service=ExportExtProdnamen
  | de.dis.set:service=InitializeApplication

The ImportManager seems correct configured, is up and bound to jndi. So what is 
the problem here? Has something changed from 4.0.5 to 4.2.2ga?

One example configuration of our mbeans:

  | mbean code=org.jboss.varia.scheduler.Scheduler 
name=hbv.dpBild:service=RemoveUnused
  | attribute name=StartAtStartuptrue/attribute
  | attribute 
name=SchedulableClassde.dis.service.DeleteUnusedPicsSchedule/attribute
  | attribute name=InitialStartDateNOW/attribute
  | attribute name=SchedulePeriod600/attribute
  | attribute name=InitialRepetitions-1/attribute
  | 
dependsjboss.j2ee:service=EJB,plugin=pool,jndiName=ImportManager/depends
  | /mbean   
  | 

Any help appreciated. Thx.
Tina

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121338#4121338

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121338
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Add JSF Capabilites or any JBoss Tools options are disab

2008-01-18 Thread [EMAIL PROTECTED]
should just work - we don't pick up the old exadel studio settings so it should 
just think it is a new project.

report in jira with steps/project to reproduce it with and we'll look into it.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121330#4121330

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121330
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: ui example: How to add ajax support for selectItems

2008-01-18 Thread jneubert
Thank you for the hint. To Continent.java, I added

  | public boolean equals(Object obj) {
  |   if(obj != null) {
  |  return (this.name == ((Continent)obj).getName());
  |   }
  |   else return false;
  | }
  | 
  | public int hashCode() {
  |   return this.name.hashCode();
  | }
  | 
and it works! 

To get the continent set and the country rerenderd with invalid input elsewhere 
- e.g., empty Roles - I had to surround the continent block with a:region. 

Maybe an extended Seam example for this functionality could be useful for other 
users.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121319#4121319

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121319
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: FailedConfiguration while running test

2008-01-18 Thread hubaghdadi

  |   [testng] FAILED CONFIGURATION: @BeforeClass init
  |[testng] java.lang.NoClassDefFoundError: 
EDU/oswego/cs/dl/util/concurrent/ConcurrentReaderHashMap
  |[testng] at 
org.jboss.util.collection.CollectionsFactory.createConcurrentReaderMap(CollectionsFactory.java:73)
  |[testng] at 
org.jboss.kernel.plugins.event.AbstractEventEmitter.init(AbstractEventEmitter.java:60)
  |[testng] at 
org.jboss.kernel.plugins.AbstractKernelObject.init(AbstractKernelObject.java:47)
  |[testng] at 
org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.init(AbstractBootstrap.java:51)
  |[testng] at 
org.jboss.kernel.plugins.bootstrap.basic.BasicBootstrap.init(BasicBootstrap.java:58)
  |[testng] at 
org.jboss.embedded.Bootstrap.createKernel(Bootstrap.java:130)
  |[testng] at 
org.jboss.embedded.Bootstrap.getInstance(Bootstrap.java:76)
  |[testng] at 
org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:10)
  |[testng] at 
org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1006)
  |[testng] at 
org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:931)
  |[testng] at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
  |[testng] ... Removed 22 stack frames
  |[testng] SKIPPED CONFIGURATION: @BeforeMethod begin
  |[testng] SKIPPED CONFIGURATION: @AfterMethod end
  |[testng] SKIPPED CONFIGURATION: @AfterClass cleanup
  |[testng] SKIPPED: siimulateBijection
  |[testng] 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121337#4121337

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121337
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


  1   2   >