[jboss-user] [EJB 3.0] - order-by in named-query

2007-03-02 Thread eiben
Hi,

I created a named query like this:

  | @NamedQuery(name = topItems, query = select i from Orderitem oi inner 
join oi.item i group by i order by sum(oi.quantity) desc)
  | 

  | public CollectionItem getTopItems()
  | {
  | Query q = em.createNamedQuery(topItems);
  | q.setMaxResults(25);
  | return (CollectionItem) q.getResultList();
  | }
  | 

But this doesn't seem to work like I expect it to work: I get an exception from 
the JDBC-driver :( It seems like my database (MySQL) doesn't like the 
sum(oi.quantity) in the order by clause :(

well, I played with the sql, and it seems like MySQL would prefer something 
like this:


  | @NamedQuery(name = topItems, query = select i, sum(oi.quantity) as qty 
from Orderitem oi inner join oi.item i group by i order by qty desc)
  | 

But this in turn doesn't seem to work with hibernate, at least I tried to 
evaluate this expression in the HQL-Editor, and hibernate could not create a 
SQL-statment :(

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

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


[jboss-user] [JBoss jBPM] - Re: Problem BPEL: SOAP Messages in a web service invocation

2007-03-02 Thread agusgr
I found the problem.
The eclipse designer create the 'parameters' parts like this:bpws:to 
part=parameters variable=atlasRequest
  | bpws:query 
queryLanguage=http://www.w3.org/TR/1999/REC-xpath-19991116;![CDATA[/ns0:sCountryISOCode]]/bpws:query
  | /bpws:to
  | 
But the correct way is 
this:bpws:to$atlasRequest.parameters/ns0:sCountryISOCode/bpws:to
The problem is fixed if I change this part, but I don't know why the eclipse 
designer uses 'query languages'.
I hope that this post can help someone whit the same problem.

From Spain, thank you very much Alejandro.

Agus

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

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


[jboss-user] [JBoss Seam] - Re: Seam security with JAAS config

2007-03-02 Thread pdpantages
Yes, you are correct; there is a mechanism protecting the calls.  Up until now, 
I
had been using the FORM method to authenticate with a login
servlet. Once authenticated, this authorization mechanism works properly.

I wanted to add and use the Seam Identity to do role-based page-level
authorzation, and for conditional rendering in my facelets, while
keeping the old authorization mechanism for methods.

I though that the JAAS authentication would behave the same way, if I specified 
a jass-config-name in components.xml.
 
I.e., like the call I see in FormAuthenticator:

  | ...
  | principal = context.getRealm().authenticate(username,password); 
  | 

It doesn't appear that the Identity authenticates the way
FormAuthenticator did. I guess this is design intent. 

Since it doesn't, I though I could make this call myself, in an
authenticate-method, something like:

  |  public class Authenticator {
  |public boolean authenticate() {
  |
  |Realm realm = ???
  |p = realm.authenticate(identity.getUsername(),identity.getPassword()); 
  |...
  |return true;
  | }
  | 

Then, if it was OK, I would populate the identity with the user's roles return 
true.

But I can't figure out how the get ahold of the/a Realm instance. I see 
that the
FormAuthenticator gets it from the context, which comes from the request.

Is this workable, or am I missing something obvious? I am a bit of
a novice with JAAS  have to admit it is a bit confusing at times.


A dumpstack for My old FORM method authentication. ( I looked at these sources
to see how a successful authentication is/was done. )


  | at java.lang.Thread.dumpStack(Thread.java:1158)
  | at 
centina.sa.server.security.SecurityManager.completeLogin(SecurityManager.java:507)
  | at 
centina.sa.server.security.SecurityManagerLoginModule.commit(SecurityManagerLoginModule.java:181)
  | 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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
  | at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
  | at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
  | at javax.security.auth.login.LoginContext.login(LoginContext.java:580) 
Above called at (579)
  | at 
org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:601)
  | at 
org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:535)
  | at 
org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)
  | at 
org.jboss.web.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:491)
  | at 
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:257)
  | at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:416)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Thread.java:595)
  | 


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

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


[jboss-user] [JBossWS] - JbossWS 1.2.0

2007-03-02 Thread matienzar
Hello,

 With 1.0.4 release, i've a hibernate handler to begiun a transaction and to 
commit it. With this new realese, the handler is not threadsafe, and when I 
need to commit the transaction, it's null. I'd defined the handler (with 1.0.4) 
in standard-jaxrpc-endpoint-config.xml, but with this new realse i've to define 
it in standard-jaxws-endpoint-config.xml.

The code of the handler is:
public class HibernateWS extends GenericSOAPHandler {
UserTransaction _tx = null;

@Override
public boolean handleFault(MessageContext arg0) {
try {
_tx.rollback();
} catch (Exception e) {
Log.error(No se ha podido hacer el rollback, e);
throw new RuntimeException(e);
}
return super.handleFault(arg0);
}



protected boolean handleInbound(MessageContext msgContext) {
try {
HibernateUtil.openSession();
_tx = (UserTransaction) new InitialContext()
.lookup(java:comp/UserTransaction);
_tx.begin();
} catch (Exception e) {
Log.error(Cogiendo la transacción., e);
}
return true;
}

protected boolean handleOutbound(MessageContext msgContext) {

try {
_tx.commit();
} catch (Exception e) {
Log.error(Haciendo el commit, e);
try {
_tx.rollback(); 
} catch (Exception e2) {
Log.error(Haciendo el rollback, e2);
}
throw new RuntimeException(e);
}
return true;
}
}

And the config-handler:
endpoint-config
  config-nameHandler hibernate gnomo/config-name
  pre-handler-chains
 javaee:handler-chain
javaee:protocol-bindings##SOAP11_HTTP/javaee:protocol-bindings
javaee:handler
   
javaee:handler-nameWSHibernateHandlerInbound/javaee:handler-name
   
javaee:handler-classorg.muvale.utilidades.handlers.HibernateWS/javaee:handler-class
/javaee:handler
 /javaee:handler-chain
  /pre-handler-chains
   /endpoint-config


A lot of thanks,

 Marcial

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

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

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


[jboss-user] [JBoss jBPM] - Re: Ambiguous user guide

2007-03-02 Thread angra81
Maybe it's me to miss something... but if I have two possibilities to download 
something.. in the end I must to obtain the same thing... why of course they 
are different? 

tx,
dario

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

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


[jboss-user] [JBossWS] - 1.2: wsconsume needs com/sun/tools/xjc/api/ErrorListener ?!

2007-03-02 Thread Juergen.Zimmermann
When invoking wsconsume as an ANT task I get this error 
message:java.lang.NoClassDefFoundError: com/sun/tools/xjc/api/ErrorListener

Where can I find a jar containing this ErrorListener? Any hint is appreciated!

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

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


[jboss-user] [JBoss Seam] - Re: reference doc 6.1. Seam's conversation model clarificati

2007-03-02 Thread quilleashm
I think bullet 6 applies only to long running conversations.  Bullet 7 applies 
to both (I believe even temporary conversations are propogated across 
redirects).


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

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


[jboss-user] [JBoss Seam] - Re: s:fileUpload whit portal

2007-03-02 Thread ppassantini
hi shane,
thanks for you replay

I created a JIRA issue yet, but I don't know how to assign it to you. Can you 
explain how to do it?
Or you can assign it yourself.
The ticket number is JBSEAM-947!

Thanks, Peter!

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

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


[jboss-user] [JBoss jBPM] - Re: Ambiguous user guide

2007-03-02 Thread agusgr
Hi Dario,
What I did was:
1.- Download bpel-extension from http://www.jboss.com/products/jbpm/downloads.
2.-Unzip in my file system. A folder called jbpm-bpel-1.1.Beta3 was created.
3.-Then you only had to follow the user guide.
In the configuration of hibernate and jbpm, i don't modify anything, the 
default values works well.
To generate the service and then deploy it in the jboss server, you should to 
intall ant.

Agus

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

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


[jboss-user] [Clustering/JBoss] - Re: JNDI vs. HA-JNDI lookups

2007-03-02 Thread Marlig
Thanks for your replies. I guess I'm seeing the behaviour that Brian described, 
where my client gets the EJB-proxy, and since the EJBs are configured as 
clustered, all calls to that EJBs are load-balanced. 

I just remembered that we had to manually set the invoker-proxy-bindings to 
support some clients that run on older JDK versions:


  |invoker-proxy-bindings
  |   invoker-proxy-binding
  |  nameclustered-retry-stateless-rmi-invoker/name
  |  invoker-mbeanjboss:service=invoker,type=jrmpha/invoker-mbean
  |  proxy-factoryorg.jboss.proxy.ejb.ProxyFactoryHA/proxy-factory
  |  proxy-factory-config
  | client-interceptors
  |home
  |   
interceptororg.jboss.proxy.ejb.HomeInterceptor/interceptor
  |   
interceptororg.jboss.proxy.SecurityInterceptor/interceptor
  |   
interceptororg.jboss.proxy.TransactionInterceptor/interceptor
  |   
interceptororg.jboss.proxy.ejb.RetryInterceptor/interceptor
  |   
interceptororg.jboss.invocation.InvokerInterceptor/interceptor
  |/home
  |bean
  |   
interceptororg.jboss.proxy.ejb.StatelessSessionInterceptor/interceptor
  |   
interceptororg.jboss.proxy.SecurityInterceptor/interceptor
  |   
interceptororg.jboss.proxy.TransactionInterceptor/interceptor
  |   
interceptororg.jboss.proxy.ejb.RetryInterceptor/interceptor
  |   
interceptororg.jboss.invocation.InvokerInterceptor/interceptor
  |/bean
  | /client-interceptors
  |  /proxy-factory-config
  |   /invoker-proxy-binding
  | 

Maybe this forces the load-balancing, no matter which port I connect to??

Otherwise, how could I call my EJBs and make sure the call only goes to one of 
the nodes?

Thanks
Martin

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

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


[jboss-user] [Remoting] - Re: Connection between servers through JNDI?

2007-03-02 Thread Clarich
exactly. My Client is not able to access my Server after killing the Server and 
restarting it with a new Protocol. I need to restart the Server a second time, 
before my Client is able to connect to it. The funny thing is, that Detection 
works perfectly even after the first restart.

Here's a dump of what I see on the Server in different cases:

 start Server with multiplex protocol*

  | reqistering with JNDI server
  | 2007-03-02 09:11:33,325 WARN  [main] 
org.jboss.remoting.detection.jndi.JNDIDetector: Detector: 
org.jboss.remoting.detection.jndi.JNDIDetector could not be loaded because the 
NetworkRegistry is not registered
  | 2007-03-02 09:11:33,325 WARN  [main] 
org.jboss.remoting.detection.jndi.JNDIDetector: This means that only the 
broadcasting of detection messages will be functional and will not be able to 
discover other servers.
  | susseccfully reqistered with JNDI Server
  | 2007-03-02 09:11:34,341 INFO  [Remoting Detector - Heartbeat Thread: 1] 
org.jboss.remoting.detection.jndi.JNDIDetector: Added 
3087152660c52e45x-3af92cc0x110ba7efe6bx-7ffb56 to registry.
  | 2007-03-02 09:11:39,340 WARN  [Remoting Detector - Heartbeat Thread: 5] 
