[jboss-user] [Installation, Configuration DEPLOYMENT] - Verification of Enterprise Beans failed

2008-09-11 Thread rajasekharreddym
hi , 

i'm using Jboss 4.0.1 . 

i'm getting the following error when i deploy my application . 

 could not create deployment: 
file:/C:/Java/jboss-4.0.1/server/default/deploy/plansetup/plansetup-ejb.jar
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans 
failed  

what could be the cause . 

All suggestions are welcome .

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

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


[jboss-user] [JBossWS] - Re: jbossws first steps

2008-09-11 Thread [EMAIL PROTECTED]
TonyR wrote : 
  | However when I check the 
http://jbws.dyndns.org/mediawiki/index.php?title=Supported_Target_Containers, 
the matrix implies that only jbossws-native-3.0.3 is compatible with the 
application server 4.2.3.  So does that mean, I should download the 3.0.3 stack 
and install it?  Or should I just take the 'easy way' out and just use the 
4.2.2 version of the server.
Download JBossWS 3.0.3 if you want to run Web Services stack on AS 4.2.3.

TonyR wrote : 
  | Another question I had is how can I run the 
http://jbws.dyndns.org/mediawiki/index.php?title=Samples_testsuite (via 'ant 
tests') without deploying it to my server; since the JBossWS stack is already 
installed?  I don't want to break anything if it's already installed correctly.
  | 
Yes, you should be able to run the tests even if you don't upgrade the SOAP 
stack.

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Problems for windows service

2008-09-11 Thread jaikiran
anonymous wrote : wrapper.app.parameter.3=-b 192.XXX.XXX.XXX 

You should be passing the -b and the IP address as two separate parameters. See 
this thread http://www.jboss.com/index.html?module=bbop=viewtopict=115500 for 
details.


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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Verification of Enterprise Beans failed

2008-09-11 Thread jaikiran
Please post the entire exception stacktrace that you see on the console. Also 
which version of Java do you use?

While posting the logs or code or xml content, remember to wrap it in a code 
block using the Code button in the message editor window and please hit the 
Preview button to make sure your post is correctly formatted

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

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


[jboss-user] [Beginners Corner] - Re: problem with class loader

2008-09-11 Thread jaikiran
Please post the entire exception stacktrace. Are you deploying this application 
as a jar file or an EAR file?

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

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


[jboss-user] [Beginners Corner] - why Session would close under stress test?

2008-09-11 Thread gan.gary
I have a JBoss under stresstest and under what condition the Session would 
close?

and the very first log is:
2008-09-10 09:01:40,695 WARN  [com.arjuna.ats.arjuna.logging.arjLoggerI18N] 
[com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator_2] 
TwoPhaseCoordinator.beforeCompletion - failed for null
  | org.hibernate.SessionException: Session is closed!
  | at 
org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:49)
  | at org.hibernate.impl.SessionImpl.getActionQueue(SessionImpl.java:1817)
  | at 
org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:201)
  | at 
org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)
  | at 
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
  | at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
  | at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
  | at 
org.hibernate.transaction.CacheSynchronization.beforeCompletion(CacheSynchronization.java:59)
  | at 
com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:114)
  | at 
com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:247)
  | at 
com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:86)
  | at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
  | at 
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1389)
  | at 
com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
  | at 
com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
  | at 
org.jboss.resource.adapter.jms.inflow.JmsServerSession$XATransactionDemarcationStrategy.end(JmsServerSession.java:494)
  | at 
org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:248)
  | at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
  | at 
org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
  | at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
  | at java.lang.Thread.run(Thread.java:595)
  | 2008-09-10 09:01:40,695 ERROR 
[org.jboss.resource.adapter.jms.inflow.JmsServerSession] [EMAIL PROTECTED] 
failed to commit/rollback
  | java.lang.NullPointerException

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

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


[jboss-user] [EJB/JBoss] - Re: class loader exception

2008-09-11 Thread jaikiran
Being discussed here 
http://www.jboss.com/index.html?module=bbop=viewtopict=142156

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

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


[jboss-user] [Beginners Corner] - Re: problem with class loader

2008-09-11 Thread jaikiran
Even post the entire console logs.

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

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


[jboss-user] [JCA/JBoss] - Re: How to programmatically create datasource in Jboss5.

2008-09-11 Thread [EMAIL PROTECTED]
decompile will not be a problem for our system because we are using one-time 
key for encryption and the key will be loaded from somewhere else and existing 
no where besides jboss's memeory.  no clear key in code,only a batch of APIs.

like this some side effects do exist. I am still trying to do some make up. 
 

anyway, I still think it makes more sense for JBoss to have a API to create 
datasource programmatically. 

Thank you.

Alex Jiang

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

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


[jboss-user] [JBoss jBPM] - Re: ProcessDefinition to XML

2008-09-11 Thread lseymore
Hahaha ;)

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

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


[jboss-user] [JBoss Portal] - How to develop portlet with richfaces?

2008-09-11 Thread taocore
As title. Or do you think any other JSF components lib would be better choice? 
And how to make them works together?

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

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


[jboss-user] [EJB 3.0] - Re: Problem with stateful session bean and connection

2008-09-11 Thread jaikiran
anonymous wrote : 13:35:10,000 INFO  [CachedConnectionManager] Closing a 
connection for you.  Please close them yourself: [EMAIL PROTECTED]
  | java.lang.Throwable: STACKTRACE
  | 

See this http://wiki.jboss.org/wiki/WhatDoesTheMessageDoYourOwnHousekeepingMean

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

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


[jboss-user] [JBoss jBPM] - cancel process instance including subprocesses

2008-09-11 Thread Thomas.Kriechbaum
Hello,

what's the recommended way to cancel a process instance and it's subprocesses 
as well (jbpm-jpdl 3.2.2).

Within a remote interface I'm invoking the 
org.jbpm.command.CancelProcessInstanceCommand having cancelSubProcesses set to 
true.

First of all, there seams to be a bug in the method cancelSubProcesses, because 
the HQL-Query GraphSession.findSubProcessInstances requires the parameter 
processInstance and not instanceId. I will report this issue.

The main problem is, that when canceling a sub process the super process gets a 
signal and continues as defined by the process definition. In my particular 
case, new task instances are created that are not canceled as expected.

Here is the source code from ProcessInstance.end

  | /**
  |  *ends (=cancels) this process instance and all the tokens in it.
  | **/
  |  public void end() {
  | ...
  |   // check if this process was started as a subprocess of a super 
process
  |   if (superProcessToken!=null) {
  | addCascadeProcessInstance(superProcessToken.getProcessInstance());
  | 
  | 
  | ExecutionContext superExecutionContext = new 
ExecutionContext(superProcessToken);
  | superExecutionContext.setSubProcessInstance(this);
  | superProcessToken.signal(superExecutionContext);
  |   }
  |   ...
  | }
  |   }
  | 
  | 

The posting  http://www.jboss.com/index.html?module=bbop=viewtopict=72442 
almost deals with the same question, but no replies have been sent at the 
moment.

Thanks,
Thomas

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Making a client-side JPA connection

2008-09-11 Thread homaxto
For testing purpose I am trying to make a JPA connection to our database. 
I get an error saying:
Unable to configure EntityManagerFactory
with no further explanation!

I think I have tried everything in my persistence file and now finally I give 
up.

My persistence.xml (only the persistence-unit):
persistence-unit name=Test transaction-type=RESOURCE_LOCAL
  | providerorg.hibernate.ejb.HibernatePersistence/provider
  | classdme.dm.device.Operation/class
  | classdme.dm.device.Action/class
  | properties
  | property name=hibernate.connection.driver_class
  |   value=com.mysql.jdbc.Driver/
  | property name=hibernate.connection.username
  |   value=jboss/
  | property name=hibernate.connection.password
  |   value=banan123/
  | property name=hibernate.connection.url
  |   value=jdbc:mysql://172.16.12.15/dm_tos/
  | property name=hibernate.dialect
  |   value=org.hibernate.dialect.MySQLDialect/
  | property name=hibernate.hbm2ddl.auto
  |   value=update/
  | /properties
  | /persistence-unit

And I make the call like this:
public class OperationTest {
  | private EntityManager entityManager;
  | 
  | @Before
  | public void setUp() {
  | EntityManagerFactory emf = 
Persistence.createEntityManagerFactory(Test);
  | entityManager = emf.createEntityManager();
  | }
  | }

When I run this code I get the exception:
javax.persistence.PersistenceException: [PersistenceUnit: Test] Unable to 
configure EntityManagerFactory

Does anyone have an idea of what could be wrong?

Regards,
Thomas

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Deployment order in jboss

2008-09-11 Thread erasmomarciano
You check jboss-service.xml and found this code


 !--  --
   !-- Deployment Scanning  --
   !--  --


here is established order deploy

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

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


[jboss-user] [Security JAAS/JBoss] - JAAS authentification with JBoss AS CR1 : jaas not bound

2008-09-11 Thread slimamar
A working Beta4 EJB3 application is broken with CR1.
@Stateful
@Remote(MyInterface.class)
@SecurityDomain(myconfig)
public class MyClassEJB3 implements MyInterface
{

}

A RuntimeException appears when 'MyClassEJB3' is loaded.
anonymous wrote : 
  | org.jboss.deployers.spi.DeploymentException: Error deploying 
gsrAppServeur.jar: failed to initialize bean container
  | at 
org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:192)
  | at 
org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:95)
  | at 
org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
  | at 
org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
  | at 
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:174)
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:970)
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:911)
  | at 
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
  | at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1392)
  | at 
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
  | at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
  | at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
  | at 
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:672)
  | at 
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:455)
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:594)
  | at 
org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
  | at 
org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:257)
  | at 
org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:135)
  | at 
org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)
  | at org.jboss.Main.boot(Main.java:209)
  | at org.jboss.Main$1.run(Main.java:544)
  | at java.lang.Thread.run(Thread.java:595)
  | Caused by: java.lang.RuntimeException: failed to initialize bean container
  | at org.jboss.ejb3.EJBContainer.(EJBContainer.java:225)
  | at 
org.jboss.ejb3.session.SessionContainer.(SessionContainer.java:116)
  | at 
org.jboss.ejb3.session.SessionSpecContainer.(SessionSpecContainer.java:29)
  | at 
org.jboss.ejb3.stateful.StatefulContainer.(StatefulContainer.java:98)
  | at 
org.jboss.ejb3.Ejb3AnnotationHandler.getStatefulContainer(Ejb3AnnotationHandler.java:294)
  | at 
org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:209)
  | at 
org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:645)
  | at 
org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:605)
  | at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:587)
  | at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:553)
  | at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:465)
  | at 
org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:178)
  | ... 21 more
  | Caused by: java.lang.RuntimeException: javax.naming.NameNotFoundException: 
jaas not bound
  | at 
org.jboss.ejb3.EJBContainer.getSecurityManager(EJBContainer.java:917)
  | at 
org.jboss.ejb3.security.AuthenticationInterceptorFactory.createPerClass(AuthenticationInterceptorFactory.java:44)
  | at 
org.jboss.aop.advice.AspectFactoryDelegator.createPerClass(AspectFactoryDelegator.java:107)
  | at org.jboss.aop.Advisor.addPerClassAspect(Advisor.java:1080)
  | at 
org.jboss.aop.advice.ScopedInterceptorFactory.create(ScopedInterceptorFactory.java:75)
  | at org.jboss.aop.Advisor.createInterceptorChain(Advisor.java:1134)
  | at 
org.jboss.ejb3.interceptors.container.ManagedObjectAdvisor.createInterceptorChain(ManagedObjectAdvisor.java:136)
  | at org.jboss.aop.Advisor.pointcutResolved(Advisor.java:1623)
  | at 
org.jboss.aop.MethodMatchInfo.applyBinding(MethodMatchInfo.java:153)
  | at 
org.jboss.aop.MethodMatchInfo.overridePopulateBindings(MethodMatchInfo.java:144)
  | at 
org.jboss.aop.MethodMatchInfo.populateBindings(MethodMatchInfo.java:93)
  | at org.jboss.aop.Advisor.finalizeMethodChain(Advisor.java:1255)
  | at org.jboss.aop.ClassAdvisor.finalizeChains(ClassAdvisor.java:688)
  | at 

