[jboss-user] [JBoss Messaging] - Re: Queue configuration

2006-09-06 Thread [EMAIL PROTECTED]
toddjtidwell, would you be interested to contribute some of these features?

Let us know. Cheers,


sacha

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

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


[jboss-user] [Installation, Configuration Deployment] - JBOSS deploy cannot success

2006-09-06 Thread design2006
When i deploy the webapp using JBOSS 4.0.4, after success deploy EJB, it should 
follow by deploy validation rules. But it gives me error: 

ERROR [MessageResourcesFactory] MessageResourcesFactory.createFactory
java.lang.NoClassDefFoundError: org/apache/struts/util/MessageResourcesFactory
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at 
org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:672)
at 
org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:652)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at 
org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:190)
at 
org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131)
at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399)
at 
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:517)
at 
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)


when i paste the struts library in the server\default\lib folder, it gives me 
ClassCastException. Anyone have idea about this? thanks.

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

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


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

2006-09-06 Thread jkoek
Sorry for my late response.

But I don't want to inject a different LoginModule.

I want to use the default LoginModule.

My deployment may not be portal specific. 
So I want to call the /portal/j_security_check from within my own portlet.

Jeroen.

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

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


[jboss-user] [JCA/JBoss] - getting No ManagedConnections available within config

2006-09-06 Thread raghuram.b
Hi All,

 We are getting the below Exception . 
 Can any one Help us , why this Exception 
 is happening  and what is the resoultion for this exception?

ERROR [LogInterceptor] EJBException, causedBy:
org.jboss.util.NestedSQLException: No ManagedConnections available within config
ured blocking timeout ( 3 [ms] ); - nested throwable: (javax.resource.Resour
ceException: No ManagedConnections available within configured blocking timeout
( 3 [ms] ))
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(Wrapp
erDataSource.java:106)

Thanks
Raghuram

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

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


[jboss-user] [JBoss jBPM] - only one part may be specified if a type defines the content

2006-09-06 Thread developerdev
Hi

While going through the code of PortConsumer.java I came acroos this issue that 
I can't call a downstream web service (doc/lit ) if it's input message has more 
than one part specifying content as type.

I have such downstream web service and I wish to call that from jbpem-bpel 
engine.

Furter I am changing the code of PortProvider.java to support publishing the 
bpel process as doc/literal webservice. Do I need to add the above constraint 
while reading input soap message

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

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


[jboss-user] [JBoss Portal] - Re: How to add portlets in a new portal?

2006-09-06 Thread Antoine_h
Look at the user documentation : in the chapters about the descriptors.
And the one about the helloworld portlet/example.
there are good explainations there...


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

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


[jboss-user] [Management, JMX/JBoss] - InokerAdaptorException in calling 'invoke' method

2006-09-06 Thread chanyungwan
I have a 3.2.7 JBoss server 'A' with a registered MBean running on Linux 4 
Enterprise Server.  I then use another 3.2.7 JBoss server 'B' with another 
registered MBean running on Win2000 PC.  I want to invoke the mbean method in 
serevr 'A' from the mbean in server 'B' using the following code:

Hashtable env = new Hashtable();
env.put(java.naming.factory.initial, 
org.jnp.interfaces.NamingContextFactory);
env.put(java.naming.factory.url.pkgs, org.jboss.naming:org.jnp.interfaces);
env.put(java.naming.provider.url, 192.168.10.231);
try
{   
InitialContext initialContext = new InitialContext(env);
javax.management.MBeanServerConnection m_localRMIAdaptor = 
(javax.management.MBeanServerConnection)initialContext.lookup(jmx/rmi/RMIAdaptor);
ObjectName m_singletonMBeanObjectName = new 
ObjectName(jboss.jmx:service=emmb);
Object oo = m_localRMIAdaptor.invoke(m_singletonMBeanObjectName, 
getHashCode, null, null);
if(oo != null) System.out.println(ok, get result 1...);   
}
catch(Exception e) { e.printStackTrace(); }

However, I get the following exception