org.jboss.remoting.ConnectionValidator: ConnectionValidator could not 
successfully ping server (InvokerLocator [socket://anotherhost:1101/]
  | 

*** restart same server with multiplex


  | reqistering with JNDI server
  | 2007-03-02 09:13:41,790 WARN  [main] 
org.jboss.remoting.detection.jndi.JNDIDetector: Detector: 
org.jboss.remoting.detection.jndi.JNDIDetector could not be loaded because the 
NetworkRegistry is not registered
  | 2007-03-02 09:13:41,790 WARN  [main] 
org.jboss.remoting.detection.jndi.JNDIDetector: This means that only the 
broadcasting of detection messages will be functional and will not be able to 
discover other servers.
  | successfully reqistered with JNDI Server
  | 


*** restart same Server with new protocol socket


  | reqistering with JNDI server
  | 2007-03-02 09:15:50,881 WARN  [main] 
org.jboss.remoting.detection.jndi.JNDIDetector: Detector: 
org.jboss.remoting.detection.jndi.JNDIDetector could not be loaded because the 
NetworkRegistry is not registered
  | 2007-03-02 09:15:50,881 WARN  [main] 
org.jboss.remoting.detection.jndi.JNDIDetector: This means that only the 
broadcasting of detection messages will be functional and will not be able to 
discover other servers.
  | susseccfully reqistered with JNDI Server
  | 2007-03-02 09:15:56,052 INFO  [Remoting Detector - Heartbeat Thread: 5] 
org.jboss.remoting.transport.multiplex.MultiplexingManager: starting static 
threads
  | 2007-03-02 09:15:56,130 ERROR [SocketServerInvoker#0-1101] 
org.jboss.remoting.transport.socket.SocketServerInvoker: Failed to accept 
socket connection
  | java.lang.reflect.InvocationTargetException
  | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  | at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
  | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown 
Source)
  | at java.lang.reflect.Constructor.newInstance(Unknown Source)
  | at 
org.jboss.remoting.transport.socket.ServerThread.createServerSocket(ServerThread.java:198)
  | at 
org.jboss.remoting.transport.socket.ServerThread.init(ServerThread.java:95)
  | at 
org.jboss.remoting.transport.socket.SocketServerInvoker.processInvocation(SocketServerInvoker.java:492)
  | at 
org.jboss.remoting.transport.socket.SocketServerInvoker.run(SocketServerInvoker.java:444)
  | at java.lang.Thread.run(Unknown Source)
  | Caused by: java.io.StreamCorruptedException: invalid stream header
  | at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
  | at java.io.ObjectInputStream.init(Unknown Source)
  | at 
org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.init(ObjectInputStreamWithClassLoader.java:73)
  | at 
org.jboss.remoting.serialization.impl.java.JavaSerializationManager.createInput(JavaSerializationManager.java:52)
  | at 
org.jboss.remoting.transport.socket.ServerSocketWrapper.createInputStream(ServerSocketWrapper.java:56)
  | at 
org.jboss.remoting.transport.socket.ClientSocketWrapper.createStreams(ClientSocketWrapper.java:76)
  | at 
org.jboss.remoting.transport.socket.ClientSocketWrapper.init(ClientSocketWrapper.java:54)
  | at 
org.jboss.remoting.transport.socket.ServerSocketWrapper.init(ServerSocketWrapper.java:50)
  | ... 9 more
  | 2007-03-02 09:15:57,052 INFO  [Remoting Detector - Heartbeat Thread: 5] 
org.jboss.remoting.transport.multiplex.Protocol: timeout in Protocol.connect()
  | 2007-03-02 09:15:57,052 INFO  [Remoting Detector - Heartbeat Thread: 5] 
org.jboss.remoting.transport.multiplex.MultiplexingManager: 
Socket[addr=localhost/127.0.0.1,port=1101,localport=1264]: entering 
unRegisterSocket()
  | 2007-03-02 09:15:57,052 INFO  [Remoting Detector - Heartbeat Thread: 5] 

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Configuration Hibernate with jboss4.x

2007-03-02 Thread naganirangen

Hi I'm new to JBoss ,

Can any one Please explain how to configure hibernate with JBoss4.x.

i'm not able to find help to this topic.I'm usting hiberbate from servlets 

application.Please help me..My work is pending..



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

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


[jboss-user] [JBossWS] - Re: 1.2: wsconsume needs com/sun/tools/xjc/api/ErrorListener

2007-03-02 Thread [EMAIL PROTECTED]
http://jbws.dyndns.org/mediawiki/index.php/Install_JBossWS#JBoss-4.0.5_.28JDK-1.5.29

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

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


[jboss-user] [JBoss Seam] - Re: system requirements for jboss seam

2007-03-02 Thread miketech
Ok, thanks. I will give it a try and hope, that it works :)

Greetings

Mike

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

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


[jboss-user] [JBoss Seam] - s:fileUpload decode error

2007-03-02 Thread face4web
Hi

I have a problem using Seam 1.2.0 Patch 1 and s:fileUpload component.
When I upload a file using this component: (fileName is a String property of an 
object)


  |  h:form id=frmMain enctype=multipart/form-data
  | s:validateAll
  | s:decorate
  | s:fileUpload id=file data=#{fileData} 
fileName=#{publication.sourceUrl} /
  | /s:decorate
  | /s:validateAll
  | h:commandLink class=button id=uploadFile value=Submit 
action=#{uploadAction.uploadP}/
  | /h:form
  | 

uploadAction:

  | @Scope(EVENT)
  | @LoggedIn
  | @Name(uploadAction)
  | public class UploadAction {
  | 
  | @In(required=false)
  | private byte[] fileData;
  | 
  | @In(value=publication)
  | private Publication uploadP;
  | 

web.xml:
filter
  |   filter-nameSeam Filter/filter-name
  |   filter-classorg.jboss.seam.web.SeamFilter/filter-class
  | /filter
  | filter-mapping
  |   filter-nameSeam Filter/filter-name
  |   url-pattern/*/url-pattern
  | /filter-mapping 

I get this error:
org.jboss.seam.ui.UIFileUpload.decode(UIFileUpload.java:79)
  | 
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:606)
  | 
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:602)
  | 
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:602)
  | javax.faces.component.UIForm.processDecodes(UIForm.java:53)
  | 
org.ajax4jsf.framework.ajax.AjaxViewRoot.processDecodes(AjaxViewRoot.java:353)
  | 
org.apache.myfaces.lifecycle.LifecycleImpl.applyRequestValues(LifecycleImpl.java:219)
  | org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:71)
  | javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
  | 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
  | org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
  | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:74)
  | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
  | 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  | 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
  | 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
  | 
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
  | 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
  | 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | 

[jboss-user] [JNDI/Naming/Network] - javax.naming.NoInitialContextException error when accessing

2007-03-02 Thread emcwoo
Problem description:
The javax.naming.NoInitialContextException was encountered when
running the QUEUE example with the following jndi.properties setting

   java.naming.factory.initial=org.jnp.interfaces.HttpNamingContextFactory
   java.naming.provider.url=http://localhost:8080/invoker/JNDIFactory
   java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

   whereas the QUEUE example runs successfully with the following
   default setting:

   java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
   java.naming.provider.url=jnp://localhost:1099
   java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

Version used:
 JBoss 4.0.5GA
 Boss Messaging 1.0.1SP2

OS: Windows or UNIX

Help on this problem is much appreciated!

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

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


[jboss-user] [Installation, Configuration Deployment] - How set permissions to users need restart Jboss server ?

2007-03-02 Thread changemylife
Hi all!

   I have two problem that I need some helps from anyone!

1. My operating system is XP2, I use jboss-4.0.5.GA. I assume that have 
three  person with usernames are A, B and C. And now, I want A and B 
are allow restart JBoss server, C is not allow! How I can do ?

2. I have two bean called Bean1 and Bean2. If copy both of them into 
deploy folder (on server), the deploy is ok! But now, how the server check to 
server can deploy Bean1 not Bean2. How I can do this ?

   Thanks!

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

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


[jboss-user] [JBossWS] - Re: JbossWS 1.2.0

2007-03-02 Thread [EMAIL PROTECTED]
This is correct. The handler should be scoped on the endpoint NOT on the 
request. 

You can put you UserTransaction in the MessageContext or use a ThreadLocal

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

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


[jboss-user] [JBoss Seam] - EntityManager in StartupServletContextListener

2007-03-02 Thread labo
Hello, 

I am running Seam 1.2.0 in a Tomcat 6 container. 
I am using the JPA to access my database. 
DB access works fine for simple controllers by 
adding 

 @In
   private EntityManager em;

and then use

em.createQuery.


In order to load reference data I want to write my own 
StartupServletContextListener e.g.

public class MyStartupServletContextListener extends 
org.apache.myfaces.webapp.StartupServletContextListener{


public void contextInitialized(javax.servlet.ServletContextEvent event){

ServletContext srvcon = event.getServletContext();


}

The context listener is registered in the web.xml file.  

How can I access the EntityManager in my contextInitialized method ? 

The same way than in my controllers will cause a Nullpointer...


The same problem occurs when trying to write my own
SessionListener :-(



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

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


[jboss-user] [Installation, Configuration Deployment] - Unstable JasperException in jsp compilation of custom taglib

2007-03-02 Thread Elhanan
hi.

my company has developed a web framework development, on jboss 3.2.5

sometimes when this framework is deployed, and after starting jboss, and access 
a page, the new jsp will not compile, the error seems to be with custom taglibs 
classes our company is using, the jsp itself is ok (i copied directly to our 
IDE and included all the jars).
the error says the method signatues won't apply to the paramters being sent to 
it (not ture, the signature is based on the base interfaces of the actuall 
classes of the taglibs we are sending).

here is what's funny, when i get this error, what i do is copy the entire jboss 
directory to a new loation (like for example c:\3.2.5 instead of 
c:\java_app\jboss\3.2.5), and then it works, the new location doesn't have to 
constant , i could for example to:
c:\sagi\3.2.5, and it would still work, but not all new location apply. (in  
some of them i will get error).

so what's going on? 


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

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


[jboss-user] [JBoss Seam] - Re: Trinidad / ajax4 jsf doesn´t work anymore in Seam 1.2.0

2007-03-02 Thread hamtho2
Joseph,

I wrote a little wiki page about that. Have a look at

http://wiki.apache.org/myfaces/TrinidadSeamAjax4JsfFaceletDetail

I also attached a sample web.xml there.

Thomas

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

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


[jboss-user] [JBoss Seam] - Re: Error javascript in s:selectDate

2007-03-02 Thread rengar
No. This was error.

Thanks.

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

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


[jboss-user] [JBossWS] - Re: JbossWS 1.2.0

2007-03-02 Thread matienzar
Thanks, but how can i put the usertransaction into the messagecontext?

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

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


[jboss-user] [EJB 3.0] - Re: Can't get session timeouts and appropriate @PreDestroy t

2007-03-02 Thread jessicarubart
Hi there,
I've a similar problem: 
In my application I'd like to automatically log out crashed or inactive clients 
by using a timeout for the session bean.
Does anybody have a solution?

Thanks in advance!
Jessica


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

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


[jboss-user] [JBoss Seam] - Re: Ajax4jsf Filter -- I go wild page

2007-03-02 Thread rengar
Ok, this is the solution.
Now the application works fine.

Thanks.

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

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


[jboss-user] [JBossCache] - Re: TreeCache config in cluster

2007-03-02 Thread ottuzzi
Hi,

thanks for your interest.

anonymous wrote : Are the weblogic installs in different directories?
No, the directory layout is identical for all four machines.

anonymous wrote : Dow do you vary your weblogic configuration?
Almost no... only log4j files have different names to diferentiate logs from 
different nodes on same machine.

anonymous wrote : Perhaps you could do something similar for your JBoss Cache 
configs.
Are you suggesting something like a Map with something like 
Node1-IP1
  | Node2-IP2
  | ...
  | NodeN-IPN
  | 

Bye
Piero

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

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


[jboss-user] [JBoss Seam] - Re: Setting up an ajax4jsf + trinidad project

2007-03-02 Thread atao
Hello,

anonymous wrote :  added the trinidad and a4j-trinidad jar

Can you be more specefic? trinidad-api-incubator-m1-SNAPSHOT.jar and 
trinidad-impl-incubator-m1-SNAPSHOT.jar?

anonymous wrote :  to WEB-INF/lib and added them to the build.xml to be added 
to the ear

are they copied in the root of the project ear or in the WEB-INF/lib of the 
project war?

About the config files, mines are below.

Regards
Pierre


  | ?xml version=1.0 encoding=UTF-8?
  | web-app version=2.5
  | xmlns=http://java.sun.com/xml/ns/javaee;
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  | xsi:schemaLocation=http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
  | 
  | [...]
  | 
  | !-- Ajax4jsf (must come before the other filters!) --
  | 
  | !-- 
  | context-param
  | param-nameorg.ajax4jsf.VIEW_HANDLERS/param-name
  | 
param-valueorg.jboss.seam.ui.facelet.SeamFaceletViewHandler/param-value
  | /context-param
  | --
  | 
  | filter
  | display-nameAjax4jsf Filter/display-name
  | filter-nameajax4jsf/filter-name
  | filter-classorg.ajax4jsf.Filter/filter-class
  | init-param
  | param-nameforceparser/param-name
  | param-valuefalse/param-value
  | /init-param
  | /filter
  | 
  | filter-mapping
  | filter-nameajax4jsf/filter-name
  | url-pattern*.seam/url-pattern
  | /filter-mapping
  | 
  | !-- Trinidad --
  | 
  | context-param
  | 
param-nameorg.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER/param-name
  | !-- 
  | param-valuecom.sun.facelets.FaceletViewHandler/param-value
  | --
  | 
param-valueorg.jboss.seam.ui.facelet.SeamFaceletViewHandler/param-value
  | /context-param
  | 
  | context-param
  | 
param-nameorg.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE/param-name
  | param-valuefalse/param-value
  | /context-param
  | 
  | context-param
  | 
param-nameorg.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION/param-name
  | param-valuetrue/param-value
  | /context-param
  | 
  | filter
  |   filter-nametrinidad/filter-name
  |   
filter-classorg.apache.myfaces.trinidad.webapp.TrinidadFilter/filter-class
  | /filter
  | 
  | filter-mapping
  |   filter-nametrinidad/filter-name
  |   !-- servlet-name must match the name of your 
javax.faces.webapp.FacesServlet entry --
  |   servlet-nameFaces Servlet/servlet-name
  |   dispatcherREQUEST/dispatcher
  |   dispatcherFORWARD/dispatcher
  |   dispatcherINCLUDE/dispatcher
  | /filter-mapping
  | 
  | !-- resource loader servlet --
  | servlet
  |   servlet-nameresources/servlet-name
  |   
servlet-classorg.apache.myfaces.trinidad.webapp.ResourceServlet/servlet-class
  | /servlet
  |
  | servlet-mapping
  |   servlet-nameresources/servlet-name
  |   url-pattern/adf/*/url-pattern
  | /servlet-mapping
  | 
  | !-- Seam --
  | 
  | listener
  |   listener-classorg.jboss.seam.servlet.SeamListener/listener-class
  | /listener
  | 
  | filter
  |   filter-nameSeam Exception Filter/filter-name
  |   
filter-classorg.jboss.seam.servlet.SeamExceptionFilter/filter-class
  | /filter
  | 
  | filter-mapping
  |   filter-nameSeam Exception Filter/filter-name
  |   url-pattern/*/url-pattern
  | /filter-mapping
  | 
  | !-- Propagate conversations through redirects --
  |
  | filter
  |   filter-nameSeam Redirect Filter/filter-name
  |   filter-classorg.jboss.seam.servlet.SeamRedirectFilter/filter-class
  | /filter
  | 
  | filter-mapping
  |   filter-nameSeam Redirect Filter/filter-name
  |   url-pattern*.seam/url-pattern
  | /filter-mapping
  | 
  | !-- Faces servlet --
  | 
  | servlet
  |   servlet-nameFaces Servlet/servlet-name
  |   servlet-classjavax.faces.webapp.FacesServlet/servlet-class
  |   load-on-startup1/load-on-startup
  | /servlet
  | 
  | servlet-mapping
  |   servlet-nameFaces Servlet/servlet-name
  |   url-pattern*.seam/url-pattern
  | /servlet-mapping
  |
  | !-- MyFaces --
  |
  | listener
  |   
listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
  | /listener
  |   
  | [...]
  | 
  | /web-app
  | 

and I have in faces-config.xml

  |application
  |  !-- No FaceletViewHandler in this file
  |view-handlercom.sun.facelets.FaceletViewHandler/view-handler
  |
view-handlerorg.jboss.seam.ui.facelet.SeamFaceletViewHandler/view-handler
  |  --
  |  !-- Use the Trinidad RenderKit AND the ajax4jsf view handler --
  |
default-render-kit-idorg.apache.myfaces.trinidad.core/default-render-kit-id
  |

[jboss-user] [JBossCache] - Re: EvictionPolicyConfig

2007-03-02 Thread kevinstembridge
Hi Manik,
Thanks very much. That's exactly what the problem was. Turns out I was using 
Hibernate 3.2.0CR1 ! Switching to 3.2.0GA fixed it.

Thanks for your help!

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

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


[jboss-user] [JBoss Messaging] - ejb3mdb example

2007-03-02 Thread asturn
Hi!

I have installed JBoss Messaging 1.2.0.GA on a new JBoss 4.0.5 GA installation 
with EJB3 support.

The queue example works perfectly. 

When I try to run the ejb3mdb example, I get the error:


  | 
  | 10:37:14,834 WARN  [JmsActivation] Failure in jms activation [EMAIL 
PROTECTED]([EMAIL PROTECTED] destination=queue/testQueue isTopic=false tx=true 
durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null 
maxMessages=1 minSession=1 maxSession=15 keepAlive=6 useDLQ=true 
DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler 
DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=10)
  | java.lang.RuntimeException: java.lang.ClassNotFoundException: No 
ClassLoaders found for: org.jboss.jms.client.container.ClosedInterceptor
  | at 
org.jboss.aop.advice.GenericAspectFactory.getClazz(GenericAspectFactory.java:141)
  | at 
org.jboss.aop.advice.GenericAspectFactory.createPerInstance(GenericAspectFactory.java:182)
  | at 
org.jboss.aop.InstanceAdvisorDelegate.initializeAspects(InstanceAdvisorDelegate.java:100)
  | at 
org.jboss.aop.InstanceAdvisorDelegate.initialize(InstanceAdvisorDelegate.java:72)
  | at 
org.jboss.aop.ClassInstanceAdvisor.init(ClassInstanceAdvisor.java:75)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate._getInstanceAdvisor(ClientConnectionDelegate.java)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate.setExceptionListener(ClientConnectionDelegate.java)
  | at 
org.jboss.jms.client.JBossConnection.setExceptionListener(JBossConnection.java:139)
  | at 
org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setupDLQConnection(AbstractDLQHandler.java:140)
  | at 
org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setup(AbstractDLQHandler.java:83)
  | at 
org.jboss.resource.adapter.jms.inflow.dlq.JBossMQDLQHandler.setup(JBossMQDLQHandler.java:48)
  | at 
org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDLQ(JmsActivation.java:359)
  | at 
org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:305)
  | at 
org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:589)
  | at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
  | at 
org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
  | at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
  | at java.lang.Thread.run(Thread.java:619)
  | Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: 
org.jboss.jms.client.container.ClosedInterceptor
  | at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
  | at 
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511)
  | at 
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
  | at 
org.jboss.aop.advice.AspectFactoryWithClassLoaderSupport.loadClass(AspectFactoryWithClassLoaderSupport.java:80)
  | at 
org.jboss.aop.advice.GenericAspectFactory.getClazz(GenericAspectFactory.java:137)
  | ... 17 more
  | 10:37:24,912 INFO  [JmsActivation] Attempting to reconnect [EMAIL 
PROTECTED]([EMAIL PROTECTED] destination=queue/testQueue isTopic=false tx=true 
durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null 
maxMessages=1 minSession=1 maxSession=15 keepAlive=6 useDLQ=true 
DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler 
DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=10)
  | 10:37:24,927 ERROR [JmsActivation] Unable to reconnect [EMAIL 
PROTECTED]([EMAIL PROTECTED] destination=queue/testQueue isTopic=false tx=true 
durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null 
maxMessages=1 minSession=1 maxSession=15 keepAlive=6 useDLQ=true 
DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler 
DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=10)
  | java.lang.RuntimeException: java.lang.ClassNotFoundException: No 
ClassLoaders found for: org.jboss.jms.client.container.ClosedInterceptor
  | at 
org.jboss.aop.advice.GenericAspectFactory.getClazz(GenericAspectFactory.java:141)
  | at 
org.jboss.aop.advice.GenericAspectFactory.createPerInstance(GenericAspectFactory.java:182)
  | at 
org.jboss.aop.InstanceAdvisorDelegate.initializeAspects(InstanceAdvisorDelegate.java:100)
  | at 
org.jboss.aop.InstanceAdvisorDelegate.initialize(InstanceAdvisorDelegate.java:72)
  | at 
org.jboss.aop.ClassInstanceAdvisor.init(ClassInstanceAdvisor.java:75)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate._getInstanceAdvisor(ClientConnectionDelegate.java)
  | at 

[jboss-user] [JBoss Portal] - Re: How to use portlet bridge for struts?

2007-03-02 Thread tsangcn
Hello,

The portlet-bridges-struts page in apache.org does not contain any link to 
download the portlet-bridge.  But at last I found it, it is 
http://www.apache.org/dist/portals/bridges/.  Although the file names indicated 
that they are source code, the files actually contains source code and compiled 
binaries.  It is now version 1.0 and contains two jar files for struts 
(portals-bridges-struts-1.2.4-1.0.jar and portals-bridges-struts-1.2.7-1.0.jar).

I also find the struts-demo-for-jboss-portal.zip (Sorry, I have forgotten where 
I found it).  But the portlet bridge in it is quite old (version 0.2).  So I 
have updated the new portlet bridge in it.  And I have modified the xml 
descriptors to the JBoss Portal 2.6 format.  I can deploy and run the portlet, 
with the following exceptions:

I logged in as admin and use management portlet to create the struts demo 
portlet in another page called Starter.  After I click the Add Center 
button, the mangement portlet crashed.  The only way to recover is logout and 
login again.  But then every time, I click on the Starter page link in 
management portlet, the mangement portlet crashed, and I have to logout and 
login again in order to use management portlet.  Any way to recover is don't 
click on the Starter page link, but expand it and click on the 
StrutsDemoPortletInstance link and click the destroy button to remove the 
StrutsDemoPortletInstance from the Starter page.

When the management portlet crashed, the following message is shown

  | An error occured while rendering window 
'/admin/default/ManagementPortletWindow'
  | 
  | /WEB-INF/jsp/management/plugins/manager.xhtml @74,63 
value=#{portalobjectmgr.cols}: Exception getting value of property cols of 
base of type : org.jboss.portal.core.portlet.management.PortalObjectManagerBean
  | 

Please help to solve the problem.

The above problem does not exist in JBoss Portal 2.4.1

I want to upload the war file.  But how to?

Thanks
C. N.


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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Autoincrement DB2 JBOSS EJB CMP configuring

2007-03-02 Thread grzesinfo
Hi! 

J have database DB2 and create table T_TEST with fields:
ID - integer autoincrement
NAME - varchar(50)
QTY - Integer

I create java bean CMP and install it on Jboss server and when create new
record from client I get error:

com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -798, SQLSTATE:
428C9, SQLERRMC: ID

I get the same error when execute command:
Insert into T_test (id,name,qty ) values (10,'OK',12)

and when execute :
Insert into T_test (name,qty ) values ('OK',12)
... all is OK!!!

this problem is in autoincrement configuration in Jboss. 

how to configure Jboss ?

Please Help!!!

thanks


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

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


[jboss-user] [JBoss jBPM] - Re: Ambiguous user guide

2007-03-02 Thread kukeltje
angra81 wrote : Maybe it's me to miss something... but if I have two 
possibilities to download something.. in the end I must to obtain the same 
thing... 

You do

angra81 wrote : why of course they are different? /quote]
  | 
  | Why is public transportation different from a car? They serve different 
different purposes, but in the end both get you where you want to be, only in a 
different way...

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

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


[jboss-user] [JBossWS] - Re: JbossWS 1.2.0

2007-03-02 Thread [EMAIL PROTECTED]
There is currently no portable way of doing this in 4.0.5. @WebServiceContext 
injection will be available with 4.2.
In the meantime you can access the message context like this:

 
  | CommonMessageContext msgContext = 
MessageContextAssociation.peekMessageContext(); 
  | msgContext.setProperty(Name, Value);
  | 

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

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


[jboss-user] [JBoss jBPM] - jPDL, BPEL XPDL

2007-03-02 Thread amartel
 Before hand, sorry me if I post naive questions but I am a newbie about 
BPM and I am in charge of evaluating jBPM for the company I work for.
 A couple of questions came to my mind when reading documentation and 
forums:

 Is possible to draw diagrams using eclipse and generate BPEL or jPDL from 
the same diagram? 
 As jBPM is language agnostic is possible to diagram using XPDL or generate 
XPDL?

 Regards,
A. Martel

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

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


[jboss-user] [JBossWS] - Re: JBossWS 1.2.0.GA NumberFormatException For ENDPOINT_ADDR

2007-03-02 Thread [EMAIL PROTECTED]
It seems to be a known remoting bug: http://jira.jboss.com/jira/browse/JBREM-645

anonymous wrote : 
  | The workaround requires that a trailing '/' is added after the host:port, 
for example:
  | socket://succubus.starkinternational.com:4446/?datatype=invocation
  | 

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

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


[jboss-user] [JBoss jBPM] - Re: jPDL, BPEL XPDL

2007-03-02 Thread kukeltje
amartel wrote : Is possible to draw diagrams using eclipse and generate BPEL 
or jPDL from the same diagram? 

No, to different editors... GPD for jPDL and the eclipse bpel plugin for bpel

amartel wrote : As jBPM is language agnostic is possible to diagram using 
XPDL or generate XPDL?

No, the core is language agnostic, but you have to build a language on top of 
that. So no XPDL for now

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

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


[jboss-user] [Performance Tuning] - Thread pools configuration

2007-03-02 Thread bortx
Hi,

I'm performing load tests on my jBoss instance. My tests make requests through 
web service, and the processing uses JMS and JCA data sources. I'm having 
blocking problems, so the performance is not as high as expected, and the CPU 
usage is around 30%.

I have taken a look at the configuration of all thread pools jBoss uses, in 
order to set appropiated values for improving performance. These are the ones I 
have found:

- JBoss System Threads in jboss-service.xml
- JMS Threads in jbossmq-service.xml
- JCA Threads in jobssjca-service.xml
- Tomcat threads on jbossweb-tomcat55.sar/server.xml

I wonder if there are more thread pools I'm ignoring that could affect 
performance, and also I would like to know the relationship between services 
deployed in jboss and how they use those pools, so I could detect bottlenecks.

Also I would like to know how to increase the number of instance of EJBs and 
how it is affected by the thread pools.

Thanks a lot,

Bortx.

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

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


[jboss-user] [EJB 3.0] - Major problem - JBoss hungs

2007-03-02 Thread mpikounis
I am facing a major issue with our system which runs on JBoss 4.04GA. We have 
an application which relies on EJB3 session beans and a mix of EJB2 and EJB3 
entity beans. 

The problem appears randomly (or when the server is under stress) and we cannot 
replicate it. 

The symptoms are that certain requests are not serviced (just wait forever to 
load the page) and it seems that it is those requests that have something to do 
with EJB2 entity beans. The rest of the system responds just fine.

What is even stranger is that user A can access part X of the application. Then 
the problem occurs and user A can no longer load the page. User B may still be 
able to access part X for a while until eventually noone can access part X. 

No CPU load, no memory problems, no network issues and as far as I can tell no 
database issues either. 

Note that I am using Instance Per Transaction CMP 2.x EntityBean to make sure 
I am not running into deadlocking issues. 

Any ideas?

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

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


[jboss-user] [JBoss jBPM] - BPEL, WSBPEL and BPEL4WS

2007-03-02 Thread agusgr
Hello,
I have a pair of questions to the community,
Are there any difference between BPEL, WSBPEL and BPEL4WS?
I'm trying to get a general idea about the state of art but I'm not able to 
view the differeces.
What versions of this are implemented in jbpm-bpel.Beta3?

Thank you all

Agus

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

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


[jboss-user] [JBoss jBPM] - Re: wscompile fails to generate artifacts for included xsd

2007-03-02 Thread [EMAIL PROTECTED]
Found a workaround. You can read it in the Jira issue.

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

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


[jboss-user] [JBoss Portal] - CSS header injection

2007-03-02 Thread fahlen
I have managed to inject the following line of HTML into the portlet HTML 
header using the file jboss-portlet.xml:


  | link type='text/css' rel='stylesheet' 
href='/ProcesosInternos/WEB-INF/css/Styles.css' /
  | 

The content of jboss-portlet.xml is this:

  | portlet-app
  | portlet
  | portlet-nameDatosPersonalesPortlet/portlet-name
  | header-content
  | link rel=stylesheet type=text/css
  | href=/WEB-INF/css/Styles.css /
  | /header-content
  | /portlet
  | /portlet-app
  | 

However, the CSS isn't applied to the content of the JSP page to which the 
portlet redirects the browser request, so I'm certain it must be the path of 
the CSS file which isn't correct.

I'm sure the problem and solution are very very basic, but they eludes me at 
the moment. Any help would be grately appreciated.

Thanks,
Mark

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

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


[jboss-user] [JBoss Portal] - Deployment exception with HelloWorldIPCPortlet.SAR

2007-03-02 Thread rabbuhl
I am using JBoss Portal 2.4.1-SP1.  If I hot deploy HelloWorldIPCPortlet.SAR it 
works correctly without any errors.  However, when I stop and then start JBoss 
Portal I the following error appears in the log file.  If I stop JBoss Portal, 
remove HelloWorldIPCPortlet.SAR, and then start JBoss Portal again the error 
disappears.  Any help would be greatly appreciated.

Richard

--- MBeans waiting for other MBeans ---
ObjectName: portal:container=Instance
  State: FAILED
  Reason: org.jboss.deployment.DeploymentException: No Attribute found with 
name: CacheNaturalId
  I Depend On:
portal:service=Hibernate,type=Instance
portal:service=PortletInvoker,type=Instance
portal:service=PortalAuthorizationManagerFactory
portal:service=AuthorizationDomainRegistry
  Depends On Me:
portal:controller=Request
portal:deployer=PortalWebApp
portal:deploymentFactory=PortletApp

ObjectName: portal:container=PortalObject
  State: FAILED
  Reason: org.jboss.deployment.DeploymentException: No Attribute found with 
name: CacheNaturalId
  I Depend On:
portal:service=Hibernate,type=PortalObject
portal:service=PortalAuthorizationManagerFactory
portal:service=AuthorizationDomainRegistry
portal:service=ListenerRegistry
  Depends On Me:
portal:commandFactory=DefaultPortal
portal:commandFactory=PortalObject
portal:controller=Request
portal:deployer=PortalWebApp
portal:deploymentFactory=Object

ObjectName: portal:commandFactory=DefaultPortal
  State: CONFIGURED
  I Depend On:
portal:commandFactory=Delegating
portal:container=PortalObject
  Depends On Me:
portal:controller=Request

ObjectName: portal:commandFactory=PortalObject
  State: CONFIGURED
  I Depend On:
portal:container=PortalObject
  Depends On Me:
portal:commandFactory=Delegate,prefix=portal

ObjectName: portal:commandFactory=Delegate,prefix=portal
  State: CONFIGURED
  I Depend On:
portal:commandFactory=Delegating
portal:commandFactory=PortalObject

ObjectName: portal:controller=Request
  State: CONFIGURED
  I Depend On:
portal:service=PageService
portal:commandFactory=DefaultPortal
portal:urlFactory=Delegating
portal:service=InterceptorStack,type=Command
portal:container=PortalObject
portal:container=Instance

ObjectName: portal:deployer=PortalWebApp
  State: CONFIGURED
  I Depend On:
jboss.system:service=MainDeployer
portal:container=PortalObject
portal:container=Instance
portal:service=Server
  Depends On Me:
portal:deploymentFactory=Object
portal:deploymentFactory=PortletApp
portal:deploymentFactory=Layout
portal:deploymentFactory=LayoutFeatures
portal:deploymentFactory=Theme
portal:deployer=Adapter

ObjectName: portal:deploymentFactory=Object
  State: CONFIGURED
  I Depend On:
portal:deployer=PortalWebApp
portal:container=PortalObject

ObjectName: portal:deploymentFactory=PortletApp
  State: CONFIGURED
  I Depend On:
portal:id=local,service=PortletInvokerRegistration
portal:deployer=PortalWebApp
portal:service=WebAppRegistry
portal:service=ServerConfig
portal:service=PortletSecurityService
portal:container=Instance

ObjectName: portal:deploymentFactory=Layout
  State: CONFIGURED
  I Depend On:
portal:deployer=PortalWebApp
portal:service=LayoutService

ObjectName: portal:deploymentFactory=LayoutFeatures
  State: CONFIGURED
  I Depend On:
portal:deployer=PortalWebApp
portal:service=LayoutService

ObjectName: portal:deploymentFactory=Theme
  State: CONFIGURED
  I Depend On:
portal:deployer=PortalWebApp
portal:service=ThemeService

ObjectName: portal:deployer=Adapter
  State: CONFIGURED
  I Depend On:
jboss.web:service=WebServer
portal:deployer=PortalWebApp

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: portal:container=Instance
  State: FAILED
  Reason: org.jboss.deployment.DeploymentException: No Attribute found with 
name: CacheNaturalId
  I Depend On:
portal:service=Hibernate,type=Instance
portal:service=PortletInvoker,type=Instance
portal:service=PortalAuthorizationManagerFactory
portal:service=AuthorizationDomainRegistry
  Depends On Me:
portal:controller=Request
portal:deployer=PortalWebApp
portal:deploymentFactory=PortletApp

ObjectName: portal:container=PortalObject
  State: FAILED
  Reason: org.jboss.deployment.DeploymentException: No Attribute found with 
name: CacheNaturalId
  I Depend On:
portal:service=Hibernate,type=PortalObject
portal:service=PortalAuthorizationManagerFactory
portal:service=AuthorizationDomainRegistry
portal:service=ListenerRegistry
  Depends On Me:
portal:commandFactory=DefaultPortal
portal:commandFactory=PortalObject
portal:controller=Request
portal:deployer=PortalWebApp
portal:deploymentFactory=Object

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

Reply to the post : 

[jboss-user] [JBoss Seam] - optimistic locking - exception handling

2007-03-02 Thread pista666
hi folks,

i'm trying to use optimistic locking with seam, everything works fine 
except very last thing, when i'm trying to save the record (that was changed by 
other user) i'll get page that user can't really understand (server internal 
error).

In jboss log i see exception(explainig problem), but at the end it comes to 
java.lang.NoClassDefFoundError, see log:

11:30:50,734 ERROR [AbstractFlushingEventListener] Could not synchronize 
database state with session
org.hibernate.StaleObjectStateException: Row was updated or deleted by another 
transaction (or unsaved-value mapping was incorrect): [c
om.arnie.panta.PrProdukt#21]
at 
org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1699)

11:30:50,748 ERROR [ExceptionFilter] uncaught exception
javax.servlet.ServletException: Error calling action method of component with 
id prProdukt:update
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
...
11:30:50,748 ERROR [ExceptionFilter] exception root cause
javax.faces.FacesException: Error calling action method of component with id 
prProdukt:update
at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
...
Caused by: javax.faces.el.EvaluationException: /PrProduktEdit.xhtml @110,61 
action=#{prProduktHome.update}: javax.persistence.Optimis
ticLockException
at 
com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73)

Caused by: javax.persistence.OptimisticLockException
at 
org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:604)
...
Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted 
by another transaction (or unsaved-value mapping was inc
orrect): [com.arnie.panta.PrProdukt#21]
at 
org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1699)

11:30:50,753 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces 
Servlet threw exception
java.lang.NoClassDefFoundError: com/sun/facelets/el/LegacyELContext
at 
org.jboss.seam.web.ExceptionFilter.createFacesContext(ExceptionFilter.java:122)
...

please give me advice how to handle this exception and show up friendly message 
to user on formular page.

thanks

pista


page i get:
---

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception

javax.servlet.ServletException: Filter execution threw an exception

org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)

org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

root cause

java.lang.NoClassDefFoundError: com/sun/facelets/el/LegacyELContext

org.jboss.seam.web.ExceptionFilter.createFacesContext(ExceptionFilter.java:122)

org.jboss.seam.web.ExceptionFilter.endWebRequestAfterException(ExceptionFilter.java:86)
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:73)

org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)

org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)

org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)

org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)

org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

note The full stack trace of the root cause is available in the Apache 
Tomcat/5.5.20 logs.

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

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


[jboss-user] [JBossWS] - Re: org.jboss.ejb3.client.ClientLauncher in which Jar file?

2007-03-02 Thread [EMAIL PROTECTED]
These tests are not suppoed to run with 4.0.5. How do youo build and invoke the 
samples?



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

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


[jboss-user] [JBossWS] - Re: JBossWS 1.2 on JBoss AS 4.0.5

2007-03-02 Thread [EMAIL PROTECTED]
Did you follow the steps described in 
http://jbws.dyndns.org/mediawiki/index.php/Install_JBossWS?

Sorry, we are currently working on a install script that should simplify things 
a lot. 

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

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


[jboss-user] [JBossWS] - Re: JBossWS 1.2.0.GA

2007-03-02 Thread [EMAIL PROTECTED]
If we want to nail it down, we need more information about the 
request/response, the WSDL, etc.

You'll need to verify what request does exactly cause that error.
Does happen upon parsing the request or when the response is marshalled?

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

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


[jboss-user] [JBoss Eclipse IDE (users)] - Server failed to start dialog after a succesful start

2007-03-02 Thread hezamu
Hi,

I'm using JBoss Eclipse IDE 2.0.0.Beta2 with JBoss 4.0.5 GA, and it seems that 
the IDE fails to detect a succesful server start.

I start the server with the start button in JBoss perspective and it starts up 
ok, but the server view reports it as Starting After a while I get the 
dialog Server failed to start and apparently the server process is killed at 
that point, though it was running without problems. Sometimes I get the dialog 
even before the server has completed the startup procedure.

Any ideas? 

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

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


[jboss-user] [JBoss jBPM] - Re: Insert TaskNode and Task at runtime via an ActionHandler

2007-03-02 Thread warmonga
Hi there,

does anybody have a clue how to solve this problem or maybe a hint for a 
workaround?

Many Thanks!
Cheers,
Maurice

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

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


[jboss-user] [JBoss jBPM] - Re: Missing (config) files starters kit?

2007-03-02 Thread Johan.Parent
In the meanwhile I had a chance to try the code too. It works but does not 
solve the problem :(

So I resumed my quest and found the real source of the many SAXParserFactory 
instantiations: JbpmContext.getSession (see below).

Hmmm, I see a solution in caching the configuration in the 
DbPersistenceServiceFactory class. Since it can't be the idea that you can 
change the resource.hibernate.properties file or resource.hibernate.cfg.xml 
file at runtime caching the configuration at this point seems reasonable to me. 
This would be a simple patch to the getConfiguration method.

Gurus, any objection to this?

Regards,

Johan

  newInstance():87, SAXParserFactory.java
  createXMLReader():46, JAXPHelper.java
  createXMLReaderViaJAXP():125, SAXHelper.java
  createXMLReader():75, SAXHelper.java
  createXMLReader():894, SAXReader.java
  getXMLReader():714, SAXReader.java
  read():435, SAXReader.java
  doConfigure():1343, Configuration.java
  configure():1286, Configuration.java
  createConfiguration():84, HibernateHelper.java
  getConfiguration():60, DbPersistenceServiceFactory.java
  getSessionFactory():83, DbPersistenceServiceFactory.java
  getSessionFactory():76, DbPersistenceService.java
  getSession():80, DbPersistenceService.java
  getSession():464, JbpmContext.java


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

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


[jboss-user] [JBoss Messaging] - Re: ejb3mdb example

2007-03-02 Thread asturn
Ok, apparently the ejb3 mdb support works with the clustered JBoss, but not 
with the standard JBoss! 

I installed JBM 1.2.0 GA in a new installation of JBoss 4.0.5 GA with the 
ejb3-clustered settings and there the ejb3mdb example works. 

Maybe this should be stated in the documentation of the ejb3mdb example. 

Is this intended (ejb3 mdb support ONLY in the clustered JBoss)? 


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

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


[jboss-user] [JBoss Seam] - Re: optimistic locking - exception handling

2007-03-02 Thread mariuszs
You have: anonymous wrote : java.lang.NoClassDefFoundError: 
com/sun/facelets/el/LegacyELContext , so you need el jars in ejb3 and webapp 
module. Put this in ear.

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

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


[jboss-user] [JBossWS] - xsd:any/ binding problem

2007-03-02 Thread ragsta
Hi,
using libraries and tools from Jbossws-1.2.0GA to generate a web service client 
 I found a problem in mapping xsd:any/ wsdl element.

'llreport the fragment that define the web service response message:


  | s:schema elementFormDefault=qualified 
targetNamespace=http://test.it/test;
  | ...
  |   s:element name=Response 
  |  s:complexType
  |   s:sequence
  | s:any minOccurs=0 maxOccurs=1 /
  |   /s:sequence
  | /s:complexType
  |   /s:element
  | ...
  | 

wstools generate for this response a class with this code:


  | public class  Response
  | {
  |   protected javax.xml.soap.SOAPElement _any;
  |   public Response(){}
  | 
  |   public Response(javax.xml.soap.SOAPElement _any){
  | this._any=_any;
  |   }
  |   public javax.xml.soap.SOAPElement get_any()
  |   {return _any ;}
  |   public void set_any(javax.xml.soap.SOAPElement _any)
  |   {this._any=_any; }
  | 
  | }
  | 

when I call the webservice I got a response with this body:


  | soap:Body
  |   Response xmlns=http://test.it/test;
  | root
  |   testhello/test
  | /root
  |   /Response
  | /soap:Body
  | 

Now I'm expecting that the -nay variable is filled with the .. element
but what I obtain is this error:

org.jboss.xb.binding.JBossXBRuntimeException: {http://test.it/test}root not 
found as a child of {http://test.it/test}Response
at 
org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:280)

Please help, I'm going crazy...


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

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


[jboss-user] [JBoss Messaging] - Re: ejb3mdb example

2007-03-02 Thread asturn
Discard the last message! I mixed up the mdb example (which works) with the 
ejb3mdb example (which dose not work, even if I am using the clustered JBoss)!

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

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


[jboss-user] [Remoting] - Re: Connection between servers through JNDI?

2007-03-02 Thread Clarich
I'm sorry for the previous reply. I tested my Server with the wrong Client. 
Could you please delete or (if not possible to delete) ignore this port? Thank 
you

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

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


[jboss-user] [JBoss Portal] - Re: Deployment exception with HelloWorldIPCPortlet.SAR

2007-03-02 Thread rabbuhl
I fixed the deployment problem by changing 
jboss-portal.sar\META-INF\jboss-service.xml.  Specifically, I commented out the 
attribute definition for CacheNaturalId.

Question for the JBoss Portal development team:  should the attribute 
CacheNaturalId be defined in these mbeans?

   !-- The different containers --
  |mbean
  |   
code=org.jboss.portal.core.impl.model.instance.PersistentInstanceContainer
  |   name=portal:container=Instance
  |   xmbean-dd=
  |   xmbean-code=org.jboss.portal.common.system.JBossServiceModelMBean
  |   xmbean/
  |   dependsportal:service=Hibernate,type=Instance/depends
  |   depends
  |  optional-attribute-name=PortletInvoker
  |  
proxy-type=attributeportal:service=PortletInvoker,type=Instance/depends
  |   depends
  |  optional-attribute-name=PortalAuthorizationManagerFactory
  |  
proxy-type=attributeportal:service=PortalAuthorizationManagerFactory/depends
  |   depends
  |  optional-attribute-name=AuthorizationDomainRegistry
  |  
proxy-type=attributeportal:service=AuthorizationDomainRegistry/depends
  |   attribute 
name=SessionFactoryJNDINamejava:/portal/InstanceSessionFactory/attribute
  |   !--attribute name=CacheNaturalIdtrue/attribute--
  |/mbean
  |mbean
  |   
code=org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer
  |   name=portal:container=PortalObject
  |   xmbean-dd=
  |   xmbean-code=org.jboss.portal.common.system.JBossServiceModelMBean
  |   xmbean/
  |   dependsportal:service=Hibernate,type=PortalObject/depends
  |depends
  |  optional-attribute-name=PortalAuthorizationManagerFactory
  |  
proxy-type=attributeportal:service=PortalAuthorizationManagerFactory/depends
  |   depends
  |  optional-attribute-name=AuthorizationDomainRegistry
  |  
proxy-type=attributeportal:service=AuthorizationDomainRegistry/depends
  |   depends
  |  optional-attribute-name=PortalEventListenerRegistry
  |  proxy-type=attributeportal:service=ListenerRegistry/depends
  |   attribute 
name=SessionFactoryJNDINamejava:/portal/PortalObjectSessionFactory/attribute
  |   !--attribute name=CacheNaturalIdtrue/attribute--
  |/mbean

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

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


[jboss-user] [JBoss jBPM] - Re: Stateless Process Engine executor threading issues

2007-03-02 Thread [EMAIL PROTECTED]
jorgemoralespou_2,

you can use jBPM persistent or transiently.  so you have to decide if you want 
persistence first.  you always need a jbpmContext, but in case you don't need 
persistence, you can just parse the process from a file and create instances 
with the ProcessInstance constructor (all inside one or more jbpm context 
blocks)

apart from that, you should not require an engine that drives executions 
through the process.  if you need to feed an external trigger, it means that 
your process behaves as a wait state.  so it's a matter of not using wait 
states to avoid the external signals.  if you create a new process instance and 
signal it, it will run until the end in one go if there are no waitstates 
inside the process.

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

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


[jboss-user] [JBoss Seam] - Re: Cannot use a custom Converter...

2007-03-02 Thread jdijkmeijer
Hmm not sure about the @name thing but I used it as an attribute to the 
managerbean class, and than as innerclass as the converters are very specific 
to the managerbeans.


converter=#{titlemanager.titleconverrter}

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

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


[jboss-user] [Security JAAS/JBoss] - OpenSSO integration

2007-03-02 Thread nscendoni
Hi all, 

we are looking for integrating JBoss/JBoss Portal with OpenSSO, the open source 
version of Access Manager (distribuited with CDDL license).

OpenSSO (or Access Manager) is one of most advanced 
authentication/authorization system with a lot of Authentication Modules 
implemented (such as Smart Card) and features, and a powerful management web 
interface.

We are implementing a JAAS authentication Module (on JBoss AS), a UserModule 
and a RoleModule (on JBoss Portal) which delegates the user/role management to 
OpenSSO.

We'd like to release the code on an Open Source licence. Is this interesting 
for the JBoss/JBoss Portal Users?

Nicola

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

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


[jboss-user] [JBoss Portal] - OpenSSO integration

2007-03-02 Thread nscendoni
Hi all, 

we are looking for integrating JBoss/JBoss Portal with OpenSSO, the open source 
version of Access Manager (distribuited with CDDL license).

OpenSSO (or Access Manager) is one of most advanced 
authentication/authorization system with a lot of Authentication Modules 
implemented (such as Smart Card) and features, and a powerful management web 
interface.

We are implementing a JAAS authentication Module (on JBoss AS), a UserModule 
and a RoleModule (on JBoss Portal) which delegates the user/role management to 
OpenSSO.

We'd like to release the code on an Open Source licence. Is this interesting 
for the JBoss/JBoss Portal Users?

Nicola

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

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


[jboss-user] [Remoting] - Re: Connection between servers through JNDI?

2007-03-02 Thread Clarich
A change from multiplex protocol to socket causes a lot of logging messages but 
does run. 

The other way round it does not. When killing a server that runs socket 
protocol and then restart it with multiplex protocol, it will not be detected 
by a JNDI and my Client is not able to connect to it. I need to restart the 
Server to be able to connect to it again.

Here are the dumps I see:

*restarted server with same protocol multiplex **


  | reqistering with JNDI server
  | 2007-03-02 13:44:31,526 WARN  [main] 
org.jboss.remoting.detection.jndi.JNDIDetector: Detector: 
org.jboss.remoting.detection.jndi.JNDIDetector could not be loaded because the 
NetworkRegistry is not registered
  | 2007-03-02 13:44:31,526 WARN  [main] 
org.jboss.remoting.detection.jndi.JNDIDetector: This means that only the 
broadcasting of detection messages will be functional and will not be able to 
discover other servers.
  | susseccfully reqistered with JNDI Server
  | 

* client test started **

* server dump after client start 


  | reqistering with JNDI server
  | 2007-03-02 13:44:31,526 WARN  [main] 
org.jboss.remoting.detection.jndi.JNDIDetector: Detector: 
org.jboss.remoting.detection.jndi.JNDIDetector could not be loaded because the 
NetworkRegistry is not registered
  | 2007-03-02 13:44:31,526 WARN  [main] 
org.jboss.remoting.detection.jndi.JNDIDetector: This means that only the 
broadcasting of detection messages will be functional and will not be able to 
discover other servers.
  | susseccfully reqistered with JNDI Server
  | 2007-03-02 13:44:58,057 INFO  
[MultiplexServerInvoker#0m-MasterServerSocket[addr=/127.0.0.1,localport=1101]] 
org.jboss.remoting.transport.multiplex.MultiplexingManager: starting static 
threads
  | 2007-03-02 13:44:58,354 INFO  [pending actions:-32439] 
org.jboss.remoting.transport.multiplex.MultiplexingManager: 
Socket[addr=/127.0.0.1,port=3692,localport=1101]: entering unRegisterSocket()
  | 2007-03-02 13:44:58,354 INFO  [pending actions:-32439] 
org.jboss.remoting.transport.multiplex.MultiplexingManager: 
Socket[addr=/127.0.0.1,port=3692,localport=1101]: leaving unRegisterSocket()
  | 2007-03-02 13:44:58,354 INFO  [pending actions:-32439] 
org.jboss.remoting.transport.multiplex.MultiplexingManager: 
Socket[addr=/127.0.0.1,port=3692,localport=1101]: entering unRegisterSocket()
  | 2007-03-02 13:44:58,354 INFO  [pending actions:-32439] 
org.jboss.remoting.transport.multiplex.MultiplexingManager: 
Socket[addr=/127.0.0.1,port=3692,localport=1101]: leaving unRegisterSocket()
  | 2007-03-02 13:44:58,792 INFO  [input:-32439] 
org.jboss.remoting.transport.multiplex.InputMultiplexor: java.io.IOException: 
An existing connection was forcibly closed by the remote host
  | 2007-03-02 13:44:58,792 INFO  [input:-32439] 
org.jboss.remoting.transport.multiplex.InputMultiplexor: java.io.IOException: 
An existing connection was forcibly closed by the remote host
  | 2007-03-02 13:44:58,792 ERROR 
[MultiplexServerInvoker#0v-VirtualServerSocket[local address=/127.0.0.1:1101, 
remote address=/127.0.0.1:3697]] 
org.jboss.remoting.transport.multiplex.MultiplexServerInvoker: Failed to accept 
socket connection
  | java.io.IOException: An existing connection was forcibly closed by the 
remote host
  | at sun.nio.ch.SocketDispatcher.read0(Native Method)
  | at sun.nio.ch.SocketDispatcher.read(Unknown Source)
  | at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
  | at sun.nio.ch.IOUtil.read(Unknown Source)
  | at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
  | at 
org.jboss.remoting.transport.multiplex.InputMultiplexor$MultiGroupInputThread$GroupProcessor.processChannel(InputMultiplexor.java:332)
  | at 
org.jboss.remoting.transport.multiplex.InputMultiplexor$MultiGroupInputThread.doRun(InputMultiplexor.java:293)
  | at 
org.jboss.remoting.transport.multiplex.utility.StoppableThread.run(StoppableThread.java:54)
  | 2007-03-02 13:44:58,792 ERROR 
[MultiplexServerInvoker#0v-VirtualServerSocket[local address=/127.0.0.1:1101, 
remote address=/127.0.0.1:3697]] 
org.jboss.remoting.transport.multiplex.MultiplexServerInvoker: Failed to accept 
socket connection
  | java.io.IOException: An existing connection was forcibly closed by the 
remote host
  | at sun.nio.ch.SocketDispatcher.read0(Native Method)
  | at sun.nio.ch.SocketDispatcher.read(Unknown Source)
  | at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
  | at sun.nio.ch.IOUtil.read(Unknown Source)
  | at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
  | at 
org.jboss.remoting.transport.multiplex.InputMultiplexor$MultiGroupInputThread$GroupProcessor.processChannel(InputMultiplexor.java:332)
  | at 
org.jboss.remoting.transport.multiplex.InputMultiplexor$MultiGroupInputThread.doRun(InputMultiplexor.java:293)
  | at 
org.jboss.remoting.transport.multiplex.utility.StoppableThread.run(StoppableThread.java:54)
  | 2007-03-02 13:44:58,792 ERROR 

[jboss-user] [JBossWS] - Re: JbossWS 1.2.0

2007-03-02 Thread [EMAIL PROTECTED]
I didn't realize your first post. 
In case you want to populate the context from within a handler, it's passed in 
as a parameter.


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

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


[jboss-user] [JBossWS] - Re: Web Services and an Isolated Classloader

2007-03-02 Thread [EMAIL PROTECTED]
http://jira.jboss.org/jira/browse/JBWS-1556

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

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


[jboss-user] [JBossWS] - Re: jboss WS-Security deployment descriptor (jboss-wsse-serv

2007-03-02 Thread [EMAIL PROTECTED]
http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#WS-Security

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

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


[jboss-user] [JBossWS] - JBossWS-1.2.0.GA Installer available

2007-03-02 Thread [EMAIL PROTECTED]
We have replaced the manual install procedure for jbossws-1.2.0.GA with an 
automated install script. The updated binary distribution is available on the 
project download page 

http://labs.jboss.com/file-access/default/members/jbossws/downloads/jbossws-1.2.0.GA.zip

Version: jbossws-1.2.0.GA

Installation instructions
=

This distribution ships with JBoss binaries for JDK1.4 and JDK1.5.
Please make sure your chose the right distribution that fits your target JDK.

In order to install JBossWS the following steps are necessary:

1.) Copy ant.properties.examples to ant.properties
2.) Modify the target container location in ant.properties
3.) Execute one of the following

ant deploy-jboss50
ant deploy-jboss42
ant deploy-jboss40
ant deploy-jboss40-jdk14
ant deploy-tomcat

Please consult the wiki for detailed up to date install instructions
http://labs.jboss.com/portal/jbossws/

After the jbossws.sar is deployed you should be able to access JBossWS under
http://localhost:8080/jbossws

If you have any questions, please post to the userforum:
http://www.jboss.org/index.html?module=bbop=viewforumf=200

Enjoy,
The JBossWS Team

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

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


[jboss-user] [JBoss Seam] - Re: 1.2.0GA- Where has

2007-03-02 Thread jazir1979

ahh, thank u kindly!  i was looking at the 1.2.0 doco pre-patch1, it's all 
updated now.

cheers,
daniel.

[EMAIL PROTECTED] wrote : It's been replaced.  Here's the new components.xml 
entry:
  | 
  | web:multipart-filter create-temp-files=true 
  |   |   max-request-size=100 
  |   |   url-pattern=*.seam/
  | 
  | You also need to add Seam Filter to web.xml:
  | 
  | filter
  |   |   filter-nameSeam Filter/filter-name
  |   |   filter-classorg.jboss.seam.web.SeamFilter/filter-class
  |   | /filter
  |   | 
  |   | filter-mapping
  |   |   filter-nameSeam Filter/filter-name
  |   |   url-pattern/*/url-pattern
  |   | /filter-mapping 

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

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


[jboss-user] [JBoss Seam] - Re: IceFaces with Seam Mail

2007-03-02 Thread karthikjboss
My template is no different from the one that comes with the mail example of 
Seam.
Mail Template:
=
m:message xmlns=http://www.w3.org/1999/xhtml;
   xmlns:m=http://jboss.com/products/seam/mail;
   xmlns:h=http://java.sun.com/jsf/html;

  m:from name=Peter address=[EMAIL PROTECTED] /
  m:to name=#{person.firstname} 
#{person.lastname}#{person.address}/m:to
  m:subjectTry out Seam!/m:subject
  m:body
  h:outputText value=Dear #{person.firstname} /,
You can try out Seam by visiting http://labs.jboss.com/jbossseam.
Regards
Peter
/m:body
/m:message

Menu Items:
==
ice:form xmlns=http://www.w3.org/1999/xhtml;
xmlns:ui=http://java.sun.com/jsf/facelets;
xmlns:h=http://java.sun.com/jsf/html;
xmlns:f=http://java.sun.com/jsf/core;
xmlns:s=http://jboss.com/products/seam/taglib;
xmlns:ice=http://www.icesoft.com/icefaces/component;
   ice:panelGroup id=menuPanel styleClass=formBorderHighlight
ice:menuBar orientation=horizontal
ice:menuItem value=Top level 
ice:menuItem value=Child 1 / 
/ice:menuItem  
/ice:menuBar
   /ice:panelGroup
/ice:form

When I remove child 1 Item or move the child 1 to parent Level, I don't get the 
error.


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

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


[jboss-user] [JBoss Seam] - How to instantiate a Seam class out of a backing bean

2007-03-02 Thread hamtho2
Hi,

how do I instantiate a stateless Seam Bean out of another Seam backing bean, so 
that all Seam-annotation are still included?

Thomas

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

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


[jboss-user] [EJB 3.0] - there is a very simple entity bean generator for mysql

2007-03-02 Thread johnhollon

  | package com.jdi.dbport.utils;
  | import java.sql.*;
  | import java.io.*;
  | 
  | /**
  |  * Create Entity Bean (byte code) from existing tables in database.
  |  * This generator can only generate basic code for programming, so 
  |  * you should optimize the generated code.
  |  * before you use this tool, be sure that there is a folder called
  |  * 001_JDI_Generate_EntityBean_TEMP in the root of C hard driver.
  |  * @author CHR
  |  *
  |  */
  | 
  | public class GenerateEntityBeans {
  | private static String packageName = com.jdi.persistence;
  | private static String directory = 
C:\\001_JDI_Generate_EntityBean_TEMP\\;
  | 
  | StringBuffer start = new StringBuffer()
  | .append(/** Generated Entity Bean - YOU SHOULD OPTIMIZE IT - Copyright 
(C) ??? */\n);
  | 
  | StringBuffer packagingAndImporting = new StringBuffer()
  | .append(package  + packageName + ; + \n +
  | import javax.persistence.*; \n +
  | import java.util.*; \n +
  | import java.sql.*; \n +
  | import java.math.*;\n\n);
  | 
  | private StringBuffer doGenerateClassName(String tablename,String 
classname){
  | String classdeclaring = 
  | @Entity \n  +
  | @Table(name=\ + tablename + \) \n  +
  | public class  + classname +{\n;
  | StringBuffer mainclasstext = new 
StringBuffer().append(start).append(packagingAndImporting);
  | mainclasstext.append(classdeclaring);
  | return mainclasstext;
  | }
  | 
  | private StringBuffer doGenerateProperties(String columnname, String 
datatype, String keytype, 
  | String nullable, String defaultvalue){
  | String useddatatype;
  | String compareString = datatype.concat(1);
  | //Integer,Int,Mediumint,tinyint,smallint as int
  | 
if(compareString.substring(0,7).equalsIgnoreCase(Integer)||compareString.substring(0,3).equalsIgnoreCase(Int)||
  | 
compareString.substring(0,9).equalsIgnoreCase(MEDIUMINT)||compareString.substring(0,8).equalsIgnoreCase(SMALLINT)||
  | 
compareString.substring(0,7).equalsIgnoreCase(TINYINT))
  | useddatatype = int;
  | //bigint as long
  | else if(compareString.substring(0,6).equalsIgnoreCase(BIGINT))
  | useddatatype = long;
  | //float,double,decimal,real,numeric as double
  | else 
if(compareString.substring(0,5).equalsIgnoreCase(FLOAT)||compareString.substring(0,6).equalsIgnoreCase(DOUBLE)||
  | 
compareString.substring(0,7).equalsIgnoreCase(DECIMAL)||compareString.substring(0,4).equalsIgnoreCase(REAL)||
  | 
compareString.substring(0,7).equalsIgnoreCase(NUMERIC))
  | useddatatype = double;
  | //char, varchar, date, datetime, timestamp as String
  | else 
if(compareString.substring(0,4).equalsIgnoreCase(CHAR)||compareString.substring(0,7).equalsIgnoreCase(VARCHAR)||
  | 
compareString.substring(0,4).equalsIgnoreCase(DATE) 
||compareString.substring(0,8).equalsIgnoreCase(DATETIME) ||
  | 
compareString.substring(0,9).equalsIgnoreCase(TIMESTAMP))
  | useddatatype = String;
  | else useddatatype = String;
  | String propertiesclaring1 = \tprivate  + useddatatype +   + 
columnname + ;\n;
  | String propertiesclaring2 = [EMAIL PROTECTED](name=\+ 
columnname +\)\n;
  | String propertiesgetter = \tpublic  + useddatatype +  get + 
columnname + (){\n\t\treturn  + columnname +;\n\t}\n;
  | String propertiessetter = \tpublic void  + set + columnname 
+ ( + useddatatype +   + columnname + ){\n\t\tthis. + columnname +  =   
+ columnname + ;\n\t}\n\n;
  | String propertiesID = [EMAIL PROTECTED]@GeneratedValue\n;
  | StringBuffer propertiesText = new 
StringBuffer().append(propertiesclaring1);
  | if(keytype!=null  keytype.equalsIgnoreCase(PRI))
  | propertiesText.append(propertiesID);
  | 
propertiesText.append(propertiesclaring2).append(propertiesgetter).append(propertiessetter);
  | return propertiesText;
  | }
  | 
  | private StringBuffer doGenerateJavaCode(Connection conn, String 
tablename,String classname){
  | StringBuffer javaCode = new StringBuffer();
  | javaCode.append(doGenerateClassName(tablename,classname));
  | String querycolumns = show columns from  + tablename;
  | try{
  | Statement stmt = conn.createStatement();
  | ResultSet rs = 

[jboss-user] [Clustering/JBoss] - Re: JNDI vs. HA-JNDI lookups

2007-03-02 Thread [EMAIL PROTECTED]
Possibilities include:

1) Don't mark the bean as clustered if you don't want it clustered.  The only 
clustering behavior an SLSB has is failover and loadbalancing; if you don't 
want that then there is no point making the bean clustered.

2) Only deploy the bean on the server you want, or deploy it in 
deploy-hasingleton so it's only active on one server.

3) Use FirstAvailable or FirstAvailableIdenticalAllProxies as your load balance 
policy.  These will give varying degrees of server affinity, although the 
server they initially pick is still random, and each client will independently 
pick.

4) Some custom load balance policy, perhaps along with a custom interceptor 
that tells the policy which server to target.

The solution depends on what you want; i.e. why load balancing is bad and what 
server you want the call to go to.

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

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


[jboss-user] [JBossWS] - Re: JbossWS 1.2.0

2007-03-02 Thread matienzar
I've solve it with this code:
public class HibernateWS extends GenericSOAPHandler {

@Override
public boolean handleFault(MessageContext msgContext) {
UserTransaction _tx = null;
try {
if (msgContext.containsKey(hibernateTrx)){
_tx = 
(UserTransaction)msgContext.get(hibernateTrx);
_tx.rollback();
}
} catch (Exception e) {
Log.error(No se ha podido hacer el rollback, e);
throw new RuntimeException(e);
}
return super.handleFault(msgContext);
}

@Override
protected boolean handleInbound(MessageContext msgContext) {
try {
HibernateUtil.openSession();
UserTransaction _tx = (UserTransaction) new 
InitialContext()
.lookup(java:comp/UserTransaction);
_tx.begin();
msgContext.put(hibernateTrx, _tx);
} catch (Exception e) {
Log.error(Cogiendo la transacción., e);
}
return true;
}

@Override
protected boolean handleOutbound(MessageContext msgContext) {
UserTransaction _tx = null;
try {
if (msgContext.containsKey(hibernateTrx)){
_tx = 
(UserTransaction)msgContext.get(hibernateTrx);
_tx.commit();
}
} catch (Exception e) {
Log.error(Haciendo el commit, e);
try {
if(_tx != null)
_tx.rollback();
} catch (Exception e2) {
Log.error(Haciendo el rollback, e2);
}
throw new RuntimeException(e);
}
return true;
}
}

I use Jboss 4.0.5

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

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

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


[jboss-user] [JBoss Seam] - Re: Explicit conversation id problem

2007-03-02 Thread raffaele.camanzo
Hi Gavin,


I added the issue and the test case, you can find them here:
http://jira.jboss.com/jira/browse/JBSEAM-976

I'm also trying to create a test case for the forum post:
http://www.jboss.com/index.html?module=bbop=viewtopict=102935

in order to understand if I can better explain what happens in my application, 
but, please can you have a glance at that, maybe I misunderstood something...

Thank you.


Hi Lle,

the problem is this one: in the documentation (6.6) there's a description of 
the Seam behaviour when multiple calls are made on the @Begin method of a 
conversation with a given ID; the behaviour expected is to avoid to call more 
than once the @Begin method, i.e. the first request which needs the creation of 
a conversation with a given ID causes the @Begin method call, further requests 
on that ID should skip the execution of such method; but this seems not to 
happen (at least to me).

the solution is straightforward: even if the @Begin method is called more than 
once Seam retrieves the correct conversation with it's status, then:


  | 
  | private boolean passed = false;
  | 
  | @Begin(join=true, id=whateveryouneed)
  | public String startConversation() {
  | if(! passed) {
  |passed = true;
  |// initialization here
  | }
  | }
  | 

Regards,
Raffaele Camanzo


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

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


[jboss-user] [Clustering/JBoss] - Re: JNDI vs. HA-JNDI lookups

2007-03-02 Thread Marlig
Actually, load-balancing is not bad at all. It's just that our testers should 
test the system before it goes into production, and they should of course test 
a system that is as close to the final production version as possible. 

This pretty much rules out all the options you have mentioned. But that's not 
really a problem, we can live with it. Though it would have been nice if the 
tester could have called the server and would have known exactly where the call 
went to. No need to search through the logs afterwards to find out where the 
call actually went to.

Anyway, I've learnt something new about JBoss clustering, and that's fine. :-)

Cheers
Martin

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

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


[jboss-user] [JBoss jBPM] - Re: Stateless Process Engine executor threading issues

2007-03-02 Thread jorgemoralespou_2
Perfect. I worked out an engine with what you have told me, and everything 
works now as I expected.
Thank you two very much for your help.

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

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


[jboss-user] [JBoss Seam] - Seam 1.1.6 and Hibernate validation problem

2007-03-02 Thread frehan
Hi!

I have a registration page for users to register. The entity class uses 
@Email to validate the entered email adress. 

In my registration jsp form I use   s:validateAll arround the input fields.
and the email  is a none required field. So it could be empty but if entered it 
must validate to a correct adress.

When i try to save the entity with an empty email field I get the following 
error.

Caused by: org.jboss.tm.JBossRollbackException: Unable to commit, tx=Transaction
Impl:XidImpl[FormatId=257, GlobalId=seit1497/470, BranchQual=, localId=470] stat
us=STATUS_NO_TRANSACTION; - nested throwable: (javax.persistence.PersistenceExce
ption: org.hibernate.AssertionFailure: null id in se.camitz.par.User entry 
(don't flush the Session after an exception occurs))
at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:372)
at org.jboss.tm.TxManager.commit(TxManager.java:240)
at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(Serve
rVMClientUserTransaction.java:140)
at org.jboss.seam.jsf.AbstractSeamPhaseListener.commitOrRollback(Abstrac
tSeamPhaseListener.java:287)
... 35 more

I get an org.hibernate.AssertionFailure failure telling me that my entity has a 
null Id..
IF I enter a correct email then everything works fine.

Does anybody know why I get this kind of error?

Best regards Fredrik

 




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

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


[jboss-user] [JBoss Seam] - Re: Excel support in Seam: any interest?

2007-03-02 Thread fhh
Just to clarify: Jasper is fine for reporting. That's it. You define the design 
of a report and then the numbers and some formating is converted to Excel.

But in my company (and I guess everywhere else, too) people do not want simple 
preformated reports. They want to be able to work with the data, analyze, move 
columns around. This is not really possible in Jasper.

I think there are at least three huge advantages in having that taglib:

1.) Currently we use odbc datasources in Excel documents a lot. But this means 
that we pass database passwords around which is not really nice. And there is 
no really flexible way to specify filters on queries within excel documents.

2.) We are deling with the 65000 Row limit every day - even less for Pivot 
tables.  If Excel is withdrawing data directly we usually have to get them at 
the lowest level so they can be aggregated by Excel pivot.