[jboss-user] [JBoss jBPM] - Re: Task timer and TaskInstance.dueDate field

2008-09-11 Thread lblaauw
Hey,

Allthough it has been a while since the post below was posted, I am
facing a somewhat simular dilemma...

Basically I also have a timer asociated on a task node. Seems to be
working just fine, but when i get a tasklist the task duedate is not set
to the timer and I agree with the poster of the original message that
the task duedate really should be the Timer duedate wich was asociated
with this task to begin with. Obviously I could 'kludge' some db calls
to fill my own task objects, go through the jobs of the processInstance
and add the timers to my own custom task objects... Dont really want
to do that however since I feel the aproach below makes sense.

Any of the jBPM gurus like to comment ?

Greetings and thanks upfront for your time,

Leo de Blaauw


p4elka wrote : Hello
  | 
  | JBPM allow to use timers with task instance, where timer has it's own due 
date not related to task due date. Timer's due date cannot be changed after 
timer is created (at least using API provided i.e SchedulerService or 
JobSession). 
  | Sometimes it is required to change due date for timer associated with task 
instance after task instance is created, and I haven't found standard way of 
doing this in JBPM. 
  | 
  | Here is how I think this could be implemented and I would be glad to get 
your opinion on this.
  | I believe that link between task instance due date and task timer due date 
is missing in current JBPM implementation. 
  | Task due date should be ignored when timer is associated with task, and 
task instance should be initialized with timer due date.
  | Upon change of task due date, we should look whether task has timer 
associated and if yes, timer instance should be found and updated with new due 
date value.
  | Another approach could be not to change dates in existing timers but cancel 
timer and create new one using existing timer declaration.
  | 
  | What do you think ?
  | 
  | Thanks a lot !
  | 

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Error JBossAS-5.0.0.CR1 with the 'all' configuration

2008-09-11 Thread slimamar
Hello,

The problem has been resolved.

We have generated the JBossAS-5.0.0.CR1 from sources and an XML configuration 
file has been generated with some wrong characters (???) at the beginning of 
the file.

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

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


[jboss-user] [EJB 3.0] - Re: Unable to deploy simple MDB

2008-09-11 Thread fmarchioni
yes, what a fool ! I have packaged the .jar file without the folders.
Sorry, the No ClassLoaders found message took me on the wrong way, I thought 
it was a problem with the MDB 3.0

Thanks for your help!


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

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


[jboss-user] [JBoss Messaging] - Timeout for Disconnected JBM Client

2008-09-11 Thread rtm333
We are using JBM 1.4.0.SP3 on JBoss AS 4.2.2.GA, where messages generated by a 
Linux server are to be distributed to topic subscribers running on Windows 
boxes.

We are experiencing a major problem with JBoss Messaging when a consuming JBM 
client running on a Win XP box disappears suddenly, e.g. by Blue Screen or 
network disruption (as simulated by disabling the corresponding Local Area 
Connection in Control Panel - Network Connections). In this case it takes the 
JMS server 15 minutes to detect that the client is gone with a 
java.io.IOException: Connection timed out. During all this time the 
publishing thread is blocked trying to write to the socket (see stack trace 
below). This also stops all message delivery to the other subscribers of this 
topic, what makes this a real showstopper.

We have also tried this scenario with JBM 1.4.0.SP3_CP03 with the same result. 
We updated to that release, because the change log mentioned JBMESSAGING-1268 
that is also concerned with a similar scenario.

We tried playing with the timeout settings in remoting-bisocket-service.xml, 
but to no avail. Can you please explain the meaning of the attributes timeout 
and callbackTimeout and in what units (e.g. ms) these have to be specified? 
Any other ideas for a solution or workaround?

Thanks,
Ralf Torsten


Here the stack trace of the blocking publisher thread (from JBM 1.4.0.SP3_CP03):



  | ClientPublishQ-1 daemon prio=10 tid=0x85a33400 nid=0x6364 runnable 
[0x84ae9000..0x84ae9e20]
  |java.lang.Thread.State: RUNNABLE
  | at java.net.SocketOutputStream.socketWrite0(Native Method)
  | at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
  | at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
  | at 
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
  | at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
  | - locked 0x9eaae338 (a java.io.BufferedOutputStream)
  | at java.io.DataOutputStream.flush(DataOutputStream.java:106)
  | at org.jboss.jms.wireformat.ClientDelivery.write(ClientDelivery.java:93)
  | at org.jboss.jms.wireformat.JMSWireFormat.write(JMSWireFormat.java:237)
  | at 
org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedWrite(MicroSocketClientInvoker.java:971)
  | at 
org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:606)
  | at 
org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:418)
  | at 
org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
  | at org.jboss.remoting.Client.invoke(Client.java:1634)
  | at org.jboss.remoting.Client.invoke(Client.java:548)
  | at org.jboss.remoting.Client.invokeOneway(Client.java:598)
  | at 
org.jboss.remoting.callback.ServerInvokerCallbackHandler.handleCallback(ServerInvokerCallbackHandler.java:826)
  | at 
org.jboss.remoting.callback.ServerInvokerCallbackHandler.handleCallbackOneway(ServerInvokerCallbackHandler.java:697)
  | at 
org.jboss.jms.server.endpoint.ServerSessionEndpoint.performDelivery(ServerSessionEndpoint.java:1440)
  | at 
org.jboss.jms.server.endpoint.ServerSessionEndpoint.handleDelivery(ServerSessionEndpoint.java:1352)
  | - locked 0x9eabf860 (a 
org.jboss.jms.server.endpoint.ServerSessionEndpoint)
  | at 
org.jboss.jms.server.endpoint.ServerConsumerEndpoint.handle(ServerConsumerEndpoint.java:327)
  | - locked 0x9ebce290 (a java.lang.Object)
  | at 
org.jboss.messaging.core.impl.RoundRobinDistributor.handle(RoundRobinDistributor.java:119)
  | at 
org.jboss.messaging.core.impl.MessagingQueue$DistributorWrapper.handle(MessagingQueue.java:583)
  | at 
org.jboss.messaging.core.impl.ClusterRoundRobinDistributor.handle(ClusterRoundRobinDistributor.java:79)
  | at 
org.jboss.messaging.core.impl.ChannelSupport.deliverInternal(ChannelSupport.java:606)
  | at 
org.jboss.messaging.core.impl.MessagingQueue.deliverInternal(MessagingQueue.java:506)
  | at 
org.jboss.messaging.core.impl.ChannelSupport.handle(ChannelSupport.java:238)
  | - locked 0x9ebcdf28 (a java.lang.Object)
  | at 
org.jboss.messaging.core.impl.postoffice.MessagingPostOffice.routeInternal(MessagingPostOffice.java:2208)
  | at 
org.jboss.messaging.core.impl.postoffice.MessagingPostOffice.route(MessagingPostOffice.java:494)
  | at 
org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendMessage(ServerConnectionEndpoint.java:763)
  | at 
org.jboss.jms.server.endpoint.ServerSessionEndpoint.send(ServerSessionEndpoint.java:391)
  | at 
org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$send$aop(SessionAdvised.java:87)
  | at 
org.jboss.jms.server.endpoint.advised.SessionAdvised$send_7280680627620114891.invokeNext(SessionAdvised$send_7280680627620114891.java)
  | at 

[jboss-user] [JBoss Portal] - Re: Using external LDAP server for username/password login O

2008-09-11 Thread javauser007
Hi i'm also facing the same problem... plz help me out.

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: DI and annotations not working

2008-09-11 Thread jaikiran
anonymous wrote : I am invoking the web service from a flex application, not 
sure if pasting that code will help ... 

The code would help. I am mainly interested in seeing how you are getting hold 
of the TestWebService bean in the code.



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

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


[jboss-user] [JBoss jBPM] - Re: cancel process instance including subprocesses

2008-09-11 Thread kukeltje
the signalling of the superprocess after ending the subprocess has been 
reported before. Afaik, there even is a jira issue for it. Please look it up 
and vote for it.

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

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


[jboss-user] [JBoss jBPM] - Re: Task timer and TaskInstance.dueDate field

2008-09-11 Thread kukeltje
task due date and timer due date are 2 different things, even when used on a 
task. So therefor the task duedate is empty even though there can be a timer 
with a duedate. We cannot automatically fill it with the duedate of a timer 
since that can be a very different thing

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

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


[jboss-user] [Security JAAS/JBoss] - Re: JAAS authentification with JBoss AS CR1 : jaas not bound

2008-09-11 Thread jaikiran
Looks like another deployment ordering issue in CR1.

Try this:

- Remove your application from the deploy folder of JBoss
- Start JBoss. 
- Once it has started successfully, place your application in the deploy folder 
of JBoss.
- Let the hot deployer pick up the application for deployment.


Alternately, you can create a deploy.last folder in %JBOSS_HOME%\server\ 
serverName and place your application in that folder and start JBoss. 

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

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


[jboss-user] [JBoss jBPM] - Re: Questions about doXslTransform

2008-09-11 Thread dave9739
Hi all,

I found that when bpel process call doXslTransform then the server will produce 
the following output.

---
2008-09-11 18:35:25,625 ERROR 
[org.jbpm.bpel.sublang.xpath.XPathExpressionEvaluator] expression evaluation 
failed
org.jaxen.UnresolvableException: No Such Function doXslTransform
at 
org.jaxen.SimpleFunctionContext.getFunction(SimpleFunctionContext.java:127)
at org.jaxen.ContextSupport.getFunction(ContextSupport.java:242)
at org.jaxen.Context.getFunction(Context.java:216)
at 
org.jaxen.expr.DefaultFunctionCallExpr.evaluate(DefaultFunctionCallExpr.java:172)
at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:102)
at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:674)
at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:213)
at 
org.jbpm.bpel.sublang.xpath.XPathExpressionEvaluator.evaluate(XPathExpressionEvaluator.java:80)
at 
org.jbpm.bpel.graph.basic.assign.FromExpression.extract(FromExpression.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 

---

Why jbpm-bpel does not support this function? As jbpm-bpel home page
said 
New services can be rapidly scripted as a function of other services instead 
of being developed from the ground up. Transforming output from one service 
into input to another service is made straightforward with XPath and XSLT. 
.
However, jbpm-bpel cannot found that functions. 
Does anyone know how to make this function works?

Many thanks.

dave

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

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


[jboss-user] [JBoss jBPM] - Re: cancel process instance including subprocesses

2008-09-11 Thread Thomas.Kriechbaum
I have just read the corresponding JIRA issue 
(https://jira.jboss.org/jira/browse/JBPM-1471). The proposed fix works fine for 
me.

Thanks for your hint.

Thomas

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: JBoss vs Weblogic: classloading

2008-09-11 Thread jaikiran
Which version of JBoss are you interested in? I believe in JBoss-5 (which is in 
CR1 and not stable), because of the new VFS implementation, there's a way to 
specify a user-defined folder, containing class files, to be added to the 
classpath. There's a jboss-structure.xml which can be used to do this kind of 
stuff. I have not yet tried it.

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

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


[jboss-user] [Security JAAS/JBoss] - Re: JAAS authentification with JBoss AS CR1 : jaas not bound

2008-09-11 Thread slimamar
The two solutions work fine.

Thanks.

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

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


[jboss-user] [Remoting] - Pure RMI

2008-09-11 Thread hudara
Hi,

I'm trying to expose some methods using Pure RMI on jBoss 4.0.5GA.

When I say Pure RMI this means that my interface extends the java.rmi.Remote 
class.

Note that I'm not talking about a remote connection to an Statefull\stateless 
session Facade (EJB), which are also a type of RMI.

My questions are:
1. Where can I find a document describing how to do it on jBoss.

2. How can I solve the anonymous port selection assuming my application will 
be installed behind a firewall? Is replacing the transport layer to an HTTP 
transport layer should work? if yes, how exectly this can be done o jBoss?

3. If I execute the java.rmi.registry.LocateRegistry.createRegistry method upon 
server startup, and try to bind this RMI for the defual port (1099), I get an 
error saying that this port is already bind. This may hint that this is not the 
correct way to implement RMI. What is the correct way?

Thanks
Guy Hudara

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

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


[jboss-user] [Beginners Corner] - Re: problem with class loader

2008-09-11 Thread devireddy
Thq Jaikiran for ur reply.

 First I would like to tell you that I tested the same code on Glassfis and it 
worked fine. I used NetBeans-Glassfish combination. Dont know why its not 
working with Eclipse (3.4) - JBOSS (4.2.3) combination. 

I am not deploying it as EAR on the server I have created the project just as a 
EJB project so its deploying it using a ejb jar file. 

I have paster server log and console log here in that order.

Server log:

Here is the server log, As u can expect it was too big, I am just pasting the 
part of it which I think is relavent to this error.


  | 2008-09-11 09:23:49,600 DEBUG [org.jboss.ejb.EJBDeployer] init, MDB-test.jar
  | 2008-09-11 09:23:49,600 DEBUG [org.jboss.ejb.EJBDeployer] looking for 
nested deployments in : 
file:/C:/jboss-4.2.3.GA-jdk6/jboss-4.2.3.GA/server/all/deploy/MDB-test.jar
  | 2008-09-11 09:23:49,600 DEBUG [org.jboss.deployment.DeploymentInfo] 
createLoaderRepository from config: LoaderRepositoryConfig(repositoryName: 
JMImplementation:service=LoaderRepository,name=Default, repositoryClassName: 
null, configParserClassName: null, repositoryConfig: null)
  | 2008-09-11 09:23:49,600 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] 
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] 
url=file:/C:/jboss-4.2.3.GA-jdk6/jboss-4.2.3.GA/server/all/tmp/deploy/tmp2068MDB-test.jar
 ,addedOrder=0}
  | 2008-09-11 09:23:49,600 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] 
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] 
url=file:/C:/jboss-4.2.3.GA-jdk6/jboss-4.2.3.GA/server/all/tmp/deploy/tmp2068MDB-test.jar
 ,addedOrder=0}
  | 2008-09-11 09:23:49,600 DEBUG 
