[jboss-user] [Beginner's Corner] - Re: Configuration Problem

2009-12-01 Thread lawrence.yip
Thank Wolfgang. You got me on the right track!

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

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


[jboss-user] [JBoss Web Services Users] - Re: jax-ws-catalog.xml

2009-12-01 Thread rkettelerij
* bump *

Has anyone figured this out yet. I'm also using a jax-ws-catalog.xml file in my 
webservice client to translate the WSDL location to a locally packaged WSDL 
file but JBoss seems to ignore this.

I'm running JBoss 4.2.2 with jbossws-native-2.0.1.SP2. 

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

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


[jboss-user] [Installation, Configuration & Deployment] - Can't access env-entry

2009-12-01 Thread anukumar004
Hi, 

I am using jboss-4.2.3.GA on solaris. I created a simple client.war application 
which tries to access an env-entry. I get the following error - 

2009-12-02 00:08:24,358 INFO  [STDOUT] 
==
2009-12-02 00:08:24,360 INFO  [STDOUT]  
2009-12-02 00:08:24,360 INFO  [STDOUT] == Configuration Failure ==
2009-12-02 00:08:24,361 INFO  [STDOUT]  
2009-12-02 00:08:24,361 INFO  [STDOUT] PropertiesManager(): Could not find 
java:comp/env/tapestry/property_file setting
2009-12-02 00:08:24,361 INFO  [STDOUT] which is the variable that tells the 
framework where to find the properties file.
2009-12-02 00:08:24,361 INFO  [STDOUT]  
2009-12-02 00:08:24,361 INFO  [STDOUT] 
==

The code is as follows

client.jsp
%...@page contentType="text/html"
 import="java.util.*,javax.naming.*"
 %>
 <%
  String propertiesFile="";
  
try
  {
Context initContext = new InitialContext();

propertiesFile=(String)initContext.lookup("java:comp/env/tapestry/property_file");
  }
  catch(Exception e)
  {

System.out.println("==");
System.out.println(" ");
System.out.println("== Configuration Failure ==");
System.out.println(" ");
System.out.println("PropertiesManager(): Could not find 
java:comp/env/tapestry/property_file setting");
System.out.println("which is the variable that tells the framework 
where to find the properties file.");
System.out.println(" ");

System.out.println("==");
  }

  out.println(propertiesFile);
%>

WEB-INF/web.xml

http://java.sun.com/dtd/web-app_2_3.dtd";>

 
  Path to config file
  tapestry/property_file
  
/project/WORK/Web-gui/config/sm.properties
  java.lang.String




jndi tree
java:comp namespace of the client.war application:
  +- UserTransaction[link -> UserTransaction] (class: javax.naming.LinkRef)
  +- env (class: org.jnp.interfaces.NamingContext)
  |   +- security (class: org.jnp.interfaces.NamingContext)
  |   |   +- realmMapping[link -> java:/jaas/other] (class: 
javax.naming.LinkRef)
  |   |   +- subject[link -> java:/jaas/other/subject] (class: 
javax.naming.LinkRef)
  |   |   +- securityMgr[link -> java:/jaas/other] (class: javax.naming.LinkRef)
  |   |   +- security-domain[link -> java:/jaas/other] (class: 
javax.naming.LinkRef)


When I deploy client.war on the jboss-4.2.3.GA running on windows, the 
application runs fine. Can someone please help me with this ?

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

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


[jboss-user] [jBPM Users] - Re: Advice regarding complex proccess modeling

2009-12-01 Thread saraswati.santanu
Hi,
  This is a pretty late response. Out on a trip an could not access for few 
days.

  The way you are creating sub tasks may not work. You should use command 
service to get your job done instead of using direct methods on tasks. Command 
service will ensure all the interceptors are invoked before a call is made to 
your command. One such interceptor will create a DBSession for you. A sample 
code should look like this:


  | Task task = //get the parent task somehow
  | //create a new task which is a child of the task above
  | Task subTask = taskService.newTask(task.getId());
  | subTask.setName(subTaskName);
  | //this is important as this call will add this task to the sub task 
  | //set of the parent task. I believe this should have been done 
  | //during the previous call, but atleast now, it does not happen
  | ((TaskImpl)task).addSubTask((TaskImpl)subTask);
  | 

Also there is a method in taskService to get sub tasks of a task, try using 
that when you need to get the sub tasks.


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

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


[jboss-user] [JBoss Web Services Users] - Re: java.lang.LinkageError: loader constraint violation:(In

2009-12-01 Thread GajananM
jbossws-cxf-3.2.0.GA download this file

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

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


[jboss-user] [Persistence] - Re: Hibernate PostDelete event listener not getting called

2009-12-01 Thread aejaz
Anyone, please ?

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

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


[jboss-user] [jBPM Users] - [jBPM4] Cant build processEngine using setFile, setURL or se

2009-12-01 Thread edeleflie
I want to move jbpm.hibernate.cfg.xml out of my classpath and into a separate 
folder. I'm doing it like this:

processEngine = new Configuration().setFile( new 
File("myFilePath")).buildProcessEngine()

I get the same stack trace as when using setURL and set XMLString. THat stack 
trace looks something like this:

Caused by: java.lang.NullPointerException
at 
org.jbpm.pvm.internal.cfg.ProcessEngineImpl.checkDb(ProcessEngineImpl.java:177)
at 
org.jbpm.pvm.internal.cfg.ProcessEngineImpl.buildProcessEngine(ProcessEngineImpl.java:170)

Is there somethign I have misunderstood ... or does this look like a bug?

Etienne


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

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


[jboss-user] [JBoss Cache Users] - Re: Concurrency problems - cache puts lost

2009-12-01 Thread a.kluge
I extended the test a bit by adding transactions.

A minimal cache.xml:

  | 
  | http://www.w3.org/2001/XMLSchema-instance";
  | xmlns="urn:jboss:jbosscache-core:config:3.0">
  | 
  |
  |
  | 
  | 
  | 


  |TransactionManagertxmanager = new 
DummyTransactionManagerLookup().getTransactionManager();
  | 

   Then starting and ending a transaction around the put in the write thread:

  |   for (int id=1000*iteration + 100*writer; id<1000*iteration + 
100*(writer+1); id++)
  |   {
  | String key = "Key" + id;
  | txmanager.begin();
  | cache.put(FQN, key, VALUE);
  | LOG.info("Putting " + key);
  | Object result = cache.get(FQN, key);
  | if (result == null)
  | {
  |   LOG.error("Missing value for immediate get of " + key 
+ ".");
  | }
  | txmanager.commit();
  | result = cache.get(FQN, key);
  | if (result == null)
  | {
  |   LOG.error("Missing value for post transaction get of 
" + key + ".");
  | }
  |   }
  | 

  This produced some interesting results:
  The immediate get never failed.
  The post commit get failed sometimes.
  The readthread get failed sometimes.
  The readthread failed on items that the post commit thread successfully 
returned.

For example
anonymous wrote : 
  | $ grep "post transaction" errors.20091201.log | wc -l
  | 228
  | $ grep "Missing value for Key" errors.20091201.log | wc -l
  | 3660
  | 

  Next, I synchronized a section of the write thread:


  |   for (int id=1000*iteration + 100*writer; id<1000*iteration + 
100*(writer+1); id++)
  |   {
  | String key = "Key" + id;
  | synchronized (LOCK_HOLDER)
  | {
  | txmanager.begin();
  | cache.put(FQN, key, VALUE);
  | LOG.info("Putting " + key);
  | Object result = cache.get(FQN, key);
  | if (result == null)
  | {
  |   LOG.error("Missing value for immediate get of " + 
key + ".");
  | }
  | txmanager.commit();
  | result = cache.get(FQN, key);
  | if (result == null)
  | {
  |   LOG.error("Missing value for post transaction get 
of " + key + ".");
  | }
  | }
  |   }
  | 

  With this, I have no missed gets.

  What happens if I move the commit outside of the synchronization block?


  |   for (int id=1000*iteration + 100*writer; id<1000*iteration + 
100*(writer+1); id++)
  |   {
  | String key = "Key" + id;
  | synchronized (LOCK_HOLDER)
  | {
  | txmanager.begin();
  | cache.put(FQN, key, VALUE);
  | LOG.info("Putting " + key);
  | Object result = cache.get(FQN, key);
  | if (result == null)
  | {
  |   LOG.error("Missing value for immediate get of " + 
key + ".");
  | }
  | }
  | txmanager.commit();
  | Object result = cache.get(FQN, key);
  | if (result == null)
  | {
  |   LOG.error("Missing value for post transaction get of 
" + key + ".");
  | }
  |   }
  | 

  Sure enough, the missing values issues return when the commit is not 
synchronized.

  In my production code I have placed the cache writes (puts, remove, etc) 
inside of
  synchronized blocks using a common lock object, and my data integrity issues
  have vanished. However, the need for the synchronization in these cases was
  definitely unexpected.


 Alex



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

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


[jboss-user] [jBPM Users] - Re: [JBPM 4.1] Best practice to restart a task after shutdow

2009-12-01 Thread kukeltje
Cool, great it works.

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

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


[jboss-user] [jBPM Users] - Re: [JBPM 4.1] Best practice to restart a task after shutdow

2009-12-01 Thread funkymac
Thanks saraswati.santanu and kukeltje.  Verified the rollback on shutdown / 
restart and now starting process instances again on restart of application for 
those items deemed in-progress when application was shutdown (re-running entire 
workflow again from start).

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

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


[jboss-user] [JBoss Tools Users] - Web Resources folder is empty

2009-12-01 Thread htfv
If I import a Maven Web-project in Eclipse 3.5.1 with JBoss Tools 3.1.0.M4 
installed, I can see the "Web Resources : src/main/webapp" folder in Project 
Explorer, but it is always empty.

The same problem was in Eclipse 3.5.0 with JBoss Tools 3.1.0.M3. m2eclipse 
0.9.9 Development release was used in both cases. If I use Eclipse 3.4.2 + 
JBoss Tools 3.0.1 + m2eclipse 0.9.8, I can expand the "Web Resources : 
src/main/webapp" folder in Project Explorer and see the files from the 
src/main/webapp folder.

Both Eclipse 3.5.1/JBoss Tools 3.1.0.M4 and Eclipse 3.4.2/JBoss Tools 3.0.1 
generate the same .project, .classpath and .settings/* files. The only 
difference is that 3.1.0.M4 inserts the following line into 
org.eclipse.jdt.core.prefs and 3.0.1 does not:


  | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
  | 

The problem can be reproduced by importing a simple POM; no other files are 
needed:


  | http://maven.apache.org/POM/4.0.0";
  |  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  |  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
  | 
  | 4.0.0
  | 
  | org.htfv.test
  | web-resources-test
  | 0.0.1-SNAPSHOT
  | war
  | 
  | 
  | 
  | 
  | org.apache.maven.plugins
  | maven-compiler-plugin
  | 
  | 1.6
  | 1.6
  | 
  | 
  | 
  | 
  | 
  | 

Whose problem is this? Is this a problem of JBoss Tools, m2eclipse, or Eclipse? 
Do I do something wrong? Shall I file a bug against JBoss Tools or m2eclipse?

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

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


[jboss-user] [jBPM Users] - Re: Character set for mail templates?

2009-12-01 Thread markroy

Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit



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

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


[jboss-user] [jBPM Users] - Re: Variables keep old values

2009-12-01 Thread kukeltje
3 should change them as well, but you have to close the context AND NOT set 
them as local variables

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

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


[jboss-user] [jBPM Users] - Re: Variables keep old values

2009-12-01 Thread TejJBPM
Are you using jbpm 3 version..i remember reading somewhere that only jbpm 4 
replace the previously created values..worth checking the user guide again..

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

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


[jboss-user] [jBPM Users] - Re: Character set for mail templates?

2009-12-01 Thread kukeltje
what is the character setting of the html mail when it arrives?

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

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


[jboss-user] [jBPM Users] - Re: Character set for mail templates?

2009-12-01 Thread markroy
Setting the JVM properties file.encoding or mail.mime.charset DO affect the 
charset used for the [text] content from the mail template, but neither seem to 
have any effect on the [html] content.

I also tried setting these properties in the jbpm.mail.properties file (which 
is where I'd expect mail.mime.charset to have some effect) but they had no 
effect on [text] or [html] at all.



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

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


[jboss-user] [JBoss Cache Users] - Re: Invalid character ':' in value part of property

2009-12-01 Thread bstansbe...@jboss.com
>From my reading of this thread, you don't have to change the version of 
>jbosscache-pojo to fix this problem. POJO Cache and core JBoss Cache are 
>separate libraries, so just upgrade the core JBoss Cache to a version with the 
>fix. POJO Cache 3.0.0.GA will work with any core JBC release 3.0.0.GA or 
>greater. For example, the latest Red Hat Enterprise Application Platform 
>release combines PC 3.0.0.GA with JBC 3.2.1.GA.

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

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


[jboss-user] [Installation, Configuration & Deployment] - Re: How to provide the bind address when running JBoss as a

2009-12-01 Thread gpuckett
That worked fine.  I just wasn't sure how all that was put together.

Thank you.  

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

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


[jboss-user] [JBoss Cache Users] - Re: Undeterministic error:

2009-12-01 Thread vnmbatista
Hi,
I have done compile time weaving configuring my pom.xml the following way:

  | 
  | org.jboss.maven.plugins
  | maven-jbossaop-plugin
  | 1.0.0.GA
  | 
  | 
  | 
  | compile
  | 
  | 
  | 
true
  | 
  | 
src/main/resources/jboss-aop.xml
  | 
  | 
  | 
  | 
com/foo/bar/entities/*.class
  | 
  | 
  | 
  | 
  | compile
  | 
  | 
  | 
  | 
  | 

With  jboss-aop-1.5.6.GA (which comes bundled with my JBoss) it didn't work 
(Missing method, ... ). I upgrades JBossAOP to version 2.1.5.GA and it starts 
working.
Although I had problems compiling my project:
I have POJO A and POJOs B and C, both extending A. I had the @PojoCacheable 
annotation on the three POJOs. Compilation crashed with


  | .../src/main/java/com/foo/bar/services/imports/alert/Alerts.java:297: 
cannot access org.jboss.aop.Advised
  | class file for org.jboss.aop.Advised not found
  | productsList.add(service);
  | 

I tried having A with the annotation @InstanceOfPojoCacheable. It crashed also 
with the same error both if I had the @PojoCacheable annotation on B,C or if I 
had B and C without any annotation. It only worked when I removed the 
@PojoCacheable annotation from A. As a matter of fact I don't need to put A 
explicitly on the cache. If I needed I would have to refactor my code. Is the 
configuration which I get working normal?

On the production system I won't be able to run the AOP upgrade script. To 
upgrade I will need to replace the production files with the upgrades ones:


JBOSS_BIN:   pluggable-instrumentator.jar;
JBOSS_LIB:  javassist.jar
JBOSS_DEPLOY: jboss-aop-jdk50.deployer/


Is this correct? Am I missing any thing?


I would feel much more comfortable with Load Time Weaving, because I would have 
guarantees that the same binary would work on different version of JBossAOP. I 
finished without knowing the reason for my problem with load time weaving :(

Thank you very much for your help.

Best regards,
Victor Batista




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

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


[jboss-user] [Tomcat Integration] - Re: jboss adds

2009-12-01 Thread chrlon
We are using jboss 4.2.2
OS Ubuntu v9.10
Java version 1.6.0_17 x64
Using "strace" to get the error message

starting jboss with arguments:
-Dfile.encoding=ISO-8859-1 -Xms1024m -Xmx2048m -XX:MaxPermSize=256m



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

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


[jboss-user] [JBoss Portal Users] - Access CMS content from outside Portal

2009-12-01 Thread toppac
I am trying to access an HTML file from outside my portal environment. 
Essentially I want to have a link to a help document inside the portal that 
opens a popup window to just serve an HTML file. However every time I try to 
access the URL it just serves back the default page of the portal. The URL I am 
trying to access is

https://localhost:8443/portal/content/default/index.html

I'm am trying with the default index page for now until I can figure out how to 
serve content. Ideally I would want to server up

http://localhost:8443/portal/content/help/index.html

This would then have links to other documents in the CMS repo.

I tried using just /content instead of /portal/content with the same results. 
Can someone point me to the correct way to server content from the portal CMS?

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

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


[jboss-user] [Installation, Configuration & Deployment] - Re: How to provide the bind address when running JBoss as a

2009-12-01 Thread PeterJ
Edit the service.bat file and add the "-b" option to the command the runs the 
app server:

:cmdStart
  | . . .
  | call run.bat -b 0.0.0.0 < .r.lock >> run.log 2>&1
  | . . .
  | goto cmdEnd
  | 


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

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


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

2009-12-01 Thread bstansbe...@jboss.com
Yes, if your environment can't support multicast for discovery you'll need to 
replace MPING with TCPPING. Something like:


  | 

Key thing is don't reuse the jgroups.tcpping.initial_hosts system property as 
you'll need different ports (7900 instead of 7600).

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

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


[jboss-user] [Installation, Configuration & Deployment] - How to provide the bind address when running JBoss as a serv

2009-12-01 Thread gpuckett
I am in the process of separating my production envrionment so I can implement 
load balancing.  First I need to just get jBoss running on one machine and 
Apache and mySQL running on another.  I am using the jBoss native executable 
(jBossSVC.exe) to run it as a service. 

Since it now needs to talk to a "remote" server it can no longer use 127.0.0.1 
as the bind address.  So I need to provide the address for it to use.  

If I run jBoss from the command prompt and use the -b xxx.xxx.xxx.xxx parm it 
runs fine.  However, it must run as a service in the production envrionment.  I 
can't figure out how to provide the bind address when running it as a service.

I have the following connector definition in my server.xml file:


  | 
  | 
  | 

Where does jboss.bind.address get set?  Is there a parm I can set in a 
configuration file that sets this rather than using a command line argument?

   
Thanks 

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

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


[jboss-user] [Tomcat Integration] - Re: jboss adds

2009-12-01 Thread jaikiran
Please post the entire exception stacktrace. Also post the version of JBoss and 
Java you use. And which OS? What command do you use to start the server? 

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

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


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

2009-12-01 Thread bstansbe...@jboss.com
Yes, if your environment can't support multicast for discovery you'll need to 
replace MPING with TCPPING. Something like:


  | 
  | 

Key thing is don't re-use the jgroups.tcpping.initial_hosts system property 
used in the "tcp" stack, since you need to have different ports (7900 instead 
of 7600).

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

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


[jboss-user] [Tomcat Integration] - jboss adds

2009-12-01 Thread chrlon
JBoss is looking for tmp files in the "wrong" directory. For example, in our 
case the tmp files are created in:
tmp/deploy/tmp6516248728899508581OurApp_Ear.ear-contents/OurApp_Web-exp.war/WEB-INF/jsp/

but jboss is looking for them in (note the extra "localhost" in path):

tmp/deploy/tmp6516248728899508581OurApp_Ear.ear-contents/OurApp_Web-exp.war/localhost/WEB-INF/jsp

wich results in:

  |  
stat("/usr/local/jboss-4.2.2.GA/server/OurApp-node0/tmp/deploy/tmp6516248728899508581OurApp_Ear.ear-contents/OurApp_Web-exp.war/localhost/WEB-INF/jsp/something.jsp",
 0x7f8c84bf3060) = -1 ENOENT (No such file or directory)
  | 
 
I.e. file not found and bad performance because JBoss will compile the jsp on 
every request.

How can we resolve this issue?

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

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


[jboss-user] [JBoss Cache Users] - JBoss Pojo Cache Usage

2009-12-01 Thread hdpham
Hi,

   I am new to JBoss Pojo Cache and this is what I observe: 

After attaching an element and detaching it from the POJO cache the internal 
section of the cache only had the node value null out (e.g. the internal node 
is not actually removed.  The user section of the cache behaved correctly, 
nodes are being removed from the cache tree).  With such a behavior I quickly 
run out of memory.  What can I do to clean up the internal cache section?

   I am sure this is just a configuration issue any help would be grateful.

Tx,

Hai-Dang

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

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


[jboss-user] [jBPM Users] - Migrating from 3.2.6 to 4.X?

2009-12-01 Thread gfargone
Hello,

We are using JBPM 3.2.6.SP1 in production. I have read here that process 
definitions are about 80% convertible going to JBPM 4. However, I have not 
found any information on migrating the underlying database. 
Loosing all existing process data is not really a good incentive to convince 
our users to allow me to upgrade to 4.X. 

It would be really nice to get the new EJB command interface which is far more 
functional than the 3.X branch has. I have wrappers around all calls to JBPM so 
that aspect of the upgrade may be the easiest. Reworking process definitions 
seems straight forward and we have only four distinct processes currently.

The greatest dilemma at this point is pending processes in the system.
Any ideas how the upgrade could be made without loosing all existing data?

Thank You,
Tamas

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

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


[jboss-user] [JBoss Cache Users] - How to manage an exception that occurs in the commit or roll

2009-12-01 Thread nfilotto
Hi,

I'm trying to ensure the integrity of my data thanks to the TransactionManager. 
However, I met an issue during my study, I noticed that if I implement my own 
CacheLoder and an error occurs during the commit phase, the TM is never aware 
of this error since the commit is done in the afterCompletion of 
TxInterceptor$RemoteSynchronizationHandler and the exception is eaten by this 
method. According to the JTA specification, the afterCompletion method is not 
supposed to notify the TM when something wrong occured but my questions are the 
following:
1. Is-it normal that the commit is done in the afterCompletion? it should be 
done before the afterCompletion
2. What are we supposed to do? Up to now, we decided to commit in the prepare 
phase which is done in the beforeCompletion method if an error occurs the TM is 
notified and can call the rollback method but is-there a better solution?

Thank you in advance for your help,
BR,
Nicolas Filotto

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

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


[jboss-user] [jBPM Users] - Re: How signal as a state to a task?

2009-12-01 Thread kukeltje
I think the reason no-one responded is because your post is vague. The 'notify' 
you refer to is nowhere to be found, you probably want the timer to take a 
transition but the transition to take is nowhere to be found etc... So I 
suggest looking at jBPM testcase (in the source) or the examples and look how 
things are done there. Then if you have more information, please get back to us.

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

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


[jboss-user] [JBoss Web Services Users] - JBoss 5.1.0: jbossws-native-saaj.jar conflicting with saaj-i

2009-12-01 Thread jbosssupport
Hello forum,

Situation:
Using a third party application (Appl1) which can be integrated into custom 
software. 

Appl1 uses saaj-impl.jar and saaj-api.jar (SUN original) in it's program logic. 
Both jars(saaj-impl.jar and saaj-api.jar) are located in server/serverDir/lib 
folder. Using Appl1 directly does not cause any problem!

Requirement:
Implement a WebService Application (WSAppl) using Jboss native WS-Security.

...
@EndpointConfig(configName = "Standard WSSecurity Endpoint")
@SecurityDomain("WSAppl")

WS-Sec Method is UsernameToken.
...

As you can see all WSMethods in WSAppl are secured with 
jbossws-native-saaj.jar, each of these method requests gets passed to Appl1.

Calling any WSMedod in WSAppl, the following Exception occurs:


  | 2009-12-01 18:03:53,794 ERROR 
[org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] (http-127.0.0.1-8280-1) SOAP 
request exception
  | java.lang.UnsupportedOperationException: setProperty must be overridden by 
all subclasses of SOAPMessage
  | at javax.xml.soap.SOAPMessage.setProperty(Unknown Source)
  | at 
org.jboss.ws.core.soap.SOAPMessageImpl.(SOAPMessageImpl.java:87)
  | at 
org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:215)
  | at 
org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:193)
  | at 
org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:455)
  | at 
org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:295)
  | at 
org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:205)
  | at 
org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:131)
  | at 
org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | 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:235)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
  | at 
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
  | at 
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
  | 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:158)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
  | at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
  | at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  | at java.lang.Thread.run(Thread.java:595)


Assumption:
JBoss can not use 'jbossws-native-saaj.jar' for WS-Security in WSAppl and 
'saaj-impl.jar' afterwards in Appl1 programm logic. 

'jbossws-native-saaj.jar' is located in JBossDir/client folder as standard (no 
changes to Jboss libs). 


Question:
As I can not change Appl1 Implementation to use jbossws-native-saaj.jar, is 
there any way to use both different implementations (JBoss native saaj for WS 
Security and SUN saaj in third party program logic) at the same time in the 
same Jboss instance?!

Thank you very much!

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

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


[jboss-user] [EJB 3.0 Users] - Re: Default value for transaction-type in persistence.xml

2009-12-01 Thread longbeach
Thanks Jaikiran. That is what I read too a while ago. I guess I needed 
confirmation of that same behaviour in JBoss, which should be anyways, since it 
is JEE compliant.



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

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


[jboss-user] [EJB 3.0 Users] - Re: Default value for transaction-type in persistence.xml

2009-12-01 Thread jaikiran
"longbeach" wrote : 
  | That is what this documentation for Apache Geronimo states :
  | http://cwiki.apache.org/GMOxDOC21/persistencexml.html
  | anonymous wrote : 
  |   | In general, in Java EE environments, a transaction-type of 
RESOURCE_LOCAL assumes that a non-JTA datasource will be provided. In a Java EE 
environment, if this element is not specified, the default is JTA. In a Java SE 
environment, if this element is not specified, a default of RESOURCE_LOCAL may 
be assumed.
  |   | 
  | 

That's actually what the EJB3 Persistence Spec states too:

"EJB3 Persistence Spec" wrote : 6.2.1.2 transaction-type
  | The transaction-type attribute is used to specify whether the 
entity managers provided by the entity manager factory for the persistence unit 
must be JTA entity managers or resource-local entity managers. The value of 
this element is JTA or RESOURCE_LOCAL. A transaction-type of JTA assumes that a 
JTA data source will be provided either as specified by the jta-data-source 
element or provided by the container. In general, in Java EE environments, a 
transaction-type of RESOURCE_LOCAL assumes that a non-JTA datasource will be 
provided. In a Java EE environment, if this element is not specified, the 
default is JTA. In a Java SE environment, if this element is not specified, a 
default of RESOURCE_LOCAL may be assumed.
  | 
  | 

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

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


[jboss-user] [EJB 3.0 Users] - Default value for transaction-type in persistence.xml

2009-12-01 Thread longbeach
Hi,

it seems to me that there is a lot of confusion in the default value of the 
transaction-type attribute of the persistence-unit tag in the persistence.xml 
file.

What is the default value of this file ? JTA or RESOURCE_LOCAL ?
Does it depend on the environment : Java SE or JAVA EE ?

That is what this documentation for Apache Geronimo states :
http://cwiki.apache.org/GMOxDOC21/persistencexml.html
anonymous wrote : 
  | In general, in Java EE environments, a transaction-type of RESOURCE_LOCAL 
assumes that a non-JTA datasource will be provided. In a Java EE environment, 
if this element is not specified, the default is JTA. In a Java SE environment, 
if this element is not specified, a default of RESOURCE_LOCAL may be assumed.
  | 

What is the behaviour of that attribute in JBoss 5.1.0 GA ?

Thanks for enlightening me and other people i am sure.

Celinio Fernandes

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

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


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

2009-12-01 Thread matt.hibb
This post has been very useful in helping me configure clustering using Amazon 
EC2. I would just like to clarify a point regarding JBM and using TCP.

I have changed "ControlChannelName" from "jbm-control" to "tcp", but what about 
"DataChannelName" which uses "jbm-data"?
Looking at the jgroups stack config for "jbm-data", it to uses MPING. Does this 
need adjusting to use TCPPING as well?

Thanks

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

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


[jboss-user] [JBoss Web Services Users] - Re: Reg Installation

2009-12-01 Thread pa12399
I am having a similar issue. I am using JBoss AS 4.2.2GA. I am trying to 
upgrade to the latest WS native stack - i.e. 3.0.5 that is compatible with 
JBoss AS 4.2.2. But I am unable to find a link from where I can download 3.0.5 
stack. Can someone please help me with this issue?

Thank you

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

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


[jboss-user] [JBoss Messaging Users] - Re: Simple example but failing to get onMessage called

2009-12-01 Thread glynbach
Please ignore. Forgot connection.start() for the consumer. Doh!

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

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


[jboss-user] [JBoss Web Services Users] - Re: Installing and Configuing jbossws for JBOSS App server -

2009-12-01 Thread pa12399
Hi

I am having some errors while deploying webservices.
I am using JBoss 4.2.2.

So, I tried to update the native webservice stack on JBoss 4.2.2 and I found 
out that the latest stack that is compatible with JBoss 4.2.2 is 
jbossws-native-3.0.5.

But I could not find jbossws-native-3.0.5 under the download site.

Were you able to successfully upgrade the native stack in JBoss 4.2.2?

Any pointers would be greatly appreciated.

Thank you


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

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


[jboss-user] [JBoss Web Services Users] - Re: JAX-WS Basic authorization?

2009-12-01 Thread pvenkatesh
Hi alessio

I exactly have followed this topic 
(http://www.jboss.org/index.html?module=bb&op=viewtopic&t=123643) to implement 
BASIC (authentication) security for my web service, but I am getting the 
following exeception

Exception in thread "main" java.lang.NoSuchMethodError: 
org.jboss.wsf.common.DOMUtils.clearThreadLocals()V
  at 
org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:64)
  at javax.xml.ws.Service.(Service.java:57)
  at javax.xml.ws.Service.create(Service.java:302)
  at org.jbia.ws.TestClient.main(TestClient.java:22)
Waiting for your response

Thanks

With regards
Venkat


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

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


[jboss-user] [JBoss Web Services Users] - Re: JBossWS is Java EE 5 compliant?

2009-12-01 Thread Oberiko
Great, thanks Alessio.

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

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


[jboss-user] [JBoss Messaging Users] - Simple example but failing to get onMessage called

2009-12-01 Thread glynbach
Hi

I wonder if someone could point out what I might be doing wrong here. The JBoss 
installation is out of the box and running in default mode. The queue seems to 
be correctly added in the destinations-service.xml (as in I can see it when I 
do a naming lookup). The producer seems to be sending messages to the queue 
fine. There aren't any errors subscribing to the queue. But the onMessage isn't 
getting called.

My code is:


  | import java.io.Serializable;
  | import java.util.Properties;
  | 
  | import javax.jms.Connection;
  | import javax.jms.ConnectionFactory;
  | import javax.jms.JMSException;
  | import javax.jms.Message;
  | import javax.jms.MessageConsumer;
  | import javax.jms.MessageListener;
  | import javax.jms.MessageProducer;
  | import javax.jms.ObjectMessage;
  | import javax.jms.Queue;
  | import javax.jms.QueueConnection;
  | import javax.jms.Session;
  | import javax.jms.TextMessage;
  | import javax.naming.InitialContext;
  | import javax.naming.NamingException;
  | 
  | public class QueueTest {
  | 
  | InitialContext ic = null;
  | ConnectionFactory cf = null;
  | Queue queue = null;
  | 
  | public static void main(String[] args) {
  | new QueueTest();
  | }
  | 
  | public QueueTest() {
  | try {
  | Properties properties = new Properties();
  | properties.setProperty("java.naming.factory.initial", 
"org.jnp.interfaces.NamingContextFactory");
  | properties.setProperty("java.naming.provider.url", 
"localhost");
  | properties.setProperty("java.naming.factory.url.pkgs", 
"org.jboss.naming:org.jnp.interfaces");  
  | ic = new InitialContext(properties);
  | 
  | cf = (ConnectionFactory)ic.lookup("/ConnectionFactory");
  | queue = (Queue)ic.lookup("/queue/FixiOrderQueue");
  | 
  | QueueConsumer consumer = new QueueConsumer();
  | consumer.start();
  | QueueProducer producer = new QueueProducer();
  | producer.start();
  | 
  | } catch (NamingException e) {
  | // TODO Auto-generated catch block
  | e.printStackTrace();
  | } 
  | }
  | 
  | private class QueueProducer extends Thread {
  | 
  | Session session = null;
  | MessageProducer producer = null;
  | 
  | public QueueProducer() {
  | Connection connection;
  | try {
  | connection = cf.createConnection();
  | session = connection.createSession(false, 
Session.AUTO_ACKNOWLEDGE);
  | producer = session.createProducer(queue);
  | } catch (JMSException e) {
  | // TODO Auto-generated catch block
  | e.printStackTrace();
  | }
  | }
  | 
  | public void run() {
  | while (true) {
  | try {
  | Thread.sleep(5000);
  | Thread.yield();
  | } catch (InterruptedException e) {
  | // TODO Auto-generated catch block
  | e.printStackTrace();
  | }
  | try {
  | //ObjectMessage message = 
session.createObjectMessage();
  | //message.setObject(new TestMessage());
  | TextMessage message = 
session.createTextMessage();
  | message.setText("Yo");
  | producer.send(message);
  | System.out.println("Sent message");
  | } catch (JMSException e) {
  | // TODO Auto-generated catch block
  | e.printStackTrace();
  | }
  | }
  | }
  | }
  | 
  | private class QueueConsumer extends Thread implements MessageListener {
  | 
  | public QueueConsumer() {
  | try {
  | Connection connection = cf.createConnection();
  | Session session = 
connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
  | MessageConsumer consumer = 
session.createConsumer(queue);
  | consumer.setMessageListener(this);
  | } catc

[jboss-user] [JBoss Web Services Users] - Re: Newbie: Empty ArrayList Passed on WS Call

2009-12-01 Thread gwzoller
Here's the rest of the story.  I finally stumbled on the right recipe, and here 
'tis.  I was over-complicating things.  Removing almost all the annotations 
fixed both the list-passing and the WSDL.

Interface:
import java.util.ArrayList;
  | import javax.ejb.Remote;  // for the EJB
  | import javax.jws.WebService;  // for the web service
  | import com.kepler.ecom.domain.OrderLine;
  | 
  | @Remote
  | @WebService
  | public interface OrderTakerRemote {
  | public String msg(ArrayList say);
  | }

Implementation:
import javax.ejb.Stateless;
  | import javax.jws.WebService;
  | import com.aviall.kepler.ecom.domain.OrderLine;
  | import com.aviall.kepler.ecom.services.OrderTakerRemote;
  | import java.util.ArrayList;
  | 
  | @WebService
  | @Stateless 
  | public class OrderTaker implements OrderTakerRemote {
  | public OrderTaker() {
  | }
  | 
  | public String msg(ArrayList say) {
  | // Use the list here
  | }
  | }


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

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


[jboss-user] [Security] - Re: Migrating to 5.1.0,

2009-12-01 Thread Gupta
We're currently in the process of rewriting our tests right now. Seems to be 
the most efficient way at the moment. Thanks anyway for your help!!

/Gupta

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

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


[jboss-user] [Installation, Configuration & Deployment] - InvokerLocator configuration

2009-12-01 Thread tjansto
morning folk,
when doing lookup of a particular bean , i am getting an exception on a  client 
accessing my jboss 5.1 app server of the type:
Root exception is org.jboss.remoting.CannotConnectException: Can not get 
connection to server. Problem establishing socket connection for InvokerLocator 
[socket://jboss5x.domain.name:3873/]]

this makes sense, since the jboss5x.domain.name is not accessible to the 
client.  i have previously had a jboss 4.x server configured to use a pooled 
invoker that did the lookups via an https invoker service.  i have made the 
same configuration changes (i.e:
 http-invoker.sar/WEB-INF/jboss-service.xml
 standardjboss.xml set to use hunifiedHA invoker
remoting-jboss-beans.xml configured to use the public ip of the vip we set up 
for the clientConnectAddress, 443 for the clientConnectPort

these are the main config files i seem to have needed to modify to make this 
work, and as long as my connection client is on the lan where it can make a 
connection on port 3873 to the box physically, the lookups all work fine.  the 
client is using java.naming.provider.url of 
https://public.address.vip/invoker/JNDIFactory which is working properly, but 
once the initial context is retrieved, the bean lookup seems to "fall back" 
(and i know its doing it because of how i have it configured) to trying to make 
a socket connection to the app server itself on that port, which is not 
available outside the firewall.  i have gone through the docs on the wiki at 
http://www.jboss.org/community/wiki/UsingJBossBehindAFirewall and the one about 
configuring rmi over http (cant remember the exact url),and the pdf remoting 
guide.  things seem ok, but aren't.  can anyone provide me some additional 
areas to look into?  i was wondering about changes in the constructor section 
of the remoting-jbos!
 s-beans.xml file, particularly in regards to changing the transport to 
something other than socket, but i'm not exactly sure of the impact or domino 
effect of additional configs that would need to be made (don't' care to make 
them, but i'm just no sure what they are and their dependencies...)

anyways, thanks for the time
tom
 

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

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

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


[jboss-user] [Security] - Re: Migrating to 5.1.0,

2009-12-01 Thread Wolfgang Knauf
Hi,

sorry, but then I cannot help further. 

Any chance to change your test class, so that the login is in the main thread 
or in each thread?

Best regards

Wolfgang

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

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


[jboss-user] [jBPM Users] - Re: [JBPM 4.1] Best practice to restart a task after shutdow

2009-12-01 Thread kukeltje
If jBPM runs in the same transaction as the calling method (the one that 
signals in the first case) that will be rolled back as well. So 'transaction 
management' is fully supported. 

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

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


[jboss-user] [Security] - Re: Migrating to 5.1.0,

2009-12-01 Thread Gupta
"Wolfgang Knauf" wrote : Hi,
  | 
  | does this help?
  | https://jira.jboss.org/jira/browse/SECURITY-272
  | According to this, you have to add one parameter to "auth.conf".
  | 
  | Best regards
  | 
  | Wolfgang

Unfortunately, we tried this already without success. We have also tried using 
the following VM-arguments:


org.jboss.security.SecurityAssociation.ThreadLocal
org.jboss.security.context.ThreadLocal


To true/false respectively. They all change the behaviour of 
SecurityAssociation, but the problem still remains since the log in is made in 
a separate thread.

BR,
Gupta




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

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


[jboss-user] [JBoss Web Services Users] - Allow HttpSession timeout to be set of EJB endpoints

2009-12-01 Thread Minjaman
Hello,

I have the same question as in JIRA issue JBWS-1202.

I can't find any answer of this question. Is the issue resolved or not? If yes, 
how can i set the timeout?

Regards
Alexander Kunkel

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

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


[jboss-user] [EJB 3.0 Users] - MBean with Scheduler: IllegalArgumentException

2009-12-01 Thread myklynysh
Hello,

I want to create a MBean or stateless SessionBean, what has an method that 
should be called periodical e.g. every 10 second. I founded an example with 
modifying of  scheduler-service.xml and created an interface and a MBean.
@Local
  | public interface TestExampleMBean extends ServiceMBean {
  | 
  | public void hitTest(int param);
  |   
  | }
@Stateless
  | public class TestExample extends ServiceMBeanSupport implements 
TestExampleMBean {
  | 
  | public TestExample() {
  | super();
  | }
  |
  | public void hitTest(int param) {
  | log.info("hitTest");
  | }
  | 
  | //..other methodes
  | }
  | 
scheduler-service.xml has following code
   
  |
  | 
  |
  | 
  |   true
  |   :name=TestExample
  |hitTest(int)
  | 
  | NOW
  |   1
  |   3
  |   true
  | 

I deploy my application and while scheduling calls of the method 
IllegalArgumentException is being thrown every time.
I checked the parameter, the parameter types should be correct.
Stake trace looks so:
14:37:03,102 ERROR [Scheduler$BaseListener] Invoke failed for :name=TestExample 
hitTest
  | javax.management.ReflectionException
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:189)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:165)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
  | at 
org.jboss.varia.scheduler.Scheduler$MBeanListener.invoke(Scheduler.java:1316)
  | at 
org.jboss.varia.scheduler.Scheduler$BaseListener.handleNotification(Scheduler.java:1235)
  | at sun.reflect.GeneratedMethodAccessor204.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at 
org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
  | at $Proxy215.handleNotification(Unknown Source)
  | at 
javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:257)
  | at 
javax.management.NotificationBroadcasterSupport$SendNotifJob.run(NotificationBroadcasterSupport.java:322)
  | at 
javax.management.NotificationBroadcasterSupport$1.execute(NotificationBroadcasterSupport.java:307)
  | at 
javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:229)
  | at org.jboss.mx.timer.JBossTimer.sendNotifications(JBossTimer.java:500)
  | at org.jboss.mx.timer.JBossTimer.access$100(JBossTimer.java:63)
  | at 
org.jboss.mx.timer.JBossTimer$RegisteredNotification.doRun(JBossTimer.java:662)
  | at 
org.jboss.mx.util.SchedulableRunnable.run(SchedulableRunnable.java:181)
  | at 
org.jboss.util.timeout.TimeoutFactory$TimeoutTargetImpl.timedOut(TimeoutFactory.java:299)
  | at 
org.jboss.util.timeout.TimeoutFactory$TimeoutWorker.run(TimeoutFactory.java:271)
  | at 
org.jboss.util.threadpool.RunnableTaskWrapper.run(RunnableTaskWrapper.java:147)
  | at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
  | at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  | at java.lang.Thread.run(Thread.java:619)
  | Caused by: java.lang.IllegalArgumentException
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
  | ... 25 more

I don't really know, what I do wrong.
Thanks for your help
myklynysh

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

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


[jboss-user] [EJB 3.0 Users] - Re: EJB 3.0 lookup from Pojo and Injection

2009-12-01 Thread MirekSz
I try explain exacly what I doing, the prevoius example wasn't real(but 
describe problem)

I have fasade

  | @Stateful
  | public class FasadeBean implements Fasade{
  | 
  | @EJB
  | private ChangedIdsCollectorService;
  | 
  | 
  | 
  | public ServerResponse execute(String serviceName, String serviceMethod, 
Object[] arguments){
  | 
  | Object result = serviceExecutor.execute(serviceName,serviceMethod, 
arguments);
  | 
  | return new ServerResponse(result, 
ChangedIdsCollectorService.getChangedIds());
  | 
  | 
  | }
  | 
  | 
  | }
  | 
and service which collect ids of changed object(ENTITY)

  | @stateles
  | public class ChangedIdsCollectorServiceBean inplements 
ChangedIdsCollectorService{
  | 
  | private List changedIds;
  | 
  | public void addChangedId(Long id){
  | changedIds.add(id);
  | }
  | 
  | public  List  getChangedIds(){
  | return changedIds;
  | }
  | 
  | }
  | 

When i call fasade and execute for example ("OperatorService","update" , 
operatorEntity) this fasade invokes "OperatorService" and return updated 
enitity, but I also have in my Entity 
metod which lookup for ChangedIdsCollectorService and add yourself to his list:

  | public class AbstractEntity {
  | 
  | @javax.persistence.PostUpdate
  | public void changeListener(){
  | Context context = new InitialContext();
  | ChangedIdsCollectorService ChangedIdsCollectorService = 
ChangedIdsCollectorServicecontext.lookup("ChangedIdsCollectorService/local");
  | ChangedIdsCollectorService.addChangedId(this.id); 
  | 
  | 
  | }
  | }
  | 
In this way I get information about changed objectsupdate of operator can 
invokes some businness rule which can updates another object and I also will be 
have this Ids.

Now I don't now if in FasadeBean I will be have the same instance of 
ChangedIdsCollectorService (from injection) like in Entity(from lookup)




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

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


[jboss-user] [jBPM Users] - Re: How signal as a state to a task?

2009-12-01 Thread cmjhingeniero
Help me, please with signal in process

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

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


[jboss-user] [Security] - Re: Migrating to 5.1.0,

2009-12-01 Thread Wolfgang Knauf
Hi,

does this help?
https://jira.jboss.org/jira/browse/SECURITY-272
According to this, you have to add one parameter to "auth.conf".

Best regards

Wolfgang

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

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


[jboss-user] [JBoss Portal Users] - Re: Theme and layout settings for Configure Dashboard

2009-12-01 Thread ric.sa.moore
Hi Brandon,

thanks for that.  But it's not actually the dashboard page that I want to 
change, it's the "Configure Dashboard" page that you can navigate to from a 
link at the top of the page when you are on the dashboard.

All of the pages available from the portal are using my custom theme and layout 
(set from the default-object.xml file), but the "Configure Dashboard" page 
doesn't seem to use these settings.

Thanks,
Richard

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

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


[jboss-user] [Installation, Configuration & Deployment] - Re: jboss web console error

2009-12-01 Thread rasa
Please check this 

http://www.techienuggets.com/Comments?tx=32945

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

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


[jboss-user] [jBPM Users] - Re: How to suspend Join Execution

2009-12-01 Thread saraswati.santanu
Pradeep,
   your problem is not very clear to me. It will be helpful if you can provide 
some code that can get the exception.

  However, whatever I understood, an approach may be to add a start event 
listener on the join node and delete the tasks you do not need when there is a 
request for rework. A sample code for the start event listener of the join node 
may be like this:

  |public void notify(EventListenerExecution execution) throws Exception {  
   
  | Task task = //find the task you need to invalidate
  | //ugly casting. Is there a better way   
  | ((TaskImpl)task).setExecution((Execution)null);
  | ((TaskImpl)task).setExecutionDbid(null);
  | //now delete the task
  | taskService.deleteTask(task.getId());
  |}
  | 

You can always check and see if there is a better way to delete an existing 
task.

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

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


[jboss-user] [JBoss Portal Users] - Re: Theme and layout settings for Configure Dashboard

2009-12-01 Thread brandonv
If you want to change the theme for the dashboard page, change this section to 
use your custom theme and layout:

  |   
  |   keep
  |   
  |  dashboard
  |  
  | 
  | 
  | 
  |layout.id
  |generic
  | 
  | 
  | 
  | 
  |theme.id
  |renewal
  | 
  | ...
  |   
Hope this helps.

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

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


[jboss-user] [JBoss Web Services Users] - Re: JBossWS is Java EE 5 compliant?

2009-12-01 Thread alessio.sold...@jboss.com
JBossWS provides the webservice features of JBossAS, which in turn is Java EE 5 
compliant. So as long as you use the specs included in Java EE (jaxws for 
instance) you should not be concerned about portability.

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

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


[jboss-user] [EJB 3.0 Users] - Re: EJB 3.0 lookup from Pojo and Injection

2009-12-01 Thread Wolfgang Knauf
Hi,

by definition, the management of EJB class instances (created by "new MyBean()" 
calls) is a matter of the server and totally undefined for your own client 
code. So, you can never expect to get instance of a previous method call. This 
is also true for stateful session beans, but here the server will restore the 
instance variables state for you.

Please provide us with more details of your architecture. Currently, I don't 
get the point what is happening in "AccountServiceBean". If it contains some 
business method, which stores it's results in a member variable, I would advice 
you to convert the bean to some POJO/helper class, and return the instance of 
this class from "SimplePojo.search".

Hope this helps

Wolfgang

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

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


[jboss-user] [JBoss Web Services Users] - Re: JBossWS is Java EE 5 compliant?

2009-12-01 Thread Oberiko
Hi Peter,

Thanks for your response.  While JBoss AS 5 is JEE5 compliant, do you happen to 
know if the same is true for JBossWS?  

My main concern is portability for any web services I create in JBossWS should 
my company decide to change application servers in the future.

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

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


[jboss-user] [JBoss Web Services Users] - PKIX path building failed: sun.security.provider.certpath.Su

2009-12-01 Thread pvenkatesh
Hi All

I need your help in enabling security for my webservice

I have tried to enable SSL and encryption for my service, but i failed in both. 

Here i tried to enable SSL security for my service, please find below the steps 
i have followed

1.I have created keystore and trust store using following commands
keytool -genkey -alias serverkeys -keyalg RSA -keystore server.keystore 
-storepass 123456 -keypass 123456 -dname "CN=localhost, OU=MYOU, O=MYORG, 
L=MYCITY, ST=MYSTATE, C=MY"
  | keytool -export -alias serverkeys -keystore server.keystore -storepass 
123456 -file server.cer
  | keytool -genkey -alias clientkeys  -keyalg RSA -keystore client.keystore 
-storepass 123456 -keypass 123456 -dname "CN=localhost, OU=MYOU, O=MYORG, 
L=MYCITY, S=MYSTATE, C=MY" 
  | keytool -export -alias clientkeys -keystore client.keystore -storepass 
123456 -file client.cer
  | keytool -import -v -keystore client.truststore  -storepass 123456 -file 
server.cer
  | keytool -import -v -keystore server.truststore  -storepass 123456 -file 
client.cer
  | 

2.I have placed my server.keystore, server.truststore at servers home directory

3.I have updated my server.xml as follows


  | 
  | 
4.My web.xml is as follows
anonymous wrote : 
  | 
  | 
Hello
  | 
org.jbia.ws.Hello
  | 
  | 
  | 
Hello
  | 
/hello
  | 
  | 
  |  
  |  
  |   All resources 
  |   /* 
  |  
  |  
  |   
CONFIDENTIAL 
  |  
  |  
  | 
My service class is as follows
anonymous wrote : 
  | package org.jbia.ws;
  | import javax.jws.*;
  | import javax.jws.soap.SOAPBinding;
  | @SOAPBinding(style=SOAPBinding.Style.RPC)
  | @WebService
  | public class Hello {
  |@WebMethod
  |public String sayHello(String name){
  |return "Hello " + name;
  |}
  | }
  | 
I have deployed my webservice as .war file in my server then I got the 
wsdl(generated), using that wsdl I generated my Stub. 

My Client is as follows
anonymous wrote : 
  | package org.jbia.ws;
  | public class Client
  |  {
  | public static void main(String args[]) {
  | if (args.length != 1) {
  | 
System.err.println("usage: HelloClient ");
  | 
System.exit(1);
  | }
  | System
  | 
.setProperty("org.jboss.wsse.keyStore",
  | 

"D:\\EclipseWorkspace\\Latest\\WebService\\META-INF\\client.keystore");
  | 
System.setProperty("org.jboss.wsse.keyStorePassword", "password");
  | System
  | 
.setProperty("org.jboss.wsse.trustStore",
  | 

"D:\\EclipseWorkspace\\Latest\\WebService\\META-INF\\client.truststore");
  | 
System.setProperty("org.jboss.wsse.trustStorePassword", "password");
  | try {
  | 
  | HelloProxy 
proxy = new HelloProxy();
  | 
proxy.setEndpoint("https://127.0.0.1:8443/JBossWS/hello?wsdl";);
  | 
proxy.sayHello("Venkat");
  | 
System.out.println("Result = ");
  | } catch (Exception ex) {
  | 
ex.printStackTrace();
  | 
System.out.println("Exception occurs in web services : " + ex);
  | }
  | 
  |  

[jboss-user] [EJB 3.0 Users] - Re: EJB 3.0 lookup from Pojo and Injection

2009-12-01 Thread MirekSz
Thanks for reply

AccountService is Stateless.
I need the same instance beacuse in InvoiceItemServiceBean a do some job which 
generates  data and assign it to the AccountService field. After in POJO I want 
this data

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

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


[jboss-user] [jBPM Users] - Re: [JBPM 4.1] Best practice to restart a task after shutdow

2009-12-01 Thread saraswati.santanu
If I understand correctly, the transaction will rollback when you do a 
"shutdown". If the transaction rolls back JBPM anyway will forget whatever 
happened during this period. So you have to do the same signalling again which 
has resulted in that automated java activity to trigger. You have to do this 
explicitly, it will not happen automatically.

You seem to need some transaction recovery system...is it?

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

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


[jboss-user] [Security] - Problem combining two loginmodules for SSO with Active Direc

2009-12-01 Thread Johan2001
For SSO in Windows Server 2008 we would like to use Kerberos so the user does 
not have to type in his/her username/password again for our application. 
Further we need the users roles/groups from Active Directory to restrict access 
to our application.

The solution I tried was to combine Krb5LoginModule with LdapExtLoginModule, 
but they do not work together in my case. If I use the Krb5LoginModule I can 
use SSO, if I use the LdapExtLoginModule I can retrieve the roles after 
entering my username/password again. But combining them for SSO and roles does 
not work.

If my research is correct than the problem is that the Krb5LoginModule returns 
a user of the form "usern...@domain" while the LdapExtLoginModule expects just 
"username". But I could not find a solution for that. Is there a solution for 
this problem, or is there perhaps another LoginModule that could be used?

The code we are using is the following:

  | 
  | 
  | 
  | 
  |  true
  |  true
  |  true
  | 
  | 
  | 
  | 
  |  true
  |  ldap://$ip$:389
  |  cn=$Username$, cn=Users, dc=$domain$, 
dc=$domainextension$
  |  $password$
  |  cn=Users,dc=$domain$,dc=$domainextension$
  |  (sAMAccountName={0})
  |  cn=Users,dc=$domain$,dc=$domainextension$
  |  (sAMAccountName={0})
  |  memberOf
  |  true
  |  cn
  |  ONELEVEL_SCOPE
  |  false
  | 
  | 
  | 
  | 
  | 
  | 

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

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


[jboss-user] [JBoss Web Services Users] - How to enable SSL security for my webservice?

2009-12-01 Thread pvenkatesh
Hi

Can some one tell me how to enable SSL security for my simple POJO webservice?

Please let me know the exact steps to be followed

Waiting for your response

Thanks

Venkatesh

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

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


[jboss-user] [jBPM Users] - Re: [JBPM 4.1] Best practice to restart a task after shutdow

2009-12-01 Thread funkymac
Thanks kukeltje, bad wording on my part... should have said "automatic 
activities", sorry about that.  In our case we have a number of java activities 
that transition from one to another.  Looking to restart the java activity 
(basically transition again) if we shutdown while a given java activity is 
processing.  Guessing I need to manually transition these, just unclear how to 
go about.  Any guidance much appreciated!

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

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


[jboss-user] [jBPM Users] - Re: Variables keep old values

2009-12-01 Thread kukeltje
please make a full unittest that demonstrates the problem. 

And do you close the context? You should... according to the docs

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

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


[jboss-user] [jBPM Users] - Re: Extending jBPM 4 history service

2009-12-01 Thread mpradny
Hello,

 I just created small demo that did work. I needed some other features that 
were not part of jBPM 4.0, but are in version 4.2, so I plan to get back to it 
and get some stable solution now.

Martin

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

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


[jboss-user] [Installation, Configuration & Deployment] - Error in Deployement of Ear File

2009-12-01 Thread varshneyankit
Hello,

When I was trying to deploy my application(.ear) 
on JBOSS-5.0.1.GA-jdk6  its not able to deploy that application and throwing 
some exception.
The exception is given below
  | 
  | 13:12:47,906 ERROR [AbstractKernelController] Error installing to 
PostClassLoader: 
name=vfszip:/E:/nrldc/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/default/deploy/JNRLDC.ear/
 state=ClassLoader mode=Manual requiredState=PostClassLoader
  | org.jboss.deployers.spi.DeploymentException: Error during deploy: 
vfszip:/E:/nrldc/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/default/deploy/JNRLDC.ear/JNRLDC-ejb.jar/
  | at 
org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
  | at 
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:177)
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
  | at 
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
  | at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
  | at 
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
  | 
  | at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
  | at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
  | at 
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
  | at 
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
  | at 
org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
  | at 
org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
  | at 
org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
  | at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
  | at 
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
  | at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
  | at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
  | at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
  | at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
  | at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
  | at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  | at java.lang.Thread.run(Thread.java:619)
  | Caused by: java.lang.NullPointerException
  | at java.lang.Class.forName0(Native Method)
  | at java.lang.Class.forName(Class.java:247)
  | at 
org.jboss.metadata.process.processor.ejb.jboss.SetDefaultLocalBusinessInterfaceProcessor.process(SetDefaultLocalBusinessInterfaceProcessor.java:114)
  | at 
org.jboss.metadata.process.chain.ejb.jboss.JBossMetaDataProcessorChain.process(JBossMetaDataProcessorChain.java:115)
  | at 
org.jboss.ejb3.deployers.Ejb3MetadataProcessingDeployer.deploy(Ejb3MetadataProcessingDeployer.java:115)
  | at 
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
  | ... 24 more
  | 13:12:48,328 WARN  [HDScanner] Failed to process changes
  | org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of 
incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
  | 
  | DEPLOYMENTS IN ERROR:
  |   Deployment 
"vfszip:/E:/nrldc/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/default/deploy/JNRLDC.ear/"
 is in error due to the following reason(s): java.lang.NullPointerException
  | 
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:863)
  | at 
org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:806)
  | at 
org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:293)
  | at 
org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
  | at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
  | at 
java.util.concurrent.FutureTask$Sync.innerRunAndReset(Future

[jboss-user] [JBoss Portal Users] - Re: Theme and layout settings for Configure Dashboard

2009-12-01 Thread ric.sa.moore
I suppose the other thing to mention is that my theme and layout are deployed 
in a separate war file on the server.  I don't know if this makes any 
difference.

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

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


[jboss-user] [JBoss Portal Users] - Re: Theme and layout settings for Configure Dashboard

2009-12-01 Thread ric.sa.moore
Hi Vijay,
thanks for the reply.  I had already had a look in this file and couldn't see 
how to get it to do what I wanted.
I changed all the values of the "layout.id" property to my own layout.
I then dropped all the tables in my database and restarted my server.

This had the effect of altering the layout on the "admin" portal, but didn't 
affect the page that I was talking about, the "configure dashboard" page.

Am I doing something wrong, or missing something?

Thanks,
Richard

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

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


[jboss-user] [jBPM Users] - Variables keep old values

2009-12-01 Thread aroeder
I tried to update my variables after I changed them on a webpage. The code 
looks basicly like that:


  | JbpmContext ctx = 
JbpmConfiguration.getInstance("jbpm.cfg.xml").createJbpmContext();
  | 
  | TaskInstance currentTI = ctx.getTaskInstance(this.currentTaskInstanceID);
  | 
  | 
  | Map variables = 
this.getFormDescription().getModelMap();
  | 
  | if (variables != null) {
  | 
  | currentTI.getContextInstance().addVariables(variables);
  | }
  | 
  | ctx.save(currentTI);
  | 

When I debug the code the variables from my model map contain the new values. 
Also the the values of the variables do change when I call addVariables. After 
calling ctx.save(currentTI); I expected that also values would change in the 
table JBPM_VARIABLEINSTANCE, but they don't.

What do I miss here?



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

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


[jboss-user] [Beginner's Corner] - Jboss 5 mbean dependency management under jboss 5.1.0

2009-12-01 Thread maciekcom
Hi,

How mbean dependencies are managed under jboss 5.1.0? 

Lets consider example:

1. We have three services: A,B,C
2. Serivce B depends on service A and C.
3. If create()/start() method is called on service B then create()/start() is 
also called under A and C?
4. If stop is called on service A or C then also stop is called on service B?

Thanks in advance for explanation.


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

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


[jboss-user] [EJB 3.0 Users] - Re: How to setting up an MBean depend on some SessionBeans

2009-12-01 Thread jaikiran
"larryxu77" wrote : 
  | 
  | In JBoss4 I find a way to specify MBean depends on some  SessionBeans by 
adding below words in jboss-app.xml
  |  
  | strict
  | 
  | 
  | 

That's fixed in the upcoming JBoss AS 6.0 M1.

"larryxu77" wrote : 
  | Now we are working on JBoss5.1, it seems doesn't work on JBoss5.1
  | I only find the similar function by the annotation 'depends' or xml setting 
like below.
  | @Depends(...)
  | 
  | But I don't want to keep this way because it is not a elegant way and I 
have to specify all references EJBs in the annotation.
  | 
Your MBean depends on *all* EJBs? Ideally the @Depends on the MBean should only 
point to the EJB on which the Mbean depends.



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

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


[jboss-user] [Beginner's Corner] - Re: Error using UnifiedInvoker

2009-12-01 Thread maciekcom
Exception occur under jboss 5.1.0

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

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


[jboss-user] [Beginner's Corner] - Re: Error using UnifiedInvoker

2009-12-01 Thread maciekcom
It works perfectly unde jboss 4.2.3

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

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


[jboss-user] [EJB 3.0 Users] - Re: EJB 3.0 lookup from Pojo and Injection

2009-12-01 Thread jaikiran
"MirekSz" wrote : 
  | 
  | If I can be sure that injected object AccountService will be the same 
lookup object??? 

What is the AccountService? Is it a Stateless session bean or a stateful 
session bean? More importantly, why do you want it to be the same instance?

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

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


[jboss-user] [JBoss Cache Users] - Re: Invalid character ':' in value part of property

2009-12-01 Thread shooter
Hi,

I have the same problem using jbosscache-pojo 3.0.0.GA.

I cannot find an upgrade of this jbosscache-pojo version.

Is there any workaround for this? The workaround that has been posted is 
useless for me.

I cannot add VM arguments due to restrictions (working for a client).

This is an urgent issue, because the software is already deployed in 
production. It worked fine with jbosscache-pojo.2.0.0.GA. But we had to upgrade 
to the latest version because of an issue in an clustered environment.

The software has to work in a clustered environment and also with cache mode 
LOCAL (for testing purposes).

I cannot understand why this version has been released with such majors issues.

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

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


[jboss-user] [Installation, Configuration & Deployment] - Re: Unreasonable Problems with deployed EJBs

2009-12-01 Thread jaikiran
You seem to be having a couple of issues:

1)
anonymous wrote : 09:24:01,137 ERROR [AllowedOperationsAssociation] 
getCallerPrincipal should not be access from this bean method: IN_EJB_CREATE, 
allowed is [IN_EJB_TIMEOUT, IN_BUSINESS_METHOD, IN_SERVICE_ENDPOINT_METHOD]
  | java.lang.IllegalStateException: getCallerPrincipal should not be access 
from this bean method: IN_EJB_CREATE
  | at 
org.jboss.ejb.AllowedOperationsAssociation.assertAllowedIn(AllowedOperationsAssociation.java:158)
  | at 
org.jboss.ejb.StatelessSessionEnterpriseContext$SessionContextImpl.getCallerPrincipal(StatelessSessionEnterpriseContext.java:221)
  | at 
com.acme.business.article.sessionBean.ArticleManagementEJB.sendError(ArticleManagementEJB.java:4044)
  | at 
com.acme.business.article.sessionBean.ArticleManagementEJB.ejbCreate(ArticleManagementEJB.java:257)
 
As the message states, you are not allowed to call getCallerPrincipal from the 
ejbCreate method.

2)
anonymous wrote : 
  | What confuses me even more is that after I restarted the servers a few 
times without changing anything, the problem just disappears. One restart later 
the problem returns.
  | 
  | And it isn't always the same EJB (in the exception above it is the 
Stateless session bean ArticleManagement), the problem occurs radomly in the 
existing beans, no matter if it is a session bean or an entity bean. 

Looking at your stacktrace:

  | 
org.jboss.ejb.StatelessSessionEnterpriseContext$SessionContextImpl.getCallerPrincipal(StatelessSessionEnterpriseContext.java:221)
  | at 
com.acme.business.article.sessionBean.ArticleManagementEJB.sendError(ArticleManagementEJB.java:4044)
  | at 
com.acme.business.article.sessionBean.ArticleManagementEJB.ejbCreate(ArticleManagementEJB.java:257)
 
the getCallerPrincipal probably gets called *only* when there is some other 
error and the ArticleManagementEjb decides to send/report that error. While 
doing so, it tries to get the caller principal - an operation which is not 
allowed. So effectively the original error is lost and you see this exception 
instead.


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

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