If I had a taglib we could just ask the user what aggregation he wants and then 
he would download a file with just the data he needs.

3.) If the templating thing would work then I could offload the design and 
creation of reports to the controllers themselves. They would just send me a 
version of there Excel file exactly as they would like to see it and tell me 
which data they want to be copied in there. No time wasted on beautifying 
things.

@mjek2: If there is anything I can contribute I would be glad to do so. I have 
some expreience with JExcelApi. Have you some code to share?

Regards

Felix

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

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


[jboss-user] [JBoss Seam] - Re: IceFaces with Seam Mail

2007-03-02 Thread petemuir
So you aren't trying to render ice tags to a mail are you?  The call the Mail 
Template directly?

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

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


[jboss-user] [JBoss Seam] - Re: IceFaces with Seam Mail

2007-03-02 Thread petemuir
Sorry, you call the mail template with Renderer.instance.render(Mail 
Template);?

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

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


[jboss-user] [JBoss Seam] - clear object from conversation

2007-03-02 Thread damianharvey
I have an IceFaces CRUD-all-on-one page with the current object stored in a 
conversation. When I save the record it persists ok but the values remain in 
the form-fields. My method is annotated with @End however something else is 
obviously required to clear out this object.

Can someone point me in the right direction?

Thanks,

Damian.

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

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