[org.jboss.mx.loading.UnifiedLoaderRepository3] Adding [EMAIL PROTECTED] 
url=file:/C:/jboss-4.2.3.GA-jdk6/jboss-4.2.3.GA/server/all/tmp/deploy/tmp2068MDB-test.jar
 ,addedOrder=0}
  | 2008-09-11 09:23:49,600 DEBUG [org.jboss.deployment.MainDeployer] found 0 
subpackages of 
file:/C:/jboss-4.2.3.GA-jdk6/jboss-4.2.3.GA/server/all/deploy/MDB-test.jar
  | 2008-09-11 09:23:49,600 DEBUG [org.jboss.deployment.MainDeployer] Watching 
new file: 
file:/C:/jboss-4.2.3.GA-jdk6/jboss-4.2.3.GA/server/all/deploy/MDB-test.jar
  | 2008-09-11 09:23:49,600 DEBUG [org.jboss.deployment.MainDeployer] create 
step for deployment 
file:/C:/jboss-4.2.3.GA-jdk6/jboss-4.2.3.GA/server/all/deploy/MDB-test.jar
  | 2008-09-11 09:23:49,600 DEBUG [org.jboss.ejb.EJBDeployer] create, 
MDB-test.jar
  | 2008-09-11 09:23:49,631 DEBUG [org.jboss.ejb.EJBDeployer] Verifying 
file:/C:/jboss-4.2.3.GA-jdk6/jboss-4.2.3.GA/server/all/deploy/MDB-test.jar
  | 2008-09-11 09:23:49,647 WARN  
[org.jboss.verifier.strategy.AbstractVerifier] Failed to find class: 
MessageListener
  | java.lang.ClassNotFoundException: No ClassLoaders found for: MessageListener
  | at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
  | at 
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
  | at 
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
  | at java.lang.ClassLoader.loadClass(Unknown Source)
  | at 
org.jboss.verifier.strategy.AbstractVerifier.isAssignableFrom(AbstractVerifier.java:146)
  | at 
org.jboss.verifier.strategy.EJBVerifier21.verifyMessageDrivenBean(EJBVerifier21.java:2521)
  | at 
org.jboss.verifier.strategy.EJBVerifier21.checkMessageBean(EJBVerifier21.java:144)
  | at org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:185)
  | at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:594)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  | at 
org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
  | at 
org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
  | at 
org.jboss.wsf.container.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:76)
  | at 
org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
  | at 
org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at 

[jboss-user] [JBoss Portal] - Re: Problem with Portal and ESB install

2008-09-11 Thread [EMAIL PROTECTED]
1. Portal does not use and depend on deployment of JMS services.
2. The version of portal you are using probably is not compatible with jdk 1.6

What about trying this first:

1. Have a clean JBoss AS.
2. Deploy clean portal

I am sure that will go fine. Then add ESB and jboss-messagging and see what 
happens. I am very sure it's not portal.

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

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


[jboss-user] [JBoss Messaging] - Re: integrate JSF with JMS ?

2008-09-11 Thread PeterJ
Looks like you are using the Tanuki Java Service Wrapper to run JBossAS as a 
service. The correct configuration file changes are:

wrapper.app.parameter.1=org.jboss.Main
wrapper.app.parameter.2=-b
wrapper.app.parameter.3=0.0.0.0

You will have the first line already, the other two are additional. Note that 
each line allows only a single token and that the options are provided for the 
app (and not Java, as what you did).

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

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


[jboss-user] [Security JAAS/JBoss] - Re: JAAS authentification with JBoss AS CR1 : jaas not bound

2008-09-11 Thread jaikiran
https://jira.jboss.org/jira/browse/EJBTHREE-1485 has been created for tracking 
this issue.


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

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


[jboss-user] [Beginners Corner] - Re: problem with class loader

2008-09-11 Thread jaikiran
anonymous wrote : java.lang.ClassNotFoundException: No ClassLoaders found for: 
MessageListener
  | 

This is really strange (the classname). I would have expected 
javax.jms.MessageListener to be logged. I remember Peter too pointed this same 
thing in one other post of your's.

Are you sure your class files in the jar are correct? I am confused because if 
you had just used MessageListener in the java file instead of 
javax.jms.MessageListener, even the compilation would have failed. Unless you 
have a interface named MessageListener in your own packages. 

Post the output of 

jar -tf MDB-test.jar




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

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


[jboss-user] [Beginners Corner] - Re: Confusion about Eclipse

2008-09-11 Thread PeterJ
I use the J2EE/Web Project for creating servlets, works great, no additional 
plug-ins needed.

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

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


[jboss-user] [Beginners Corner] - Re: problem with class loader

2008-09-11 Thread jaikiran
anonymous wrote : 09:23:31,522 INFO  [ServerInfo] Java version: 1.6.0_10-rc,Sun 
Microsystems Inc.
  | 

Can you try this with JDK 1.5 instead of JDK1.6?

anonymous wrote : 
  | 09:23:31,522 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Client VM 
11.0-b15,Sun Microsystems Inc.
  | 

The version number 11.0 looks strange or maybe that's how it is in JDK 1.6 (i 
haven't tried it yet).


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

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


[jboss-user] [JBoss Portal] - Re: Take 3 - Relationship between jboss-app.xml and *-object

2008-09-11 Thread nicolasduminil
Many thanks to thetikigod for having helped. Thosmas, please refrain yourself 
to answer, your replies are simply useless and arrogant.

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

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


[jboss-user] [Security JAAS/JBoss] - Re: JAAS authentification with JBoss AS CR1 : jaas not bound

2008-09-11 Thread slimamar
Sorry,
I've already created one : https://jira.jboss.org/jira/browse/SECURITY-273

I'm going to make a link to the EJBTHREE-1485 

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

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


[jboss-user] [Clustering/JBoss] - JBossAS5 cluster sample

2008-09-11 Thread omerlin
Hello,

Is it possible to find a simple sample on the new AS5 ?
It would be nice .

rgds

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

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


[jboss-user] [Beginners Corner] - Re: problem with class loader

2008-09-11 Thread PeterJ
I noticed that you are running the 'all' configuration. Try running 'default' 
instead and see if it works there.  If it does, try the 'all' configuration 
again but run it as:

run -c all -b 0.0.0.0

In another post there were curious eexceptions when running 'all' without the 
-b 0.0.0.0 option.
 

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

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


[jboss-user] [JBoss jBPM] - forking tasks

2008-09-11 Thread gnagy
Hi,

We have a workflow with a fork, and need to track tasks in each branch. A 
simplified use case follows:


Start
  |
Task0
  |
 Fork
/\
Task11   Task21
| |
Task12|
\/
 Join
  |
 End



We have a seam ui that uses PooledTaskInstanceList. We use swim lanes too, 
however the fork is within a single swim lane, so i guess it should not matter.

So we have a page with the pooled task instances. Initially Task0 should be 
displayed. When the user completes it, 2 tasks should appear: Task11, Task21. 
Then, if the user completes e.g. Task11, then the following should appear: Task 
12, Task21. Etc. The join should continue only if both branches are done.

However, currently only 1 task is shown from either branch, seemingly randomly, 
e.g. after Task0 the user has only the option to complete Task11, then Task12, 
then Task21, the end.

I read thought the docs and this forum, and the thing people seem to get hung 
upon is to perform things concurrently. But we don't really need that, just 
that the forked tasks appear multiple times in the pooled instance list (or 
some other list??), so the user can choose what to do next. I tried putting 
async=true on the fork to no avail.

Any suggestions?

thanks,
Greg

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: JBoss vs Weblogic: classloading

2008-09-11 Thread samkhanski
We're currently using JBoss 4.2

Could you point me to some literature that outlines (or details) what you've 
mentioned?

Many thanks.

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: JBoss vs Weblogic: classloading

2008-09-11 Thread jaikiran
Look at the Deployment Framework section in 
http://www.jboss.org/file-access/default/members/jbossmc/freezone/docs/2.0.x/userGuide/index.html

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

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


[jboss-user] [JBoss Getting Started Documentation] - Re: instrucitons for building roster application screwed up

2008-09-11 Thread PeterJ
You are reading a Getting Started Guide for the 4.0.x version of JBossAS. Looks 
like it was written for 4.0.2, and based on the types of changes that went into 
4.0.x after that, some of the things might not work in later 4.0.x release.

But you are running 4.2.x. The Getting Started Guide for that is at 
http://www.jboss.org/file-access/default/members/jbossas/freezone/docs/Getting_Started_Guide/beta422/html/index.html

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: DI and annotations not working

2008-09-11 Thread irinac
The client side code needed to invoke the web service (TestService.as and 
others) were generated from a wsdl url using tools in Flex Builder 3.

