[jboss-user] [Remoting] - Re: JBREM-877: New Socket Connection is being Created for Ev

2009-03-02 Thread ron.si...@jboss.com
Hi Dave,

"ImmortAlex" wrote : 
  | I think, you forgot isParam="true".
  | 

Alex is right.  "invokerDestructionDelay" affects the creation of invokers on 
the client side, and setting "isParam" to "true" causes the 
"invokerDestructionDelay" parameter to be included in the InvokerLocator, which 
means it can be seen by the client.

I should tell you, though, that the use of "invokerDestructionDelay" may not 
help you when you're using the http transport.  See the thread "Socket keep 
alive with client EJB and RMI over HTTP" 
(http://www.jboss.org/index.html?module=bb&op=viewtopic&t=137758&postdays=0&postorder=asc&start=0)
 in this forum.  Unfortunately, I don't have any good answers right now.

"Dave Schneider" wrote : 
  | What also has me confused is that I've already upped the callbackPollPeriod 
attribute from its default of 102 (ms) to 5003, so I would be expecting 
connections from the clients only every 5 seconds or so. 
  | 

You're using an old version of JBossMessaging which, prior to versions  
 1.4.1.GA,  1.4.0.SP3.CP04, and 1.4.2.GA, didn't know about 
blocking/nonblocking mode, so you're seeing the default, nonblocking, behavior. 
 I'm not sure why increasing "callbackPollPeriod" didn't have an effect, but 
you probably don't want to be using nonblocking mode anyway, and 
"callbackPollPeriod" is ignored in blocking mode.  For that reason, I would 
suggest upgrading JBM.

Until recently it was necessary for the client code (JBM in this case) to 
specify the blocking mode when calling org.jboss.remoting.Client.addListener(), 
but JBREM-1084 "Allow CallbackPoller to access Client and InvokerLocator 
parameters" will allow org.jboss.remoting.callback.CallbackPoller to get the 
blocking mode directly from the InvokerLocator if you add the parameter 
"useAllParams" to the InvokerLocator with the value set to "true"; i.e., add


  | true
  | 

to remoting-http-service.xml.  That feature doesn't exist in a released version 
of Remoting yet, but, if you're interested, I could attach a preview 
jboss-remoting.jar to JBREM-1084.

By the way, here's remoting-http-service.xml from JBossMessaging 1.4.0.SP3_CP07:


  | 
  | 
  | 
  | 
  | 
  | 
  |
  |   
  |  
  | 
  |
  |org.jboss.jms.wireformat.JMSWireFormat
  |org.jboss.jms.wireformat.JMSWireFormat   
  |jms
  |${jboss.bind.address}
  |4458
   
  |org.jboss.remoting.callback.BlockingCallbackStore

  |
  |  
  |
  |1
  |   
  |   
  |blocking
  |
  |
  |3
  | 
  |   
  |1  
  | 
  | 
  |org.jboss.jms.server.remoting.JMSServerInvocationHandler
  | 
  |  
  |   
  |
  | 
  | 
  | 

Using blocking mode should reduce the number of invocations, and therefore 
reduce the number of open sockets.

-Ron

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Deploying Spring 2.5 Application in JBoss 5

2009-03-02 Thread jaikiran
While posting logs or xml content or code, please remember to wrap it in a code 
block by using the Code button in the message editor window. Please use the 
Preview button to ensure that your post is correctly formatted.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Deploying Spring 2.5 Application in JBoss 5

2009-03-02 Thread jaikiran
Please post the entire exception stacktrace.


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

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


[jboss-user] [JBoss Cache: Core Edition] - Re: on child insert parent, child collection updated in DB b

2009-03-02 Thread dukehoops
Following up my own post. It seems that:
- during login(), new UserSession; updated User.userSessions entity and 
collection aren’t put() into cache by design. (see #4 at the very bottom of 
the previous post). If my guess is correct, whose responsibility is to evict 
the existing (stale) user.sessions collection node from cache?
- Nothing evicts the empty PersistentSet collection entry already sitting in 
cache. So, on subsequent read request, an undesirable cache hit takes place. 
But why isn’t this happening with when testing with 1 user, or for every user 
when multiple threads are employed?




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

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

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


[jboss-user] [Management, JMX/JBoss] - Re: Custom MBean on JBoss 5.0.0 GA

2009-03-02 Thread jaikiran
anonymous wrote : import org.jboss.annotation.ejb.Management;
  | import org.jboss.annotation.ejb.Service;
  | 

These annotations (and some others) have been moved to a different package in 
JBossAS-5.0. They are now in org.jboss.ejb3.annotation.*. See this for more 
details 
http://www.jboss.org/file-access/default/members/jbossejb3/freezone/docs/tutorial/1.0.0/html/Service_POJOs.html

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

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


[jboss-user] [Beginners Corner] - Re: EntityManager TX and EJB3 = classLoader is not connected

2009-03-02 Thread jaikiran
Let's continue this discussion in your other post here 
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=151519

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

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


[jboss-user] [JNDI/Naming/Network] - Re: JNDI look up from ServletContextListener

2009-03-02 Thread jaikiran
Looks like a deployment ordering issue. I guess the war is deployed before the 
ejb jar. Similar to what is noted here 
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=146745&start=0#4213523

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

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


[jboss-user] [Beginners Corner] - DANGER !!!!!! BE CAREFUL OF LD_ASSUME_KERNEL=2.1.4 ABOVE

2009-03-02 Thread ngonidan

DANGER !

BE CAREFUL OF SETTING LD_ASSUME_KERNEL=2.1.4 ABOVE in newer Linux distros like 
Fedora 4 upwards etc

PLEASE BE CAREFUL OR YOU WILL CRASH YOUR MACHINE AND FAIL TO LOGIN



What is LD_ASSUME_KERNEL 

A while back a environment variable was introduced (mostly) to allow users to 
control how Linux handled threading issues. All sorts of applications (in 
particular Java) started telling users to set this LD_ASSUME_KERNEL variable. 
If you still have this variable set in Fedora Core 4, you are looking for 
trouble. 
*It’s true, I ngonidan crashed our Proxy server at office because I set 
the variable to 
export LD_ASSUME_KERNEL=2.1.4
**
When Linux was changing threading models the new threading model broke several 
applications (in particular Java) and so they added a variable you could set to 
get the old threading behavior. Many people just added this to their .profile 
or login to always allow things like Java to work. 
Another application that had issues at one point with the threading model was 
rpm. After some upgrades you would need to set LD_ASSUME_KERNEL to some 
particular value to get rpm to work at all. 
At some times during the transition, mozilla/firefox needed LD_ASSUME_KERNEL to 
properly run. Those days are long past. 
This was all well and good for transition to a new threading model/abi, but 
this has long since been completed. If you have LD_ASSUME_KERNEL set in Fedora 
Core you will see nifty errors like: 
/usr/lib/openoffice.org2.0/program/javaldx: 
/lib/obsolete/linuxthreads/libpthread.so.0: version `GLIBC_2.3.3' not found 
and 
rpmdb: unable to initialize mutex: Function not implemented. error: cannot open 
Name index using db3 - Function not implemented (38) 
The solution is of course to go through all your personal init files and make 
sure you remove any mention of LD_ASSUME_KERNEL. Including .profile, .bashrc, 
etc. 


How did I Ngonidan solve the crash
NOW, soon after setting  export LD_ASSUME_KERNEL=2.1.4 in bashrc, I could not 
login as root. This meant the whole machine users were in trouble. Now I got a 
tip to use a failsafe session, which is kind of a safe mode for linux. BUT, 
commands Do NOT work as expected e.g. programs like vi, etc. I think it’s coz 
programs/services are not loaded so what I did, I thought of using the append 
commands. I booted linux, took note of Fedora Kernel 2.6.18-1.2798.fc6
Solution- was to simply append another environment variable soon after that 
erroneous line, which meant that will be the variable which will be loaded 
# echo export LD_ASSUME_KERNEL=2.6.18-1.2798.fc6 >> /etc/bashrc
That’s it. Disaster recovered, will never play again with LD_ASSUME_KERNEL 



If above fails Try using an Ubuntu Live CD to go in and edit the file and save 
and reboot machine. But for me Ubuntu Live CD took too long or actually failed 
to startup my machine


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

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

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


[jboss-user] [JBoss Cache: Core Edition] - on child insert parent, child collection updated in DB but N

2009-03-02 Thread dukehoops
In abtract
I am load testing a Hibernate/JBC3 web application and am seeing that about 7% 
of the time inserting a child entity into a previously-empty collection results 
in update (INSERT) into DB but local cache remains unchanged:
-collection Node is still empty
-there is no child Entity node
This does not appear to be a race condition, as from that point on in any TX 
parent.getChildren() will return an empty collection from cache (even though DB 
state is non-empty).
This seems vaguely similar to https://jira.jboss.org/jira/browse/JBCACHE-1481 
but that issue's marked resolved.


In detail

App Config
Single Tomcat 6 NIO
Hibernate 3.3.1.GA
JBossCache 3.0.3.GA - Local Cache only; using default Locking (MVCC); 
READ_COMMITTED isolation
BTM JTA transaction manager

Load Test
JMeter load test where each of userCount users loop over the following scenario 
of HTTP requests:
for(I iterations)
  | {
  |   login();
  |   thinkTime //sleep;
  |   getRestrictedData(); //requires being logged in
  |   thinkTime //sleep;
  |   logout();
  |   thinkTime //sleep;
  | }
  | 

App Pseudo Code

Domain Model

-Transactional entity caches User, UserSession; collection cache User.sessions

  | class User{
  |  private long id;
  |  private Set sessions; //1-to-[0,1] modeled as one-to-many 
with unique constraint
  | 
  |  public boolean isLoggedIn()
  | {
  |  return !getSessions().isEmpty();
  | }
  | 
  | public void addSession(UserSession us)
  | {
  |   us.setUser(this);
  |   sessions.add(us);
  | }
  | 
  | public Set getSessions()
  | {
  |   return sessions;
  | }
  | }
  | 
  | 
  | 
  | class UserSession
  | {
  |   private User user;
  | 
  |  void setUser(User usr)
  | {
  |  this.user = usr;
  | }
  | 
  | }

Service Methods

//insert new UserSession if credentials check out
  | //throw exception otherwise
  | public void login(id, credentials)
  | {
  |   User usr = dao.getUser(id);
  |   if(credentials == bad)
  |{
  |   throw new AuthenticationException();
  |}
  |   usr.add(new UserSession());
  | }
  | 
  | //return data only if a userSession is present
  | //throw exception otherwise
  | public String getRestrictedData(id)
  | {
  |   User usr = dao.getUser(id);
  |   if(! usr.isLoggedIn())
  |   {
  |  throw new AuthorizationException("not logged in");
  |   }
  |   return data;
  | }
  | 
  | public void logout()
  | {
  |  //clear userSessions
  | }
  | }
  | 

Problem Observed
When userCount==1, no requests fail, regardless of thinkTime (varied latter 
between 0 and 2000ms)
  | When userCount is > 30, about 10-20% of users eventually (and most of the 
time on the very 1st iteration), fail like so:
  | -login() //success
  | -getRestrictedData() //fail: user not logged in
  | 
  | My load test terminates on 1st failure. Inspecting states of DB and JBoss 
Cache (via JMX) reveal:
  | -DB does have record of UserSession in question
  | -In Collection cache: User.sessions Node contains an empty PersistentSet
  | -In entity cache: User node references above (empty) collection; no node 
for UserSession that is in DB;
  | -hibernateVersion of User (parent) is updated in DB but not in Cache node
  | 
  | Musings
  | 
  | Though I am unable to repro this problem with 1 user, it is not possible 
for user A to affect state of user B in my app. So I am not quite clear on 
what's going on here. Since I don't (yet) understand the internals of MVCC (and 
jbc in general), I'd appreciate any thoughts and answers to the following 
questions that'll help me narrow down the problem:
  | 
  | 1. In MVCC, how many threads participate in login() method? Is it the case 
that one thread does the read and writes a versioned update, but another thread 
merges the updated data *after* TX commit?
  | 
  | 2. A somewhat dated http://www.jboss.org/community/docs/DOC-10266 wiki says 
there exists a faulty assumption about consistent ordering of synchronizations 
in Hibernate/JBC (problem #5). Has that been addressed? If not, could that be 
causing given problem?
  | 
  | 3. Same wiki's problem #7:
  | anonymous wrote : Hibernate should either retry or JBossCache should fail 
silently on this. (Nikita: not sure what 'this' refers to) As long as the data 
is stored in the db correctly, failure putting the data in the cache could fail 
silently. Next time someone requests the entity, it'd be retrieved from db and 
put in the cache.
  | 
  | This paragraph seems to imply that it is normal that cache is not updated 
on insert of new UserSession during login(). However, it also expects 
subsequent User.getSessions() to result in a DB read (and a put into cache). 
But what I am seeing that User.getSessions() in getRestrictedData() results in 
a cache hit on a (stale) node containing empty set user.sessions. Should 
addSession() in login() result in User.sessions collection node being 
invalidated (to be populated during subsequent reads) or being updated with a 
new reference to UserSession node? Similarly, should addSess

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBOSS 5 Deployment Ordering of EAR Structure

2009-03-02 Thread jaikiran
"mboulatian" wrote :  But, my question is what is the philosophy behind the new 
approach that these solutions are not part of main GA releases? Can you explain?

That solution was a workaround that we suggested so that you can try and get 
past this problem. It's a bug in the current release.


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

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


[jboss-user] [Performance Tuning] - Re: disable hot-deployment

2009-03-02 Thread brettcave
if you are clustering, then you need to set scanEnabled to false in 
deploy/deploy.last/farm-service.xml (jboss 4.x.x)

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: AJP Connector settings in JBOSS 4.2.2GA server

2009-03-02 Thread itlche
Sorry i forgot to add the configuration parameters from the server.xml.

Here Below the parameters 



  | 




  |
  | 
  | 
  | 
  | 
  | 
  | 

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

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


[jboss-user] [JBossWS] - Re: WebServices logging

2009-03-02 Thread richard.opa...@jboss.com
Another option you have is to use WS-Addressing in your web services and use 
MessageID correlation identifier to identify which response belongs to which 
request. Then you could identify related messages using your log4j integration 
work you already did ;)

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - AJP Connector settings in JBOSS 4.2.2GA server

2009-03-02 Thread itlche
Hi , 

Could some one tell me wat does these settings actually mean ? [Please see the 
server.xml settings below. ]

Well i can understand from worker.properties that 8009 , 8010 ports are used 
for apache to jboss connectivity. but i dont understand the use of 
redirectports and other settings .


>From  Server.xml











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

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


[jboss-user] [JBossWS] - Re: WebServices logging

2009-03-02 Thread richard.opa...@jboss.com
"mobaxkrs" wrote : Next issue we are facing is there is no link between the 
request and response. 
  | Is there any means to identify the response for particular request?
  | 
I'd suggest to use our Records Management Framework.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: MySQL 5.0 deployed as DS doesn't seem to work properly w

2009-03-02 Thread PeterJ
I use with MySQL and PostgreSQL as datasources in JBoss AS 5.0.x without any 
issues.

Was there a "caused by" clause for your exception?

Also, please post the *-ds.xml file for your data source. Remember to place the 
xml text within code tags (select the text and click the Code button above the 
editor). And click Preview to ensure htat the formatting is correct before 
submitting.

Also post your persistence.xml file.

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

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


[jboss-user] [JBossWS] - Re: Upgrade AS 4.2.3 WS to 3.0.5

2009-03-02 Thread richard.opa...@jboss.com
"chuaky" wrote : jbossws-native-client.jar file is pretty small (~5k), as 
compared to it predecessor jbossws-client.jar (~1.6M)
There were huge JBossWS project structure refactorings in JBossWS 3.x series

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

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


[jboss-user] [JBossWS] - Re: Upgrade AS 4.2.3 WS to 3.0.5

2009-03-02 Thread richard.opa...@jboss.com
Our distribution jars don't download other jars from internet.

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

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


[jboss-user] [JBossWS] - Re: Trying to specify SOAP 1.2 in EJB.

2009-03-02 Thread richard.opa...@jboss.com
Which JBossWS version are you using?
Yesterday we released JBossWS 3.1.0 downloadable here. 
Can you reproduce your problem with JBossWS 3.1.0 too?

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Dual Processor Config

2009-03-02 Thread PeterJ
Is there some OS config setting that is preventing JBoss AS from using all 
procs? I have a quad-core desktop on on both Vista and Ubuntu I can get JBoss 
AS to use all four cores.

Also, how are you determining that JBoss AS is using one one processor? The 
startup tends to be single-threaded because of the way deployment is done. But 
HTTP access in multi-threaded to under load you should see a lot of 
multi-processor usage.

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

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


[jboss-user] [JBossWS] - Re: WebServices logging

2009-03-02 Thread mobaxkrs
Hi all

Now that we could not log to database directly. We did the following work 
around. 
Wrote the log events as xml elements, using XMLLayout and then watch the log 
file.
Whenever, the log file changed, the application starts and log are inserted 
into db

Next issue we are facing is there is no link between the request and response. 
Is there any means to identify the response for particular request?

or can be extend JBOSS web Trace class?

regards
KRS 

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

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


[jboss-user] [JCA/JBoss] - Re: MESSAGE DRIVEN BEAN USING mail-ra.rar STOPS WORKING

2009-03-02 Thread wiberto
Has anyone found out why mail-ra stops working?

I'm actually seeing a very similar scenario where when the server starts up I 
can see it checking for email messages, but after a couple of hours it doesn't 
try to grab emails anymore. I haven't monitored it that closely to know the 
exact timing, but I know it's not even trying to check because I have it in 
debug mode and I don't see the mail commands being executed at all.

I'm going to have to implement this by going with a quartz trigger so I can 
manually check the mailbox using JAvaMail, but like the poster, I would prefer 
the more elegant MDB approach.





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

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


[jboss-user] [JBoss Tools (users)] - Re: AssertionFailedException while creating new EAR in proje

2009-03-02 Thread matt.drees
Ok, created a Jira issue: https://jira.jboss.org/jira/browse/JBIDE-3902.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - MySQL 5.0 deployed as DS doesn't seem to work properly with

2009-03-02 Thread anthon.r
My specs:
JBoss 5.0.0.GA
MySQL 5.0.41
MySQL Connector J 5.0.5

My EAR's session beans works with transactions successfully when using 
datasource from DefaultDS (Hypersonic DB), but throws an exception when using 
MySQL as my datasource.

Please refer to this link to -> 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214075#4214075

The point of interest on those exception:

14:55:21,796 ERROR [lifecycle] JSF1054: (Phase ID: INVOKE_APPLICATION 5, View 
ID: /login.html) Excep
  | tion thrown during phase execution: 
javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.Life
  | cyclei...@c68e03]
  | 14:55:21,796 ERROR [[Faces Config]] Servlet.service() for servlet Faces 
Config threw exception
  | java.lang.IllegalStateException: 
baseclassloa...@1f30e51{vfszip:/C:/Software/Server/jboss-5.0.0.GA/s
  | erver/default/deploy/demoproj-ear.ear} classLoader is not connected to a 
domain (probably undeployed
  | ?) for class java.sql.SQLWarning
  | at 
org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:730)
  | at 
org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:378)
  | at java.lang.ClassLoader.loadClass(Unknown Source)
  | at java.lang.ClassLoader.loadClassInternal(Unknown Source)
  | at com.mysql.jdbc.Connection.getMutex(Connection.java:3714)
  | at com.mysql.jdbc.Connection.rollback(Connection.java:5186)
  | at 
org.jboss.resource.adapter.jdbc.local.LocalManagedConnection.rollback(LocalManagedConnection.jav
  | a:97)
  | at 
org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource.rollback(TxConnectionMa
  | nager.java:1105)
  | at 
com.arjuna.ats.internal.jta.resources.arjunacore.XAOnePhaseResource.rollback(XAOnePhaseResource.
  | java:138)
  | 

Could anyone confirm to me if there should not be any problems with mysql as my 
datasource.

Any help is much appreciated.

Thanks

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

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


[jboss-user] [EJB 3.0] - EJB 3 MDB is both Consumer and Producer

2009-03-02 Thread hzfzl9
Hi,

I have an EJB3-MDB that durable subscribes to a remote topic.  I wonder if MDB 
able to configure to retrieve messages from remote XYZ-DLQ server.

On the remote XYZ-DLQ, there are DLQ messages for my MDB, but my MDB is not 
retrieving them.  Unless, I have to create another MDB to directly connect the 
remote server XYZ-DLQ, in order to retrieve those DLQ messages.

I am very much appreciated for any pointers.

Thanks,

Tua

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

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


[jboss-user] [JBoss jBPM] - Re: Custom node and eclipse

2009-03-02 Thread pieter.martin
Thanks, I'll have a look.

Cheers
Pieter

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

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


[jboss-user] [Advanced Documentation] - JBoss 5 Security

2009-03-02 Thread shekharshan
I have been looking at the "JBoss 5 Administration and Configuration Guide" and 
I don't see any information on how JBoss implements of Java EE security 
platform, particularly setting up a customer realm etc.

Does anyone know why this is the case? Your help will be greatly appreciated.

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

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


[jboss-user] [Management, JMX/JBoss] - Custom MBean on JBoss 5.0.0 GA

2009-03-02 Thread mayankmit2002
Hello,
   I'm trying to migrate my application from Jboss 4.2.2 to Jboss 5.0.0 GA. My 
Application is like that, it has a MBean which initiates some threads that 
keeps listing to some socket, along with that, it also has a MDB, which needs 
to perform some task on receiving some messages from my another application.

Now the problem is that, when I try to deploy the existing application on this 
new AS ( 5.0.0 GA), MBean is not getting deployed, along with that, MDB gets 
deployed, but still it is not visible in JMX console.
  But, the same application is working fine on Jboss AS 4.2.2.

Following is the code:
package com.barco.cms.tcpip;
  | 
  | 
  | /**
  |  * TODO: Documentation to be done for type 'TelNetMBean'..
  |  * 
  |  */
  | 
  | public interface TelNetMBean
  | {
  | 
  | /**
  |  * This method is one of the life cycle method of MBean, will be 
invoked automatically while starting this service.
  |  * 
  |  * @throws Exception
  |  */
  | public void start ()
  | throws Exception;
  | 
  | 
  | /**
  |  * This method is one of the life cycle method of MBean, will be 
invoked automatically while stoping this service.
  |  * 
  |  * @throws Exception
  |  */
  | public void stop ()
  | throws Exception;
  | 
  | 
  | /**
  |  * This method is used to set the port of the TCP\IP server by JMX 
console.
  |  * 
  |  * @param aPort
  |  * @throws Exception
  |  */
  | public void setPort (String aPort)
  | throws Exception;;
  | 
  | 
  | }
  | 

  | package com.barco.cms.tcpip;
  | 
  | 
  | import java.io.IOException;
  | import java.net.InetSocketAddress;
  | import java.nio.charset.Charset;
  | 
  | import javax.jms.Session;
  | import javax.jms.Topic;
  | import javax.jms.TopicConnection;
  | import javax.jms.TopicConnectionFactory;
  | import javax.jms.TopicPublisher;
  | import javax.jms.TopicSession;
  | import javax.naming.InitialContext;
  | 
  | import org.apache.mina.common.ByteBuffer;
  | import org.apache.mina.common.IoAcceptor;
  | import org.apache.mina.common.SimpleByteBufferAllocator;
  | import org.apache.mina.filter.LoggingFilter;
  | import org.apache.mina.filter.codec.ProtocolCodecFilter;
  | import org.apache.mina.filter.codec.textline.TextLineCodecFactory;
  | import org.apache.mina.transport.socket.nio.SocketAcceptor;
  | import org.apache.mina.transport.socket.nio.SocketAcceptorConfig;
  | import org.jboss.annotation.ejb.Management;
  | import org.jboss.annotation.ejb.Service;
  | 
  | import com.barco.cms.foundation.logging.Logger;
  | 
  | 
  | /**
  |  * This is main class which acts as a TCP/IP Server for the clients.
  |  * 
  |  * @author srgk
  |  */
  | @Service(objectName = "com.barco.cms.tcpip:service=TelnetService", name = 
"com.barco.cms.tcpip:service=TelnetService")
  | @Management(TelNetMBean.class)
  | public class TelNetServer
  | implements TelNetMBean
  | {
  | 
  | // Member Variables
  | // 

  | 
  | private static int PORT = 4585; // Default Port 4585
  | private static Logger mLogger = null;
  | private IoAcceptor mAcceptor = null;
  | private InetSocketAddress mInetAddress = null;
  | private SocketAcceptorConfig mSktActConf = null;
  | 
  | static
  | {
  | mLogger = Logger.getLogger(TelNetServer.class);
  | }
  | 
  | 
  | /**
  |  * Main Method for starting the TCP/IP Server.
  |  * 
  |  * @param args
  |  * @throws IOException
  |  */
  | 
  | 
  | public static void main (final String[] args)
  | {
  | try
  | {
  | new TelNetServer().start();
  | }
  | catch (final Exception anException)
  | {
  | 
  | }
  | }
  | 
  | 
  | // /**
  | // * @see org.jboss.system.ServiceMBeanSupport#startService()
  | // */
  | // @Override
  | // protected void startService ()
  | // throws Exception
  | // {
  | // // TODO Auto-generated method stub
  | // super.startService();
  | // }
  | /**
  |  * @see com.barco.cms.tcpip.TelNetMBean#start()
  |  */
  | @Override
  | public void start ()
  | throws Exception
  | {
  | System.out.println("Hello");;
  | // Just to initiate the session threads for first time
  | ServerRequestHandler lServerRequestHandler = new 
ServerRequestHandler();
  | mInetAddress = new InetSocketAddress(System.getenv("COMPUTERNAME"), 
PORT);
  | 
  | ByteBuffer.setUseDirectBuffers(false);
  | ByteBuffer.setAllocator(new SimpleByteBufferAllocator());
  | 
  | mAcceptor = new SocketAcceptor();
  | 
  | mSktActConf = new SocketAcceptorConfig();
  | mSktActConf.getFilterChain().addLast("logger", new LoggingFilter());
  | mSktActConf.getFilterChain().addLast

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Deploying Spring 2.5 Application in JBoss 5

2009-03-02 Thread charliebarjel
Hi,

I am trying to deploy my Spring application in JBoss 5.0.1GA.

It fails with the error:

schema_reference.4: Failed to read schema document 
'http://www.springframework.org/schema/beans/spring-beans.2.5.xsd'. 

It deploys fine in other application servers such as Tomcat and WebLogic.

I have searched Google for 2 days trying to find an answer.

Please help me to resolve this error.

Thanks in advance,
Charlie

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

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


[jboss-user] [JBossWS] - Re: Upgrade AS 4.2.3 WS to 3.0.5

2009-03-02 Thread chuaky
hi richard,

It works, just that the jbossws-native-client.jar file is pretty small (~5k), 
as compared to it predecessor jbossws-client.jar (~1.6M).   By including the 
jbossws-native-client.jar, can it run offline as a standalone client or would 
it "load" other jars?

Many thanks.

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

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


[jboss-user] [JBoss Getting Started Documentation] - Re: jmx-console -> page cannot be displayed

2009-03-02 Thread jvasire
Hi 

Try to start it as follows, I am reffering to Unix
run.sh -b hostname

like run.sh -b 172.21.98.5 or like run.sh -b xyzhost

Please let us know does it worked or not.

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

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


[jboss-user] [JBoss jBPM] - Re: spring modules 0.9 with jbpm 3.2.2 error

2009-03-02 Thread bradsdavis
Well, I dont know if that is the cause, but ultimately you are missing the 
class definition for the exception being thrown... judging by the stack trace.

See: http://www.jarfinder.com/index.php/java/info/javax.jcr.RepositoryException

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

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


[jboss-user] [EJB 3.0] - need help with query

2009-03-02 Thread aozoren
i have the following ejbql that returns the wrong outer join; it does not 
return all records from product:

select distinct p, opl.privilege from Product p left outer join 
p.organizationPrivilegeList opl where p.name like 'ms%' and opl.organization.id 
= 1

correct behaving regular sql is as follows:

select * from vb_product p left outer join (select * from vb_product_privilege 
where organization_id = 1) as pp on p.id = pp.product_id where p.name like 'ms%'

difference being organization filter is applied before the outer join.

can anyone help me write the same meaning in ejbql? or is it possible to use 
subqueries with where clauses in joins? any sample?

thanks.

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

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


[jboss-user] [JBoss jBPM] - spring modules 0.9 with jbpm 3.2.2 error

2009-03-02 Thread bestage
 Hi all,

I am getting this nasty error. Is it some kind of dependency problem?




org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'sessionFactory' defined in class path resource
[jbpm-spring.xml]: Invocation of init method failed; nested exception is
java.lang.NoClassDefFoundError: javax.jcr.RepositoryException
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
(AbstractAutowireCapableBeanFactory.java:1337)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean
(AbstractAutowire
CapableBeanFactory.java:473)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged
(AccessController.java:219)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton
(DefaultSingletonBeanRegistry.java:221)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean
(AbstractBeanFactory.java:261)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:164)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
(DefaultListableBeanFactory.java:423)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization
(AbstractApplicationContext.java:729)
at
org.springframework.context.support.AbstractApplicationContext.refresh
(AbstractApplicationContext.java:381)
at
org.springframework.context.support.ClassPathXmlApplicationContext.
(ClassPathXmlApplicationContext.java:139)
at
org.springframework.context.support.ClassPathXmlApplicationContext.
(ClassPathXmlApplicationContext.java:93)
at
de.hsbc.trinkaus.ba.ssi.services.impl.ProcessServiceImplTest.oneTimeStepUp
(ProcessServiceImplTest.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.junit.internal.runners.ClassRoadie.runBefores
(ClassRoadie.java:49)
at org.junit.internal.runners.ClassRoadie.runProtected
(ClassRoadie.java:36)
at org.junit.internal.runners.JUnit4ClassRunner.run
(JUnit4ClassRunner.java:42)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run
(JUnit4TestReference.java:38)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run
(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
(RemoteTestRunner.java:196)
Caused by: java.lang.NoClassDefFoundError: javax.jcr.RepositoryException
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:68)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:129)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:67)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:522)
at org.hibernate.engine.UnsavedValueFactory.instantiate
(UnsavedValueFactory.java:22)
at org.hibernate.engine.UnsavedValueFactory.getUnsavedIdentifierValue
(UnsavedValueFactory.java:44)
at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty
(PropertyFactory.java:44)
at org.hibernate.tuple.entity.EntityMetamodel.
(EntityMetamodel.java:123)
at org.hibernate.persister.entity.AbstractEntityPersister.
(AbstractEntityPersister.java:434)
at org.hibernate.persister.entity.SingleTableEntityPersister.
(SingleTableEntityPersister.java:109)
at org.hibernate.persister.PersisterFactory.createClassPersister
(PersisterFactory.java:55)
at org.hibernate.impl.SessionFactoryImpl.
(SessionFactoryImpl.java:226)
at org.hibernate.cfg.Configuration.buildSessionFactory
(Configuration.java:1294)
at
org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory
(LocalSessionFactoryBean.java:814)
at
org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory
(LocalSessionFactoryBean.java:732)
at
org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPrope

[jboss-user] [JBoss jBPM] - Re: Need some advices on a workflow

2009-03-02 Thread bradsdavis
You could probably accomplish this with a timer on the task creation event.

Put an action in the timer, and basically set it to however long until it 
expires.

Then, have the action in the timer be responsible for closing the task and 
pushing the workflow.

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

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


[jboss-user] [JBoss jBPM] - Re: TaskInstance order by in taskList.getTaskInstances() ?

2009-03-02 Thread bradsdavis
If you wanted to start somewhere for this, I would first understand Hibernate 
queries.  The Task Management Session uses Hibrernate to make this query.

So, here is the Hibernate Query they use to get tasks for a given user:


  | select ti
  |   from org.jbpm.taskmgmt.exe.TaskInstance as ti
  |   where ti.actorId = :actorId
  | and ti.isOpen = true
  | 

See: http://www.hibernate.org/hib_docs/nhibernate/html/queryhql.html

For the hibernate query, see the source from org.jbpm.db.TaskMgmtSession, which 
calls a query in org/jbpm/db/hibernate.queries.hbm.xml

You could get the Hibernate session from jBPM, and then create a Query off of 
it, making your appropriate order by.

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

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


[jboss-user] [JBoss jBPM] - Re: JBPM on JBoss 5

2009-03-02 Thread bradsdavis
As a follow up to this question, I would be interested in knowing if turning 
clustering on for the jBPM queues would be appropriate here.

Thoughts?

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

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


[jboss-user] [JBoss jBPM] - Re: Hightlight Jbpm process definition image

2009-03-02 Thread bradsdavis
I dont know the direct answer, but you could definitely figure this out by 
starting with your jsf console and working backwards.

Try starting with:
jbpm\jsf-console.war\app\procins.xhtml

I believe in the jsf console, this is what renders the process.  Work back from 
there.

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

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


[jboss-user] [JBoss jBPM] - Re: Writing to custom tables not defined by JBPM

2009-03-02 Thread bradsdavis
Josh, 
I have been using the pattern of EJB Stateless beans for the business layer.  

In that business layer, I will persist to whatever datastore I need, and make 
my calls to jBPM as well.  

The EJB Stateless Session Bean methods are wrapped with Container Managed 
transactions or Bean Managed transactions.

That way, when I make some update in my business layer, and transition jBPM, I 
know that if the jBPM call fails, or the call to my datastore, everything is 
rolled back.

Else, everything is committed.

Another option would be to write your own hibernate layer and then pass in the 
hibernate session.  See: 7.1.4. Injecting the hibernate session for more on 
this.

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

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


[jboss-user] [JBoss jBPM] - Re: org.hibernate.StaleObjectStateException: jbpm and esb

2009-03-02 Thread bradsdavis
I mean, what type of caching are you using with Hibernate?

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

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


[jboss-user] [JBoss jBPM] - Re: org.hibernate.StaleObjectStateException: jbpm and esb

2009-03-02 Thread bradsdavis
What type of caching are you using with jboss?

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

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


[jboss-user] [JBossWS] - Trying to specify SOAP 1.2 in EJB.

2009-03-02 Thread djkrite
I'm running JBoss 4.2.3 on Java 1.5. I would like to use SOAP 1.2 with my web 
service endpoint but when I try to specify with:
@BindingType(value="http://www.w3.org/2003/05/soap/bindings/HTTP/";)
  | 
  | or
  | 
  | @BindingType(javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING)

and then throw a SOAP 1.2 fault in my code, I get this:

  | javax.ejb.EJBException: java.lang.UnsupportedOperationException: SOAP 1.1 
Fault does not support the concept of Role

Is there anyway to specify SOAP 1.2?

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

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


[jboss-user] [JBoss jBPM] - Re: org.hibernate.StaleObjectStateException: jbpm and esb

2009-03-02 Thread sshetty
Forgot to mention, we have clustered 2 servers on 2 different hosts. And the 
BPM can trigger on either host.

Thanks

:)
SShetty

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

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


[jboss-user] [JBoss jBPM] - org.hibernate.StaleObjectStateException: jbpm and esb

2009-03-02 Thread sshetty
Hi,

We see the following invocation when we use JBPM to orchestrate our ESB 
services.


  | 2009-03-02 16:00:07,508 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to 
close PreparedStatement (open PreparedStatements: 1, globally: 1)
  | 2009-03-02 16:00:07,508 DEBUG [org.hibernate.jdbc.ConnectionManager] 
skipping aggressive-release due to flush cycle
  | 2009-03-02 16:00:07,508 ERROR 
[org.hibernate.event.def.AbstractFlushingEventListener] Could not synchronize 
database state with session
  | org.hibernate.StaleObjectStateException: Row was updated or deleted by 
another transaction (or unsaved-value mapping was incorrect): 
[org.jbpm.job.ExecuteActionJob#63081]
  | at 
org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1765)
  | at 
org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2407)
  | at 
org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2307)
  | at 
org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2607)
  | at 
org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92)
  | at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
  | at 
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:234)
  | at 
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:142)
  | at 
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
  | at 
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
  | 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.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140)
  | at 
org.jbpm.persistence.jta.JtaDbPersistenceService.endJtaTransaction(JtaDbPersistenceService.java:76)
  | at 
org.jbpm.persistence.jta.JtaDbPersistenceService.close(JtaDbPersistenceService.java:37)
  | at org.jbpm.svc.Services.close(Services.java:225)
  | at org.jbpm.JbpmContext.close(JbpmContext.java:139)
  | at 
org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread.java:144)
  | at 
org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:58)
  | 2009-03-02 16:00:07,509 DEBUG [org.hibernate.jdbc.ConnectionManager] 
aggressively releasing JDBC connection
  | 2009-03-02 16:00:07,509 DEBUG [org.hibernate.jdbc.ConnectionManager] 
releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open 
ResultSets: 0, globally: 0)]
  | 2009-03-02 16:00:07,510 WARN  [com.arjuna.ats.arjuna.logging.arjLoggerI18N] 
[com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator_2] 
TwoPhaseCoordinator.beforeCompletion - failed fo
  | r 
com.arjuna.ats.internal.jta.resources.arjunacore.synchronizationim...@53a642
  | 
  | 

Here is our env:

anonymous wrote : 
  | Oracle 10g
  | jboss-4.2.3.GA
  | jboss-messaging-1.4.2.GA
  | jbossesb-4.4.GA
  | 

Our BPM does not use fork or joins.

Any help appreciated.

Thanks

:)
SShetty

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

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


[jboss-user] [JBoss jBPM] - Re: Custom node and eclipse

2009-03-02 Thread kukeltje
Pieter, 

A good example is to look at the GPD source and especially the ESB node. But 
that is the current production GPD. In the new GPD things will be different. I 
do not know how though.

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

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


[jboss-user] [Security & JAAS/JBoss] - Re: Minimal JBoss config to use GSSAPI/Kerberos acceptSecCon

2009-03-02 Thread chriscorbell
I finally got it working.  I had gotten a sample working in a small test Java 
app. using the external config file brought in by 
"-Djava.security.auth.login.config" per the Sun sample.

I believe I have confirmed that this usage is not the way to go with JBoss - 
you need to use the same configuration properties of a 
"com.sun.security.jgss.accept" that might be defined in such a config file, but 
do it in the standard JBoss login-config.xml.

The three system property args needed are:
-Djava.security.krb5.realm=(your realm), -Djava.security.krb5.kdc=(your kdc 
IP), and -Djavax.security.auth.useSubjectCredsOnly=false
(I'm passing these to the JVM via run.sh).

It turns out I was missing a few things in my login-config.xml 
application-policy, that was the main source of may failure - also missing a 
couple of steps in my code.

Here's what my policy looks like in login-config.xml:


  |
  |   
  |  true 
  |  MY.TEST.REALM.COM
  |  10.1.6.100
  |  true
  |  true 
  |  true
  |  /Library/sso/myservice/krb5.keytab 
  |  true 
  |  myservice/10.1.6.22 
  |   
  |
  | 

The options for "realm", "kdc", "keyTab" and "principal" are the values that 
vary based on deployment and particular service.

In source, I found I needed to:
1. unmarshall the GSS context token I've received from the client into a byte 
array
2. get a GSSManager instance
3. create a new LoginContext with:
   new LoginContext("com.sun.security.jgss.accept");
4. Call login() on my LoginContext instance
5. Create a GSSCredentials instance with the manager, using
  .createCredential(GSSCredential.ACCEPT_ONLY);
6. Create a GSSContext using the manager, passing the credentials just created 
to .createContext(...)
7. Use the context to call .acceptSecContext:
  gssCtx.acceptSecContext(gssContextBytes, 0, gssContextBytes.length);

Hopefully this is useful for someone else who's trying to achieve the same 
thing.

- Chris


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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Dual Processor Config

2009-03-02 Thread moousa
I have the same problem but I do not know what I should do. I use an 
application that is running on a jboss 4.2.2 server. I noticed that jboss uses 
only one processor all the time although I have a machine which contains 4 
processors. I search on internet but I found no help.
my question is there a way to run Jboss on multiple processors to take 
advantage of all my resources.

I'm using an AMD64 machine with 4 processors and jboss is running on lunix 
CentOS 64bit .

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

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


[jboss-user] [JBoss/Spring Integration] - Re:

2009-03-02 Thread alesj
See http://www.jboss.org/index.html?module=bb&op=viewtopic&t=138234&start=20.

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

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


[jboss-user] [JBoss/Spring Integration] -

2009-03-02 Thread shaival

Hi,
   I am using autowired Beans with @AutoWired , @Component etc
and my Application-context.xml has following entry.


 
 
   

   
 

My WebWar deploys fine in Tomcat , jetty but when i use Jboss 5.0.1A.
Deployment fails and it gives following error.If you can guide me a bit that 
will be really great.

at java.lang.Thread.run(Thread.java:619)
Caused by: org.springframework.beans.factory.BeanCreationException: Could not au
towire field: private com.interval.services.pojo.ContactService com.interval.con
tact.service.contactmanager.ContactManagerEndpoint.contactService; nested except
ion is org.springframework.beans.factory.NoSuchBeanDefinitionException: No uniqu
e bean of type [com.interval.services.pojo.ContactService] is defined: Unsatisfi
ed dependency of type [interface com.interval.services.pojo.ContactService]: exp
ected at least 1 matching bean
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP
ostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.j
ava:435)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject
Fields(InjectionMetadata.java:105)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP
ostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.
java:240)
... 78 more
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No u
nique bean of type [com.interval.services.pojo.ContactService] is defined: Unsat
isfied dependency of type [interface com.interval.services.pojo.ContactService]:
 expected at least 1 matching bean
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
resolveDependency(DefaultListableBeanFactory.java:613)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP
ostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.j
ava:412)
... 80 more
15:07:00,708 ERROR [[/EnterpriseServicesWeb]] Servlet /EnterpriseServicesWeb thr
ew load() exception
org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean
of type [com.interval.services.pojo.ContactService] is defined: Unsatisfied depe
ndency of type [interface com.interval.services.pojo.ContactService]: expected a
t least 1 matching bean
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
resolveDependency(DefaultListableBeanFactory.java:613)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP
ostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.j
ava:412)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject
Fields(InjectionMetadata.java:105)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP
ostProcessor.postProcessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.
java:240)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:959)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finish
BeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:380)
at org.springframework.web.servlet.FrameworkServlet.createWebApplication
Context(FrameworkServlet.java:402)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationCo
ntext(FrameworkServlet.java:316)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(Fram
eworkServlet.java:282)
at org.springframework.web.servlet.HttpServletBean.

[jboss-user] [Datasource Configuration] - Re: How to configure XA Datasource correctly? Getting org.jb

2009-03-02 Thread wayne.earnshaw
There are examples shipped with JBoss 

>From the error 
org.jboss.resource.JBossResourceException: No XADataSourceClass supplied!

I'd guess it's looking for this XML element 


One of their examples from /examples/jca/generic-ds.xml (which is under your 
JBoss installation directory) looks like this

  |   
  |   
  | GenericXADS
  | [fully qualified name of class implementing 
javax.sql.XADataSource goes here]
  | SomePropertyValue
  | SomeOtherValue
  | ... etc...
  | 

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: installing esb4.4 on jboss4.2.3 minimal profile

2009-03-02 Thread yuap
To solve the particular problem above, copy/paste the 
org.jboss.deployment.MainDeployer-xmbean.xml file from 
jboss-4.2.3.GA\server\default\conf\xmdesc\

to

jboss-4.2.3.GA\server\\conf\xmdesc\

However, a new list of problems will appear.

Those can be solved by placing org.jboss.deployment.JARDeployer-xmbean.xml in 
the same directory mentioned above,

AND

placing the following JARs in the jboss-4.2.3.GA\server\\lib\ 
directory:
antlr.jar
bsh.jar
commons-codec.jar
hibernate3.jar
quartz.jar

I now have a server profile built from the provided minimal profile in which 
Tomcat, JMX, JBM1.4.2 and JBESB4.4 are installed.

I have a couple of warnings:

14:50:31,140 WARN  [ConnectionFactoryJNDIMapper] supportsFailover attribute is 
true on connection factory: 
jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post 
office is non clustered. So connection factory will *not* support failover

AND

14:50:31,140 WARN  [ConnectionFactoryJNDIMapper] supportsLoadBalancing 
attribute is true on connection factory: 
jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post 
office is non clustered. So connection factory will *not* support load balancing


BUT, I can send messages from a producer that pulls data from an eXist db to a 
queue / ESB / queue to a receiver with no immediate problems.


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

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


[jboss-user] [JBoss jBPM] - Custom node and eclipse

2009-03-02 Thread pieter.martin
Hi,

If I create a custom node, i.e. 

How difficult is it to get eclipse to be aware of it and visualize it 
Is it possible at all without too much work?

Thanks
Pieter

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Deploy Tomcat After Datasources.

2009-03-02 Thread wstra...@yahoo.com
I do not have complete access to the box since I am only a developer and have 
to rely on Unix administrators. The issue looks like a shutdown error during a 
restart not a start up error. It happened during what I thought was a start up 
after a configuration change so I thought it was a start up error.

The console has the following entries:

08:11:01,949 INFO  [Server] Runtime shutdown hook called, forceHalt: true
08:11:01,949 INFO  [Server] JBoss SHUTDOWN: Undeploying all packages
08:11:01,950 INFO  [TomcatDeployer] undeploy, ctxPath=/servlets, 
warUrl=.../tmp/deploy/tmp35064servlets-exp.war/
08:11:02,387 INFO  [Server] Shutting down the server, blockingShutdown: false
08:11:02,388 INFO  [Server] Server exit(0) called

Here is the application log. Note the times. The application is getting errors 
at 08:11:02,067 which is after the shutdown of the application, 08:11:01,950, 
but before the shut down of the server, 08:11:02,387.
 
08:11:02,067 [JDBCConnectionFactory.getContext 408] INFO  - database=WOL
08:11:02,068 [JDBCConnectionFactory.logError 314] ERROR - WOL: 
javax.naming.NameNotFoundException: WOLPool not bound
0

The JDBCConnectionFactory.getContext is used for all database connections and 
uses a Context without properties.

We use the RMI port to send a shutdown.

shutdown.sh --shutdown --user= --password= 
--server=jnp://localhost:1099/

We have had problems with that. Sometimes it throws an error and some times it 
hangs and needs to be killed so we added a kill to the process. I do not know 
the source of the -15 signal but did not come up with that myself.

kill -15 `cat $JBOSS_HOME/bin/jboss.pid`



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

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


[jboss-user] [JBoss Tools (users)] - Exception when running JBOSS Tools CR3

2009-03-02 Thread sacauskis
I'm back to where I started about a week ago.  I'm getting the following stack 
trace:

Exception in thread "main" java.lang.NoClassDefFoundError: gnu/getopt/LongOpt   
at 
org.jboss.wsf.spi.tools.cmd.WSConsume.parseArguments(WSConsume.java:85)  
at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:78)


I started from these instructions:

Now that the Ganymede SR2 updates have been published, you should be able to 
install from either of these sites w/o needing to add anything else to 
Eclipse's list of update sites:

http://download.jboss.org/jbosstools/updates/JBossTools-3.0.0.CR2/
http://download.jboss.org/jbosstools/updates/development/

I just tried it and it works fine. I started from the Eclipse Ganymede SR2 JEE 
Bundle (which includes Eclipse 3.4.2 and Web Tools 3.0.4), but you can use 
something smaller if you prefer (eg., as small as the Eclipse 3.4.2 Platform 
Runtime Binary).

http://www.eclipse.org/downloads/packages/release/ganymede/sr2

Eclipse's Install Manager should be able to find all the requirements needed 
for JBoss Tools 3 from the Ganymede SR2 update site.


I started with Eclipse IDE for Java Developers (85 MB)  then used the update 
manger to get the jboss tools from 
http://download.jboss.org/jbosstools/updates/development/





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

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


[jboss-user] [EJB 3.0] - Re: (debian, eclipse) javax.naming.NameNotFoundException: Cus

2009-03-02 Thread lolveley
hello,

thanks for your reply.
I changed the code of the client, and now I have the following error : 
"javax.ejb.EJBException: java.lang.IllegalArgumentException: Unknown entity: 
source.customer.Customer".

the class it speaks about is a class I created in a JPA project.
I added references to this JPA project in the EJB project, in the properties / 
"java build path" / projects, in "properties" / "java build path" / "order and 
export" (item enabled),"properties" / "java EE module dependencies" / (JPA .jar 
enabled), and in "properties" / "project references" (item "petstore_jpa" 
enabled).

more references seems to be impossible, and yet I have an error telling me the 
JPA project isn't found.

olivier.

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

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


[jboss-user] [Beginners Corner] - EntityManager TX and EJB3 = classLoader is not connected to

2009-03-02 Thread anthon.r
JBoss 5.0.0.GA
Hibernate 3.3.1.GA
Annotations,EM 3.4.0.GA
MySQL 5

I made an EAR with ejb-jar, war and datasource with it. I'm getting exceptions 
whenever my session bean is trying to invoke methods from my injected entity 
manager or even from entity manager from injected entity manager factory. I 
don't know why this thing should be very difficult, i'm totally frustrated, 
I've been spending kicking the wall.

I over simplified the codes and yet I can't really see what I've done wrong.

Here's my code:

My session bean 

@Stateless
  | public class UserAccountsBean implements UserAccountsLocal, 
UserAccountsRemote {
  | 
  | @PersistenceContext(unitName="demoproj-unit")
  | private EntityManager em;   
  | 
  | // other methods
  | 
  | @TransactionAttribute(TransactionAttributeType.REQUIRED)
  | public UserAccount getUserAccountByUsername(String username)
  | throws UserDoesNotExistException
  | {
  | // I'm making things simple for debugging
  | UserAccount uat = em.find(UserAccount.class, 3L);
  | return uat;
  | }
  | }

My JSF managed bean

public class Login {
  | 
  | @EJB(
  | beanInterface=UserAccountsLocal.class,
  | mappedName="demoproj-ear/UserAccountsBean/local")
  | UserAccountsLocal uab;
  | 
  | // other props and meths
  | 
  | public String login() {
  | // Authenticate user
  | try 
  | { 
  | this.setLogin(
  | uab.getUserAccountByUsername( 
this.getUsername() ) 
  | );
  | } 
  | catch (UserDoesNotExistException e) 
  | {
  | FacesContext.getCurrentInstance().addMessage(null,
  | new FacesMessage("Invalid username or 
password"));  
  | return ConstantsHelper.OUTCOME_FAILURE;
  | }
  | 
  | this.setAuthenticated(true);
  | return ConstantsHelper.OUTCOME_SUCCESS;
  | }

My hib config


  | http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd";>
  | 
  | 
  | 
  | 
  | 
  | org.hibernate.transaction.JBossTransactionManagerLookup
  | 
  | 
  | org.hibernate.transaction.JTATransactionFactory
  | 
  | 
  | java:/demoproj
  | 
  | 
  | org.hibernate.dialect.MySQL5Dialect
  | false
  | 
  | 
  | 
  | 
  | 
  | 

My ear descriptor:


  | http://www.w3.org/2001/XMLSchema-instance"; 
xmlns="http://java.sun.com/xml/ns/javaee"; 
xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/application_5.xsd"; id="Application_ID" 
version="5">
  |   demoproj-ear
  |   
  | demoproj-ejb.jar
  |   
  |   
  | 
  |   demoproj.war
  |   demoproj
  | 
  |   
  | 

My Jboss datasource descriptor


  | http://www.jboss.org/j2ee/dtd/jboss-ds_5_0.dtd"; >
  | 
  | 
  | demoproj
  | 
  | jdbc:mysql://localhost:3306/mydemoproject
  | 
  | com.mysql.jdbc.Driver
  | 
  | root
  | root
  | 
  | 5
  | 20
  | 
  | 
  | mySQL
  | 
  | 
  | 
  | 

My stacktrace:

14:55:21,778 WARN  [TxConnectionManager] Connection error occured: 
org.jboss.resource.connectionmanager.txconnectionmanager$txconnectioneventliste...@600b1b[state=normal
 mc=org.jboss.resource.adapter.jdbc.local.localmanagedconnect...@da414e 
handles=1 lastUse=1235965772046 permit=true trackByTx=true 
mcp=org.jboss.resource.connectionmanager.jbossmanagedconnectionpool$onep...@5587a0
 
context=org.jboss.resource.connectionmanager.internalmanagedconnectionp...@13b3437
 
xaresource=org.jboss.resource.connectionmanager.txconnectionmanager$localxaresou...@eaee56
 txSync=null]
  | java.lang.IllegalStateException: 
baseclassloa...@1f30e51{vfszip:/C:/Software/Server/jboss-5.0.0.GA/server/default/deploy/demoproj-ear.ear}
 classLoader is not connected to a domain (probably undeployed?) for class 
java.sql.Timestamp
  | at 
org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:730)
  | at 
org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:378)
  | at java.lang.ClassLoader.loadClass(Unknown Source)
  | at java.lang.ClassLoader.loadClassInternal(Unknown Source)
  | at 
com.mysql.jdbc.Connection.clientPrepareStatement(Connection.java:2186)
  | at com.mysql.jdbc.Connection.prepareStatement(Connection.java:4766)
  | at 
org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnectio

[jboss-user] [JNDI/Naming/Network] - Insert CLOB or BLOB in oracle 10g with JNDI , giving ClassCa

2009-03-02 Thread rajesh.12220
Hi 

I am getting an ClassCastException,while inserting an String(a XML) as a CLOB 
to oracle10g database using Jboss server.
I am using a JNDI ,and getting an connection,trying to use 
psNew.setStringForClob method of OraclePreparedStatement giving an error as 
follows :
Connection name  ---> 2org.jboss.resource.adapter.jdbc.WrappedConnection
java.lang.ClassCastException: 
org.jboss.resource.adapter.jdbc.WrappedPreparedStatement cannot be cast to 
oracle.jdbc.OraclePreparedStatement

Code is  :
--
con = getConnection();

if (con != null) {
System.out.println(" Connection name  ---> 2" + 
con.getClass().getName());
String query = "INSERT INTO HR_USERS VALUES (?, ?, ?)";
psNew = 
(OraclePreparedStatement)con.prepareStatement(query);

psNew.setString(1,"John" );
psNew.setString(2, transDto.getAgentVersion());
psNew.setStringForClob(3, dto.getIncomingXml());
psNew.executeUpdate();

please suggest the error or guide for a new method to insert CLOB to oracle 10g 
using jndi (Jboss server)

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

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


[jboss-user] [JNDI/Naming/Network] - Re: JNDI look up from ServletContextListener

2009-03-02 Thread Nikita1828
I've created very simple test application to demonstrate issue. 

It works fine when normal servlet calls EJB:


  | InitialContext ctx = new InitialContext();
  | BPServerManagerHome home = (BPServerManagerHome) PortableRemoteObject
  | .narrow(ctx.lookup("ejtest/BPServerManagerBean"),
  | BPServerManagerHome.class);
  | System.out.println("EJB call res: " + home.create().doit());
  | 

But the same code fails when it executed from Starter (ServletContextListener 
immplementation):

  | 20:16:48,622 ERROR [STDERR] javax.naming.NameNotFoundException: 
BPServerManagerBean not bound
  | 20:16:48,622 ERROR [STDERR] at 
org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
  | 20:16:48,622 ERROR [STDERR] at 
org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
  | 20:16:48,622 ERROR [STDERR] at 
org.jnp.server.NamingServer.getObject(NamingServer.java:785)
  | 20:16:48,622 ERROR [STDERR] at 
org.jnp.server.NamingServer.lookup(NamingServer.java:443)
  | 20:16:48,622 ERROR [STDERR] at 
org.jnp.server.NamingServer.lookup(NamingServer.java:399)
  | 20:16:48,622 ERROR [STDERR] at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:713)
  | 20:16:48,622 ERROR [STDERR] at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673)
  | 20:16:48,622 ERROR [STDERR] at 
javax.naming.InitialContext.lookup(InitialContext.java:351)
  | 20:16:48,622 ERROR [STDERR] at 
Starter.contextInitialized(Starter.java:17)
  | 20:16:48,622 ERROR [STDERR] at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
  | 20:16:48,622 ERROR [STDERR] at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
  | 20:16:48,622 ERROR [STDERR] at 
org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
  | 20:16:48,622 ERROR [STDERR] at 
org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
  | 20:16:48,622 ERROR [STDERR] at 
org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
  | 20:16:48,622 ERROR [STDERR] at 
org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
  | 20:16:48,622 ERROR [STDERR] at 
org.jboss.web.deployers.WebModule.start(WebModule.java:96)
  | 

I've put ear, sources and build script for this application here:
http://www.abisoft.biz/~nbelov/EJTest.zip

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

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


[jboss-user] [JBossWS] - Re: Errors Web Service Client

2009-03-02 Thread md5georg
Hello,

set the jboss endorsed dirs property in your start script:

ex:
set JBOSS_ENDORSED_DIRS=%JBOSS_HOME%\server\hepp\lib\endorsed

and add the file: jboss-soapmessage-4.0.4.GA.jar in it.

Chers!

/Georg

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

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


[jboss-user] [JBoss Tools (users)] - Re: Unsatisfied dependencies

2009-03-02 Thread sacauskis
Seems to be working, thanks.

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

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


[jboss-user] [Beginners Corner] - Message Driven Ben in JBoss5.0.0.GA

2009-03-02 Thread ramboid
Could someone point me in the right direction to create and use a Message 
Driven Bean (EJB 2.x) in JBoss5.x?  I have created an MDB in JBoss5 along with 
the clients but I am having difficulties retrieving the messages in the queue.  
I have done the following:
1) I created a queue by uploading an xml in the deploy folder.  This created a 
queue that I can see through JMX under jboss.mq.destination
2) Created a mdb and two clients.  I got the examples 
fromhttp://benmira.free.fr/en/j2ee/jms.htm.  I changed the descriptor files and 
the lookup of the ConnectionFactory because JBoss5.0.0.GA lacks a 
QueueConnectionFactory but still has the ConnectionFactory
3) The MDB installs fine in JBoss after I drop the jar file in the deploy folder
4) The MessageSender code runs fine and creates entries int the queue.  I can 
see via JMX in the Destinations entry of the ServerPeer bean of the Queue bean. 
 The message counter has an entry as 
follows:Queue,Queue.MyQueue,-,-,2,0,0,0,3/2/09 11:50:49 AM].  Where MyQueue is 
the name of the queue
5) The MessageReceiver seems to launch the onMessage event of the MDB but the 
client fails to retrieve the messages in the queue

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBOSS 5 Deployment Ordering of EAR Structure

2009-03-02 Thread mboulatian
Thanks for responding first of all. I am going to try those approaches 
mentioned by you. But, my question is what is the philosophy behind the new 
approach that these solutions are not part of main GA releases? Can you explain?

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

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


[jboss-user] [EJB/JBoss] - Re: Dependencies for a remote client

2009-03-02 Thread mnouw...@future-earth.eu
Hi there,

I have basicly the same issue except my version is 5.0.1. We manually did it 
for 4.2.3. but by removing the pom files and cleaning up dependencies.

Is there anybody out the using the maven depenency 

 
org.jboss.jbossas
jboss-as-client
5.0.1.GA
compile
pom


And gettign 30 mb op librarie in which some cases these are duplicates 
containing the same classes only with the one with classifier client and the 
other not.

This is not maven to the reque but something else.

Mybe i am using the wrong dependency but all i need to have is ejb3 connection 
adn in the future maybe jms. On 4.2.4 we reduced it to 3 files. But the number 
is not the big issue it's the size we are seeing. a swing client of 40 mb of 
wich 30 is jboss remoting and server side stuff. 

Hope somebodyknow the answer.

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

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


[jboss-user] [JBoss jBPM] - JBPM on JBoss 5

2009-03-02 Thread dimar1975
Hi all !
I have just installed JBPM 3.3.1 with the new graphical installer.
Since my JBoss 5 runs in a cluster also JBPM will run in a cluster environment 
? 
if I have understood clearly, the only requirement to setup JBPM in a cluster 
is the 2nd level cache setting of Hibernate. The AS 5.0 should have it by 
default, right ? so also JBPM will run smoothly in a cluster ? 
thanks
marco

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

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


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Session parameters & WAR encoding change

2009-03-02 Thread saiya-jin
Hi there,
is there any possibility to: 
1) change session params (CookieName, CookiePath, persisten storage etc.) for 
WAR?
2) define charset for specific WAR application?

Thanx 

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

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


[jboss-user] [EJB/JBoss] - Number of instances of EJB in pool for initialization

2009-03-02 Thread saiya-jin
Hi, 
is there any way to define number of instances of current EJB in pool for 
initialization?
Somthing like Weblogic's  tag.
Thanx for any info ;)

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

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


[jboss-user] [JBoss Cache: Core Edition] - skipping re-query for null left outer join object from query

2009-03-02 Thread kylesands
Hi...  I'm guessing this is just the way it is, but i'd like to confirm...  I 
set up query caching for a few Named Queries and it seems to work good.. One 
exception case though is on a query like this...

  | select x
  | from OBJECT_X x 
  | join fetch x.object_a a
  | left outer join fetch x.object_b b 
  | left outer join fetch x.object_c c  
  | left outer join fetch x.object_d d
  | where x.id = :id_parm
  | 

In some cases for example, if id_parm = 5, with the outer joins, Object_B and 
Object_C might be null, which is fine, so the other objects from the query get 
cached and Object_B and Object_C are not cached, so when the query is called 
again later, it knows B and C can't be pulled from the cache, so it fires new 
queries to try and get them from the database even though they will be null.  
Can i avoid the re-querying for B and C by a new config setting, or a change in 
the query perhaps, or would i need to code up a custom cache provider class by 
chance?

Thanks...
Kyle




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

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


[jboss-user] [JBoss Tools (users)] - Re: Warning when using multilanguage

2009-03-02 Thread akazakov
Are there any errors in Eclipse log?

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

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


[jboss-user] [EJB 3.0] - Re: Can't inject resource when not using Servlet

2009-03-02 Thread Wolfgang Knauf
Hi Ross,

as far as I know, injection is only possible for certain types of resources 
where the server can control the usage and object creation. Those types are: 
SessionBeans, Servlets, JSF managed beans, ApplicationClient main classes. For 
everything else, JavaEE5 injection is not possible.

The server has no chance to hook into the creation of your Pojo, so it cannot 
perform injection.

Hope this helps

Wolfgang

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

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


[jboss-user] [JBoss Tools (users)] - Re: Warning when using multilanguage

2009-03-02 Thread six-p4ck
i'm in build auto.. and it's the same after a clean.

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Where is the source of ejb3-persistence.jar?

2009-03-02 Thread robbert
OK, it's 
https://glassfish.dev.java.net/downloads/persistence/JavaPersistence.html

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

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


[jboss-user] [EJB 3.0] - Re: (debian, eclipse) javax.naming.NameNotFoundException: Cus

2009-03-02 Thread itsme
As per your listing of the JNDView try this JNDI-Name

petstore_ear/CustomerBean/remote

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

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


[jboss-user] [EJB 3.0] - (debian, eclipse) javax.naming.NameNotFoundException: Custome

2009-03-02 Thread lolveley
hello,

I can"t access to a EJB via JNDI.
here is the stuff I use : eclipse ganymède JEE, JBOSS 4.2.2 (modified to be 
used with MySQL).
I have created an EAR project (enterprise application project), names 
petstore_ear, which contains several projects: an EJB project which contains 
many EJBs, a JPA project which contains manu entities, and a java project which 
contains a java class with a main class (it is the client class).

when I launch firefox with the address "localhost:8080" and I select the jndi 
view, I see that the project is well deployed : 

anonymous wrote : Global JNDI Namespace
  | 
  |   +- petstore_ear (class: org.jnp.interfaces.NamingContext)
  |   |   +- CustomerBean (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- local (proxy: $Proxy109 implements interface 
ejb.customer.CustomerLocal,interface org.jboss.ejb3.JBossProxy)
  |   |   |   +- remote (proxy: $Proxy108 implements interface 
ejb.customer.CustomerRemote,interface org.jboss.ejb3.JBossProxy)
  |   |   +- OrderSB (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- local (proxy: $Proxy113 implements interface 
ejb.order.OrderLocal,interface org.jboss.ejb3.JBossProxy)
  |   |   |   +- remote (proxy: $Proxy112 implements interface 
ejb.order.OrderRemote,interface org.jboss.ejb3.JBossProxy)
  |   |   +- CatalogSB (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- local (proxy: $Proxy105 implements interface 
ejb.catalog.CatalogLocal,interface org.jboss.ejb3.JBossProxy)
  |   |   |   +- remote (proxy: $Proxy104 implements interface 
ejb.catalog.CatalogRemote,interface org.jboss.ejb3.JBossProxy)
  | 

but when I try to access to in within the following java class I have the 
error:"javax.naming.NameNotFoundException: CustomerBean not bound".

client:

  | public static void main(String[] args) {
  | 
  | try {
  | Context ctx=new InitialContext();   
  | 
  | ejb.customer.CustomerRemote 
rem=(ejb.customer.CustomerRemote) ctx.lookup("CustomerBean/remote");
  | rem.createCustomer(new 
Customer(1L,"jambon","rose","jean","bonrause","0018654118","jean...@gmail.com",new
 java.util.Date(1978,02,10),19,null),new source.Address(1,"4 rue des 
roses","","METZ","Moselle","57000","FRANCE"));
  | 
  | 
  | System.out.println ("--- Hello, clients ---");
  | for (source.customer.Customer client : 
rem.findCustomers()) {
  | System.out.println ("client : "+client);
  | }
  | 
  | } catch (Exception e) {
  | e.printStackTrace();
  | }
  | }

I use a jndi.properties file to configure JNDI : 

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

here is the ejb-jar.xml file in the EJB project:

  | 
  | http://www.w3.org/2001/XMLSchema-instance"; 
xmlns="http://java.sun.com/xml/ns/javaee"; 
xmlns:ejb="http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"; version="3.0">
  |
  | petstore_ejb 
  |   petstore_ejbClient.jar
  | 

and I added a persistence.xml file always in the META-INF directory of my EJB 
project:

  | 
  | 
  | java:/MySqlDS
  | 
  | 
  | 
  | 
  | 
  |  
  | 
  | 
  | 
  | 

if you want some other stuff, tell me it.

olivier.

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

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

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


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - jboss forum 2.0

2009-03-02 Thread raffaele.letizia
hi. i have jboss portal 2.6.7 and when i deploy jboss forum 2.0 generated this 
problem:

org.jboss.deployment.DeploymentException: No ClassLoaders found for: 
org.jboss.portal.core.hibernate.SessionFactoryBinder; - nested throwable: 
(java.lang.ClassNotFoundException: No ClassLoaders found for: 
org.jboss.portal.core.hibernate.SessionFactoryBinder)


where is the problem? plz help me thank you

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

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


[jboss-user] [JBoss Tools (users)] - Re: Warning when using multilanguage

2009-03-02 Thread akazakov
I mean Project/Clean and then Project/Build All if Project/Build Automatically 
is disabled.

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

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


[jboss-user] [JBoss Tools (users)] - Re: Drools Audit View doesn't open log

2009-03-02 Thread KrisVerlaenen
This is indeed a bug, caused by a backwards compatibility issue.  It has just 
been fixed in the Drools trunk and will be fixed in the GA release.

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

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


[jboss-user] [JBoss Tools (users)] - Re: Warning when using multilanguage

2009-03-02 Thread six-p4ck
yes always with JBossTools-ALL-win32-3.0.0.GA-N200902190001-H1442

I know clean for publish on Application Server
i know clean up... on eclipse
i know validate
but i dont see  clean/rebuild project...

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

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


[jboss-user] [EJB 3.0] - Can't inject resource when not using Servlet

2009-03-02 Thread rnicholson10
I have several servlets and can inject properties easily like follows:

@Resource(name="ConnectionFactory", mappedName="ConnectionFactory")
private ConnectionFactory connectionFactory;

@Resource(name="queue/out", mappedName="queue/out")
private Destination out;

But if I try to use a simple POJO and inject the resources it fails to work. I 
know the solution to this must be simple but for the life of me I can't find 
the answer.

Thanks,

Ross

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

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


[jboss-user] [JBoss Tools (users)] - Re: Warning when using multilanguage

2009-03-02 Thread akazakov
Are you still using  JBossTools-ALL-win32-3.0.0.GA-N200902190001-H1442  ?
Have you tried clean/rebuild ?
[qoute="six-p4ck"]Can i disable warning on message? (only message, not real 
warning) THX[/qoute]
Unfortunately ther is not any special preferences for EL message validation.

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

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


[jboss-user] [JBoss jBPM] - Re: problem with jbpm-3.3.1.GA and jboss 4.2.3

2009-03-02 Thread brackxm
The errors in your log are not really errors.
They are INFO messages form non log4j loggers (slf4j/jdk). 

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

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


[jboss-user] [JBossWS] - Re: Help with authMethod and security after JBoss501 upgrade

2009-03-02 Thread richard.opa...@jboss.com
Could you provide the simple test case that reproduces the problem? It will 
speed up the bugfix process ;)

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Where is the source of ejb3-persistence.jar?

2009-03-02 Thread robbert
I'm using ejb3-persistence.jar that comes with JBoss AS 4.2. 
For documentation purposes, I would need to access its sources (or at least the 
JavaDoc), however, JBoss' source distribution does not contain any JPA stuff.

Where can I find the JPA sources.

Any ideas? - Thanks

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

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


[jboss-user] [JBossWS] - Re: Help with authMethod and security after JBoss501 upgrade

2009-03-02 Thread richard.opa...@jboss.com
Forum link is sufficient ;)

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

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


[jboss-user] [JBossWS] - Re: Help with authMethod and security after JBoss501 upgrade

2009-03-02 Thread lukeb
Thanks for the prompt reply Richard, do you want me to flesh out the jIRA or is 
the forum link sufficient?

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

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


[jboss-user] [JBoss Messaging] - Re: Jboss messaging in jboss 5.0

2009-03-02 Thread gaohoward
Yes, open the jmx-console, under the jboss.messaging.destination section, you 
should be able to see all deployed destinations. Check if your queue is there.  

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

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


[jboss-user] [JBossWS] - Re: Help with authMethod and security after JBoss501 upgrade

2009-03-02 Thread richard.opa...@jboss.com
Follow up: JBWS-2565

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

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


[jboss-user] [JBossWS] - Re: Upgrade AS 4.2.3 WS to 3.0.5

2009-03-02 Thread richard.opa...@jboss.com
"chuaky" wrote : What is the new jars files after 3.0.2 that are equivalent to 
the old jbossws-client.jar?
jbossws-native-client.jar

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Deploy Tomcat After Datasources.

2009-03-02 Thread jaikiran
Are you sure that's what is happening? Because from what i remember, in 
JBoss-4.2.x there should not be this deployment ordering issue. Can you please 
post the console logs including the exception stacktrace? And also the piece of 
code which tries to access this datasource?

Importantly where (which exact folder) have you placed the war file for 
deployment? I hope you have placed it in "deploy" and not in 
deploy/jboss-web.deployer

While posting logs or xml content or code, please remember to wrap it in a code 
block by using the Code button in the message editor window. Please use the 
Preview button to ensure that your post is correctly formatted.

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

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


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - APR and https in jboss 501

2009-03-02 Thread lukeb
I'm upgrading 422 to 501 and am trying to configure the native apr stuff over 
https.

In my server.xml I have the following entry.


  |  
  | 

I've downloaded the latest jboss native and unzipped that into the bin 
directory (and fixed the paths so the apr is correctly detected)

When I start 501 I get this 


  | 2009-03-02 09:57:22,080 INFO  [org.apache.coyote.http11.Http11AprProtocol] 
(main) Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
  | 
  | 2009-03-02 09:57:22,095 ERROR [org.apache.coyote.http11.Http11AprProtocol] 
(main) Error initializing endpoint
  | 
  | java.lang.Exception: Invalid Server SSL Protocol
  | 
  | at org.apache.tomcat.jni.SSLContext.make(Native Method)
  | 
  | at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:656)
  | 
  | at 
org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107)
  | 
  | at 
org.apache.catalina.connector.Connector.initialize(Connector.java:1029)
  | 
  | at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:683)
  | 
  | at 
org.apache.catalina.core.StandardService.init(StandardService.java:695)
  | 
  | at 
org.apache.catalina.core.StandardService.start(StandardService.java:510)
  | 
  | at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:736)
  | 
  | at org.apache.catalina.startup.Catalina.start(Catalina.java:575)
  | 
  | 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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
  | 
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | 
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
  | 
  | at 
org.jboss.web.tomcat.service.deployers.TomcatService.startService(TomcatService.java:312)
  | 
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
  | 
  | at 
org.jboss.system.ServiceMBeanSupport.pojoStart(ServiceMBeanSupport.java:216)
  | 
  | 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.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
  | 
  | at 
org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
  | 
  | at 
org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
  | 
  | at 
org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
  | 
  | at 
org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
  | 
  | at 
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
  | 
  | at 
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
  | 
  | at 
org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
  | 
  | at 
org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
  | 
  | at 
org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
  | 
  | at 
org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
  | 
  | at 
org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
  | 
  | at 
org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
  | 
  | 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.cha

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Deploy Tomcat After Datasources.

2009-03-02 Thread wstra...@yahoo.com
We modified an Oracle data source and restarted JBoss 4.2.3.GA.  Tomcat loaded 
first and deployed our application with a servlet that was maked to start on 
load and access the database about 50 seconds before the JBoss loaded the 
datasource. How do you create a dependency so Tomcat loads after the datasoruce?

Thanks, Wes.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Urgent: ear Deployment fail on JBoss 5.0 GA with interce

2009-03-02 Thread Nouredine13
thank you for your quick response,

the output of jar -tf testInterceptor_EAR.ear :

META-INF/MANIFEST.MF
testInterceptor.jar
META-INF/
META-INF/application.xml
testInterceptor2.jar


my interceptor class is in testInterceptor.jar and my Bean is in 
testInterceptor2.jar

here under application.xml :

  | 
  | http://www.w3.org/2001/XMLSchema-instance"; 
  | xmlns="http://java.sun.com/xml/ns/javaee"; 
  | xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd"; 
  | xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/application_5.xsd"; id="Application_ID" 
version="5">
  |   testInterceptor_EAR
  |   
  | testInterceptor.jar
  |   
  |   
  | testInterceptor2.jar
  |   
  | 
  | 

thank's a lot for your help.

Regard's

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: What could cause java code not to run?

2009-03-02 Thread BWS_MJB
Update: Looks like this was a caching problem. Stopping jboss, deleting the tmp 
and work directories and restarting fixed it.

Mike

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

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


[jboss-user] [JBossWS] - RestEasy Security

2009-03-02 Thread jej2003
Has anyone had success with getting the Servlet security to work with RestEasy? 
 To this point I have not been able to successfully limit access a to a 
resource.   Following this guide 
http://www.jboss.org/file-access/default/members/resteasy/freezone/docs/1.0.0.GA/userguide/html_single/index.html
 chapter 25 I have got the resource asking for authentication, but when I enter 
a user that does not have the appropriate role the servlet still allows access. 
 Has anyone seen this?

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

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


[jboss-user] [EJB 3.0] - Re: Injection of QueueConnectionFactory and Queue from ENC i

2009-03-02 Thread jaikiran
"Wolfgang Knauf" wrote : and I will add a chapter about this to your injection 
wiki entry.
  | 
  | Wolfgang

That would be great! Thanks.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Urgent: ear Deployment fail on JBoss 5.0 GA with interce

2009-03-02 Thread jaikiran
How is the application packaged? Post the output of:

jar -tf testInterceptor_EAR.ear

And is the interceptor class present in the same jar as the ejbs?

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

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


[jboss-user] [EJB 3.0] - Re: Injection of QueueConnectionFactory and Queue from ENC i

2009-03-02 Thread Wolfgang Knauf
Many thanks! I feared it would be an user error ;-).

I will give it a try in the next few days, and I will add a chapter about this 
to your injection wiki entry.

Wolfgang

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

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


[jboss-user] [JBossWS] - Help with authMethod and security after JBoss501 upgrade

2009-03-02 Thread lukeb
I'm upgrading from 422 to 501 and I'm having security related issues which I'll 
explain below.

I have a legacy webservice I expose in the following way.


  | @Stateless
  | @WebService(name = "MyWebService", targetNamespace = 
"http://my.services.web";, serviceName = "MyWebServiceName")
  | @WebContext(contextRoot = "/MyEar", transportGuarantee = "NONE", authMethod 
= "NONE")
  | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED, style = 
SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL)
  | @PermitAll
  | public final class MyWebServiceBean {
  | 
  | @WebMethod
  | @PermitAll
  | public final String doStuff() {
  | return "i've done stuff";
  | }
  | }
  | 


In 501 this all deploys ok and I can see the wsdl in the jbossws console.

However when I try to call the webservice from my test harness, I get a 403 
forbidden at the client and the following in the logs:


  | 10:32:14,657 DEBUG [MapperListener] Handle 
jboss.web:type=RequestProcessor,worker=http-0.0.0.0-8080,name=HttpRequest1 type 
: JMX.mbean.registered
  | 10:32:14,766 TRACE [SecurityRolesAssociation] Setting threadlocal:{}
  | 10:32:14,766 TRACE [JaccContextValve] 
MetaData:org.jboss.metadata.web.jboss.jbosswebmetad...@1f:principalToRoleSetMap{}
  | 10:32:14,766 DEBUG [AuthenticatorBase] Security checking request POST 
/MyEar/MyWebServiceBean
  | 10:32:14,766 DEBUG [RealmBase]   Checking constraint 
'SecurityConstraint[/MyWebServiceBean]' against POST //MyWebServiceBean --> true
  | 10:32:14,782 DEBUG [AuthenticatorBase]  Calling hasUserDataPermission()
  | 10:32:14,782 DEBUG [RealmBase]   User data constraint has no restrictions
  | 10:32:14,828 TRACE [JBossAuthorizationContext] Control flag for 
entry:org.jboss.security.authorization.config.AuthorizationModuleEntry{org.jboss.security.authorization.mo
  | dules.DelegatingAuthorizationModule:{}REQUIRED}is:[REQUIRED]
  | 10:32:14,844 DEBUG [AuthenticatorBase]  Calling authenticate()
  | 10:32:14,844 DEBUG [[/MyEar] User authentication is not required
  | 10:32:14,844 DEBUG [AuthenticatorBase]  Calling accessControl()
  | 10:32:14,844 DEBUG [RealmBase]   Checking roles null
  | 10:32:14,860 DEBUG [RealmBase]   No user authenticated, cannot grant access
  | 10:32:14,860 TRACE [JBossWebRealm] hasResourcePerm:RealmBase 
says:false::Authz framework says:false:final=false
  | 10:32:14,860 DEBUG [AuthenticatorBase]  Failed accessControl() test
  | 10:32:14,860 TRACE [SecurityRolesAssociation] Setting threadlocal:null
  | 10:32:14,860 TRACE [SecurityRolesAssociation] Setting threadlocal:null
  | 

The parts of the logging above that stand out to me are, 

[/MyEar] User authentication is not required

and

[RealmBase]   No user authenticated, cannot grant access

...and these seem at odds with each other.

I've tried setting @SecurityDomain to "" and that didn't make any difference.

Note that my stateless bean is within an ejb3 jar within an ear. The ear has a 
custom security-domain declared in the jboss-app.xml.

Does anyone have any suggestions, I need to web service to ideally work as 
before, changing the clients would have to be a last resort.

Thanks

Luke


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

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


[jboss-user] [Remoting] - Re: Unexplained ConnectionValidator Timeout

2009-03-02 Thread thammoud
I think that you are seeing the same problem that is described here:

http://www.jboss.org/index.html?module=bb&op=viewtopic&t=151397

I am attaching a version of ConnectionValidator that fixed the problem for us:


  | /*
  | * JBoss, Home of Professional Open Source
  | * Copyright 2005, JBoss Inc., and individual contributors as indicated
  | * by the @authors tag. See the copyright.txt in the distribution for a
  | * full listing of individual contributors.
  | *
  | * This is free software; you can redistribute it and/or modify it
  | * under the terms of the GNU Lesser General Public License as
  | * published by the Free Software Foundation; either version 2.1 of
  | * the License, or (at your option) any later version.
  | *
  | * This software is distributed in the hope that it will be useful,
  | * but WITHOUT ANY WARRANTY; without even the implied warranty of
  | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  | * Lesser General Public License for more details.
  | *
  | * You should have received a copy of the GNU Lesser General Public
  | * License along with this software; if not, write to the Free
  | * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  | * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  | */
  | 
  | package org.jboss.remoting;
  | 
  | import java.util.ArrayList;
  | import java.util.HashMap;
  | import java.util.List;
  | import java.util.ListIterator;
  | import java.util.Map;
  | import java.util.Timer;
  | import java.util.TimerTask;
  | 
  | import org.jboss.logging.Logger;
  | import org.jboss.remoting.transport.ClientInvoker;
  | import org.jboss.remoting.util.StoppableTimerTask;
  | import org.jboss.remoting.util.TimerUtil;
  | 
  | /**
  |  * @author mailto:tom.el...@jboss.com";>Tom Elrod
  |  * @author mailto:ovi...@jboss.org";>Ovidiu Feodorov
  |  * @author mailto:t...@redhat.com";>Trustin Lee
  |  */
  | public class ConnectionValidator extends TimerTask implements 
StoppableTimerTask
  | {
  |// Constants 

  | 
  |private static final Logger log = 
Logger.getLogger(ConnectionValidator.class.getName());
  | 
  |/** Configuration map key for ping period. */
  |public static final String VALIDATOR_PING_PERIOD = "validatorPingPeriod";
  |
  |/** Default ping period. Value is 2 seconds. */
  |public static final long DEFAULT_PING_PERIOD = 2000;
  |
  |/** Configuration map key for ping timeout. */
  |public static final String VALIDATOR_PING_TIMEOUT = 
"validatorPingTimeout";
  |
  |/** Default ping timeout period.  Value is 1 second. */
  |public static final String DEFAULT_PING_TIMEOUT = "1000";
  |
  |/**
  | * Default number of ping retries.  Value is 1.
  | * Currently implemented only on socket transport family.
  | */
  |public static final String DEFAULT_NUMBER_OF_PING_RETRIES = "1";
  | 
  |/**
  | * Key to determine if ConnectionValidator should tie failure to presence
  | * of active lease on server side.  Default value is "true".
  | */
  |public static final String TIE_TO_LEASE = "tieToLease";
  |/**
  | * Key to determine whether to stop ConnectionValidator when PING fails.
  | * Default value is "true".
  | */
  |public static final String STOP_LEASE_ON_FAILURE = "stopLeaseOnFailure";
  |
  |// Static 
---
  | 
  |private static boolean trace = log.isTraceEnabled();
  | 
  |/**
  | * Will make $PING$ invocation on server. If sucessful, will return 
true. Otherwise, will throw
  | * an exception.
  | *
  | * @param locator - locator for the server to ping
  | * @param config  - any configuration needed for server
  | * @return true if alive, false if not
  | */
  |public static boolean checkConnection(InvokerLocator locator, Map 
config) throws Throwable
  |{
  |   boolean pingWorked = false;
  |   Map configMap = createPingConfig(config, null);
  |   int pingTimeout = Integer.parseInt((String) 
configMap.get(ServerInvoker.TIMEOUT));
  |   ClientInvoker innerClientInvoker = null;
  | 
  |   try
  |   {
  |  innerClientInvoker = InvokerRegistry.createClientInvoker(locator, 
configMap);
  | 
  |  if (!innerClientInvoker.isConnected())
  |  {
  | if (trace) { log.trace("inner client invoker not connected, 
connecting ..."); }
  | innerClientInvoker.connect();
  |  }
  | 
  |  pingWorked = doCheckConnection(innerClientInvoker, pingTimeout);
  |   }
  |   catch (Throwable throwable)
  |   {
  |  log.debug("ConnectionValidator to connect to server " +
  | innerClientInvoker.getLocator().getProtocol() + "://" +
  | innerClientInvoker.getLocator().ge

[jboss-user] [JBoss jBPM] - Re: Problem sending mail in JBPM

2009-03-02 Thread devendrajain
Hi Anurag ..
Seems that you have implemented the mailing functionality successfully in 
JBPM's workflow engine successfully.
If possible, can u plz email me all the steps required to configure email 
functionality in JBPM's workflow engine.
Problem is that i tried configuring it few days back but unfortunately got many 
errors.
My email-id is devendra.j...@tcs.com
Please mail those steps to me if possible.
Thanx a lot in advance!!

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Help in understanding deployment of war's

2009-03-02 Thread jaikiran
"soimafreak" wrote : so you should be able to run two applications that are the 
same with different context paths. But I imagine it depends how the application 
is written?
  | So a "hello world" war could be deployed multiple times with different file 
names. But what if it was a more complicated application? 
  | 
In theory yes, it should be possible. But finally its upto the way the 
application is written.

"soimafreak" wrote : 
  | I guess the question is, is a war isolated from any other war, or can they 
interact/utilise the same resources?
  | 

By default yes, each WAR has its own classloader (but these are things that can 
be configured to application server configuration files).




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

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


  1   2   >