[jboss-user] [JBoss jBPM] - Re: Stateless Process Engine executor threading issues

2007-03-02 Thread kukeltje
@Tom,

You mean to just use nodes that signal the token themsellves once initially 
triggerd? That is what their example does and that example does not 
scale now I'm lost completely...

@Jorge,

Can you describe or better give an example of what you did for others to see

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

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


[jboss-user] [JBoss Seam] - Re: IceFaces with Seam Mail

2007-03-02 Thread karthikjboss
I am not using the menus in the mail template. The IceFaces menus are there in 
the page which has a button which invokes the mail. So the mail doesn't have 
menu items.
Also I invoke using renderer.render(/simple.xhtml);

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

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


[jboss-user] [JBoss Seam] - Re: IceFaces with Seam Mail

2007-03-02 Thread petemuir
Weird, an ice faces bug I guess.  Can you file a JIRA issue under ICE Faces 
integration.  If you can supply a test case that will help

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

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


[jboss-user] [JBoss jBPM] - Swimlane asssignment

2007-03-02 Thread gscheibel
Hi all! I having the following problem:
When I have two tasks in diferents task nodes using the same swimlane, jbpm is 
not invoking the assign handler from swimlane when it reaches the second task.

here is my jpdl:

  | process-definition xmlns=urn:jbpm.org:jpdl-3.1 name=webtest
  |swimlane name=swim1
  |   assignment class=swim.Swim1/
  |/swimlane
  | start-state name=start
  | transition name=ok to=task1 /
  | /start-state
  | end-state name=end1 /
  | task-node name=task1
  | task name=task1 swimlane=swim1/
  | transition name=t1 to=end1 /
  | transition name=tr2 to=task2 /
  | event type=node-enter
  | action name=action1 class=action.Action1 /
  | /event
  | event type=node-leave
  | action name=action2 class=action.Action2 /
  | /event
  | /task-node
  | task-node name=task2
  | task name=task2 swimlane=swim1/
  | transition name=ok to=end1 /
  | /task-node
  | /process-definition
  | 


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

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