I am invoking the web service from my main application mxml file


  | 
  | /**
  |  * TestService.as
  |  * This file was auto-generated from WSDL by the Apache Axis2 generator 
modified by Adobe
  |  * Any change made to this file will be overwritten when the code is 
re-generated.
  |  */
  | package RPortal.atl{
  | import mx.rpc.AsyncToken;
  | import flash.events.EventDispatcher;
  | import mx.rpc.events.ResultEvent;
  | import mx.rpc.events.FaultEvent;
  | import flash.utils.ByteArray;
  | import mx.rpc.soap.types.*;
  | 
  | /**
  |  * Dispatches when a call to the operation sayHello completes with 
success
  |  * and returns some data
  |  * @eventType SayHelloResultEvent
  |  */
  | [Event(name=SayHello_result, type=RPortal.atl.SayHelloResultEvent)]
  | 
  | /**
  |  * Dispatches when the operation that has been called fails. The fault 
event is common for all operations
  |  * of the WSDL
  |  * @eventType mx.rpc.events.FaultEvent
  |  */
  | [Event(name=fault, type=mx.rpc.events.FaultEvent)]
  | 
  | public class TestService extends EventDispatcher implements ITestService
  | {
  | private var _baseService:BaseTestService;
  | 
  | /**
  |  * Constructor for the facade; sets the destination and create a 
baseService instance
  |  * @param The LCDS destination (if any) associated with the 
imported WSDL
  |  */  
  | public function 
TestService(destination:String=null,rootURL:String=null)
  | {
  | _baseService = new BaseTestService(destination,rootURL);
  | }
  | 
  | //stub functions for the sayHello operation
  |   
  | 
  | /**
  |  * @see ITestService#sayHello()
  |  */
  | public function sayHello():AsyncToken
  | {
  | var _internal_token:AsyncToken = _baseService.sayHello();
  | 
_internal_token.addEventListener(result,_sayHello_populate_results);
  | _internal_token.addEventListener(fault,throwFault); 
  | return _internal_token;
  | }
  | /**
  |  * @see ITestService#sayHello_send()
  |  */
  | public function sayHello_send():AsyncToken
  | {
  | return sayHello();
  | }
  | 
  | /**
  |  * @see ITestService#addsayHello()
  |  */
  | public function addsayHelloEventListener(listener:Function):void
  | {
  |  
addEventListener(SayHelloResultEvent.SayHello_RESULT,listener);
  | }
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | RPortal.mxml
  | 
  | mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
borderStyle=none 
  | mx:Script
  | ![CDATA[
  | import RPortal.atl.*;
  | 
  | [Bindable]
  | private var testService:TestService = new TestService();
  | 
  | private function testWebService():void
  | {
  | // Attach the event handler
  | 
testService.addsayHelloEventListener(handleWebServiceResult);
  | // Invoke the service call
  | testService.sayHello();
  | }
  | 
  | private function 
handleWebServiceResult(event:SayHelloResultEvent):void
  | {
  | trace(event.result);
  | }
  | ]]
  |   /mx:Script
  | 
  | 

please let me know if this level of detail is enough or if I need to post 
anything else.

I feel like I'm making a silly mistake somewhere in deployment but don't know 
where to look ...

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: DI and annotations not working

2008-09-11 Thread jaikiran
I'm not yet used to web services. But based on what i see, because of the way 
webservice TestWebService (which also is a EJB) is being constructed and 
invoked, the dependency injection never kicks in. My understanding is that the 
dependency injection will kick in only when the TestWebService is used as a EJB.

Someone with a better web services experience, here, might be able to help you 
understand the exact problem.


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

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


[jboss-user] [Beginners Corner] - Re: Windows Authentication with Jboss

2008-09-11 Thread PeterJ
anonymous wrote : I check into the server Info and I saw this JbossWeb/2.0.0GA. 
So I guess it's web server.

Not necessarily - the App Server contains the Web Server so this line would 
still show up (in which case you are running JBoss Application Server 4.2.1.GA 
- it contains JBoss Web 2.0.0.GA)

Let's try another way - do you have a file server/xxx/conf/login-config.xml 
under the JBoss directory?  (where 'xxx' is a configuration name - it could be 
anything) If so, then the link I provided earlier will work for you.

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

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


[jboss-user] [JBoss jBPM] - Re: forking tasks

2008-09-11 Thread kukeltje
hmmm... it should work as expected. No reason why task11 and task21 should not 
be visible at the same time. What could be the case is that you run into 
'caching'. Meaning that the tasklist is loaded when the transition to one task 
is taken from the fork but not the otherone yet. Refreshing this could clear 
things up. But if this is the case then I'd expect the first task after the 
first transition from the fork to be always visible, not randomly one or the 
other (unless it is non-determenistic which transition is taken first.

Async=true should not be needed here.

I'll try to make a unittest without seam to see if I can reproduce. Or if you 
already have one that would be great. btw, how are transactions configured?

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

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


[jboss-user] [JBoss jBPM] - Re: forking tasks

2008-09-11 Thread kukeltje
wait... task21 is not even visible when task11 is already performed? that is 
reaaal strange...???

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Is MailFolder.getNewMessages supposed to work?

2008-09-11 Thread stlecho
Hi,

Since a couple of days I'm trying to configure a way of popping mails from a 
mailbox. When looking at the code of MailFolder, I'm wondering if the 
getNewMessages() method is supposed to work.

First of all there is an interesting comment: This does not seem to be the 
most reliable new msg check
MailFolder.java: public Message[] getNewMessages()
  |   /* This does not seem to be the most reliable new msg check. This 
should
  |   probably be unread msgs with the msgs marked as read on successful
  |   delivery.
  |   */
  |   if (folder.hasNewMessages() {
  |   ...
  |   }
  | 
 
According to the JavaDoc of POP3Folder.hasNewMessages(), the method always 
returns false.

POP3Folder.hasNewMessages()
  |  Always returns false; the POP3 protocol provides no way to determine when 
a new message arrives.

I would be pleased if someone could indicate if this has been solved in the 
mean time :o)

Regards, Stefan Lecho.

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

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


[jboss-user] [Microcontainer] - Thread pool deployer?

2008-09-11 Thread [EMAIL PROTECTED]
Is there a deployer (that I can't find) for setting up threadpool-related POJOs?

I'm picturing something where you define ThreadGroups, ThreadFactories which 
use the ThreadGroups, and Executors which use the ThreadFactories.  I think the 
next generation of services and components will expect things like Executors 
to be injected from the container so I would hope that there is an easy way to 
define them similar to this.

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

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


[jboss-user] [Microcontainer] - Re: Thread pool deployer?

2008-09-11 Thread [EMAIL PROTECTED]
Here's some imaginary XML:


  | threading
  | thread-group name=MyServiceThreads daemon=false max-priority=10/
  | 
  | thread-factory name=MyServiceThreadFactory
  | thread-group name=MyServiceThreads/
  | thread-name pattern=%s-%d
  | param type=thread-group-name/
  | param type=thread-number/
  | /thread-name
  | /thread-factory
  | 
  | cached-thread-pool-executor name=MyServiceExecutor
  | thread-factory name=MyServiceThreadFactory/
  | /cached-thread-pool-executor
  | /threading
  | 

Or something like that.  Then you inject the executor into your POJO the usual 
way.  It's always nice to have the container control all this crap...

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

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


[jboss-user] [Management, JMX/JBoss] - is it possible to overiding patchURL functionality?

2008-09-11 Thread patwary_shiva
I want to control in what order jars(setting classpath) files will be loaded so 
that java can load the a.class from a.jar rather than b.jar when both a.jar and 
b.jar has the same class.
this can be done by changing the  way pathcURL picks up jar or zip files.

 The code is in  serverImpl.java of  jboss-system.jar initBootLibraries() 
method which is private.
The code needs to change to accept multiple jar files also and in the order we 
have specified in patchURL parameter.I am not sure whether it is good idea to 
modify by ourself as it will be very hard to maintain. Doesanyone  have any 
suggestion!!.we are in process of buying jboss. should i make a patch request 
once we buy it or there is another way out.It is pretty urgent as we have a 
delivery to make.

Below is the code i am talking about..


/**
* Initialize the boot libraries.
*/
   private RepositoryClassLoader initBootLibraries() throws Exception
   {
  // Build the list of URL for the spine to boot
  List list = new ArrayList();

  // Add the patch URL.  If the url protocol is file, then
  // add the contents of the directory it points to
  URL patchURL = config.getPatchURL();
  if (patchURL != null)
  {
 if (patchURL.getProtocol().equals(file))
 {
File dir = new File(patchURL.getFile());
if (dir.exists())
{
   // Add the local file patch directory
   list.add(dir.toURL());

   // Add the contents of the directory too
   File[] jars = dir.listFiles(new FileSuffixFilter(new String[] { 
.jar, .zip }, true));

   for (int j = 0; jars != null  j  jars.length; j++)
   {
  list.add(jars[j].getCanonicalFile().toURL());
   }
}
 }
 else
 {
list.add(patchURL);
 }
  }
shiva

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

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


[jboss-user] [Beginners Corner] - Re: problem with class loader

2008-09-11 Thread devireddy
HI 

 Thank you for your help guys. I did try running it in default configuration 
this time i did not see any error in the log. But I did not understand if the 
application is deployed at all. So I tried to run the client application and i 
see this error in the log

could you please tell me what it means. I guess application is not deployed 
atall am I correct ?


  | 2008-09-11 11:55:37,982 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] 
Periodic recovery - first pass Thu, 11 Sep 2008 11:55:37
  | 2008-09-11 11:55:37,982 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] 
StatusModule: first pass 
  | 2008-09-11 11:55:37,982 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] 
[com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] - TORecoveryModule - 
first pass
  | 2008-09-11 11:55:37,982 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] 
[com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARecoveryModule - 
first pass
  | 2008-09-11 11:55:47,984 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] 
Periodic recovery - second pass Thu, 11 Sep 2008 11:55:47
  | 2008-09-11 11:55:47,984 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] 
AtomicActionRecoveryModule: Second pass 
  | 2008-09-11 11:55:47,984 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] 
[com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - 
second pass
  | 2008-09-11 11:55:47,984 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] 
[com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - 
second pass
  | 2008-09-11 11:56:32,210 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin 
ReadTask.run Thread[UIL2.SocketManager.ReadTask#3 
client=127.0.0.1:1192,5,JBossMQ Server Threads]
  | 2008-09-11 11:56:32,210 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin 
WriteTask.run Thread[UIL2.SocketManager.WriteTask#4 
client=127.0.0.1:1192,5,JBossMQ Server Threads]
  | 2008-09-11 11:56:32,210 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created 
ObjectOutputStream
  | 2008-09-11 11:56:32,210 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created 
ObjectInputStream
  | 2008-09-11 11:56:32,226 DEBUG 
[org.jboss.mq.il.uil2.ServerSocketManagerHandler] Setting up the UILClientIL 
Connection
  | 2008-09-11 11:56:32,226 DEBUG 
[org.jboss.mq.il.uil2.ServerSocketManagerHandler] The UILClientIL Connection is 
set up
  | 2008-09-11 11:56:32,710 DEBUG 
[org.jboss.mq.il.uil2.ServerSocketManagerHandler] Exiting on IOE
  | java.net.SocketException: Connection reset
  | at java.net.SocketInputStream.read(Unknown Source)
  | at java.io.BufferedInputStream.fill(Unknown Source)
  | at java.io.BufferedInputStream.read(Unknown Source)
  | at 
org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79)
  | at java.io.ObjectInputStream$PeekInputStream.peek(Unknown Source)
  | at 
java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(Unknown Source)
  | at java.io.ObjectInputStream$BlockDataInputStream.refill(Unknown Source)
  | at java.io.ObjectInputStream$BlockDataInputStream.read(Unknown Source)
  | at java.io.ObjectInputStream$BlockDataInputStream.readByte(Unknown 
Source)
  | at java.io.ObjectInputStream.readByte(Unknown Source)
  | at 
org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:340)
  | at java.lang.Thread.run(Unknown Source)
  | 2008-09-11 11:56:32,710 DEBUG [org.jboss.mq.il.uil2.SocketManager] End 
ReadTask.run Thread[UIL2.SocketManager.ReadTask#3 
client=127.0.0.1:1192,5,JBossMQ Server Threads]
  | 2008-09-11 11:56:32,710 DEBUG [org.jboss.mq.il.uil2.SocketManager] End 
WriteTask.run Thread[UIL2.SocketManager.WriteTask#4 
client=127.0.0.1:1192,5,JBossMQ Server Threads]
  | 
  | 



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

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


[jboss-user] [Microcontainer] - Re: Thread pool deployer?

2008-09-11 Thread alesj
Dunno what exactly do you mean? :-)

I have this in the pipe-line:
 - https://jira.jboss.org/jira/browse/JBMICROCONT-327
If this is what you want / mean?

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

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


[jboss-user] [Security JAAS/JBoss] - Re: Peer address from LoginModule

2008-09-11 Thread jopersson
Custom LoginModule is driven by Web Service's . I can see earlier on call stack 
that hostName and protocol can be found in LoginContext:

my.security.auth.spi.DatabaseServerLoginModule.login(DatabaseServerLoginModule.java:116)
sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
java.security.AccessController.doPrivileged(AccessController.java)
javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
javax.security.auth.login.LoginContext.login(LoginContext.java:579)
org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:603)
org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:537)
org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)
org.jboss.web.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:491)
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:180)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
java.lang.Thread.run(Thread.java:619)