14:54:47,416 INFO  [STDOUT] javax.management.MBeanException: org.jboss.jmx.conne
ctor.invoker.client.InvokerAdaptorException
14:54:47,416 INFO  [STDOUT] at org.jboss.mx.server.ReflectedDispatcher.handl
eInvocationExceptions(ReflectedDispatcher.java:91)
14:54:47,416 INFO  [STDOUT] at org.jboss.mx.server.ReflectedDispatcher.dispa
tch(ReflectedDispatcher.java:64)
14:54:47,416 INFO  [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invoc
ation.java:62)
14:54:47,416 INFO  [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invoc
ation.java:54)
14:54:47,416 INFO  [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocat
ion.java:82)
14:54:47,416 INFO  [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invo
ke(AbstractMBeanInvoker.java:198)
14:54:47,416 INFO  [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MB
eanServerImpl.java:473)
14:54:47,416 INFO  [STDOUT] at org.jboss.invocation.jrmp.server.JRMPProxyFac
tory.invoke(JRMPProxyFactory.java:164)
14:54:47,416 INFO  [STDOUT] at sun.reflect.GeneratedMethodAccessor66.invoke(
Unknown Source)
14:54:47,416 INFO  [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invo
ke(DelegatingMethodAccessorImpl.java:25)
14:54:47,432 INFO  [STDOUT] at java.lang.reflect.Method.invoke(Method.java:5
85)
14:54:47,432 INFO  [STDOUT] at org.jboss.mx.server.ReflectedDispatcher.dispa
tch(ReflectedDispatcher.java:60)
14:54:47,432 INFO  [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invoc
ation.java:62)
14:54:47,432 INFO  [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invoc
ation.java:54)
14:54:47,432 INFO  [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocat
ion.java:82)
14:54:47,432 INFO  [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invo
ke(AbstractMBeanInvoker.java:198)
14:54:47,432 INFO  [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MB
eanServerImpl.java:473)
14:54:47,432 INFO  [STDOUT] at org.jboss.invocation.local.LocalInvoker.invok
e(LocalInvoker.java:97)
14:54:47,432 INFO  [STDOUT] at org.jboss.invocation.InvokerInterceptor.invok
eLocal(InvokerInterceptor.java:115)
14:54:47,432 INFO  [STDOUT] at org.jboss.invocation.InvokerInterceptor.invok
e(InvokerInterceptor.java:101)
14:54:47,432 INFO  [STDOUT] at org.jboss.jmx.connector.invoker.client.Invoke
rAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:60)
14:54:47,432 INFO  [STDOUT] at org.jboss.proxy.SecurityInterceptor.invoke(Se
curityInterceptor.java:55)
14:54:47,432 INFO  [STDOUT] at org.jboss.proxy.ClientMethodInterceptor.invok
e(ClientMethodInterceptor.java:55)
14:54:47,432 INFO  [STDOUT] at org.jboss.proxy.ClientContainer.invoke(Client
Container.java:86)
14:54:47,432 INFO  [STDOUT] at $Proxy102.invoke(Unknown Source)
14:54:47,447 INFO  [STDOUT] at sccMonitorHandler$compositeSingletonInvokerCl
ient.invoke(sccMonitorHandler.java:1086)


If the above code is running in 3.2.5, everything is fine.  Are there any 
configurations I missed ?  By the way, the above code also runs fine in a 
standalone client when invoking mbean method in 3.2.7 JBoss.

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

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


[jboss-user] [JBoss Portal] - Re: Preview link on Management portlet broken

2006-09-06 Thread Antoine_h
It is normal that the cache is done (at least) by user, no ?

and reversely, it is normal that if you call another browser window from a 
first browser window, that this new one is in the same session and keeps the 
same user login.
I would not like to have to login each time I open en link with open in a new 
window menu item of my browser.

well... the problem is that when logged has an admin to create a page, then, 
the easy feature to directly open it as an admin will not be as well as using 
it idependently as a regular user (the admin may not have access to this view 
etc...).

I would suggest to open it once with the easy feature, copy the link... and 
then open another new browser (from scratch), to view it as another user.




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

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


[jboss-user] [JBoss jBPM] - Re: jbpm.war with jboss-4.0.4.GA - How to... Pleae help ???

2006-09-06 Thread bertrand.njiipwo
Hello @all, hello alex,

tanks for your kick answer and statement.

I'm running know jbpm-bpel-1.1-beta1 with jboss-4.0.4-AG and i'm facing the 
same problem AlClientView described hier when triying to deploy a process 
definition (hello.par) to JBoss. He get it worked and i'll need help to fix 
this error.

Thanks once again.


Bertrand Njipwo

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

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


[jboss-user] [EJB 3.0] - Re: Problem calling SLSBs from isolated EARs

2006-09-06 Thread ferenc.hechler
The behaviour for CallByValue is described in

http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration

as:

 Call By Value

   1. caller does ejb.someMethod()
   2. invocation is marshalled - the parameters are turned into ObjectStream? 
(a byte[])
   3. container with a different classloader unmarshalls - byte[] - java 
Objects - including classloading
   4. invocation is passed through ejb container
   5. container does bean.someMethod()
   6. result is marshalled - the return value is turned into ObjectStream?
   7. result is unmarshalled using the caller's classloader - byte[] - java 
Object
   8. result is return to the caller


If a call proxy.f(myType) is done via Call By Value in step 2. the parameter 
myType should be serialized.
I modified MyType to debug de-/serialization:

public class MyType implements Serializable {
  |   public String str;
  |   private void writeObject(ObjectOutputStream out) throws IOException
  |   {
  | // debug
  | out.defaultWriteObject();
  |   }
  | 
  |   private void readObject(ObjectInputStream in) throws IOException, 
ClassNotFoundException
  |   {
  | in.defaultReadObject();
  | // debug
  |   }
  | }


If a call via remote interface is made from a client-java-app the writeObject() 
and readObject() methods get called.
If a call is made from inside a SLSB (local interface) neither method gets 
called.
So the step 2. (marshall parameters) is missing.

Did I miss something in the configurations?

conf/jboss-service.xml:
...
  | mbean code=org.jboss.naming.NamingService name=jboss:service=Naming 
xmbean-dd=resource:xmdesc/NamingService-xmbean.xml
  |   attribute name=CallByValuetrue/attribute 
  |   attribute name=Port1099/attribute 
  |   attribute name=BindAddress${jboss.bind.address}/attribute 
  |   attribute name=RmiPort1098/attribute 
  |   attribute name=RmiBindAddress${jboss.bind.address}/attribute 
  |   depends optional-attribute-name=LookupPool 
proxy-type=attributejboss.system:service=ThreadPool/depends 
  | /mbean
  | ...

deploy/ear-deployer.xml:
server
  |   mbean code=org.jboss.deployment.EARDeployer 
name=jboss.j2ee:service=EARDeployer
  | attribute name=Isolatedtrue/attribute 
  | attribute name=CallByValuetrue/attribute 
  |   /mbean
  | /server

EAR1: META-INF/jboss-app.xml:
jboss-app
  | loader-repositorymydomain:loader=mycomponent1/loader-repository
  | /jboss-app

EAR2: META-INF/jboss-app.xml:
jboss-app
  | loader-repositorymydomain:loader=mycomponent2/loader-repository
  | /jboss-app



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

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


[jboss-user] [JBoss Messaging] - Re: Queue configuration

2006-09-06 Thread thebreeze
Good to see this is getting attention :)

I appreciate that clustering is important - in fact I have couple of customers 
who are waiting for it.  However, for them the DLQ is an absolute must have.  
Without the DLQ we cannot have MDBs processing a queue, even in a single node 
environment.  

The situtation for the customer I'm working with that started this thread is 
that we would accept two standalone messaging servers rather than a clustered 
pair for our availability requirements - so long as we had a DLQ ...

I guess this is a round about way of saying that for us a DLQ is higher 
priority than clustering.

Unfortunately I am currently working flat out on a couple of projects so my 
ability to contribute towards making it happen is severly limited (quite happy 
to run our tests again if anyone does make progress on the DQL ;)

Cheers,

Andy  

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

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


[jboss-user] [Installation, Configuration Deployment] - How do I load a resource (my.properties) file from the deplo

2006-09-06 Thread rameshsr
I want to put a configuration file (my.properties) into the JBOSS's deploy 
folder along with my war/ear file. I don't want to package my properties file 
inside the jar/war/ear since it contains configuration details, which would 
change during deployment.

From my class file, which lives inside a war file, how do I load the 
my.properties file?


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

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


[jboss-user] [JBoss Portal] - persistent changes in jboss portal administrator

2006-09-06 Thread vgarcia
Hi,

First of all, sorry for my english, i'm spanish.

When i make changes in my portal in jboss portal using the administrator i lose 
the changes when i restart the jboss. How can i do this chenges persistent.

Thanks.

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

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


[jboss-user] [JBossWS] - Re: JBossWS and xdoclet with ejb

2006-09-06 Thread MmarcoM
THanx alex, it worked just fine!!

regards
 marco

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

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


[jboss-user] [JBoss AOP] - aop and eclipse rcp

2006-09-06 Thread favez
Hi, 

I'need to use jboss aop with eclipse rcp. I need to have an jboss-aop.xml file 
per plug-in and I need dynamic load-time. 
Each plugin having is own classloader, I need to be able to load aspect(s) 
during application execution (for exemple, create a plug-in with an jboss aop 
extension point and each plug-in that need to use jboss-aop extends this 
extension point. That will allow the jboss aop plugin to control get the 
class loader of each plug-in extending jboss-aop.)

So I need to load dynamicly the class loader, to be able to modifiy byte code 
during application. 
I see that calling AspectManager.instance() ; load the aspect definition found 
in file Meta-Inf/jboss-aop.xml.
Now I need to load in bytecode de modification. 

How can I do that in my java code ?



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

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


[jboss-user] [JBoss Portal] - Re: persistent changes in jboss portal administrator

2006-09-06 Thread hauch
Hi,

In the relevant *-object.xml:
change
if-existsoverwrite/if-exists
to
if-existskeep/if-exists



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

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


[jboss-user] [JBoss Seam] - Re: Seam-managed persistence context set-up in Tomcat - help

2006-09-06 Thread Cvirko
I want to use JPA with Hibernate, Seam, JSF RI 1.2 Facelets and Tomcat. I want 
to use JavaBean, no Session Beans. I have everything set up. I am just 
struggling with Persistence Context. My persistence.xml is

persistence
  | persistence-unit name=fossEntityManager
  | providerorg.hibernate.ejb.HibernatePersistences/provider
  | jta-data-sourcejava:/fossDatasource/jta-data-source
  | properties
  | property name=hibernate.show_sql value=true/
  | /properties
  | property name=hibernate.cache.provider_class 
value=org.hibernate.cache.HashtableCacheProvider/
  | property name=jboss.entity.manager.factory.jndi.name 
value=java:/fossEntityManagerFactory/ 
  | /persistence-unit
  | /persistence
  | 

My components.xml file is
components
  | component name=org.jboss.seam.core.init
  | property name=myFacesLifecycleBugfalse/property
  | property name=jndiPattern#{ejbName}/local/property
  | /component
  | 
  | component class=org.jboss.seam.core.Microcontainer installed=true/
  | 
  | component 
name=org.jboss.seam.core.init.managedPersistenceContextsfossEntityManager/component
  | 
  | component class=org.jboss.seam.core.Ejb installed=true/
  | 
  | !-- Added Seam-managed persistence context --
  | component name=fossEntityManager 
  |   class=org.jboss.seam.core.ManagedPersistenceContext
  | property 
name=persistenceUnitJndiNamejava:/fossEntityManagerFactory/property
  | /component
  | /components
  | 

I even added

component 
name=org.jboss.seam.core.init.managedPersistenceContextsfossEntityManager/component

And then in my JavaBean class I have following line

@In(create=true) EntityManager fossEntityManager;

and I am still getting error:

java.lang.IllegalArgumentException: EntityManagerFactory not found
  | ...
  | Caused by: javax.naming.NameNotFoundException: fossEntityManagerFactory not 
bound
  | 

What am I doing wrong. I though that microcontainer would take care of JNDI 
mapping. Where else am I suposed to register EntityManagerFactory?

I was using 

Perstince.createEntityManagerFactory(
  | fossEntityManager)

and it worked fine. However, I would like to use Seam-managed PC. Any help 
appreciated. Thanks

Tomas

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

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


[jboss-user] [JBoss Messaging] - Re: Queue configuration

2006-09-06 Thread timfox
Getting the DLQ to work is really a rather simple task too.

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

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


[jboss-user] [JBoss Seam] - Re: Can you merge multiple annotations in one?

2006-09-06 Thread bfo81
Thanks for your hints.

But I think I'll give it up (for now). There are too many other problems to 
handle with at the moment (JSF Chart Creator doesn't render images, AJAX4JSF 
doesn't change the values of SelectMenus correctly, ...) and I'm short of time.

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

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


[jboss-user] [EJB 3.0] - Re: EJB3 WebServices

2006-09-06 Thread leonell
Hello Doug,
ANT output is from (other) example:


  | package cz.qds.wsdemo.sbi;
  | 
  | import javax.jws.WebService;
  | import javax.jws.WebMethod;
  | import java.rmi.Remote;
  | import java.rmi.RemoteException;
  | import javax.jws.soap.SOAPBinding;
  | import javax.jws.soap.SOAPBinding.Style;
  | 
  | @WebService
  | @SOAPBinding(style=Style.RPC)
  | public interface ExampleRemote extends Remote
  | {
  |@WebMethod int add(int x, int y);
  |@WebMethod int subtract(int x, int y);
  | }
  | 

Thanks,
Leonell

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

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


[jboss-user] [JBoss Portal] - Re: i18n problem

2006-09-06 Thread Antoine_h
the default feature may have a bug or has no been tested yet with the use of 
chinese characters. but before : make sure of that : What is the exception ? 
what do it say ?

may be, to work around, you can set the title in the portlet code, instead of 
using the default feature provide with jboss portal (that takes it from the 
descriptor and put it in the title).

the code method is response.setTitle(my_title);
(in the doView method)

if you want to be able to change this title from the descriptor (and not modify 
the code each time you want to change it), then you can use in the portlet code 
a value that is taken from :
 - the resource bundle related to the portlet : you set the title in a property 
that you get when you do the setTitle method. (see the example in the user 
document. If I remember well, there is a resource bundle example with the title 
defined in this file.
 - an init-parameter of the portlet. The same way, you get it in the code and 
set the title with it.

feel free to ask more details if this is not clear or not compliant with what 
you want to do.

I am working on a i18n portal. Now it will be english and french, but I will 
have to make the chinese version... sooner or later.
I build it from the begining to be able to be translated in chinese (and many 
languages).
so any other problem you may encounter are welcome to know and see if I can 
help to solve it : I can see in advance what won't be easy when adding the 
chinese version.

Talking in the forum is better for sharing the experience. if needed, you can 
also contact me : http://www.sysemo.com/Sysemo-consultant-Antoine-Herzog.php


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

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


[jboss-user] [JBoss Portal] - Re: jboss portal 2.4GA HTML editor can not process chinese i

2006-09-06 Thread Antoine_h
Please, could you give more explaination : where to change it ?
other related question : is it the page edited (???) ? the html page of the 
portal ? or the page of the portlet and the javascript module that make the 
editor ?

do you know a way to configure the javacript module that make the editor ?
With this, it could be configure on the fly, meaning when the file from the 
cms is loaded : if a chinese version, set the chinese parameters needed, if 
english or ... set the corresponding parameters

Thank you,

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

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


[jboss-user] [EJB 3.0] - NOTYETINSTALLED + JBoss-4.0.4.GA + dependency

2006-09-06 Thread lpiccoli
hi all,

just migrated to Jboss 4.0.4GA. And my app is failing to deploy with the 
following error.

  | ObjectName: 
jboss.j2ee:ear=asset.ear,jar=business.ejb3,name=ReportBean,service=E
  | JB3
  |   State: NOTYETINSTALLED
  |   I Depend On:
  | persistence.units:unitName=as
  | 
  | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  | ObjectName: persistence.units:unitName=as
  |   State: NOTYETINSTALLED
  |   Depends On Me:
  | jboss.j2ee:ear=asset.ear,jar=business.ejb3,name=AssetBean,service=EJB3
  | 
jboss.j2ee:ear=asset.ear,jar=business.ejb3,name=DepreciationBean,service=EJB
  | 3
  | jboss.j2ee:ear=asset.ear,jar=business.ejb3,name=JobBean,service=EJB3
  | jboss.j2ee:ear=asset.ear,jar=business.ejb3,name=ReportBean,service=EJB3
  | 


OK so i gather from the forum that JBoss4.0.4 is stricter on the dependancy 
checking. I have seen a work around for EJB injection using the 
@ignoreDependency but nothing for EntityManagers.

My code is 


  | 
  | @Stateless
  | public class JobBean implements Job {
  | 
  |   @PersistenceContext (unitName=as)
  |   protected EntityManager em;
  | 

I have seen many request on the same topics but no solutions. If there is a 
solution please point it out so it wont be asked again.

thanks

-lp

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

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


[jboss-user] [JBoss Portal] - how to send a Stream out of portal context?

2006-09-06 Thread [EMAIL PROTECTED]
Hello 

since now i used the method org.jboss.portlet.JBossActionResponse.sendStream() 
for opening a pdf in a new browser window out of the portal context. Now in 
version 2.4.0 of the portal this method in commented out. Is there any 
replacement?

regards,
Michael

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

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


[jboss-user] [Messaging, JMS JBossMQ] - MDB stops receiving messages after ActiveMQ is restarted

2006-09-06 Thread lets
My MDB is deployed in JBoss and I'm using ActiveMQ for JMS. When I restarted 
ActiveMQ, MDB stops receiving messages. Can anyone explain me why?

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

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


[jboss-user] [Security JAAS/JBoss] - Password is changed after login

2006-09-06 Thread atamur
I needed permanent login feature for my web app. 
I did it as follows:
Created login module PermanentLoginModule that authenticates user over special 
table in db (user_id, secret). After usual authntication by username and 
pasword, if a special checkbox was checked a cookie with secret is stored in 
user`s browser and  this secret is also stored in db.

When this user comes back my login.jsp forwards user to j_security_check with 
user_id as name and secret as password. Then, request gets into 
PermanentLoginModule and user is authenticated. As a security preventive 
measures this secret is immediatly changed to a new one.

Well, until now looks pretty logical =)

But than I got a serious problem. AFAIU the root of the problem is that Jboss 
stores inside credentials entered by user (user_id and out of date secret) and 
after 30 minutes, when internal cache expires it tries to test this credentials 
over db. And it fails, because user already has new secret.

So. This is my problem (if someone got to this point =)).
Please tell me, what can be done?
And maybe, just maybe I'm wrong and jboss doesn't store entered credentials ...

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

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


[jboss-user] [EJB 3.0] - Re: EJB3 WebServices

2006-09-06 Thread Doug.Palmer
Can you post your ant script too?  It still looks like you are missing some 
jars.  Did you include the jars from server/all/deploy/jbossws.sar and 
server/all/deploy/ejb3.deployer?

Regards
Doug

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

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


[jboss-user] [EJB 3.0] - Re: EJB3 WebServices

2006-09-06 Thread leonell
Yes. But this is Netbeans project, parameters for script are readed from 
project.properties file:
File: project.properties:

  | application.args=
  | build.classes.dir=${build.dir}/classes
  | build.classes.excludes=**/*.java,**/*.form
  | # This directory is removed when the project is cleaned:
  | build.dir=build
  | build.generated.dir=${build.dir}/generated
  | # Only compile against the classpath explicitly listed here:
  | build.sysclasspath=ignore
  | build.test.classes.dir=${build.dir}/test/classes
  | build.test.results.dir=${build.dir}/test/results
  | debug.classpath=\
  | ${run.classpath}
  | debug.test.classpath=\
  | ${run.test.classpath}
  | # This directory is removed when the project is cleaned:
  | dist.dir=dist
  | dist.jar=${dist.dir}/JbossWS-EJB3Demo-SBI.jar
  | dist.javadoc.dir=${dist.dir}/javadoc
  | 
file.reference.activation.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/activation.jar
  | 
file.reference.antlr-2.7.6.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/antlr-2.7.6.jar
  | 
file.reference.autonumber-plugin.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/autonumber-plugin.jar
  | 
file.reference.avalon-framework.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/avalon-framework.jar
  | 
file.reference.bcel.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/bcel.jar
  | 
file.reference.bindingservice-plugin.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/bindingservice-plugin.jar
  | 
file.reference.bsf.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/bsf.jar
  | 
file.reference.bsh-1.3.0.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/bsh-1.3.0.jar
  | 
file.reference.bsh-deployer.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/bsh-deployer.jar
  | 
file.reference.cglib.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/cglib.jar
  | 
file.reference.commons-collections.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/commons-collections.jar
  | 
file.reference.commons-httpclient.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/commons-httpclient.jar
  | 
file.reference.commons-logging.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/commons-logging.jar
  | 
file.reference.ejb3-persistence.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/ejb3-persistence.jar
  | 
file.reference.hibernate-annotations.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/hibernate-annotations.jar
  | 
file.reference.hibernate-entitymanager.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/hibernate-entitymanager.jar
  | 
file.reference.hibernate3.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/hibernate3.jar
  | 
file.reference.hsqldb-plugin.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/hsqldb-plugin.jar
  | 
file.reference.hsqldb.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/hsqldb.jar
  | 
file.reference.jacorb.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/jacorb.jar
  | 
file.reference.javassist.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/javassist.jar
  | 
file.reference.javax.servlet.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/javax.servlet.jar
  | 
file.reference.javax.servlet.jsp.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/javax.servlet.jsp.jar
  | 
file.reference.jboss-annotations-ejb3.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/deploy/ejb3.deployer/jboss-annotations-ejb3.jar
  | 
file.reference.jboss-backport-concurrent.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/jboss-backport-concurrent.jar
  | 
file.reference.jboss-cache.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/jboss-cache.jar
  | 
file.reference.jboss-common-jdbc-wrapper.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/jboss-common-jdbc-wrapper.jar
  | 
file.reference.jboss-ejb3.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/deploy/ejb3.deployer/jboss-ejb3.jar
  | 
file.reference.jboss-ejb3x.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/deploy/ejb3.deployer/jboss-ejb3x.jar
  | 
file.reference.jboss-hibernate.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/jboss-hibernate.jar
  | 
file.reference.jboss-iiop.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/jboss-iiop.jar
  | 
file.reference.jboss-j2ee.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/jboss-j2ee.jar
  | 
file.reference.jboss-jaxrpc.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/jboss-jaxrpc.jar
  | 
file.reference.jboss-jca.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/jboss-jca.jar
  | 
file.reference.jboss-jsr77.jar=../../../../../var/jboss-4.0.4.GA-ejb3rc8fd/server/all/lib/jboss-jsr77.jar
  | 

[jboss-user] [JBoss AOP] - Re: Problems getting AOP to work on jboss4.0.4GA

2006-09-06 Thread louberl
I found that an incorrect use of xDoclet can lead to errors being generated in 
files like web.xml (and other generated files). Which may result in exceptions 
like this one.
check out http://lists.jboss.org/pipermail/jboss-user/2006-July/003506.html for 
a nice description and a possible solution. Thanks to azhurakousky for solution.


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

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


[jboss-user] [JBossWS] - Re: Newbie question: Just a first webservice client

2006-09-06 Thread dirkschmitz
Hi!

i have a similar problem with my webservice test client using the dynamic 
invocation interface (DII). When I try to run the client within Eclipse I get 
the following Exception

Exception in thread main javax.xml.rpc.ServiceException: Provider 
com.sun.xml.rpc.client.ServiceFactoryImpl not found
at javax.xml.rpc.FactoryFinder.newInstance(FactoryFinder.java:44)
at javax.xml.rpc.FactoryFinder.find(FactoryFinder.java:137)
at javax.xml.rpc.ServiceFactory.newInstance(ServiceFactory.java:58)
at 
de.mtag.ws.samples.client.WebServiceClient.main(WebServiceClient.java:29)

The classpath of the webservice testclient contains the following 
JBoss-Client-Jars

activation.jar
commons-logging.jar
javaassist.jar
jbossall-client.jar
jbossws-client.jar
log4j.jar
mail.jar



Web Service Test Client


  | public class WebServiceClient {
  | 
  | /**
  |  * @param args
  |  */
  | public static void main(String[] args) throws Exception
  | {
  | String urlstr   = args[0];
  | String argument = args[1];
  | 
  | System.out.println(Contacting webservice at  + urlstr);
  | 
  | URL url =  new URL(urlstr);
  | 
  | String ns= http://xx.xxx.ws.samples.services/simple;;
  | QName  qname = new QName(ns, SimpleWS);
  | QName  port  = new QName(ns, SimpleService);
  | QName  operation = new QName(ns, echo);
  | 
  | ServiceFactory factory = ServiceFactory.newInstance();
  | Serviceservice = factory.createService(url, qname);
  | Call   call= service.createCall(port, operation);
  | 
  | System.out.println(SimpleService.echo( + argument + ));
  | System.out.println(output: + call.invoke(new Object[] 
{argument}));
  | 
  | }
  | 
  | }
  | 

Service Endpoint Interface


  | public interface SimpleService {
  | 
  | public String echo(String echo);
  | 
  | }
  | 

Service Endpoint Implementation


  | @WebService(
  | name = SimpleWS,
  | targetNamespace = http://xx.xxx.ws.samples.services/simple;,
  | serviceName = SimpleWS
  | )
  | @SOAPBinding(style = SOAPBinding.Style.RPC)
  | public class SimpleEndpoint implements SimpleService {
  | 
  | @WebMethod
  | public String echo(String theEcho) {
  | return theEcho;
  | }
  | 
  | }
  | 

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

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


[jboss-user] [Installation, Configuration Deployment] - Avoid changes in JBoss installation directory using symlinks

2006-09-06 Thread rtm333
Hi,

We want to set up JBoss AS in a multi-user Solaris 10 environment in such a way 
that no modifications are necessary within the JBoss installation itself. I.e. 
we do not want to place the users' server configurations in $JBOSS_HOME/server.

In our opinion there are (at least) three good reasons for this approach:

1) It keeps a clear separation between the JBoss AS installation and our own 
applications.

2) It avoids granting write permissions for the JBoss installation to the users.

3) It eases the switching between several JBoss releases.


Our first solution approach replaced the server configuration directories by 
symbolic links to the actual directories. E.g.:

ln -s $APP1_HOME/server/app1 $JBOSS_HOME/server/

This works and allows starting the application as if it were physically in the 
$JBOSS_HOME/server directory:

$JBOSS_HOME/bin/run.sh -c app1

But it still requires write permissions to create the symlinks.


What we would prefer is having the symlinks going in the opposite direction. 
Let's call the original JBoss installation directory $JBOSS_INSTALL_HOME. 

ln -s $JBOSS_INSTALL_HOME/bin $APP1_HOME/
  | ln -s $JBOSS_INSTALL_HOME/lib $APP1_HOME/
  | mkdir $APP1_HOME/server

The user's application is placed in $APP1_HOME/server and started with 
($JBOSS_HOME is now pointing to $APP1_HOME):

$JBOSS_HOME/bin/run.sh -c app1

Unfortunately, this does not work as expected. JBoss aborts with a message that 
it can't find jboss-service.xml: 

Failed to boot JBoss:
  | org.jboss.deployment.DeploymentException: url 
file:$JBOSS_INSTALL_HOME/server/app1/conf/jboss-service.xml could not be 
opened, does it exist?

Obviously, JBoss is looking for the file in the physical directory structure 
($JBOSS_INSTALL_HOME) and not in the logical structure ($JBOSS_HOME aka 
$APP1_HOME).

Does anybody know whether this is a bug or works as designed? It might even be 
specific to Solaris 10, where there seems to be a similar effect when cd'ing 
along a symbolic link and then spawning a new ksh. Whereas the parent ksh shows 
the symlink in the pwd, the child shell shows the physical directory.

Any help welcome.



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

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


[jboss-user] [JBoss jBPM] - task assignment when using hierarchical user groups

2006-09-06 Thread bert.w
Hi,

I am using the identity component to organise the users that use my application.

I made a hierarchical order like this:
group: all
   -- group: division1
   -- group: division2
   -- group: division3

also there are 2 kinds of roles a user can have. gebruiker or hoofdgebruiker

The problem i have is when i use this assignment for a task:
assignment expression=group(all) -- member(hoofdgebruiker) /
it only assigns the hoofdgebruiker users that are a member of the parent 
group all, but not the hoofdgebruiker users that are in the subgroups.

Is there an expression to achieve this? Or is the only solution changing the 
Group.getUsers() method, to make this return also the users in the subgroups?

thanks,
BERT

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

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


[jboss-user] [JBoss jBPM] - Re: Possible bug in fork-joins

2006-09-06 Thread gmournos
Thx for the fast reply.

Well, this coupling of forks and joins puts me off a bit.
I would rather that jbpm would be smart enough to figure out that the join is 
joining both parent forks, instead of introducing structural constraints that 
cannot be automatically validated at design time.

Is there an AUTOMATIC way to decouple joins from forks by setting any of the 
flags (e.g. discriminator and NoutofM)? Or an AUTOMATIC way to achieve behavior 
similar to introducing a second join.

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

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


[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Apache workers.properties help please.

2006-09-06 Thread AndrewBoyd
Its still not working but  a little bit of sleep has helped me see at least one 
mistake.

I did not have the loadbalancer in my worker.list but I referenced it in my 
uirworkermap.properties

so now my workers.properties looks like:



  | worker.list=loadbalancer,status
  | 
  | 
  | # Define Node1
  | # modify the host as your host IP or DNS name.
  | worker.node1.port=8009
  | worker.node1.host=node1.howibecameaninternetmillionaire.com
  | worker.node1.type=ajp13
  | worker.node1.lbfactor=1
  | # worker.node1.connection_pool_size=10 (1)
  | 
  | # since inetMillionaire only has one server at this time comment out node2
  | # Define Node2
  | # modify the host as your host IP or DNS name.
  | #worker.node2.port=8009
  | #worker.node2.host= node2.howibecameaninternetmillionaire.com
  | #worker.node2.type=ajp13
  | #worker.node2.lbfactor=1
  | # worker.node1.connection_pool_size=10 (1)
  | 
  | # Load-balancing behaviour
  | worker.loadbalancer.type=lb
  | #worker.loadbalancer.balance_workers=node1,node2
  | worker.loadbalancer.balance_workers=node1
  | 
  | # Status worker for managing load balancer
  | worker.status.type=status
  | 

Any ideas?

Thanks,

Andrew

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

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


[jboss-user] [JBoss jBPM] - jPDL vs. BPEL - I am a bit confused

2006-09-06 Thread rainstar79
Hi jBPM Gurus,
I am a bit confused in one thing. Maybe you can help me.
I am trying to introduce some students BPM and BPEL. It is just to give them a 
short overview about tools, methods, standards,...
Therefore I wanted to set up a jBPM environment to test some things for a 
presentation. I thought, when I install jBPM I can use the Eclipse Plugin to 
model a BPEL file graphically. But I guess that the output is something called 
jPDL. How could you compare this with BPEL? What is more powerfull - BPEL or 
jPDL? What are the restrictions of jPDL? Is there a way (or need) of mapping a 
jPDL after modeling with the graphical tool into BPEL for further processing? 
Can you recomend me a free modeling tool for generating BPEL which works well 
with jBPM? 
Thanks for your help
Rainer

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

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


[jboss-user] [Messaging, JMS JBossMQ] - MDB + durable topic + cluster (failover)

2006-09-06 Thread dooart
Hi there.

I've searched the entire forum and couldn't found a way to configure two 
different clientIDs for a MDB that will be deployed to a two-node cluster. I 
really don't want to configure this at ejb-jar.xml and create two different 
EARs every time that I make a change.

I've tried to configure it too at uil2-service.xml and put this file at the 
deploy directory instead of hasingleton, but it didn't work (the second node 
copied the clientid information and the container raised an exception).

Does anybody knows another way to do this?

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

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


[jboss-user] [EJB 3.0] - Re: New to EJB3 - OnetoOne not creating correct tables!!

2006-09-06 Thread hanland
Fixed it. it helps to have the @Id annotation in the correct place, i.e. on the 
getId not on the declaration of id.

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

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


[jboss-user] [JBoss jBPM] - Can you fool JBPM into thinking the date is in the future?

2006-09-06 Thread robbiewinston
Hello,

Please excuse my ignorance concerning JBPM!  

I am currently testing a web application which heavily uses JBPM.

The UAT Management have a requirement that they should be able to test the 
system outside of real time.

For example, we have JBPM timers with a due date of a month's time.  Rather 
than waiting a month, they would like to fool JBPM into thinking that a month 
has elapsed.

Is this possible?

I have suggested changing the JBPM timer due dates but this is not deemed to be 
acceptable.

Also, I am not allowed to change the server date.

Thanks

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

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


[jboss-user] [JBoss Portal] - Sharing a data among different browser instances

2006-09-06 Thread krishan
Hi,

I am using JBoss portal 2.4,

I have defined a singleton class as follows and copied into the 
jboss/server/default/lib to be used for all the other portlets,

package testcom;

public class Communication {
private static Communication instance = null;
private static String sName = Krishan;

private Communication(String sName)
{
this.sName =sName;
}   

public String getName()
{
return this.sName;
}

public void setName(String pName)
{   
this.sName = pName;
}

 public static Communication getInstance(String pCaller) {
 if(instance == null) {
 String sureName =Fernando;
 instance = new Communication(sureName);
 System.out.println(instance 
is null);
  }
 
 
System.out.println(~pCaller::sName:+sName+::+pCaller);
 
 return instance;
}   
}


In my first senario:

When I access it for the very first time 
as http://localhost:8080/portal, it created a new  Communication instance.

 Communication cm = Communication.getInstance(MyPortlet);   
  writer.write(cm.getName():+cm.getName());  
  cm.setName(Pradeep);
  writer.write(cm.getName():+cm.getName());  


I got the Name as I expected: 
  cm.getName():Fernando 
  cm.getName():Pradeep

and also when I open another browser instance, I got the following result as 
expected.
  cm.getName():Pradeep
  cm.getName():Pradeep

But in my second scenario, When I click on the different portlet Url Tab in the 
same browser instance which is also suppose to display the cm.getName(),

it created the new Communication instance and  give me the following result,
cm.getName():Fernando 

But I was expected following results with out getting creating a new  
Communication instance ;
   cm.getName():Pradeep

I noticed that the url I clicked is contain with the session id values as 
follows,

http://localhost:8080/portal/portal/default/IPC;jsessionid=E5FE54B2057947FC8E77F0D57066F16F

So could you please tell me how can I get the expected data value without get 
creating another instance of a Communication object.(I want it to behave as a 
singleton object)

Thanks,
Krishan




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

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


[jboss-user] [JBossCache] - Re: maxNodes in region question

2006-09-06 Thread [EMAIL PROTECTED]
That is just one node with 5 data keys in it.

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

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


[jboss-user] [JBoss jBPM] - How to access user input variables in actionHandler ?

2006-09-06 Thread ausaran007
Hi all,
I am new to jbpm and I am writing a pilot module in it. I would like to know 
how can I retrieve the variables that I give in my user page. I am having a 
login page where I give certain values and then I need to retrieve the same in 
my actionHandler . How can I do this ?

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

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


[jboss-user] [JBossCache] - Re: Can someone explain how to use maxElement attribute in L

2006-09-06 Thread [EMAIL PROTECTED]
JBCACHE-77 was fixed in 1.4.0.

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

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


[jboss-user] [JBossCache] - Re: why cached objects become not available after leaving un

2006-09-06 Thread [EMAIL PROTECTED]
Please see the JBoss Cache user guide which contains an entire chapter on 
eviction policies.

This certainly sounds like you have an eviction policy emptying your cache.

http://labs.jboss.com/file-access/default/members/jbosscache/freezone/docs/1.4.0/TreeCache/en/html/index.html


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

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


[jboss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-09-06 Thread [EMAIL PROTECTED]
Hi Marc

Which version of JBC are ou using?

Cheers,
Manik

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

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


[jboss-user] [JBoss Seam] - Re: Invitation to try new Seam authentication features

2006-09-06 Thread sbryzak2
msteiner wrote : 
  | During one request RollbackInterceptor is called two times: one with 
AuthenticationException and one with NullPointerException.  Is this ok ?
  | 

I think its ok, although when I have some more time I'll try to take a look.  
In any case, the more I think about it, the more certain I am that this stuff 
will be re-architected as soon as I get a chance.

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

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


[jboss-user] [JBoss Seam] - Re: Invitation to try new Seam authentication features

2006-09-06 Thread sbryzak2
dbatcn wrote : I just noticed the new Seam security stuff which at first 
glance seems like exactly what I'm looking for right now.  Is this scheduled 
for Seam 1.1.0.GA?  Is there an ETA for this?  I'm champing at the bit for this 
but don't think I'm really ready to work with a CVS or nightly build...
  | 
  | As always, RTFM pointers to something I missed while searching humbly 
accepted.

At this stage it's not scheduled for any particular release, it's more of a 
work-in-progress.  I'm totally snowed under with other work for the next few 
weeks, but after that I'm hoping that I'll be able to concentrate purely on 
getting the Seam security API complete.

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

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


[jboss-user] [JBoss jBPM] - Re: How to access user input variables in actionHandler ?

2006-09-06 Thread Hannes
via Context:
executionContext.getContextInstance()
[3.0.x]

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

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


[jboss-user] [EJB 3.0] - Re: EJB3 WebServices

2006-09-06 Thread Doug.Palmer
Your project.properties contains references to the necessary jars but 
javac.classpath does not contain an entry for them.  So they aren't being used 
at compile time.  You need to add them to the javac classpath.

Regards
Doug

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

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


[jboss-user] [JBoss jBPM] - Re: JDK compatibility + migration JBPM 2 - JBPM 3

2006-09-06 Thread [EMAIL PROTECTED]
Maybe this is not the right forum. I'll try to repost it to  Installation, 
Configuration  Deployment, but the issue is still of interest.

Thanks

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

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


[jboss-user] [JBoss jBPM] - Re: How to access user input variables in actionHandler ?

2006-09-06 Thread ausaran007
YeahI tried the same But its throwing null pointer exception. I gave as 

int noOfTerms = (Integer)executionContext.getContextInstance().getVariable(No 
of Terms);

where No of terms is the variable i am trying to retrieve.


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

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


[jboss-user] [Installation, Configuration Deployment] - JDK compatibility + migration JBPM 2 - JBPM 3

2006-09-06 Thread [EMAIL PROTECTED]
Hi,

two issues but somehow related.

I have to develop WF application that is beeing deployed on BEA WL 7 that runs 
JDK1.3. I'm almost sure I read before that jbpm 3.0 could be run on jdk 1.3 but 
now the documentation talks about jdk 1.4.2+.

I read some posts that speak about compiling for 1.3 and all mentioned source 
(jbpm, but also hibernate and dependant libraries) tweeking. I tried to figure 
it out myself, but got several errors (especialy on hibernate side) and gave up.

So, Is it working with 1.3?

If not (and I'm quite conviced so), I'll have to fall back to jbpm 2. If I do 
so will I be able to migrate to 3.1 when my deploy platform upgrades to jdk1.4? 
I saw documentation about migratin process definition and it seems it can be 
done, but is it possible to upgrade the database as well?

I mean, if I have active processes running under jbpm2, will I be able to 
migrate them to jbpm3?

Thanks

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - LazyInitializationException with Spring/Hibernate

2006-09-06 Thread atlanta_al
Hi!

After setting up all my hibernate mappings I can't get rid of the following 
exception:

ERROR [LazyInitializationException] could not initialize proxy - the owning 
Session was closed
org.hibernate.LazyInitializationException: could not initialize proxy - the 
owning Session was closed
at 
org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:60)
at 
org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:102)
at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:160)
at ...bo.AppointmentBO$$EnhancerByCGLIB$$b3086c3e_4.toString()


The application is able to fetch the records from the database but as soon as I 
try to iterate over the PersistentSet it throws the exception stated above.

I read on the Internet that I should use 
org.springframework.aop.framework.ProxyFactoryBean which takes care of 
HibernateSession handling.

My *.hbm.xml files do not contain lazy=true tags. Can someone help me out?

Your help will be greatly appreciated!

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

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


[jboss-user] [JBoss Seam] - ejb-jar.xml in examples

2006-09-06 Thread Eekboom
Currently ejb-jar.xml files in seam examples (1.0.1 GA) use just ejb-jar.
How about adding full, standard-compliant declaration?
ejb-jar 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/ejb-jar_3_0.xsd;
  |  version=3.0

(I had problems with the existing ejb-jar.xmls in IntelliJ IDEA. Of course the 
IDE should work with the current files, and I complained in their JIRA, too. 
OTOH the full declaration is cleaner, isn't it?)

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Mapping String to NVARCHAR2

2006-09-06 Thread alex1234567890
Hi,

I have entities with Memebers of type String. I try to persist these entities 
in a Oracle database.

persistence.xml


  | ?xml version=1.0 encoding=UTF-8?
  | persistence
  |   persistence-unit name=test
  | jta-data-sourcejava:/testDS/jta-data-source
  | properties
  |   property name=hibernate.dialect 
value=org.hibernate.dialect.Oracle9Dialect/
  |   property name=hibernate.hbm2ddl.auto value=validate/
  |   property name=hibernate.cache.provider_class 
value=org.jboss.ejb3.entity.TreeCacheProviderHook/
  |   property name=hibernate.treecache.mbean.object_name 
value=jboss.cache:service=EJB3EntityTreeCache/
  |   property name=hibernate.cache.use_query_cache value=true /
  |   property name=hibernate.show_sql value=true /
  |   property name=jboss.entity.manager.jndi.name 
value=java:/EntityManager/classes/
  |   property name=jboss.entity.manager.factory.jndi.name 
value=java:/managedEntityFactories/classes/
  |   /properties
  |/persistence-unit
  | /persistence
  | 

The tables in the database are already created. At the start of the JBoss I get 
the following Exception:


  | org.hibernate.HibernateException: Wrong column type: sName, expected: 
varchar2(255 char)
  | 

The colum sName has the type nvarchar2 to support unicode. I tried to use a 
jbosscmp-jdbc.xml to create my own type mapping:

jbosscmp-jdbc
  | 
  |defaults
  |   datasourcejava:/testDS/datasource
  |   datasource-mappingmymapping/datasource-mapping
  |/defaults
  | 
  |type-mappings
  |   type-mapping
  |  namemymapping/name
  |  ...
  |  mapping
  | java-typejava.lang.String/java-type
  | jdbc-typeVARCHAR/jdbc-type
  | sql-typeNVARCHAR2(255)/sql-type
  |  /mapping
  |   /type-mapping
  |/type-mappings
  | /jbosscmp-jdbc

In my datasource configuration I use this type mapping:

  | datasources
  |   local-tx-datasource
  | jndi-nametestDS/jndi-name
  | connection-url.../connection-url
  | driver-classoracle.jdbc.driver.OracleDriver/driver-class
  | !-- The login and password --
  | user-name.../user-name
  | password.../password
  | 
  | 
exception-sorter-class-nameorg.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter/exception-sorter-class-name
  | 
  | !-- corresponding type-mapping in the standardjbosscmp-jdbc.xml 
(optional) --
  | 
  |   metadata
  | type-mappingmymapping/type-mapping
  |   /metadata
  |   max-pool-size50/max-pool-size
  | /local-tx-datasource
  |   /datasources
  | 

Why Hybernate don't map java.util.String to NVARCHAR2 with these configuration?
Waht is to do to map String to NVARCHAR2?

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

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


[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Apache workers.properties help please.

2006-09-06 Thread AndrewBoyd
I was looking at my mod-jk.conf:

  | # Load mod_jk module
  | # Specify the filename of the mod_jk lib
  | LoadModule jk_module modules/mod_jk.so
  | 
  | # Where to find workers.properties
  | JkWorkersFile conf/workers.properties
  | 
  | # Where to put jk logs
  | JkLogFile logs/mod_jk.log
  | 
  | # Set the jk log level [debug/error/info]
  | JkLogLevel info
  | 
  | # Select the log format
  | JkLogStampFormat [%a %b %d %H:%M:%S %Y]
  | 
  | # JkOptions indicates to send SSK KEY SIZE
  | JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
  | 
  | # JkRequestLogFormat
  | JkRequestLogFormat %w %V %T
  | 
  | # Mount your applications
  | JkMount /application/* loadbalancer
  | 
  | # You can use external file for mount points.
  | # It will be checked for updates each 60 seconds.
  | # The format of the file is: /url=worker
  | # /examples/*=loadbalancer
  | JkMountFile conf/uriworkermap.properties
  | 
  | # Add shared memory.
  | # This directive is present with 1.2.10 and
  | # later versions of mod_jk, and is needed for
  | # for load balancing to work properly
  | JkShmFile logs/jk.shm
  | 
  | # Add jkstatus for managing runtime data
  | Location /jkstatus/
  | JkMount status
  | Order deny,allow
  | Deny from all
  | Allow from 127.0.0.1
  | /Location
  | 

This line looks like it is not correct:

  | # Mount your applications
  | JkMount /application/* loadbalancer
  | 

I don't have a /application/  directory  does anyone know if this is wrong or 
what I should have this set to?

Thanks,

Andrew

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

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


[jboss-user] [JBoss jBPM] - Re: Possible bug in fork-joins

2006-09-06 Thread jits_1998
I do not think its possible to decouple them completely. But will get some 
ideas on partial de-coupling, by reading the execute method of the Join.

It comes with some options like activating/executing the join on:
1) first token arrival, i.e. discriminator
2) n count token arrival, i.e. nOutOfM
3) it allows for a script to be placed in the join tag of process definition 
xml.
4) can specify exact names of the tokens to expect for activation.
5) simple plain vanilla complete coupling.

thats all for AUTOMATIC decoupling.. or you can write a spl join that will 
check for all active child tokens to be arriving for a join to be 
executed/activated.

hope it helps...


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

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


[jboss-user] [JBoss jBPM] - MessageService and JMS

2006-09-06 Thread mteira
Hello.
I'm interested into implementing a clustered capable workflow system, and 
started reading the user tutorial of jBPM and also some of the source code to 
see how the thing works.

I need to support concurrent  execution for the actions associated with 
parallel tokens into process instances (and also for tokens from different 
process instances). Having into account that I want to run inside a J2EE 
server, I'm observing the following facts:
1.-CommandExecutorThread is not the way to go for me, because it consumes the 
messages in a single thread, so, a Task with two simultaneous Tokens is not 
going to execute the two branches at the same time. I think that with this 
approach, different tasks are not running actions in parallel neither. The 
running thread is another problem to deploy it inside a J2EE application server.
2.-Using DbMessageService as MessageService implementation needs the messages 
to be consumed from a central point. This seems also a not J2EE friendly 
approach. 

So, I think that the most natural way to implement it is to use a JMS message 
service, and so, implement MDBs to consume those messages and run the required 
actions, in a similar way CommandExecutorThread is working but only consuming 
the J2EE provided message.
This will probably be a good starting point to provide clustering capabilities, 
since the JMS component can be clustered, and we could consume the messages 
from different J2EE servers. 

Do you think this is a right approach? Any comments about this?


I've also seen that there's a org.jbpm.msg.jms package that seems to be an 
effort to implement just this, a MessageService JMS implementation. But it 
seems it's under construction (as I can see some TODO comments in the code , 
and some methods remain unimplemented). I'm I right. Is this an effort to do 
what I'm trying to do?

Is somebody working into this? Where could I find more information about it?

Regards.


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

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


[jboss-user] [JBoss jBPM] - Re: How to access user input variables in actionHandler ?

2006-09-06 Thread ausaran007
Yeah...I got that right...its to do wth the case mismatching. THanks 

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

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


[jboss-user] [JBoss jBPM] - Re: How to access user input variables in actionHandler ?

2006-09-06 Thread hoogenbj
BTW, the autoboxing is what's producing the NullPointerException. NULL cannot 
be assign to primitive int.

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

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


[jboss-user] [JBoss Portal] - Re: i18n problem

2006-09-06 Thread lws688
Thank you for your helpful reply, Antoine. I solved the problem by modifying 
the first line of portlet.xml to ?xml version=1.0 encoding=gbk? and 
setting title element value to chinese. I found the encoding is the key, if it  
is set to utf-8, the server will throw sax related exception.

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

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


[jboss-user] [JBoss Seam] - Re: Problem with extra action method executing

2006-09-06 Thread sjmenden
Just to let you know, you are not alone.  I am not sure if there is some 
special attribute to the pages.xml xml, however, I ran into the exact same 
problem.   Lessoned learned, don't use pages.xml with a Stateful bean that uses 
pagination, it won't work.  I had to change the way I was doing things because 
I believe what you described above is intended by the pages.xml action.   You 
define pages there so that the corresponding action gets executed EVERY time 
the page is loaded without exception.  

If this breaks your application, then you shouldn't use pages.xml, but look at 
the @Factory method possibly.  Or the pull-style section of the seam 
documentation.

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

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


[jboss-user] [JBoss Portal] - Re: jboss portal 2.4GA HTML editor can not process chinese i

2006-09-06 Thread lws688
it seems that jsports proposal does not work, i tried to modify the HTML 
charset to gbk, utf8 and gb2312, but none works.

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

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


[jboss-user] [Messaging, JMS JBossMQ] - Possible to change MDB msg selector at runtime?

2006-09-06 Thread bhuste1
Is it possible to change the message selector for an Message Driven Bean 
programitically at runtime?  

The use case:

This is a grid computing farm that hosts many different services.  The services 
are loaded and unloaded based on the demand for a particular service.  This is 
an on demand services model where services consume lots of memory and take 
serveral minutes to load so they can not all be loaded all the time.  A compute 
farm request will need to execute several services to fulfill the job.  A 
request will encounter the need for a service that is not loaded on the local 
server but exists on another server.  Therefore, as services are loaded on a 
particular server, I would like to change the MDB message selector to subscribe 
to those requests needing that particular service.

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

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


[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Integrating PHP and JBoss

2006-09-06 Thread AndrewBoyd
Hi,
  Thanks for the response.  I'm a little confused.  What is:

anonymous wrote : jbossweb-1.0.0.GA

I'm using jboss-portal-2.4.0 and I don't see a jbossweb-1.0.0.GA anywhere.

Thanks,

Andrew

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

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


[jboss-user] [Installation, Configuration Deployment] - Changing from localhost to IP address

2006-09-06 Thread creative77
I have been trying to change the bind IP address from localhost to an IP 
address/domain. 

I have been able to change the binding to the IP of the machine that I am 
running JBoss on. However, when I access JBoss with that IP I get a white 
screen, it looks like it accepts the request.

I have a firewall that port forwards to this machine on our network.

How do change the JBoss IP so it responds correctly?

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

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


[jboss-user] [JCA/JBoss] - Re: OracleExceptionSorter and CLOSED CONNECTION exception

2006-09-06 Thread ldevallonne
Hello,

We are using JBoss 4.0.2. I had a look to the OracleExceptionSorter of version 
4.0.5CR1, but this particular error (code 17008) is not caught.

Looking into it, it seems that that the TxConnectionManager returns a closed 
connection to the JMS layer (we use oracle persistency for JMS). The full 
exception looks like :

2006-09-06 12:17:30,868 WARN  
[org.jboss.resource.connectionmanager.TxConnectionManager] Connection error 
occured: [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1157545050652 
permit=true trackByTx=true [EMAIL PROTECTED] [EMAIL PROTECTED]
java.sql.SQLException: Closed Connection
at 
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at 
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at 
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
at 
oracle.jdbc.driver.PhysicalConnection.rollback(PhysicalConnection.java:1133)
at 
org.jboss.resource.adapter.jdbc.local.LocalManagedConnection.rollback(LocalManagedConnection.java:119)
at 
org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource.rollback(TxConnectionManager.java:781)
at 
org.jboss.tm.TransactionImpl$Resource.rollback(TransactionImpl.java:2166)
at 
org.jboss.tm.TransactionImpl.rollbackResources(TransactionImpl.java:1728)
at org.jboss.tm.TransactionImpl.rollback(TransactionImpl.java:384)
at org.jboss.tm.TxManager.rollback(TxManager.java:323)
at 
org.jboss.mq.sm.jdbc.JDBCStateManager$JDBCSession.close(JDBCStateManager.java:626)
at 
org.jboss.mq.sm.jdbc.JDBCStateManager.checkLoggedOnClientId(JDBCStateManager.java:336)
at 
org.jboss.mq.sm.AbstractStateManager.addLoggedOnClientId(AbstractStateManager.java:187)
at 
org.jboss.mq.server.JMSDestinationManager.getID(JMSDestinationManager.java:207)
at 
org.jboss.mq.server.JMSServerInterceptorSupport.getID(JMSServerInterceptorSupport.java:77)
at 
org.jboss.mq.server.TracingInterceptor.getID(TracingInterceptor.java:71)
at org.jboss.mq.server.JMSServerInvoker.getID(JMSServerInvoker.java:78)
at 
org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:135)
at 
org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:369)
at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:377)
at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
at java.lang.Thread.run(Thread.java:570)


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

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


[jboss-user] [JBoss Seam] - Issue with instance variable not being injected/created in D

2006-09-06 Thread appendix
Hi,

I'm implementing a DecisionHandler for a workflow definition.
The class should act just as a demonstrator and is really simple. 

  | @Name(bpm.patientRegisterGoalHandler)
  | @Interceptors(SeamInterceptor.class)
  | public class PatientRegisterGoalHandler implements DecisionHandler{
  | 
  | @In(value=registryData, create=true)
  | private RegistryData data;
  | 
  | public PatientRegisterGoalHandler() {
  | log.debug(= PatientenRegisterGoalHandler constructor);
  | }
  | 
  | public String decide(ExecutionContext arg0) throws Exception {
  | log.debug(= PatientRegisterGoalHandler decide called);
  | log.debug(RegistryData: +data);
  | if (data.getCountPatient()10) return true;
  | return false;
  | }
  | }
  | 

Whenever the corresponding workflow instance is created, the decide methode is 
called, but throws an NullPointerException at the point data is being 
accessed.
My impression was that seam should instantiate the injected value, if it's null 
(when invoked with create=true). I added the debug logging and it shows, that 
the variable data is indeed null [1].

Two questions:
1) What could be the reason for seam not instantiating the variable (class 
RegistryData: the constructor is never called)?
2) Do I need to have the @Name and @Interceptors annotation for injection to 
work?

Thank you in advance,

 Kurt

[1]: the relevant part of the console output

  | 14:32:04,808 DEBUG [org.hibernate.loader.hql.QueryLoader] 
bindNamedParameters() registerPatients - name [1]
  | 14:32:04,871 DEBUG [at.arcsmed.jbpm.PatientRegisterGoalHandler] = 
PatientenRegisterGoalHandler constructor
  | 14:32:04,871 DEBUG [at.arcsmed.jbpm.PatientRegisterGoalHandler] = 
PatientRegisterGoalHandler decide called
  | 14:32:04,871 DEBUG [at.arcsmed.jbpm.PatientRegisterGoalHandler] 
RegistryData: null
  | 

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

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


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

2006-09-06 Thread jerome_082006
Hello,

Sorry for the delay, I am still testing.

I shall post a step-by-step howto as soon as I am sure it really works as it 
should.

Regards,
Jerome.

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

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


[jboss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-09-06 Thread MarcReis
Hi Manik,
it is Release 1.4.0.GA (July 10, 2006).
I havent tryed it with the sp1.

Sincerely
Marc


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

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


[jboss-user] [EJB/JBoss] - Re: Passing extra stuff into in a ejb call

2006-09-06 Thread atamur
I'm also interested in this topic. Has someone found a solution?

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

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


[jboss-user] [JBoss Seam] - Re: ejb-jar.xml in examples

2006-09-06 Thread mzeijen
I totally agree ;)

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

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


[jboss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-09-06 Thread [EMAIL PROTECTED]
Could you pls try 1.4.0.SP1 

I suspect your problem may be http://jira.jboss.com/jira/browse/JBCACHE-715



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

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


[jboss-user] [EJB 3.0] - Re: Help!!! Simple problem

2006-09-06 Thread qwertyyy
Neither not answer?

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

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


[jboss-user] [EJB 3.0] - Re: Help!!! Simple problem

2006-09-06 Thread [EMAIL PROTECTED]
we don't support injection into servlets yet.  There is some support in SVN 
HEAD, but you won't see it until he beta comes out.

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

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


[jboss-user] [JBoss Seam] - Session timeouts and seam

2006-09-06 Thread c_eric_ray
What's the best way to handle session timeouts? Right now a 403 Error code is 
returned. I trap that using error-code tag in the web.xml. 

This works okay, I was just wondering if there's another approach or something 
slighty more graceful.

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

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


[jboss-user] [Installation, Configuration Deployment] - Re: Changing from localhost to IP address

2006-09-06 Thread creative77
Actually, I am thinking this is a firewall issue. Resolves correctly at 0.0.0.0 
without firewall.

I am reviewing the wiki RunningBehindAFirewall.

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

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


[jboss-user] [EJB 3.0] - Cannot deploy EJB because ...-ds.xml file

2006-09-06 Thread gaeoepag
Hello,

I'm trying to deploy an EJB 3 deployment file, and I'm getting
the following error:

15:09:02,956 ERROR [MainDeployer] Could not initialise deployment: 
file:/C:/jboss-4.0.4.GA/server/default/deploy/testejb301-ds.xml
org.jboss.deployment.DeploymentException: Could not parse dd; - nested 
throwable: (org.xml.sax.SAXParseException: Content is not allowed in prolog.)

I cannot find anything wrong!
Here the testejb301-ds.xml file,
but it is not complete because 
the browser filters out some tags.

xml version=1.0 encoding=UTF-8?

  local-tx-datasource
jndi-namejdbc/testejb301/jndi-name
connection-urljdbc:mysql://localhost:3306/testejb301/connection-url
driver-classcom.mysql.jdbc.Driver/driver-class
user-nameroot/user-name
root

exception-sorter-class-nameorg.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter/exception-sorter-class-name

   type-mappingmySQL/type-mapping

  /local-tx-datasource


Thanks and Best Regards!!

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

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


[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Session Affinity with an Applet

2006-09-06 Thread pharvener
All I have an application which uses an applet interacting with a servlet to 
download content. The application runs in a distribute environment and depends 
on session affinity. Unfortunately when the applet executes, it first creates a 
new connection. Our load balancer interprets this as a new user and sends the 
request to the next /wrong Application Server. Session affinity is violated the 
user conversation state is missing. 

Is there anyway to force the applet to use the existing session?

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

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


[jboss-user] [EJB 3.0] - Re: Cannot deploy EJB because ...-ds.xml file

2006-09-06 Thread Doug.Palmer
Wrap the xml in code tags and then it will display properly.

Regards
Doug

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

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


[jboss-user] [JBoss Seam] - Re: Problem with extra action method executing

2006-09-06 Thread texan
My particular problem is that the from page action is getting executed when I 
leave the page.  Very frustrating.

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

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


[jboss-user] [Clustering/JBoss] - Re: Problem with ClusteredSession

2006-09-06 Thread wonker
Did you by any chance resolve this? I currently have the same problem with 
JBoss 3.2.5.



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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: JBoss 4.0.3 CMP Oracle BLOBs

2006-09-06 Thread nidget
pflapf wrote : I face a problem with a BLOB field in Oracle 8.1.7. Maybe this 
has been asked a thousand times, but I can't find a solution / question via 
search. ;-)
  | 
  | I want to use Entity Beans to access this field via CMP.

I have the same problem with CLOB, CMP entity beans and Oracle 9i for an 
application we're migrating from Weblogic to JBoss 4.0.3SP1. 

I've found this come from the fact that, until Oracle 10g, Oracle doesn't 
support the standard interfaces java.sql.Clob and java.sql.Blob. If you were 
not doing it in a CMP entity bean, you would receive an unsupported feature 
exception when you try to access your LOBs from these interfaces. To solve 
that, you would then have to cast your java.sql.Clob into oracle.sql.CLOB or 
java.sql.Blob into oracle.sql.BLOB respectively and then you would have to call 
proprietary Oracle methods to access it.

Weblogic had special tags in the deployment descriptors for OracleClob and 
OracleBlob in CMP entity beans. I can't manage to find the same in JBoss. If 
ever I can find it, I'll keep you informed.

Regards.

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

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


[jboss-user] [Installation, Configuration Deployment] - Problem (almost) solved

2006-09-06 Thread kevinstembridge
After a bit more digging around, I found this page in the JBoss wiki:

http://wiki.jboss.org/wiki/Wiki.jsp?page=XMLEntitySchemaResolution

So JBoss versions 4.0.3 and above have an MBean that we can use to configure an 
entity resolver. However, when I created a service descriptor with the 
following content


  | server
  |mbean code=org.jboss.services.xml.JBossEntityResolverMgr 
name=jboss.xml:service=JBossEntityResolverMgr
  |   attribute name=WarnOnNonFileURLstrue/attribute
  |   attribute name=EntityMap
  |  -//SPRING//DTD BEAN//EN=spring-beans.dtd
  |   /attribute
  |/mbean
  | /server
  | 
  | 

... after starting JBoss, I still get the error where the server is trying to 
connect to the web to retrieve the spring-beans.dtd and when I look at the JMX 
console page for the JBossEntityResolverMgr it shows that the above EntityMap 
attribute of the MBean has been parsed like so:

-//SPRING//DTD=BEAN//EN=spring-beans.dtd

Note that the space in the PublicId has been converted to an equals sign. I've 
tried using quotes around the publicId and also around the whole string but 
this just causes even more problems.

Can anybody give me some pointers on what format to use so the the space is 
correctly interpreted? Failing that, does anybody know what class is 
responsible for parsing the service descriptors?

Cheers,
Kevin

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

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


[jboss-user] [Beginners Corner] - Re: i want to map directory to url

2006-09-06 Thread PeterJ
You cannot access any files or folders within WEB-INF directly from a browser.  
You will either have to move the personals folder out of WEB-INF, or write a 
servlet that provides access to the contents of the WEB-INF folder.

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

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


[jboss-user] [Beginners Corner] - Re: Duke's Bank Java EE 5

2006-09-06 Thread PeterJ
Have you seen the EJB3 Trail Blazer at http://www.jboss.com/docs/demos?

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

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


[jboss-user] [Beginners Corner] - Re: Need help in understanding JBoss

2006-09-06 Thread PeterJ
The best place to start is the JBoss Application Server Guide at 
http://docs.jboss.org/jbossas/jboss4guide/r5/html/.  It describes the JBoss 
architecture.

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

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


[jboss-user] [Beginners Corner] - Re: Objects transfer to MySQL

2006-09-06 Thread PeterJ
This error means that you have already deployed the application. Do you perhaps 
have the application deployed in two different files?  Or have you named two 
EJBs with the same name?

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

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


[jboss-user] [Installation, Configuration Deployment] - Re: How to specify alias for local filesystem in JBOSS

2006-09-06 Thread PeterJ
Just follow my steps, editing the files in jbossweb-tomcat50.sar.  It should 
work.

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

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


[jboss-user] [JBossCache] - Re: maxNodes in region question

2006-09-06 Thread [EMAIL PROTECTED]
Looking at the code there is a new eviction policy, 
org.jboss.cache.eviction.ElementSizePolicy.  It seems to take 2 config 
elements, maxNodes and maxElementsPerNode.  I believe this must be what was 
meant when JBCACHE-77 was closed.  java123, perhaps you can try that out and 
see if if does what you want.  I created a JIRA to get better docs for it.

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

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


[jboss-user] [Beginners Corner] - Re: JBoss Specifications

2006-09-06 Thread PeterJ
Here are a few places to look.

In the binary download, there is a file jar-versions.xml in the base directory. 
 That gives the version numbers of many of the included jars (though a lot of 
the numbers are the JBoss version number).  And it probably has the most 
complete list of jars in the app server.

If you download the source and build it, in the thirdparty directory there will 
be a subdirectory for each third-party component.  Within each subdirectory 
there is a component-info.xml file.  That file contains the version of that 
component.

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

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


[jboss-user] [JBoss jBPM] - Re: Assign Task - 2 users

2006-09-06 Thread falazar
Did we have any further answers on this?

Is there  a nice simepl front-end way to do this?

James

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

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


[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Session Affinity with an Applet

2006-09-06 Thread [EMAIL PROTECTED]
There is a way; sorry I can't tell you what it is as it's been several years 
since I did it and I don't remember.  IIRC Javascript can interact with the 
browser's JVM to pass the session id.  I believe I figured from the O'Reilly 
Javascript book.

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

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


[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Could not initialise deployment

2006-09-06 Thread PeterJ
First, do not post the same question in multiple forums.

Have you tried deploying the application to the deploy directory?  Does it run 
there?

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

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


[jboss-user] [JBoss Eclipse IDE (users)] - Re: jboss ide server configuration

2006-09-06 Thread [EMAIL PROTECTED]
Sad to say, this is not yet implemented, but I've saved the tutorial link and 
will look into it. 

Sorry if that's not very helpful. 

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

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


[jboss-user] [Installation, Configuration Deployment] - Re: Problem in deploying web modules

2006-09-06 Thread PeterJ
How big is your war file? How long does it take to copy it to the deploy 
directory?  It sounds as if the file is only partly copied to the deploy 
directory when the hot-deployer attempts to read the war file.  One possible 
solution is to copy the war file to a temporary directory in the same partition 
as JBoss, and then move the war file to the deploy directory.

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

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


[jboss-user] [Beginners Corner] - Re: underscore in java package name

2006-09-06 Thread PeterJ
It would help if you posted the stack trace that is generated when the app 
fails to deploy.

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

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


[jboss-user] [JBossCache] - Performence

2006-09-06 Thread lior.dra
Hi 
I have been trying to use JbossCache 1.4 SP1, as a caching solution, 
However I encounter performence issues,
I have not been able to write more then 1000 updates per  sec, on a single 
node, and  I need a solution able to write as many as 15,000 per sec.
I have been written a small test  to demonstrate:
I have been using MR. Ben Wang's Address and Student classes, along with 
../etc/META-INF/replSync-service.xml
I have compiled the classes with the aopc compiler.
the jboss-aop.xml file I am using  is the one under the .../examples/PojoCache/ 
... .

Test setup 2 nodes:

Machine 1:
JVM 1.5.07
Fedora 5 linux. 
1GM memory 

Machine 2
JVM 1.5.07
Solaris 10 2GM memory

Use Case 1:
When I run this code unclustered I can update 12,000  times per second

Use Case 2:
When I run this code in a 2 node cluster the performence drops to something 
like 900 - 1200 updates per second.

Use Case 3:
When I run this code with the 's' param, one one node, meaning I have just one 
writer node, I get the same results: 900 - 1200 updates per second.

I have noticed that the CPU usage rises to 80 - 100 % even  when the node is 
not writing / reading  the cache.


What am I doing wring ?
is this the kind of performence I can expect?
According to the following link 
http://wiki.jboss.org/wiki/Wiki.jsp?page=WhatShouldWeExpectOfThePojoCachePerformance
 I should be just fine, but the results I am getting is very far from it, whay 
is that ?

Thanks 
Lior


my class is:

package com.protagonis.cache;

//import org.jboss.cache.Fqn;
//import org.jboss.cache.PropertyConfigurator;
//mport org.jboss.cache.aop.PojoCache;

import java.util.*;

import javax.naming.*;
import javax.transaction.*;

import org.jboss.cache.*;
import org.jboss.cache.aop.*;

import com.protagonis.test.utils.*;

public class ManualTestCacheJbossExample {
private static final String base_dir = ./etc/resources/configuration/;

private PojoCache tree;

public static void main(String[] argv) throws Exception {
ManualTestCacheJbossExample ct = new 
ManualTestCacheJbossExample();


ct.tree = ct.StartCache();

if (argv.length  1)
if (argv[1].equals(s)) {
while (true) {
Thread.sleep(0, 10);
}
}

/*
 * Timing.assertElapseTime(ct, doAspect, new Object[] { new 
Integer(
 * argv[0]).intValue(), }, 10L);
 */

ct.doAspect(new Integer(argv[0]).intValue());
ct.tree.stop();

}

public ManualTestCacheJbossExample() {
}

public void doAspect(int howMany) {

try {
Student st1 = new Student();
st1.setSchool(school1);
st1.setName(Name1);
Address adr = new Address();
adr.setCity(city);
adr.setStreet(str);
adr.setZip(1);
st1.setAddress(adr);
Fqn fqn = Fqn.fromString(a/b);

int count = 1;

while (count  howMany) {

try {
Student std2 = (Student) 
tree.getObject(fqn);

if (std2 == null) {
tree.putObject(fqn, st1);
continue;
}

Address adr2 = std2.getAddress();
adr.setZip(adr.getZip() + 1);

if (count % 1000 == 0)
System.out
.println( 
Count  + count +  Zip 

+ adr2.getZip() + 1 +  Name 

+ std2.getName());

} catch (Exception e) {
e.printStackTrace();
}
count++;

}
} catch (Exception e) {

e.printStackTrace();
}

}

public PojoCache StartCache() {

try {
InitJvm.init();
tree = new PojoCache();

PropertyConfigurator config = new 
PropertyConfigurator(); // configure

config.configure(tree, base_dir + 
replSync-service.xml);

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Accessing Hibernate outside of Jboss

2006-09-06 Thread mikereilly
Hi,
I have an application that uses Hibernate which I would like to run outside of 
Jboss.
jhas anyone done this before ? Do I need to use the 
use-java-contextfalse/use-java-context within the hibernate-service.xml 
file ?

Many thanks,
Michael

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

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


[jboss-user] [EJB 3.0] - EJB3 PersistanceManager confusion

2006-09-06 Thread jrosskopf
Hello List,

I try to do my first steps with EJB3 and set up a small example persisting a 
detatched pojo entity (which is generated in a client) through a stateless 
session bean. 

I´ll attach the code of the three components at the end of the message.
When I invoke the the method, that should persist the entity I get the 
following exception:

  | Exception in thread main javax.ejb.EJBException: 
javax.persistence.PersistenceException: 
org.hibernate.PersistentObjectException: detached entity passed to persist: 
com.toolsforjobs.j2ee.test.server.domain.Debtor
  | at 
org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
  | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
  | at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:225)
  | at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
  | at 
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
  | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
  | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
  | at 
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
  | at 
org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:398)
  | at 
org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
  | 

But that is exactly what I´m wanting: Saving a detached entry ;-)
What I´m doing wrong?

Regards
---
Joachim

The Entity Bean

  | package com.toolsforjobs.j2ee.test.server.domain;
  | 
  | import java.io.Serializable;
  | 
  | import javax.persistence.CascadeType;
  | import javax.persistence.Entity;
  | import javax.persistence.GeneratedValue;
  | import javax.persistence.Id;
  | import javax.persistence.OneToOne;
  | import javax.persistence.Transient;
  | 
  | @Entity
  | public class Debtor implements Serializable{
  | @Transient
  | private static final long serialVersionUID = 3154162344396113561L;
  | 
  | int id;
  | String idAtCustomer;
  | double balance;
  | 
  | //Address address;
  | 
  | /*
  | @OneToOne(cascade={CascadeType.ALL})
  | public Address getAddress() {
  | return address;
  | }
  | */
  | public double getBalance() {
  | return balance;
  | }
  | 
  | @Id @GeneratedValue
  | public int getId() {
  | return id;
  | }
  | 
  | public String getIdAtCustomer() {
  | return idAtCustomer;
  | }
  | /*
  | public void setAddress(Address address) {
  | this.address = address;
  | }
  | */
  | public void setBalance(double balance) {
  | this.balance = balance;
  | }
  | 
  | public void setId(int id) {
  | this.id = id;
  | }
  | 
  | public void setIdAtCustomer(String idAtCustomer) {
  | this.idAtCustomer = idAtCustomer;
  | }
  | }
  | 

The Stateless Session Bean

  | package com.toolsforjobs.j2ee.test.server;
  | 
  | import javax.ejb.Stateless;
  | import javax.persistence.EntityManager;
  | import javax.persistence.PersistenceContext;
  | 
  | import com.toolsforjobs.j2ee.test.server.domain.Debtor;
  | 
  | @Stateless
  | public class DebtorAgentBean implements DebtorAgentRemote {
  | 
  | @PersistenceContext(unitName=tfj-dbs) EntityManager manager;
  | 
  | public Debtor findDebtor(int id) {
  | return manager.find(Debtor.class, id);
  | }
  | 
  | public void saveDebtor(Debtor deb) {
  | manager.persist(deb);
  | }
  | 
  | }
  | 

And the calling client

  | package com.toolsforjobs.j2ee.test.client;
  | 
  | import javax.naming.Context;
  | import 

[jboss-user] [JBossWS] - java.sql.SQLException: Already closed

2006-09-06 Thread peiguo
In my web service, I need to access Oracle database, so I created the 
oracle-ds.xml file in my deploy directory like this:
?xml version=1.0 encoding=UTF-8?


  local-tx-datasource
jndi-namehhsDB/jndi-name

connection-urljdbc:oracle:thin:@aadv1db.abcd.com:1521:aadv1/connection-url
driver-classoracle.jdbc.driver.OracleDriver/driver-class
user-namesim/user-name
sim

exception-sorter-class-nameorg.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter/exception-sorter-class-name
  
 type-mappingOracle10g/type-mapping
  
  /local-tx-datasource


And in my code I have this function to get connection for me:
private Connection getConnection() throws Exception {

InitialContext initialContext = new InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource) 
initialContext.lookup(java:hhsDB);
java.sql.Connection conn = ds.getConnection();
return conn;
}

But it keeps giving me java.sql.SQLException: Already closed, even after I 
removed those .close() calls from my code... What should I do?



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

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


  1   2   3   >