[jboss-user] [JBoss Seam] - Back button after logout - solved through Seam?

2007-03-02 Thread hamtho2
Hi,

I just included the Seam Security into my application and I´m really thrilled 
about the very easy and effective solution to all the security issues. I like 
the redirect-to-protected-pages-through-login-page-feature especially. It´s 
always a common problem and it´s so easy this way.

This is really the first really good webbased security system, I´ve seen so 
far. Congratulations to this.

But I come to another standard web-application-problem: pressing the back 
button after logout. Is there an elegant way through the seam security feature 
to prevent users from seeing protected pages with pressing the back-button?

I know, that there are some options for preventing the browser from caching 
(e.g. through jsp:scriptlet), as the usual meta-tags aren´t enough in most 
cases, but I think this is not a very elegant solution and I´d prefer to set 
these header-information through something like the SeamServlet or the 
FacesServlet.

Is there already anything included in Seam? If not, wouldn´t that be anything, 
that should be included?

Thanks for your answers

Thomas

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

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

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


[jboss-user] [Remoting] - Re: SSLHandshakeException when connecting to JNDI

2007-03-02 Thread Clarich
Thank you Ron. I exchanged the detection packages in may application with those 
from the CVS repository and used the new Constructor. And voila it runs. 
Thanks a lot.

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

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