Now I am trying to create LoginContext in CustomLoginModule::initialize(Subject 
subject, CallbackHandler callbackHandler, 
Map sharedState, Map options) 
{
super.initialize(subject, callbackHandler, sharedState, options);   
 
this.subject = subject;
try {
loginContext = new LoginContext(MySP, subject, callbackHandler);
} catch (LoginException ex) {

Logger.getLogger(DatabaseServerLoginModule.class.getName()).log(Level.SEVERE, 
null, ex);
}

But it does not give client ip.

Maybe there is some abstraction on Jboss Remote for getting client ip ?


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

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


[jboss-user] [Microcontainer] - Re: Thread pool deployer?

2008-09-11 Thread alesj
[EMAIL PROTECTED] wrote : 
  | Or something like that.  Then you inject the executor into your POJO the 
usual way.  It's always nice to have the container control all this crap...
Aha, I see.
But this is just to simplify thread-pool pojos config. ;-)

Afaik there is no such deployer yet out there.
Which doesn't mean you can't create one. :-)
We just need to think of some proper place,
as varia is considered dead now. ;-)

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

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


[jboss-user] [JBoss Messaging] - Re: Cannot start post office...

2008-09-11 Thread bodrin
I'm also experiencing the problem described in
https://jira.jboss.org/jira/browse/JBMESSAGING-1256

Finally I have found a workaround : starting JBoss with different multicast 
address (-u 230.0.0.5) eleminated the above problems!

It seems that the interaction with other nodes on the LAN is tha cause for the 
above two problems.

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

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


[jboss-user] [Security JAAS/JBoss] - Re: SSO on JBOSS with Kerberos

2008-09-11 Thread Frito
Hi noFreak,

could you please upload the whole documentation somewhere, perhaps a small 
entry in the Wiki with an attachment of the zipped document. Even if in german, 
it could help a lot ... 

Thanks a lot,

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

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


[jboss-user] [Microcontainer] - Re: Thread pool deployer?

2008-09-11 Thread [EMAIL PROTECTED]
alesj wrote : 
  | But this is just to simplify thread-pool pojos config. ;-)
  | 

Exactly! :-)

alesj wrote : 
  | Afaik there is no such deployer yet out there.
  | Which doesn't mean you can't create one. :-)
  | We just need to think of some proper place,
  | as varia is considered dead now. ;-)

Good riddance to varia.  Probably a separate mini-project would be good.  Maybe 
I'll start a jboss-threading project in my sandbox repository, in my copious 
amounts of free time.

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

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


[jboss-user] [Tomcat, HTTPD, Servlets JSP] - JBoss, Tomcat, CVE-2008-1232 and related

2008-09-11 Thread darretta
I am having difficulty determining if JBoss 4.0.3SPI is vulnerable to 
CVE-2008-1232 (and related) regarding the Tomcat XSS vulnerability. Is the 
embedded Tomcat server in JBoss 4.0.3SP1 affected by this CVE? If so, is there 
a patch aside from upgrading to the latest JBoss?

Thank you.

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

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


[jboss-user] [Beginners Corner] - Re: problem with class loader

2008-09-11 Thread devireddy
Heyy !!

  I found some thing new. As I was trying to change the server config by making 
the project to start on the new server it showed this error


  | Project facet Java version 6.0 is not supported.
  | 

so is it all about the version stuff that messed my previous execution. How do 
I change it java 5.o ??

can u help on this ??

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

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


[jboss-user] [JBossWS] - websphere swaRef/MIME interop. issue

2008-09-11 Thread amashtakov
Hi Everybody,

I spent several hours while fighting with the following issue, but with 
no luck:

I have to access a web service, running on websphere v6. 
The web service itself uses swaRef and MIME for attachments. 
Both, JBossWS and WebSphere v6 claim support for 
WS-I Attachment Profile 1.0, but running wsconsume tool against
wsdl file raises the folowing error:


  | [ERROR] invalid extension element: mime:part (in namespace  
http://schemas.xmlsoap.org/wsdl/mime/;) unknown location
  | 

I tested this with jboss 4.2.2.GA, 4.2.3.GA and jbossws-3.0.3-native, but
the error remains. Seems, that problem is with wsdl file, but I cannot
figure out why due my limited experience with web services. Can 
anybody help me this ? Any pointers will be highly appreciated.

Thank you in advance,
/Alexander

PS:

WeatherAttachment.wsdl (an example from websphere web services handbook v6)


  | ?xml version=1.0 encoding=UTF-8?
  | wsdl:definitions xmlns:impl=http://bean.itso; 
xmlns:intf=http://bean.itso; 
  | xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/; 
  | xmlns:tns2=http://objects.itso; 
  | xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; 
  | xmlns:wsdlsoap=http://schemas.xmlsoap.org/wsdl/soap/; 
  | xmlns:wsi=http://ws-i.org/profiles/basic/1.1/xsd; 
  | xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
  | targetNamespace=http://bean.itso;
  |  wsdl:types
  |   schema xmlns=http://www.w3.org/2001/XMLSchema; 
  | targetNamespace=http://bean.itso; xmlns:impl=http://bean.itso; 
  | xmlns:intf=http://bean.itso; xmlns:tns2=http://objects.itso; 
  | xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; 
  | xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  | 
  |import namespace=http://objects.itso/
  |import namespace=http://ws-i.org/profiles/basic/1.1/xsd; 
schemaLocation=swaref.xsd/
  |element name=getDayForecast
  | complexType
  |  sequence
  |   element name=theDate nillable=true type=xsd:dateTime/
  |  /sequence
  | /complexType
  |/element
  |element name=getDayForecastResponse
  | complexType
  |  sequence
  |   element name=getDayForecastReturn nillable=true 
type=tns2:Weather/
  |  /sequence
  | /complexType
  |/element
  |   /schema
  |   schema xmlns=http://www.w3.org/2001/XMLSchema; 
  | targetNamespace=http://objects.itso; xmlns:impl=http://bean.itso; 
  | xmlns:intf=http://bean.itso; 
  | xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; 
  | xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  |complexType name=Weather
  | sequence
  |  element name=condition nillable=true type=xsd:string/
  |  element name=date nillable=true type=xsd:dateTime/
  |  element name=windDirection nillable=true type=xsd:string/
  |  element name=windSpeed type=xsd:int/
  |  element name=temperatureCelsius type=xsd:int/
  |  element name=dbflag type=xsd:boolean/
  | /sequence
  |/complexType
  |   /schema
  |  /wsdl:types
  | 
  |wsdl:message name=getDayForecastRequest
  | 
  |   wsdl:part element=impl:getDayForecast name=parameters/
  | 
  |/wsdl:message
  | 
  |wsdl:message name=getDayForecastResponse
  | 
  |   wsdl:part element=impl:getDayForecastResponse name=parameters/
  | 
  |/wsdl:message
  | 
  | wsdl:message name=getDayForecastImageRequest
  | 
  | wsdl:part name=theDate type=xsd:dateTime/
  | 
  | wsdl:part name=bgImage type=xsd:hexBinary/
  | 
  | /wsdl:message
  | 
  | wsdl:message name=getDayForecastImageResponse
  | 
  | wsdl:part name=weatherImage type=wsi:swaRef/
  | 
  | /wsdl:message
  | 
  |wsdl:portType name=WeatherAttachment
  | 
  |   wsdl:operation name=getDayForecast
  | 
  |  wsdl:input message=impl:getDayForecastRequest 
name=getDayForecastRequest/
  | 
  |  wsdl:output message=impl:getDayForecastResponse 
name=getDayForecastResponse/
  | 
  |   /wsdl:operation
  | 
  |   wsdl:operation name=getDayForecastImage
  | 
  |  wsdl:input message=impl:getDayForecastImageRequest 
name=getDayForecastImageRequest/
  | 
  |  wsdl:output message=impl:getDayForecastImageResponse 
name=getDayForecastImageResponse/
  | 
  |   /wsdl:operation
  | 
  |/wsdl:portType
  | 
  |wsdl:binding name=WeatherAttachmentSoapBinding 
type=impl:WeatherAttachment
  | 
  |   wsdlsoap:binding style=document 
transport=http://schemas.xmlsoap.org/soap/http/
  | 
  |wsdl:operation name=getDayForecast
  | 
  |  wsdlsoap:operation soapAction=/
  | 
  |  wsdl:input name=getDayForecastRequest
  | 
  | wsdlsoap:body use=literal/
  | 
  |  /wsdl:input
  | 
  |  wsdl:output name=getDayForecastResponse
  | 
  | wsdlsoap:body use=literal/
  | 
  |  /wsdl:output
  | 
  |   /wsdl:operation
  | 
  |   wsdl:operation name=getDayForecastImage
  | 
  | wsdlsoap:operation soapAction=/
  | 
  | wsdl:input 

[jboss-user] [Beginners Corner] - Re: JBoss MDB Beginner Question

2008-09-11 Thread dvh75
Don't know if you found your answer or not, but check this out:
http://docs.jboss.org/ejb3/app-server/tutorial/

As described in the injection section, you can do the following:

The @javax.annotation.Resource annotation allows you to inject resources.

   @Resource(mappedName=DefaultDS)
   private javax.sql.DataSource ds;

If you just need String data, it would look like so:

   @Resource(mappedName=MyConfigValue)
   private String somevalue;


If you're not using the annotations, just declare a resource in the ejb-jar.xml 
for you mdb, then do a jndi lookup on it in your bean.

Hope this helps...


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

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


[jboss-user] [JBoss jBPM] - Re: forking tasks

2008-09-11 Thread kukeltje
Ok, basic trial without Seam and no special transaction stuff works


  | package net.vankuijk.jbpm;
  | 
  | import java.util.ArrayList;
  | import java.util.Arrays;
  | import java.util.HashSet;
  | import java.util.Iterator;
  | import java.util.List;
  | import java.util.Set;
  | 
  | import org.apache.commons.logging.Log;
  | import org.apache.commons.logging.LogFactory;
  | import org.jbpm.JbpmContext;
  | import org.jbpm.db.AbstractDbTestCase;
  | import org.jbpm.graph.def.ProcessDefinition;
  | import org.jbpm.graph.exe.ExecutionContext;
  | import org.jbpm.graph.exe.ProcessInstance;
  | import org.jbpm.taskmgmt.def.AssignmentHandler;
  | import org.jbpm.taskmgmt.exe.Assignable;
  | import org.jbpm.taskmgmt.exe.TaskAssignmentDbTest;
  | import org.jbpm.taskmgmt.exe.TaskInstance;
  | import org.jbpm.taskmgmt.exe.TaskMgmtInstance;
  | 
  | import junit.framework.TestCase;
  | 
  | public class ForkedTaskTest extends AbstractDbTestCase {
  | void deployProcessDefinition(String xml) {
  | ProcessDefinition processDefinition = ProcessDefinition
  | .parseXmlString(xml);
  | jbpmContext.deployProcessDefinition(processDefinition);
  | newTransaction();
  | }
  | 
  | public void testStartStateSwimlaneInitialization() {
  | deployProcessDefinition(process-definition 
name='testForkedTasks'
  | +   swimlane name='gertsGroupSwimlane'
  | + assignment pooled-actors='gertsGroup' 
/
  | +   /swimlane
  | +   start-state
  | + transition name='to_0' to='0' /
  | +   /start-state
  | +   task-node name='0'
  | + task name='task 0' 
swimlane='gertsGroupSwimlane' /
  | + transition name='to_fork1' to='fork1' /
  | +   /task-node
  | +   fork name='fork1'
  | + transition name='to_11' to='11' /
  | + transition name='to_21' to='21' /
  | +   /fork
  | +   task-node name='11'
  | + task name='task 11' 
swimlane='gertsGroupSwimlane' /
  | + transition name='to_12' to='12' /
  | +   /task-node
  | +   task-node name='12'
  | + task name='task 12' 
swimlane='gertsGroupSwimlane' /
  | + transition name='to_join' to='join1' /
  | +   /task-node
  | +   task-node name='21'
  | + task name='task 21' 
swimlane='gertsGroupSwimlane' /
  | + transition name='to_join' to='join1' /
  | +   /task-node
  | +   join name='join1'
  | + transition name='end' to='end' /
  | +   /join
  | +   end-state name='end' /
  | + /process-definition);
  | 
  | ProcessInstance processInstance = 
jbpmContext.newProcessInstanceForUpdate(testForkedTasks);
  | processInstance.signal();
  | 
  | processInstance = saveAndReload(processInstance);
  | 
  | ArrayList actorIDs = new ArrayList();
  | actorIDs.add(gertsGroup);
  | 
  | 
//assertNotNull(processInstance.getTaskMgmtInstance().getTaskInstances());
  | 
  | List tasks = jbpmContext.getGroupTaskList(actorIDs);
  | assertEquals(1, tasks.size());
  | assertEquals(false, ((TaskInstance) 
tasks.get(0)).isStartTaskInstance());
  | TaskInstance task0 = (TaskInstance) tasks.iterator().next();
  | assertEquals(task 0, task0.getName());
  | task0.end();
  | 
  | processInstance = saveAndReload(processInstance);
  | 
  | tasks = jbpmContext.getGroupTaskList(actorIDs);
  | assertEquals(2, tasks.size());
  | ArrayList taskNames = new ArrayList();
  | taskNames.add(((TaskInstance) tasks.get(0)).getName());
  | taskNames.add(((TaskInstance) tasks.get(1)).getName());
  | assertTrue(taskNames.contains(task 11));  
  | assertTrue(taskNames.contains(task 21));
  | assertFalse(taskNames.contains(task 12));
  | 
  | TaskInstance task11 = (TaskInstance) tasks.get(0); //gamble it is 
the first
  | if (!task11.getName().equals(task 11)) {
  | task11 = (TaskInstance) tasks.get(1); // ok, it's the second
  | }
  | task11.end();
  | 
  | processInstance = saveAndReload(processInstance);
  | 
  | tasks = 

[jboss-user] [JBoss jBPM] - Persistenting Custom Objects

2008-09-11 Thread rdejana
I'm trying to use hibernate to persist a custom object as process variable.  
The documenation says, just add to the hibernate config file and go, howerver 
it isn't working.  The system complains that the entity is unpersistable 
according to the jbpm.varmapping.xml configuration.

Any pointers on setting up hibernate? 

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

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


[jboss-user] [JBossWS] - Re: Providing your own wsdl instead of the generated one.

2008-09-11 Thread sr_ren
I am using JBoss 4.3. I followed the exact steps I just got this
10:25:45,013 INFO  [DefaultEndpointRegistry] register: 
jboss.ws:context=EchoTest,endpoint=echo
10:25:45,075 INFO  [TomcatDeployer] deploy, ctxPath=/EchoTest, 
warUrl=.../tmp/deploy/tmp53925EchoTest-exp.war/
10:25:45,401 INFO  [WSDLFilePublisher] WSDL published to: file:/C:/Program 
Files/JBoss/server/default/data/wsdl/EchoTest.war/EchoService.wsdl

I did not get the message regarding ServiceEndpointDeployer. When I test my 
web service I got exception 

10:27:07,011 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
java.lang.IllegalStateException: Canot get target bean instance
at 
org.jboss.wsf.container.jboss42.DefaultInvocationHandler.getTargetBean(DefaultInvocationHandler.java:80)
at 
org.jboss.wsf.container.jboss42.DefaultInvocationHandler.invoke(DefaultInvocationHandler.java:90)
at 
org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:220)
...
Caused by: java.lang.InstantiationException: echo.Echo
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at 
org.jboss.wsf.container.jboss42.DefaultInvocationHandler.getTargetBean(DefaultInvocationHandler.java:75)

I don't understand who creates this echo.Echo servlet which is mentioned in the 
web.xml. Any help

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

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


[jboss-user] [Beginners Corner] - Re: Custom Classloader from Database

2008-09-11 Thread dvh75
I read this article a while ago about building a web service based grid.  Talks 
about how to implement your own classloader with a full example...  Should be 
relatively simple for you to modify for your purposes.

http://www.javaworld.com/javaworld/jw-04-2003/jw-0425-grid.html

Dave

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

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


[jboss-user] [Beginners Corner] - Re: MDB cannot be created when running in

2008-09-11 Thread dvh75
Gents,

You'll want to change your MDBs to look in the global jndi tree for the JMS 
Queue/Topic it is trying to bind to.  See this wiki entry:

http://wiki.jboss.org/wiki/HowToConfigureMDBsToSubscribeToATopic

Basically, since the JMS Server (Jbossmq) is a cluster singleton and so are its 
destinations, you'll need to use the cluster port (1100 by default) instead of 
the local (1099) jndi port.  Otherwise your MDBs will never start because they 
are dependant on the DestinationManager service (again only runs on the active 
jms node)

Hope this helps...



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

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


[jboss-user] [JBoss Messaging] - Singleton MDB with JBM.

2008-09-11 Thread jbossnoob
Is this possible to do without converting JBM to the whole singleton model?

Thanks

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

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


[jboss-user] [JBoss jBPM] - list as variableinstance

2008-09-11 Thread AJanz
is ist possible to have a list of variableinstance? 

may be a variable named group


with 

group G1
group G2
group G3

for a processinstance?



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

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


[jboss-user] [Beginners Corner] - Drools + Export

2008-09-11 Thread leonardofigueiredo
Is there a Drools related forum?

I want to be able to download the rules export in a script. Is there any class 
in drools api that allows me to do that? Is it possible to call the same url 
that the web interface calls to download the exported zip?

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

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


[jboss-user] [EJB 3.0] - Bad EAR generated by Eclipse?

2008-09-11 Thread dan jboss
I am using Eclipse 3.4.0 to generate an EAR for a jboss-4.2.3.GA installation. 
It is a very simple (my first) application and everything seems to be in place 
as expected from an ear except for the application.xml file. I am getting the 
following error on the server:

19:53:34,297 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on 
http-127.0.0.1-8080
19:53:34,329 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
19:53:34,342 INFO  [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: 
SVNTag=JBoss_4_2_3_GA date=200807181439)] Started in 29s:708ms
17:32:08,053 INFO  [EARDeployer] Init J2EE application: 
file:/C:/jboss-4.2.3.GA/server/jms/deploy/myEnterpriseProject.ear
17:32:08,485 ERROR [MainDeployer] Could not initialise deployment: 
file:/C:/jboss-4.2.3.GA/server/jms/deploy/myEnterpriseProject.ear

org.jboss.deployment.DeploymentException: No META-INF/application.xml found
   at org.jboss.deployment.EARDeployer.init(EARDeployer.java:146)
   at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)
   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
   at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)

which seems to be justified since the directory structure I see in the ear file 
is the following:

META-INF/MANIFEST.MF
myEjbProject.jar
myEjbProjectClient.jar
myDynamicWebProject.war

What am I missing? Why isn't the application.xml file generated. I guess I can 
generate it manually but that's not the point. Can anybody help please? 
I know this question should belong to an Eclipse newsgroup but I couldn't get 
any response there.
 
Thanks.

Dan

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

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


[jboss-user] [Beginners Corner] - dataTable onRowClick not able to call java bean

2008-09-11 Thread songbird0021
Hi,

I'm upgrading from 3.1.3CR4 to 3.2.1.   My current code:

 
  |   a4j:region id=dataregion1
  | rich:dataTable id=animaldatatable 
binding=#{SearchBean.dynamicDataTable} 
  | a4j:support ajaxSingle=true 
event=onRowClick
  |  
action=#{SearchBean.rowClickAction} 
  |  
reRender=indivanimalrichpanel, indivdatascroller, searcherror, recordtoolbar, 
editAllModal /
  | /rich:dataTable
  | /a4j:region
  | 
  | My call to the SearchBean is no longer happening. How do I need to modify 
my code to call this bean?
  | 
  | Thank you!

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

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


[jboss-user] [Beginners Corner] - Re: MDB cannot be created when running in

2008-09-11 Thread dvh75
sorry, I should have been more explicit, as the wiki post is lacking.

In your jms-ds.xml, look for the JMSProviderLoader mbean. It's entry should be 
changed to look something like this:


 !-- The JMS provider loader --
  |   mbean code=org.jboss.jms.jndi.JMSProviderLoader
  |  name=jboss.mq:service=JMSProviderLoader,name=HAJNDIJMSProvider
  | attribute name=ProviderNameDefaultJMSProvider/attribute
  | attribute name=ProviderAdapterClass
  |   org.jboss.jms.jndi.JNDIProviderAdapter
  | /attribute
  | !-- The combined connection factory --
  | attribute name=FactoryRefXAConnectionFactory/attribute
  | !-- The queue connection factory --
  | attribute name=QueueFactoryRefXAConnectionFactory/attribute
  | !-- The topic factory --
  | attribute name=TopicFactoryRefXAConnectionFactory/attribute
  | !-- Access JMS via HAJNDI --
  | attribute name=Properties
  |java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  |java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  |java.naming.provider.url=${jboss.bind.address:localhost}:1100
  |jnp.disableDiscovery=false
  |jnp.partitionName=${jboss.partition.name:DefaultPartition}
  |jnp.discoveryGroup=${jboss.partition.udpGroup:230.0.0.4}
  |jnp.discoveryPort=1102
  |jnp.discoveryTTL=16
  |jnp.discoveryTimeout=5000
  |jnp.maxRetries=1
  | /attribute
  |   /mbean


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

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


[jboss-user] [JBoss Messaging] - Re: Distributed queue, HA-JMS/singleton basic questions

2008-09-11 Thread jbossnoob
So do I take it that this will not really work?

https://jira.jboss.org/jira/browse/JBMESSAGING-1149

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

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


[jboss-user] [Beginners Corner] - Re: problem with class loader

2008-09-11 Thread devireddy
Oh!

 I am trying to figure out the compatible versions of jre with eclipse 3.4 and 
jboss 4.2.3. some how the web and other EJB projects that used to run before 
have got problems now as I was trying to get this MDB project to run. 

every project now shows this error when i try to run it on the server


  |  Project facet Java version 6.0 is not supported.
  | 

what does it mean how do I get out of it ?? any help 

I had always liked working with netbeans and this experience with eclipse is 
making me like netbeans even better.

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

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


[jboss-user] [EJB 3.0] - Re: Problem with stateful session bean and connection

2008-09-11 Thread Marcos_APS
jaikiran wrote : 
  | See this 
http://wiki.jboss.org/wiki/WhatDoesTheMessageDoYourOwnHousekeepingMean

I read the article and understand what was going on with my stateful session 
bean. Indeed, the problem is very simple to fix. I just have to close the 
connection after I use it in the same way I'm already doing with my stateless 
session beans.

I suppose that reading my code you could realize that I was trying to cache a 
CallableStatement in the stateful session bean in order to avoid getting a 
connection and preparing the CallableStatement every time the method is called. 
As the things go, I suppose I'll have to transform the stetaful bean in a 
stateless bean as there is no point in having a stateful bean if I can't keep 
state (Connection and CallableStatement) between method calls.

Is there a solution to this or is the solution the stateless session bean?

Marcos

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

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


[jboss-user] [JBoss Portal] - Re: Take 3 - Relationship between jboss-app.xml and *-object

2008-09-11 Thread [EMAIL PROTECTED]
Nicolas, 
you must understand that the forum is an important source of information. If 
everyone post several times the same thing, it just make it harder for all the 
other when they search for an answer to a similar issue.

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

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


[jboss-user] [JBossWS] - Re: SOAPElementImpl cast excepion (JBoss 4.2 + Axis2 + JDK1.

2008-09-11 Thread davidm2005
Hi,

Did you (or anyone else) ever figure out this problem?  I have almost the same 
error message trying to do use WS-Security for encrypting and signing messages:

2008-09-11 15:02:45,968 ERROR [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] 
SOAP request exception

java.lang.ClassCastException: org.jboss.ws.core.soap.SOAPElementImpl

at org.jboss.ws.core.soap.SOAPEnvelopeImpl.(SOAPEnvelopeImpl.java:60)

at 
org.jboss.ws.core.soap.EnvelopeBuilderDOM.build(EnvelopeBuilderDOM.java:124)

at 
org.jboss.ws.core.soap.EnvelopeBuilderDOM.build(EnvelopeBuilderDOM.java:96)

at 
org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:280)