[jboss-user] [JBoss Seam] - Re: Setting up an ajax4jsf + trinidad project

2007-03-02 Thread hamtho2
Be careful, which version of Seam you are using: The one atao is using is for 
Seam 1.1.6 whereas dustismo´s is for 1.2.0.

But as far as I can see from the exception you simply did not include the 
trinidad-jars properly. Check if you´ve got both jars, the impl and the api 
and also include them in your manifest.mf of your jar.

Thomas

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

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

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


[jboss-user] [JBoss Seam] - Re: Error javascript in s:selectDate

2007-03-02 Thread bsmithjj
No - I haven't installed the 'Seam Resource Servlet' I can't see anything in 
the 1.2 Docs, Chapter 24. Seam JSF controls that says I should.  Are you 
saying I need to install this by asking if I have?  If it needs to be installed 
to use the Seam JSF tags then that's a bug in the docs - the docs clearly state 
that I need to install the 'Seam Filter' to use s:fileUpload/...

Thanks

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

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


[jboss-user] [Remoting] - Connecting to EJB on JBoss without using jboss jars

2007-03-02 Thread forumer
JBoss-4.0.4-CR2 with EJB3, JDK5

I have an EJB installed on JBoss server. A client needs to connect to this EJB 
and retrieve some Value Object classes. These Value Object classes are not 
dependent on any of the jboss classes.