at 
org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:195)

at 
org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:447)

at 
org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:284)

at 
org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:201)

at 
org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:134)

at 
org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

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

at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)

at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)

at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)

at java.lang.Thread.run(Thread.java:595)


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

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


[jboss-user] [JBossWS] - Re: SOAPElementImpl cast excepion (JBoss 4.2)

2008-09-11 Thread davidm2005
P.S. I'm using neither axis nor jdk 1.6, but rather jboss-4.2.3.GA, JAX-WS SLSB 
EJB Webservices, and JDK 1.5.0_16

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Deploy and run under -all configuration

2008-09-11 Thread muddu_shafi
I want to deploy my application in the server-all configuration instead of 
default. I know that it can be done using the  
 run.bat -c all
But I want to change the run.bat so that jboss automatically starts using all 
configuration on startup.
Also can I make changes inthe run.bat startup script so that my jboss server 
listens to remote acess.
Note- I have tried to run using run -b 0.0.0.0 and it works, I am able to acess 
my Jboss remotely.

I dont want to do it everytime I start jobss, all I want is to just click 
run.bat and jboss starts with the all configuration and hears remote 
invocations.




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

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


[jboss-user] [JBoss Messaging] - Re: Need help with configuring message bridge from JBM-1.4.0

2008-09-11 Thread Karen.Kramer
Well I was able to get it to work, so this may help you:

Putting everything in one file --- jms-ds.xml, seemed to solve the deployment 
probem. This following code works successfully for forwarding a message from a 
queue on a server with JBM and to JBossMQ with the Bridge being deployed on the 
server using JBM. You would only need to change the queue names and the IP 
address of the remote server.

This is my jmx-ds.xml file

?xml version=1.0 encoding=UTF-8 ? 
  | connection-factories
  | 
  | !--  The JMS provider loader   -- 
  | mbean code=org.jboss.jms.jndi.JMSProviderLoader 
name=jboss.messaging:service=JMSProviderLoader,name=JMSProvider
  |   attribute name=ProviderNameDefaultJMSProvider/attribute 
  |   attribute 
name=ProviderAdapterClassorg.jboss.jms.jndi.JNDIProviderAdapter/attribute  
  |!--  The combined connection factory -- 
  |   attribute name=FactoryRefXAConnectionFactory/attribute 
  |   !--  The queue connection factory -- 
  |   attribute name=QueueFactoryRefXAConnectionFactory/attribute 
  |   !--  The topic factory  -- 
  |   attribute name=TopicFactoryRefXAConnectionFactory/attribute 
  |   !-- 
  |Uncomment to use HAJNDI to access JMS
  | attribute name=Properties
  |java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  |java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  |java.naming.provider.url=localhost:1100
  | /attribute
  |   -- 
  | /mbean
  | 
  | 
  | 
  | mbean code=org.jboss.jms.jndi.JMSProviderLoader 
name=jboss.messaging:service=JMSProviderLoader,name=RemoteJMSProvider
  |  attribute name=ProviderNameRemoteXAConnectionFactory/attribute
  |  attribute 
name=ProviderAdapterClassorg.jboss.jms.jndi.JNDIProviderAdapter/attribute
  |  !-- The combined connection factory --
  |  attribute name=FactoryRefXAConnectionFactory/attribute
  |  !-- The queue connection factory --
  |  attribute name=QueueFactoryRefXAConnectionFactory/attribute
  |  !-- The topic factory --
  |  attribute name=TopicFactoryRefXAConnectionFactory/attribute
  | attribute name=Properties
  |java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  |java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  |java.naming.provider.url=172.31.19.57:1399
  | /attribute
  |   /mbean
  |   
  |   mbean code=org.jboss.jms.server.bridge.BridgeService 
name=jboss.messaging:service=Bridge,name=TestBridge 
xmbean-dd=xmdesc/Bridge-xmbean.xml
  |  depends 
optional-attribute-name=SourceProviderLoaderjboss.messaging:service=JMSProviderLoader,name=JMSProvider/depends
  |  depends 
optional-attribute-name=TargetProviderLoaderjboss.messaging:service=JMSProviderLoader,name=RemoteJMSProvider/depends
  |  attribute 
name=SourceDestinationLookup/queue/DisputeStatusMessageQueue/attribute
  |  attribute 
name=TargetDestinationLookup/queue/DisputeStatusMessageQueue/attribute
  |  attribute name=QualityOfServiceMode0/attribute
  |  attribute name=MaxBatchSize5/attribute
  |  attribute name=MaxBatchTime-1/attribute
  |  attribute name=FailureRetryInterval5000/attribute
  |  attribute name=MaxRetries-1/attribute
  |  attribute name=AddMessageIDInHeaderfalse/attribute
  | /mbean
  | 
  | !--  The server session pool for Message Driven Beans -- 
  | mbean code=org.jboss.jms.asf.ServerSessionPoolLoader 
name=jboss.messaging:service=ServerSessionPoolMBean,name=StdJMSPool
  |   depends 
optional-attribute-name=XidFactoryjboss:service=XidFactory/depends 
  |   attribute name=PoolNameStdJMSPool/attribute 
  |   attribute 
name=PoolFactoryClassorg.jboss.jms.asf.StdServerSessionPoolFactory/attribute
 
  | /mbean
  |   
  | !--  JMS XA Resource adapter, use this to get transacted JMS in beans  -- 
  | tx-connection-factory
  |   jndi-nameJmsXA/jndi-name 
  |   xa-transaction / 
  |   rar-namejms-ra.rar/rar-name 
  |   
connection-definitionorg.jboss.resource.adapter.jms.JmsConnectionFactory/connection-definition
 
  |   config-property name=SessionDefaultType 
type=java.lang.Stringjavax.jms.Topic/config-property 
  |   config-property name=JmsProviderAdapterJNDI 
type=java.lang.Stringjava:/DefaultJMSProvider/config-property 
  |   max-pool-size20/max-pool-size 
  |   
security-domain-and-applicationJmsXARealm/security-domain-and-application 
  | /tx-connection-factory
  |   
  | /connection-factories

Good Luck!

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

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


[jboss-user] [JBossWS] - Re: Providing your own wsdl instead of the generated one.

2008-09-11 Thread sr_ren
I followed the posting below and I could get EchoTest to work by doing the 
following (adding portName which is in bold)
@javax.jws.WebService(endpointInterface=echo.Echo, portName=EchoPort)

public class EchoImpl implements Echo{
...
}

It looks like the name should match WSL port which is defined as


I am surprised why some instructions are not available in the product manual or 
part of WSCONSUME intructions. I don't understand why it should be so difficult 
to do a simple hello world web service when I start from WSDL first. 

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

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


[jboss-user] [JBossWS] - Re: Webservice impl from WSDL

2008-09-11 Thread sr_ren
This helped. I was able to resolve further by going through 
http://www.jboss.com/index.html?module=bbop=viewtopict=142165
Thanks

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

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


[jboss-user] [Beginners Corner] - Re: problem with class loader

2008-09-11 Thread PeterJ
Are you saying that you are running this through Eclipse? That is, using 
Eclipse to start the app server and deploy your MDB? If so, this adds a whole 
new dimension to this issue. Try running the app server outside of Eclipse 
instead. And to run the app server with JDK 1.5, install JDK 1.5 and change 
JAVA_HOME to where it was installed. (Do not install the JDK into Program Files 
- paths with spaces can confuse various Java libraries.)

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

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


[jboss-user] [JBossWS] - Re: SOAPElementImpl cast excepion (JBoss 4.2 + Axis2 + JDK1.

2008-09-11 Thread PeterJ
There was a discussion on WS-Secuiryt a while back, see if this helps:  
http://www.jboss.com/index.html?module=bbop=viewtopict=127824

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

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


[jboss-user] [EJB 3.0] - Re: Bad EAR generated by Eclipse?

2008-09-11 Thread PeterJ
I always create my application.xml files by hand, but I agree that the IDE 
should be able to do that for you. But this is the EJB3 forum and the only 
answer you will get here is create the application.xml file. Therefore, an 
Eclipse forum is really the best place to ask about the workings on Eclipse.

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

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


[jboss-user] [Beginners Corner] - Re: problem with class loader

2008-09-11 Thread devireddy
Thanks peter..

Yes  I am having eclipse to start my server and deploy my application to the 
server. I will follow your advice and see if it works.

thanks for your advice. hope this one works. will let you know

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

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


[jboss-user] [JBossWS] - Re: Validation of input

2008-09-11 Thread JBossWS_NewBee
I had a similar question:
I have a WSDL operation which is based on a XML schema with the following info:

xs:element name=CheckInDate
  xs:annotation
 xs:documentationCheckInDate: YYMMDD/xs:documentation
  /xs:annotation
  xs:simpleType
  xs:restriction base=xs:string
 xs:length value=6/
 xs:pattern value=\d\d\d\d\d\d/
   /xs:restriction
  /xs:simpleType
/xs:element

xs:element name=FolioID
xs:simpleType
xs:restriction base=xs:string
 xs:minLength value=0/
 xs:maxLength value=25/
 /xs:restriction
 /xs:simpleType
/xs:element

Couple of questions around this schema:
1. Does JBossWS framework understand the xml schema constraints of  
xs:minLength, xs:maxLength and xs:pattern, if specified?

2. What kind of error (Soap or otherwise) does the JBossWS framework throw or 
report to the WS-Client, if minLength, maxLength and pattern constraints are 
violated.?

3. If not, do I need to do a validation around these constraints in my code and 
throw a wsdl 'validation error' fault.

Thanks in Advance!


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

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


[jboss-user] [Beginners Corner] - Re: MDB cannot be created when running in

2008-09-11 Thread dvh75
Actually, ixnay the cache config stuff, I don't think it needs to be there 
since its a master/slave setup...

Or am I wrong (anyone?)

!-- The JMS provider loader --
  |   mbean code=org.jboss.jms.jndi.JMSProviderLoader
  |  name=jboss.mq:service=JMSProviderLoader,name=HAJNDIJMSProvider
  | attribute name=ProviderNameDefaultJMSProvider/attribute
  | attribute name=ProviderAdapterClass
  |   org.jboss.jms.jndi.JNDIProviderAdapter
  | /attribute
  | !-- The combined connection factory --
  | attribute name=FactoryRefXAConnectionFactory/attribute
  | !-- The queue connection factory --
  | attribute name=QueueFactoryRefXAConnectionFactory/attribute
  | !-- The topic factory --
  | attribute name=TopicFactoryRefXAConnectionFactory/attribute
  | !-- Access JMS via HAJNDI --
  | attribute name=Properties
  |java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  |java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  |java.naming.provider.url=${jboss.bind.address:localhost}:1100
  | /attribute
  |   /mbean  

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

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


[jboss-user] [JBoss Messaging] - Re: Singleton MDB with JBM.

2008-09-11 Thread jbossnoob
Hey, can you cut me some slack? Can't you see I'm a noob? :D

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

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


[jboss-user] [JNDI/Naming/Network] - Re: JNDI remote lookup of classes in isolated EAR

2008-09-11 Thread avogt_sundn
it does not work as expected. i'm still looking for the same.

http://www.jboss.com/index.html?module=bbop=viewtopict=133367

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

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


[jboss-user] Delivery Status Notification (Failure)

2008-09-11 Thread postmaster
This is an automatically generated Delivery Status Notification.

Delivery to the following recipients failed.

   [EMAIL PROTECTED]



Reporting-MTA: dns;MS-CRM.JSC.TPCHEL.RU
Received-From-MTA: dns;mail.tpchel.ru
Arrival-Date: Fri, 12 Sep 2008 02:07:47 +0400

Final-Recipient: rfc822;hr@localhost
Action: failed
Status: 5.1.1
---BeginMessage---
 29 сентября 2008

Актуальные вопросы трудового законодательства. Дисциплинарные взыскания 
 целесообразно, соразмерно, законно.

 Лектор Галина Роик, Ирина Журавлева

г. Москва,  Подробнее ... http://ruseminars.com/Заказать участие

Стоимость участия 7000 рубtel: [495] 64-98-117




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


[jboss-user] [JBoss Getting Started Documentation] - Re: newbie - JBoss

2008-09-11 Thread velasquez
PeterJ wrote : If, when you enter the 'run' command, you get no output and it 
just goes back to the command line, edit the run.bat file, commenting out the 
@echo off line and try it again - post that output.


Hi Peter,

Please find the output.

C:\jboss-4.2.2\binrem JBoss Bootstrap Script for Win32

C:\jboss-4.2.2\binrem -


C:\jboss-4.2.2\binrem $Id: run.bat 63249 2007-05-30 13:20:25Z [EMAIL PROTECTED]
g $

C:\jboss-4.2.2\binset DIRNAME=.\

C:\jboss-4.2.2\binif Windows_NT == Windows_NT set DIRNAME=C:\jboss-4.2.2\bi
n\

C:\jboss-4.2.2\binset PROGNAME=run.bat

C:\jboss-4.2.2\binif Windows_NT == Windows_NT set PROGNAME=run.bat

C:\jboss-4.2.2\binpushd C:\jboss-4.2.2\bin\..

C:\jboss-4.2.2set JBOSS_HOME=C:\jboss-4.2.2

C:\jboss-4.2.2popd

C:\jboss-4.2.2\binREM Add bin/native to the PATH if present

C:\jboss-4.2.2\binif exist C:\jboss-4.2.2\bin\native set PATH=C:\jboss-4.2.2\
bin\native;C:\GTK\bin;c:\ruby\bin;C:\Oracle\bin;.;C:\Program Files\Java\jdk1.6.0
_07\bin;C:\Softwares\Ant\apache-ant-1.7.1-bin\apache-ant-1.7.1\bin;C:\Program Fi
les\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90
\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files
\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Micros
oft Visual Studio 8\Common7\IDE\PrivateAssemblies\

C:\jboss-4.2.2\binif exist C:\jboss-4.2.2\bin\native set JAVA_OPTS= -Djava.li
brary.path=C:\GTK\bin;c:\ruby\bin;C:\Oracle\bin;.;C:\Program Files\Java\jdk1.6.
0_07\bin;C:\Softwares\Ant\apache-ant-1.7.1-bin\apache-ant-1.7.1\bin;C:\Program F
iles\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\9
0\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program File
s\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Micro
soft Visual Studio 8\Common7\IDE\PrivateAssemblies\

C:\jboss-4.2.2\binrem Read all command line arguments

C:\jboss-4.2.2\binREM

C:\jboss-4.2.2\binREM The  env variable commented out in favor of using  to inc
lude

C:\jboss-4.2.2\binREM all args in java command line. See bug #840239. [jpl]

C:\jboss-4.2.2\binREM

C:\jboss-4.2.2\binREM set ARGS=

C:\jboss-4.2.2\binREM :loop

C:\jboss-4.2.2\binREM if [] == [] goto endloop

C:\jboss-4.2.2\binREM set ARGS=

C:\jboss-4.2.2\binREM shift

C:\jboss-4.2.2\binREM goto loop

C:\jboss-4.2.2\binREM :endloop

C:\jboss-4.2.2\binrem Find run.jar, or we can't continue

C:\jboss-4.2.2\binset RUNJAR=C:\jboss-4.2.2\bin\run.jar

C:\jboss-4.2.2\binif exist C:\jboss-4.2.2\bin\run.jar goto FOUND_RUN_JAR

C:\jboss-4.2.2\binif not C:\Program Files\Java\jdk1.6.0_07 ==  goto ADD_TOO
LS

C:\jboss-4.2.2\binset JAVA=C:\Program Files\Java\jdk1.6.0_07\bin\java

C:\jboss-4.2.2\binrem A full JDK with toos.jar is not required anymore since jb
oss web packages

C:\jboss-4.2.2\binrem the eclipse jdt compiler and javassist has its own intern
al compiler.

C:\jboss-4.2.2\binif not exist C:\Program Files\Java\jdk1.6.0_07\lib\tools.jar
 goto SKIP_TOOLS

C:\jboss-4.2.2\binrem If exists, point to the JDK javac compiler in case the us
er wants to

C:\jboss-4.2.2\binrem later override the eclipse jdt compiler for compiling JSP
 pages.

C:\jboss-4.2.2\binset JAVAC_JAR=C:\Program Files\Java\jdk1.6.0_07\lib\tools.jar


C:\jboss-4.2.2\binrem If JBOSS_CLASSPATH or JAVAC_JAR is empty, don't include i
t, as this will

C:\jboss-4.2.2\binrem result in including the local directory in the classpath,
 which makes

C:\jboss-4.2.2\binrem error tracking harder.

C:\jboss-4.2.2\binif not C:\Program Files\Java\jdk1.6.0_07\lib\tools.jar == 
 set RUNJAR=C:\Program Files\Java\jdk1.6.0_07\lib\tools.jar;C:\jboss-4.2.2\bin\
run.jar

C:\jboss-4.2.2\binif  ==  set RUN_CLASSPATH=C:\Program Files\Java\jdk1.6.0_
07\lib\tools.jar;C:\jboss-4.2.2\bin\run.jar

C:\jboss-4.2.2\binif C:\Program Files\Java\jdk1.6.0_07\lib\tools.jar;C:\jboss-
4.2.2\bin\run.jar ==  set RUN_CLASSPATH=;C:\Program Files\Java\jdk1.6.0_07\li
b\tools.jar;C:\jboss-4.2.2\bin\run.jar

C:\jboss-4.2.2\binset JBOSS_CLASSPATH=C:\Program Files\Java\jdk1.6.0_07\lib\too
ls.jar;C:\jboss-4.2.2\bin\run.jar

C:\jboss-4.2.2\binrem Setup JBoss specific properties

C:\jboss-4.2.2\binset JAVA_OPTS= -Dprogram.name=run.bat

C:\jboss-4.2.2\binrem Add -server to the JVM options, if supported

C:\jboss-4.2.2\binC:\Program Files\Java\jdk1.6.0_07\bin\java -version   21
 | findstr /I hotspot  1nul
'findstr' is not recognized as an internal or external command,
operable program or batch file.

C:\jboss-4.2.2\bin

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

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


[jboss-user] [Tomcat, HTTPD, Servlets JSP] - how to replace Tomcat in JBoss

2008-09-11 Thread javatwo
I am using JBoss 4.0.5 coming with Tomcat 5.5.
I changed some source code of Tomcat and rebuilt it.  How to install the new 
Tomcat into the JBoss?  
Only one file change of catalina.jar, but if I replace this jar only, an error 
will occur. Maybe the source is not compatible. 

Thanks for help.
Dave

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

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


[jboss-user] [JBoss Messaging] - Re: Singleton MDB with JBM.

2008-09-11 Thread PeterJ
Perhaps if you explained what you mean, someone could help you. Personally, I 
don't understand the question. I guess that makes me more of a noob than you. 
;-)

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

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


[jboss-user] [JBoss Getting Started Documentation] - Re: newbie - JBoss

2008-09-11 Thread PeterJ
Note this:

C:\jboss-4.2.2\binC:\Program Files\Java\jdk1.6.0_07\bin\java -version 21
  | | findstr /I hotspot 1nul
  | 'findstr' is not recognized as an internal or external command, operable 
program or batch file. 

You are encountering the findstr problem.  See 
http://wiki.jboss.org/wiki/FindstrCommandNotFound.

As an alternative, you can comment out the lines in run.bat that use findstr:

rem Add -server to the JVM options, if supported
  | rem %JAVA% -version 21 | findstr /I hotspot  nul
  | rem if not errorlevel == 1 (set JAVA_OPTS=%JAVA_OPTS% -server)
  | 

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

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


[jboss-user] [JBossWS] - org.jboss.ws.WSException: Cannot find port in wsdl:

2008-09-11 Thread sr_ren
I am using standard WSDL packaged with jaxws-ri AddNumbers.wsdl. I am following 
wsdl first approach to design my Java implementation. I followed the steps 
given in 
http://www.jboss.com/index.html?module=bbop=viewtopict=104843
I was able to make Echo service work fine, however I could not do AddNumbers 
which is as given below

?xml version=1.0 encoding=UTF-8?
  | 
  | definitions name=AddNumbers  targetNamespace=http://duke.example.org; 
xmlns:tns=http://duke.example.org;
  | xmlns=http://schemas.xmlsoap.org/wsdl/; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  | xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
  | types
  | xsd:schema xmlns=http://www.w3.org/2001/XMLSchema; 
elementFormDefault=qualified targetNamespace=http://duke.example.org;
  | 
  | complexType name=addNumbersResponse
  | sequence
  | element name=return type=xsd:int /
  | /sequence
  | /complexType
  | element name=addNumbersResponse 
type=tns:addNumbersResponse /
  | 
  | complexType name=addNumbers
  | sequence
  | element name=arg0 type=xsd:int /
  | element name=arg1 type=xsd:int /
  | /sequence
  | /complexType
  | element name=addNumbers type=tns:addNumbers /
  | 
  | element name=AddNumbersFault 
type=tns:AddNumbersFault /
  | complexType name=AddNumbersFault
  | sequence
  | element name=faultInfo 
type=xsd:string /
  | element name=message 
type=xsd:string /
  | /sequence
  | /complexType
  | /xsd:schema
  | /types
  | message name=addNumbers
  | part name=parameters element=tns:addNumbers /
  | /message
  | message name=addNumbersResponse
  | part name=result element=tns:addNumbersResponse /
  | /message
  | message name=addNumbersFault
  | part name=AddNumbersFault element=tns:AddNumbersFault /
  | /message
  | portType name=AddNumbersPortType
  | operation name=addNumbers
  | input message=tns:addNumbers /
  | output message=tns:addNumbersResponse /
  | fault name=addNumbersFault 
message=tns:addNumbersFault/
  | /operation
  | /portType
  | binding name=AddNumbersBinding type=tns:AddNumbersPortType
  | soap:binding 
transport=http://www.w3.org/2003/05/soap/bindings/HTTP/; style=document /
  | operation name=addNumbers
  | soap:operation soapAction= /
  | input
  | soap:body use=literal /
  | /input
  | output
  | soap:body use=literal /
  | /output
  | fault name=addNumbersFault
  | soap:fault name=addNumbersFault 
use=literal /
  | /fault
  | /operation
  | /binding
  | service name=AddNumbersService
  | port name=AddNumbersPort binding=tns:AddNumbersBinding
  | soap:address 
location=http://localhost:8080/AddNumbers; /
  | /port
  | /service
  | /definitions

I ran wsconsume on this and wrote my impl class AddNumbersImp.java


@javax.jws.WebService(endpointInterface=org.example.duke.AddNumbersPortType, 
portName=AddNumbersPort)

public class AddNumbersImpl implements AddNumbersPortType {

public int addNumbers(int arg0, int arg1)throws AddNumbersFault_Exception
{
return 10;
}

}

After building AddNumbers.war file at deployment time I get the following error

15:27:46,185 INFO  [DefaultEndpointRegistry] register: 
jboss.ws:context=AddNumbers,endpoint=AddNumbers
15:27:46,200 INFO  [TomcatDeployer] deploy, ctxPath=/AddNumbers, 
warUrl=.../tmp/deploy/tmp53972AddNumbers-exp.war/
15:27:46,482 WARN  [PolicyMetaDataBuilder] Cannot get service 
'{http://duke.example.org/}AddNumbersImplService' from the given wsdl 
definitions!  Eventual policies attached to this service won't be considered.
15:27:46,560 ERROR [MainDeployer] Could not start deployment: file:/C:/Program 
Files/JBoss/server/default/deploy/AddNumbers.war
org.jboss.ws.WSException: Cannot find port in wsdl: 
{http://duke.example.org/}AddNumbersPort
at 
org.jboss.ws.metadata.builder.MetaDataBuilder.replaceAddressLocation(MetaDataBuilder.java:338)
at 
org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:192)
at 

  1   2   >