Presently, I have specified JBoss as the JNDI provider in the property file for 
initialContext. So I have to include many of the jboss client, AOP, Aspect 
jars. I'd like to make this client more generic and not be dependent on jboss 
jars.

Is there a default JNDI provider that comes with JDK5 that I can use for this 
purpose? What properties, and their values, should I specify in the 
initialContext provider file. I searched and couldn't find a jndi.properties in 
the JDK 5 distribution.

Thanks in advance for your help.

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

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


[jboss-user] [JBoss Messaging] - Failed to download and/or install client side AOP stack / Co

2007-03-02 Thread pdestrais
Hi,

I just installed the latest JBoss messaging 1.2 as a replacement to JBossMQ.
In our application, in the processing of an MDB, we are creating a 
acknowledgement message that we submit on a queue.
When the message is created on the queue (through Spring's JMSTemplate), we get 
this error :

2007-03-02 15:36:46,290 ERROR [org.jboss.jms.client.JBossConnectionFactory] 
Failed to download and/or install client side AOP stack
org.jboss.jms.util.MessagingNetworkFailureException: Failed to connect client
at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createClient(ClientConnectionFactoryDelegate.java:288)
at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$getClientAOPStack$aop(ClientConnectionFactoryDelegate.java:222)
at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.getClientAOPStack(ClientConnectionFactoryDelegate.java)
at 
org.jboss.jms.client.ClientAOPStackLoader.load(ClientAOPStackLoader.java:67)
at 
org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:199)
at 
org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:88)
at 
org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:83)
at 
org.springframework.jms.core.JmsTemplate.createConnection(JmsTemplate.java:760)
at 
org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:420)
at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:477)
at 
com.notary.app.taxsocnot.notice.jms.XmlSenderImpl.send(XmlSenderImpl.java:42)
at 
com.notary.app.taxsocnot.notice.jms.XmlSenderImpl.send(XmlSenderImpl.java:37)
at 
com.notary.app.taxsocnot.notice.service.NoticeManagerImpl.sendNotificationAck(NoticeManagerImpl.java:608)
at 
com.notary.app.taxsocnot.notice.service.NoticeManagerImpl.receiveNotification(NoticeManagerImpl.java:544)
at 
com.notary.app.taxsocnot.notice.service.NoticeManagerImpl$$FastClassByCGLIB$$7e317016.invoke()
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at 
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:685)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
at 
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
at 
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:623)
at 
com.notary.app.taxsocnot.notice.service.NoticeManagerImpl$$EnhancerByCGLIB$$d5118cf3.receiveNotification()
at 
com.notary.app.taxsocnot.notice.service.impl.NoticeFacadeImpl.processNotification(NoticeFacadeImpl.java:95)
at sun.reflect.GeneratedMethodAccessor289.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
at 
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
at $Proxy65.processNotification(Unknown Source)
at 
com.notary.app.taxsocnot.notice.service.ejb.ReceivePRNOTIFBean.onMessage(ReceivePRNOTIFBean.java:72)
at sun.reflect.GeneratedMethodAccessor286.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
at 
org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:495)
at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
at 
org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:116)
at 
org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
at 

[jboss-user] [JBoss Portal] - Re: wsrp and remote resources

2007-03-02 Thread karink
Hi
according to this documentation 
http://dev2dev.bea.com/pub/a/2006/12/writing-jsr-168-portlets.html
 it is correct to use
PortletRequest.getContextPath and to use PortletResponse.encodeUrl to encode 
the URL

If there is another way (which works with WSRP) could you please send
me a code snippet.


Regards Karin

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

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


[jboss-user] [JBoss Seam] - Re: Req: I18N mail function

2007-03-02 Thread petemuir
For the message body you *should* be able to just set the encoding as per 
normal for facelets.   I haven't heard this failing but... please test :)

Can you create a JIRA issue for the headers (a sample mail would be great - 
attach the plain text source to the issue).

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

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


[jboss-user] [JBoss Seam] - Documentation on how to set up Seam together with Trinidad a

2007-03-02 Thread hamtho2
Hi @all,

After I spent a lot of time in setting up Seam, Trinidad, Facelets and ajax4jsf 
together and want to share my experiences with others I set up a small 
wiki-page at the apache-wiki yesterday, in which I wrote a short description 
about what I did to make Seam, Trinidad, Facelets and ajax4jsf work together.

Anyone who is interested in how to set up these components to work together or 
has some ideas to improve this settings is invited to have a look at the 
following url and share his ideas.

You will find it at

http://wiki.apache.org/myfaces/TrinidadSeamAjax4JsfFaceletDetail

I hope it helps some people to get these great components together.

Thomas

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

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


[jboss-user] [JBoss Seam] - Re: Argh! Attribute access

2007-03-02 Thread pbrewer_uk
For anyone else that runs into this problem - it occurs because it is not 
permitted to call a method of a List implementation - you can only access its 
index. The following example will fail with the error mentioned previously.

E.g. SummingList.java

  | public class SummingList extends ArrayListInteger {
  |   ...
  |   public Long getSum() {
  | Long sum = 0L ;
  | for (Integer value : this) {
  |   if (value != null) {
  | sum += value ;
  |   }
  | }
  | return sum ;
  |   }
  |   ...
  | }
  | 

SummingList.xhtml

  |   ...
  |   h:outputText value =#{summingList.sum} /
  |   ...
  | 

The workaround is to move the extra functionality to outside the list, e.g.

  | public class SummingList {
  | 
  |   public void setList(ListInteger list) {...}
  |   public ListInteger getList() {...}
  | 
  |   public Long getSum() {...}
  | 
  | }
  | 


This looks like a facelets bug/ strange implementation choice to me:

LegacyELContext.java extract:

  | /* Line 137*/if((base instanceof List) || base.getClass().isArray())
  | /* Line 138*/return getPropertyResolver().getValue(base, 
Integer.parseInt(property.toString()));
  | 



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

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


[jboss-user] [JBoss Eclipse IDE (users)] - DRLRuleEditor and Eclipse RCP

2007-03-02 Thread finalshadowz
Hello,

I am making a basic editor with Eclipse RCP and I would like to use the 
DRLRuleEditor class, not the DRLRuleEditor2. How should I process ?

Thx

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

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


[jboss-user] [JBoss Seam] - Re: Using s:selectItems with a list of entities

2007-03-02 Thread petemuir
This is fixed in 1.2.0 

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

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


[jboss-user] [JBoss Seam] - @In(create = true) @Out works fine in 1.1.5.GA and not in 1.

2007-03-02 Thread msystems

  | @Stateful
  | @Name(accountBean)
  | public class AccountBean implements AccountLocal {
  | @PersistenceContext
  | private EntityManager em;
  | 
  | @In(create = true) @Out
  | private User userDomain;
  | 
  | @In(required = false)
  | private Locale localeDomain;
  | 
  | @Out(required = false)
  | private Account accountDomain;
  | 
  | @Begin
  | public String begin() {
  | return accountCreateAgreement;
  | }
  | 
  | public String acceptDisclaimer() {
  | userDomain.setDisclaimerAcceptDate(new Date());
  | 
  | return accountCreateForm;
  | }
  | 
  | public String validatePageRequest() {
  | if ((userDomain != null)  (userDomain.isDisclaimerAccepted())) {
  | return null;
  | } else {
  | return cancel();
  | }
  | }
  | 
  | @End
  | public String create() {
  | if (!userDomain.isDisclaimerAccepted()) {
  | return cancel();
  | }
  | 
  | try {
  | em.createNamedQuery(user.findByUsername)
  | .setParameter(username, userDomain.getUsername())
  | .getSingleResult();
  | 
  | // User exists
  | FacesMessages.instance().addFromResourceBundle(username, 
FacesMessage.SEVERITY_ERROR, usernameExists);
  | return null;
  | } catch (NoResultException e) { // Ignore
  | } catch (NonUniqueResultException e) { } // Ignore - can never occur
  | 
  | User user = 
UserType.MEMBER.getUserWithDependencies(this.userDomain);
  | user.getUserSettings().setLocale(localeDomain);
  | 
  | GregorianCalendar validToDate = new 
GregorianCalendar(localeDomain.getJavaLocale());
  | 
validToDate.setTimeZone(TimeZone.getTimeZone(localeDomain.getTimeZone()));
  | validToDate.set(GregorianCalendar.AM_PM, GregorianCalendar.AM);
  | validToDate.set(GregorianCalendar.HOUR, 0);
  | validToDate.set(GregorianCalendar.HOUR_OF_DAY, 0);
  | validToDate.set(GregorianCalendar.MINUTE, 0);
  | validToDate.set(GregorianCalendar.SECOND, 0);
  | validToDate.set(GregorianCalendar.MILLISECOND, 0);
  | validToDate.add(GregorianCalendar.DAY_OF_MONTH, 31);
  | 
  | accountDomain = user.getAccount();
  | accountDomain.setValidTo(validToDate.getTime());
  | 
  | em.persist(user);
  | 
  | // Encode password
  | Md5PasswordEncoder passwordEncoder = new Md5PasswordEncoder();
  | user.setPassword(passwordEncoder.encodePassword(user.getPassword(), 
user.getId()));
  | 
  | return accountCreateWelcome;
  | }
  | 
  | @End
  | public String cancel() {
  | return accountCreateCancel;
  | }
  | 
  | @Remove @Destroy
  | public void destroy() {
  | }
  | }
  | 

1.1.5.GA
Seam creates one instance of userDomain and for each method call
Seam injects the same instance of userDomain.

1.2.0.PATCH1
For each method call Seam creates a new instance of userDomain.

Can anybody here tell me what's going on?

Thanks,
/Kenneth


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

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


[jboss-user] [Tomcat, HTTPD, Servlets JSP] - turning on access logging on virtual hosts

2007-03-02 Thread teknokrat
My understanding is that you can set up virtual hosts just by declaring them in 
jboss-web.xml. However, if you want access logs for these you still have to 
define them in server.xml and add the access logging valve to them.

Is this correct? is it possible to add access logging to a virtual host using 
context.xml or via some mechanism that does not require server.xml to be 
touched?

thanks.

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Hibernate mapping for table associations with duplicate colu

2007-03-02 Thread ummerh
We have a table design where child table (Program) has composite PRIMARY 
KEY(brandId,programId), it has a FOREIGN KEY(brandId) to table (Brand) and 
another FOREIGN KEY(brandId,programGroupId) to table(ProgramGroup). If you 
notice carefully here, you'll find that brandId is a repeated column in all the 
relationships. So when creating Java Objects we have to repeat the brandId in 
all the JPA annotations (@JoinColumn(name=BRD_BRAND)).

Since we repeat the column name, we are forced to use options 
(insertable=false, updatable=false) while defining the fields. This prevents us 
from saving the objects successfully with their relationships.

How can we resolve this? We would like to have these objects support 
persist() method.

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

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


[jboss-user] [JBoss Seam] - conversation pattern

2007-03-02 Thread codelion
Been working on this for a while, so this isn't an aimless question.

Face to face I'd ask:  What do you want to hear first, the purpose, or the 
question(s)?  Let's have the question(s) first.

Questions:

In 6.3. Starting conversations with GET requests it says There is also an 
end-conversation element.

From sources or reading I believe to understand end-conversation causes an 
isLongRunningConversation flag to be set to false.  That flag will be acted 
upon at the end of the render response phase to destroy the conversation 
context, which then will be considered temporary.  Q1: Is that correct?

Now, further and as I hope is right, if on that page I have some link, button, 
navigation or whatever that has a (why not named s:propagation?) 
s:conversationPropagaion type=begin or a propagation=begin then that begin 
causes the same isLongRunningConversation flag to be set to true.  That flag 
will be acted upon at the end of the render response phase to store the 
conversation context, which then will be considered long running.  Q2: Is that 
correct?

If Q1 and Q2 were correct, then if I get into the habit of for each my.xhtml 
into its my.page.xml to put

page
  |   end-conversation/
  | ...

then I'll have an application where conversations in general are ending, except 
if I am choosing to being one for a link, button, navigation or whatever, which 
would then only last until the next page, unless I again choose to being one.  
Q3: That should work?

Q4: There isn't a way of having an application default by

pages
  |   end-conversation/
  | ...

or something like it, is there?

The purpose is that I feel more comfortable with ending conversation as default 
when there are many options to leave a page.  E.g. menus in sidebars.

Q5: Will there be a significant difference in how such an application works 
with the back button?

Q6: If the conversation context gets destroyed, then a page you back button to 
won't be fully functional, or will it?

I might be willing to live with that side effect.

As an alternative, I'd like a

page
  |   dont-propagate-conversation/
  | ...

or a

pages
  |   dont-propagate-conversation/
  | ...

which would be different from end-conversation in that it doesn't destroy but 
keeps around that conversation context, in case one comes back with a 
back-button.  Q7: Any chance we'll get that?

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

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


[jboss-user] [JBoss jBPM] - Database change script from 3.1 to 3.2

2007-03-02 Thread camunda
Hi!

There are some changes in the database from jbpm 3.1 to 3.2. For the Hibernate 
hbm2ddl it seems a little bit complicated, because he drops a lot of foreign 
keys and on my local computer he has not finished that yet, after 8 hours now!!

Is there some out of the box conversion skript? Which I can look at and execute 
by hand?

Would be nice
Thanks
Bernd

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

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


[jboss-user] [JBoss jBPM] - Re: Swimlane asssignment

2007-03-02 Thread kukeltje
Correct, that is the behaviour as it is currently implemented. This has already 
been discussed in the forum and there even is a feature request in Jira to make 
this configurable. Vote for it if you want it implemented. 

Since I in a good mood, I looked it up for you 
http://jira.jboss.com/jira/browse/JBPM-743

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

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


  1   2   3   >