[JBoss-user] Read-ahead, eager/lazy load problem

2002-07-09 Thread Vittorio Ballestra

What am I doing wrong ? I've tried to tune my jboss app setting read-ahead 
options but this is what happening :
1) configuration is read and is syntactical correct as if I deliberately 
break it (for example inserting wrong values for read-ahead strategy), 
deployment will not work and an error is signaled.
2) when a find method is invoked I see from the trace that the default 
read-ahed policy is used instead of the one I've configured

Is there something I miss ?

an excerpt from my jbossjdbc-cmp.xml :


Message

message
msg
LONGVARCHAR
LONG

msgDescr


Descrizione del 
messaggio
msgDescr
submitDate
type
needServerProcessing
   


on-load
1
msgDescr



The trace :

2002-07-09 19:33:20,812 TRACE 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.Message] Eager-load for 
entity: readahead
=[JDBCReadAheadMetaData : strategy=on-load, pageSize=255, eagerLoadGroup=*]








---
This sf.net email is sponsored by:ThinkGeek
Two, two, TWO treats in one.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBoss 3.0 Quick Guide/New JBoss distribution structure

2002-07-09 Thread Mary Roderick


Hi David,
Thanks for your 2 cents :-) ...my actual question is WHY are there three
servers in the new distribution? There had to be a reason but I haven't
found any explanation. I imagine that they are each optimized for something
specific (thus my reference to server/all for clustering)...but what?

Can you shed some light?
Mary





---
This sf.net email is sponsored by:ThinkGeek
Two, two, TWO treats in one.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Are read only methods supposed to lock entity beans?

2002-07-09 Thread Bill Burke



jboss 
default config is pessimistic concurrency.  It can be configured in other 
ways, but this will be described in soon-to-be-released for-pay docs.  
Search the jboss-dev and jboss-user archives though.  You'll find lots of 
info.
 
Bill

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Alice 
  AdSent: Tuesday, July 09, 2002 10:18 PMTo: 
  [EMAIL PROTECTED]Subject: RE: [JBoss-user] Are read 
  only methods supposed to lock entity beans?
  Thanks Bill. A few more questions: 
  1. Will it work if method1 is read-only and method2 is not? (I guess) 
  (The following question is not directly related to the 1st one) 
  2. My DB has an isolation level of READ_COMMITTED. Is there a way to 
  enforce SERIALIZABLE at app server level? And if yes, does the app server use 
  optimistic or pessimistic locking? 
  3. Do EJB specs guide on this (read only/ transaction isolation at app 
  server level) or it's vendor dependent? Does JBoss have any docs on this? 
  Thanks so much. 
    Bill Burke <[EMAIL PROTECTED]> wrote: 
  

Marking a method as RequiresNew, does not mean that the method is 
read-only, it just means that a new transaction must be started.  Since 
the entity bean is already in a transaction the second call with hang.  
With JBoss 3.0, you can now define read-only methods, but I warn you, your 
test will still hang unless method 1 is a read-only method 
too.
 



    

   

   
nextgen.EnterpriseEntity
    
   nextgen.EnterpriseEntity
   

   

   
get*
   
>true
   

 
  
   
anotherReadOnlyMethod
   
>true
   

   

   

    



  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Alice 
  AdSent: Tuesday, July 09, 2002 5:45 PMTo: 
  jbossSubject: [JBoss-user] Are read only methods supposed to 
  lock entity beans?
  Hello,
  The following code hangs because it first calls an entity bean 
  instance's method that has "Required" attribute and then calls the same 
  instance's method that has "RequiresNew" attribute. The 1st transaction is 
  blocking the second one.// the following code hangsclass 
  SessionBean {public void hasRequiredAttribute() 
  {entityBean.hasRequiredAttribute(); // method 1// it hangs here 
  !!entityBean.hasRequiresNewAttribute(); // method 
  2}}If method 1 above is a read only method, why is the 
  entity bean locked? Shouldn't it allow another transaction from the same 
  thread use the entity bean??Thanks so much. 
  
  
  Do You Yahoo!?New! SBC Yahoo! Dial - 1st Month Free & unlimited 
access
  
  
  Do You Yahoo!?New! SBC Yahoo! Dial - 1st Month Free & unlimited 
access


[JBoss-user] JMS's Robust Tests

2002-07-09 Thread Dongling Ding


Hi,

We're expereincing a problem with JMS, which is kind
of serious.

We have two clients. One sends a message. Another one
is supposed to receive the message.

First, bring up the jboss and client sender. Then stop
jboss. Start jboss again and client receiver. We
expected the client receiver can receive the message
sent by the first client. But it never happened. Is
this a bug in Jboss. Or it's just right behavior. 

I think persistentManageer should save all the
messages that weren't sent yet and send out whenever
it is active again.

Helps are welcomed!


Dongling

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com


---
This sf.net email is sponsored by:ThinkGeek
Two, two, TWO treats in one.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Design Question

2002-07-09 Thread Brian Topping

How about using an entity bean against a separate data source pointing at a
memory DB such as hypersonic?  You could configure it not to cache, then when
the process died, your single data entry would go with it.  To prime the db,
the operator would hit an operator page that also had access to that data
source.

But it seems like you could avoid this problem altogether by crypting each
user's wallet with the password that they selected in their account setup.
In this manner, each account would have a different key against the
respective wallets, eliminating the ability for a cracker to get all the
credit card numbers if the master password was cracked.  Then you don't have
to have so much concern about a persistent password, they are always based on
the session.  Lost passwords would be managed by assigning a new password,
not sending it back to them via email or whatnot.  And if they change their
password, they lose their wallet, which is smart business anyway.  You'll
need to keep audit trails of the credit card used with each transaction, but
that can be run off to a separate database.

If you had a business reason to persist the encrypted cache (wallet), you
could keep a lookaside password cache that works in the way you are already
working with.  The wallets would each still have a different key, but there
is a "key escrow" that is managed more securely... since the private key
isn't needed for operation within the business objects.

-b

> -Original Message-
> From: Jon Swinth [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 09, 2002 8:41 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Design Question
> 
> 
> What is the best way to keep a object bound in memory for 
> stateless session bean use?
> 
> Specifically, I have a java.security.Key that I need to make 
> available to very specific stateless session bean.
> Since the key is the private RSA key for the credit card 
> database, I do not want to put it in the DB
> or on the file system.  I do not want it available should the 
> server be compromised.  I realize that
> having it in memory is still somewhat accessable for a hacked 
> system, but it is the only thing I have come
> up with to make the key available to the bean and still make 
> it difficult for a hacker.
> 
> The original thought is to put the key into a private static 
> variable within the bean so that all copies of the
> bean in the JVM would have access to the same key.  The 
> question is, wouldn't there come a time when all copies
> of the bean are removed for lack of access and the key would 
> be lost?  This is not a huge problem since the first
> user to receive an error would simply request that the 
> manager upload the key again.  That is unless it happens
> frequently throughout the day.  The idea is that the manager 
> would also specify a timeout when uploading the key
> so that it would drop from memory after a certain amount of time.
> 
> I am open to any suggestions.
> 
> 
> ---
> This sf.net email is sponsored by:ThinkGeek
> Stuff, things, and much much more.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Are read only methods supposed to lock entity beans?

2002-07-09 Thread Alice Ad
 I meant "optimistic and pessimistic concurrency" not "optimistic and pessimistic locking".. 
  Alice Ad <[EMAIL PROTECTED]> wrote: 

Thanks Bill. A few more questions: 
1. Will it work if method1 is read-only and method2 is not? (I guess) 
(The following question is not directly related to the 1st one) 
2. My DB has an isolation level of READ_COMMITTED. Is there a way to enforce SERIALIZABLE at app server level? And if yes, does the app server use optimistic or pessimistic locking? 
3. Do EJB specs guide on this (read only/ transaction isolation at app server level) or it's vendor dependent? Does JBoss have any docs on this? 
Thanks so much. 
  Bill Burke <[EMAIL PROTECTED]> wrote: 


Marking a method as RequiresNew, does not mean that the method is read-only, it just means that a new transaction must be started.  Since the entity bean is already in a transaction the second call with hang.  With JBoss 3.0, you can now define read-only methods, but I warn you, your test will still hang unless method 1 is a read-only method too.
 



    
   
   nextgen.EnterpriseEntity
       nextgen.EnterpriseEntity
   
   
   get*
   >true
   
   
   anotherReadOnlyMethod
   >true
   
   
   
    


-Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alice AdSent: Tuesday, July 09, 2002 5:45 PMTo: jbossSubject: [JBoss-user] Are read only methods supposed to lock entity beans?
Hello,
The following code hangs because it first calls an entity bean instance's method that has "Required" attribute and then calls the same instance's method that has "RequiresNew" attribute. The 1st transaction is blocking the second one.// the following code hangsclass SessionBean {public void hasRequiredAttribute() {entityBean.hasRequiredAttribute(); // method 1// it hangs here !!entityBean.hasRequiresNewAttribute(); // method 2}}If method 1 above is a read only method, why is the entity bean locked? Shouldn't it allow another transaction from the same thread use the entity bean??Thanks so much. 


Do You Yahoo!?New! SBC Yahoo! Dial - 1st Month Free & unlimited access


Do You Yahoo!?New! SBC Yahoo! Dial - 1st Month Free & unlimited accessDo You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free & unlimited access

RE: [JBoss-user] Are read only methods supposed to lock entity beans?

2002-07-09 Thread Alice Ad
 Thanks Bill. A few more questions:
1. Will it work if method1 is read-only and method2 is not? (I guess)
(The following question is not directly related to the 1st one)
2. My DB has an isolation level of READ_COMMITTED. Is there a way to enforce SERIALIZABLE at app server level? And if yes, does the app server use optimistic or pessimistic locking?
3. Do EJB specs guide on this (read only/ transaction isolation at app server level) or it's vendor dependent? Does JBoss have any docs on this?
Thanks so much.
  Bill Burke <[EMAIL PROTECTED]> wrote: 


Marking a method as RequiresNew, does not mean that the method is read-only, it just means that a new transaction must be started.  Since the entity bean is already in a transaction the second call with hang.  With JBoss 3.0, you can now define read-only methods, but I warn you, your test will still hang unless method 1 is a read-only method too.
 



    
   
   nextgen.EnterpriseEntity
       nextgen.EnterpriseEntity
   
   
   get*
   >true
   
   
   anotherReadOnlyMethod
   >true
   
   
   
    


-Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alice AdSent: Tuesday, July 09, 2002 5:45 PMTo: jbossSubject: [JBoss-user] Are read only methods supposed to lock entity beans?
Hello,
The following code hangs because it first calls an entity bean instance's method that has "Required" attribute and then calls the same instance's method that has "RequiresNew" attribute. The 1st transaction is blocking the second one.// the following code hangsclass SessionBean {public void hasRequiredAttribute() {entityBean.hasRequiredAttribute(); // method 1// it hangs here !!entityBean.hasRequiresNewAttribute(); // method 2}}If method 1 above is a read only method, why is the entity bean locked? Shouldn't it allow another transaction from the same thread use the entity bean??Thanks so much. 


Do You Yahoo!?New! SBC Yahoo! Dial - 1st Month Free & unlimited accessDo You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free & unlimited access

Re: [JBoss-user] OracleDS binding on 3.0.1RC1?

2002-07-09 Thread David Jencks

In the .ear.  They are jboss specific deployment units you can put in an
ear, like the j2ee ejb.jar, .rar, .war, etc.  If you put them in
server/[config]/deploy they will get deployed, but not as part of an .ear
and with random ordering unless you change the file names to start with a
number.

david jencks

On 2002.07.09 12:05:42 -0400 Jamie Burns wrote:
> Where do the versantjca-service.xml and admintools.sar live in this
> example?
> In the .ear or in server\xxx\deploy?
> 
> - Original Message -
> From: "David Jencks" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, July 09, 2002 4:08 PM
> Subject: Re: [JBoss-user] OracleDS binding on 3.0.1RC1?
> 
> 
> > It goes in an .ear next to application.xml and looks like this:
> >
> > 
> >
> >
> > 
> >   
> > versantjca-service.xml
> >   
> >   
> > admintools.sar
> >   
> > 
> >
> > You can also use it to specify the classloader space for the ear: look
> at
> > the cts/test/CtsCMP2UnitTestCase.
> >
> > david jencks
> >
> > On 2002.07.09 09:53:22 -0400 Jamie Burns wrote:
> > > I've searched the JBossBook_24x.pdf and JBoss.3.0QuickStart.pdf for
> > > jboss-app.xml. No hits. What is it, where does it live and what goes
> in
> > > it
> > > to make your solution work?
> > >
> > > Thanks
> > >
> > > - Original Message -
> > > From: "David Jencks" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, July 08, 2002 9:02 PM
> > > Subject: Re: [JBoss-user] OracleDS binding on 3.0.1RC1?
> > >
> > >
> > > > This might be an order-of-startup problem.  If you deploy your ejbs
> "by
> > > > hand" after the OracleDS is started is there a problem?
> > > >
> > > > You can include both in an .ear  with a jboss-app.xml to get the
> > > > oracle-service.xml deployed, or change the names of the packages --
> I
> > > think
> > > > 10oracle-service.xml and 20myejbs.jar will work.
> > > >
> > > > david jencks
> > > >
> > > > On 2002.07.08 14:27:16 -0400 Brian Topping wrote:
> > > > > G'day!
> > > > >
> > > > > Wondering if anyone has a solution to this.  I'm trying to
> regress a
> > > > > classloader problem that I am having with 3.0 release, figured i
> > > would
> > > > > try
> > > > > 3.0.1RC1.  I added classes12.jar to server/default/lib put my
> > > > > oracle-service.xml into server/default/deploy and the OracleDS
> > > reports
> > > it
> > > > > was
> > > > > bound to java:/OracleDS, but when my CMP2.0 tries to find it, i
> get
> a
> > > > > report
> > > > > stating "Error: can't find data source: java:/OracleDS".  See
> below
> > > for
> > > > > the
> > > > > full output (20 lines or so) from the console.
> > > > >
> > > > > Does anyone have any ideas what I am doing wrong?  The names sure
> > > look
> > > > > the
> > > > > same to me...
> > > > >
> > > > > thanks!
> > > > >
> > > > > -b
> > > > >
> > > > > 13:01:51,657 INFO  [MainDeployer] Starting deployment of package:
> > > > >
> > >
> file:/C:/dev/jboss-3.0.1RC1_tomcat-4.0.4/server/default/deploy/oracle-servic
> > > e
> > > > > .xml
> > > > > 13:01:51,737 WARN  [ServiceController]
> > > > > jboss.jca:service=LocalTxDS,name=OracleDS does not implement any
> > > Service
> > > > > methods
> > > > > 13:01:51,737 INFO  [JBossManagedConnectionPool] Creating
> > > > > 13:01:51,737 INFO  [JBossManagedConnectionPool] Created
> > > > > 13:01:51,737 INFO  [LocalTxConnectionManager] Creating
> > > > > 13:01:51,747 INFO  [LocalTxConnectionManager] Created
> > > > > 13:01:51,747 INFO  [JBossManagedConnectionPool] Starting
> > > > > 13:01:51,747 INFO  [JBossManagedConnectionPool] Started
> > > > > 13:01:51,747 INFO  [LocalTxConnectionManager] Starting
> > > > > 13:01:51,767 INFO  [OracleDS] Bound connection factory for
> resource
> > > > > adapter
> > > > > 'JBoss LocalTransaction JDBC Wrapper' to JNDI name
> 'java:/OracleDS'
> > > > > 13:01:51,767 INFO  [LocalTxConnectionManager] Started
> > > > > 13:01:51,767 INFO  [MainDeployer] Deployed package:
> > > > > file:/C:/dev/jboss-3.0.1RC1_tomcat-4.0.4/server/default/deploy/oracl
> > > > > e-service.xml
> > > > > 13:01:51,767 ERROR [URLDeploymentScanner] Incomplete Deployment
> > > listing:
> > > > > Packages waiting for a deployer:
> > > > >   
> > > > > Incompletely deployed packages:
> > > > >   
> > > > > MBeans waiting for classes:
> > > > >   
> > > > > MBeans waiting for other MBeans:
> > > > > [ObjectName: jboss.j2ee:service=EJB,jndiName=ejb/bill2/Customer
> > > > >  state: FAILED
> > > > >  I Depend On:
> > > > >  Depends On Me: org.jboss.deployment.DeploymentException: Error:
> > > can't
> > > > > find
> > > > > data source: java:/OracleDS; - nested throwable:
> > > > > (javax.naming.NameNotFoundException: OracleDS not bound)]
> > > > >
> > > > > _
> > > > > If you have some ice cream, I will give it to you.
> > > > > If you have no ice cream, I will take it away from you.
> > > > >  - Ice Cream Koan
> > > > >
> > > > >
> > > > >
> > > > > -

[JBoss-user] Design Question

2002-07-09 Thread Jon Swinth

What is the best way to keep a object bound in memory for stateless session bean use?

Specifically, I have a java.security.Key that I need to make available to very 
specific stateless session bean.
Since the key is the private RSA key for the credit card database, I do not want to 
put it in the DB
or on the file system.  I do not want it available should the server be compromised.  
I realize that
having it in memory is still somewhat accessable for a hacked system, but it is the 
only thing I have come
up with to make the key available to the bean and still make it difficult for a hacker.

The original thought is to put the key into a private static variable within the bean 
so that all copies of the
bean in the JVM would have access to the same key.  The question is, wouldn't there 
come a time when all copies
of the bean are removed for lack of access and the key would be lost?  This is not a 
huge problem since the first
user to receive an error would simply request that the manager upload the key again.  
That is unless it happens
frequently throughout the day.  The idea is that the manager would also specify a 
timeout when uploading the key
so that it would drop from memory after a certain amount of time.

I am open to any suggestions.


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] jboss-catalina 4.1 line

2002-07-09 Thread Matthew Baird

There was a major performance increase in the 4.1 line of Tomcat, and I wondered if 
the JBoss gang was going to create a jboss 3.1/tomcat4.1 package any time now. That 
would be one killer stack.

regards,
Matthew


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] context-root JBoss-Jetty

2002-07-09 Thread Jules Gosnell

Get over the mental hurdle of thinking of deploying an unpacked war as 
different from a packed one - they should be treated in exactly the same 
way. Unpacked is just more accessible (for development) than packed (for 
production).

If you want to set your application context either:

1. deploy an unpacked ear with it configured in application.xml (The 
standard J2EE way)

2. you can configure it in my.war/WEB-INF/jboss-web.xml (the proprietary 
JBoss way)

3. rename your war to .war - common non-standard hack?


All this and more is in :

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/contrib/jetty/FAQ?rev=HEAD&content-type=text/vnd.viewcvs-markup

Let me know if you would like anything added.


Jules


bryan hansen wrote:
> I am trying to define the context root of an
> application without including it in an ear file. Is
> this possible in JBoss/Jetty? About two weeks ago
> someone on the list recommended not packaging an
> application into a war to deploy, but instead placing
> an unzipped directory (that would be your war) so that
> you could work on JSP(s) and have them automatically
> deploy and show the changes. This was a cool idea, but
> then I realized we needed to change the context-root
> of the application and the only way I know of doing
> that is with the application.xml inside an ear. I
> tried including one in a META-INF directory under the
> folder that we deployed, but the change didn't take
> affect. Any ideas as to how we might get this to work?
> 
> Thanks,
> 
> Bryan
> 
> __
> Do You Yahoo!?
> Sign up for SBC Yahoo! Dial - First Month Free
> http://sbc.yahoo.com
> 
> 
> ---
> This sf.net email is sponsored by:ThinkGeek
> Stuff, things, and much much more.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] context-root JBoss-Jetty

2002-07-09 Thread bryan hansen

I am trying to define the context root of an
application without including it in an ear file. Is
this possible in JBoss/Jetty? About two weeks ago
someone on the list recommended not packaging an
application into a war to deploy, but instead placing
an unzipped directory (that would be your war) so that
you could work on JSP(s) and have them automatically
deploy and show the changes. This was a cool idea, but
then I realized we needed to change the context-root
of the application and the only way I know of doing
that is with the application.xml inside an ear. I
tried including one in a META-INF directory under the
folder that we deployed, but the change didn't take
affect. Any ideas as to how we might get this to work?

Thanks,

Bryan

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JMS Timeout and Rollback YIKES!!!

2002-07-09 Thread Ole Husgaard

"Starsinic, Frank" wrote:
> It looks like JMS timed out because the FTP was taking so long and started
> the process all over again which ended in an infinite loop.
> 
> Is there a way to increase the timeout for JMS messages?

Not sure about JMS, but if your timeout is a transaction
timeout, you can raise that limit.

> I'm using Jboss 2.4.1

I'm at 3.1alpha, and not sure if I remember correctly.
Try looking for a line like
  300
in your JBoss configuration file, and raise the timeout.

Best Regards,

Ole Husgaard.


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Are read only methods supposed to lock entity beans?

2002-07-09 Thread Bill Burke



Marking a method as RequiresNew, does not mean that the method is 
read-only, it just means that a new transaction must be started.  Since the 
entity bean is already in a transaction the second call with hang.  With 
JBoss 3.0, you can now define read-only methods, but I warn you, your test will 
still hang unless method 1 is a read-only method too.
 



    

   

   
nextgen.EnterpriseEntity
    
   nextgen.EnterpriseEntity
   

   

   
get*
   
>true
   

 
  
   
anotherReadOnlyMethod
   
>true
   

   

   

    



  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Alice 
  AdSent: Tuesday, July 09, 2002 5:45 PMTo: 
  jbossSubject: [JBoss-user] Are read only methods supposed to lock 
  entity beans?
  Hello,
  The following code hangs because it first calls an entity bean instance's 
  method that has "Required" attribute and then calls the same instance's method 
  that has "RequiresNew" attribute. The 1st transaction is blocking the second 
  one.// the following code hangsclass SessionBean {public 
  void hasRequiredAttribute() {entityBean.hasRequiredAttribute(); // method 
  1// it hangs here !!entityBean.hasRequiresNewAttribute(); // method 
  2}}If method 1 above is a read only method, why is the 
  entity bean locked? Shouldn't it allow another transaction from the same 
  thread use the entity bean??Thanks so much. 
  
  
  Do You Yahoo!?New! SBC Yahoo! Dial - 1st Month Free & unlimited 
access


[JBoss-user] Problems Executing JBoss 3.0 Project Template

2002-07-09 Thread David W. Sica



I'm trying to run the project template and noticed 
2 problems so far:
 
1) I had to change a reference to web-inf to 
WEB-INF in the build.xml file (apparently fixed now)
2) When I load the web page I get the following 
error:
 
15:19:26,675 ERROR [STDERR] 
javax.naming.NameNotFoundException: TestSession not bound15:19:26,678 ERROR 
[STDERR] at 
org.jnp.server.NamingServer.getBinding(NamingServer.java:495)15:19:26,679 
ERROR [STDERR] at 
org.jnp.server.NamingServer.getBinding(NamingServer.java:503)15:19:26,680 
ERROR [STDERR] at 
org.jnp.server.NamingServer.getObject(NamingServer.java:509)15:19:26,680 
ERROR [STDERR] at 
org.jnp.server.NamingServer.lookup(NamingServer.java:282)15:19:26,681 ERROR 
[STDERR] at 
org.jnp.server.NamingServer.lookup(NamingServer.java:256)15:19:26,681 ERROR 
[STDERR] at 
org.jnp.server.NamingServer.lookup(NamingServer.java:256)15:19:26,682 ERROR 
[STDERR] at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:445)15:19:26,683 
ERROR [STDERR] at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429)15:19:26,683 
ERROR [STDERR] at 
javax.naming.InitialContext.lookup(InitialContext.java:347)15:19:26,684 
ERROR [STDERR] at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:522)15:19:26,684 
ERROR [STDERR] at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:558)15:19:26,685 
ERROR [STDERR] at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429)15:19:26,686 
ERROR [STDERR] at 
javax.naming.InitialContext.lookup(InitialContext.java:347)15:19:26,686 
ERROR [STDERR] at 
org.apache.jsp.index$jsp._jspService(index$jsp.java:85)15:19:26,687 ERROR 
[STDERR] at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)15:19:26,687 
ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)15:19:26,688 
ERROR [STDERR] at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)15:19:26,689 
ERROR [STDERR] at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)15:19:26,689 
ERROR [STDERR] at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)15:19:26,690 
ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)15:19:26,690 
ERROR [STDERR] at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:371)15:19:26,691 
ERROR [STDERR] at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:607)15:19:26,692 
ERROR [STDERR] at 
org.mortbay.http.HttpContext.handle(HttpContext.java:1387)15:19:26,692 ERROR 
[STDERR] at 
org.mortbay.http.handler.ResourceHandler.handleGet(ResourceHandler.java:387)15:19:26,693 
ERROR [STDERR] at 
org.mortbay.http.handler.ResourceHandler.handle(ResourceHandler.java:282)15:19:26,694 
ERROR [STDERR] at 
org.mortbay.http.HttpContext.handle(HttpContext.java:1387)15:19:26,694 ERROR 
[STDERR] at 
org.mortbay.http.HttpContext.handle(HttpContext.java:1326)15:19:26,695 ERROR 
[STDERR] at 
org.mortbay.http.HttpServer.service(HttpServer.java:757)15:19:26,695 ERROR 
[STDERR] at 
org.jboss.jetty.Jetty.service(Jetty.java:527)15:19:26,696 ERROR 
[STDERR] at 
org.mortbay.http.HttpConnection.service(HttpConnection.java:742)15:19:26,697 
ERROR [STDERR] at 
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:915)15:19:26,697 
ERROR [STDERR] at 
org.mortbay.http.HttpConnection.handle(HttpConnection.java:757)15:19:26,698 
ERROR [STDERR] at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:151)15:19:26,698 
ERROR [STDERR] at 
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)15:19:26,699 
ERROR [STDERR] at 
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715)15:19:26,700 
ERROR [STDERR] at 
java.lang.Thread.run(Thread.java:536)
 
Any ideas where to proceed with this 
error?
 
Thanks,
David Sica
[EMAIL PROTECTED]


[JBoss-user] Are read only methods supposed to lock entity beans?

2002-07-09 Thread Alice Ad
Hello,
The following code hangs because it first calls an entity bean instance's method that has "Required" attribute and then calls the same instance's method that has "RequiresNew" attribute. The 1st transaction is blocking the second one.// the following code hangsclass SessionBean {public void hasRequiredAttribute() {entityBean.hasRequiredAttribute(); // method 1// it hangs here !!entityBean.hasRequiresNewAttribute(); // method 2}}If method 1 above is a read only method, why is the entity bean locked? Shouldn't it allow another transaction from the same thread use the entity bean??Thanks so much. Do You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free & unlimited access

RE: [JBoss-user] Re: any stuts users out there?

2002-07-09 Thread Brian Topping

Shawn, Alex, Jamie, Frank, Jules:

Thank you very much for your input.  Hidden very silently in my ejb was a
form, and i believe Shawn hit it on the head with the email that trails this.
I wanted to respond simply to have a record of the solution in the archives.
In the black art of OSS programming, all the popcorn we can leave is going to
help future travelers. :)

I'm looking forward to burning some apps this week, believe me, and i think
this was the last nasty that needed to be killed.

thanks again for ALL your input, guys!

-b

> -Original Message-
> From: Shawn Becker [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 09, 2002 10:05 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Re: any stuts users out there?
> 
> 
> Regarding your NoClassDefFoundError for ActionForm
> 
> > BT> java.lang.NoClassDefFoundError: 
> org/apache/struts/action/ActionForm
> > BT> at java.lang.ClassLoader.defineClass0(Native Method)
> > BT> at 
> java.lang.ClassLoader.defineClass(ClassLoader.java:493)
> ...
> 
> I had this problem last week with Struts-1.0.2 on 
> JBoss-3.0.0. To fix this
> make sure that your EJB's  JAR file doesn't contain any 
> classes that use
> struts.
> 
> This happens in JBoss-3.0 because the web container's classloader (for
> Jetty) first looks to JBoss's parent classloader to see if 
> certain classes
> have been loaded. If your EJB loads before your 
> web-application's WAR file
> (and it normally does), and if the EJB contains classes that 
> use struts
> classes, then for some reason the classloader thinks its 
> already loaded
> those referenced struts classes even though the struts.jar is 
> not included
> in the EJB's JAR file.
> 
> What I've done is removed all struts-related classes from my 
> ejb-JAR file
> and for symmetry I've also removed all EJB implementation 
> classes from my
> WAR file. All is running nicely now.
> 
> Good luck.
> 
> Shawn Becker
> http://www.homeportfolio.com
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of
> > [EMAIL PROTECTED]
> > Sent: Tuesday, July 09, 2002 9:04 AM
> > To: [EMAIL PROTECTED]
> > Subject: JBoss-user digest, Vol 1 #2611 - 6 msgs
> >
> >
> > Send JBoss-user mailing list submissions to
> > [EMAIL PROTECTED]
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > or, via email, send a message with subject or body 'help' to
> > [EMAIL PROTECTED]
> >
> > You can reach the person managing the list at
> > [EMAIL PROTECTED]
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of JBoss-user digest..."
> >
> >
> > Today's Topics:
> >
> >1. Re: JBoss3.0 -- any stuts users out there? (Alex Loubyansky)
> >2. Re: JBoss 3.0 Quick Guide (Bruno)
> >3. Re: Running different versions of a webapp 
> ([EMAIL PROTECTED])
> >4. JBoss+Log4J+JAXM=Big Headache (Mary Roderick)
> >5. Re: How to find Deployed Applications in JBoss3.0?--help
> > (David Jencks)
> >6. RE: help with bean lock/transaction error (Bill Burke)
> >
> > --__--__--
> >
> > Message: 1
> > Date: Tue, 9 Jul 2002 11:40:27 +0300
> > From: Alex Loubyansky <[EMAIL PROTECTED]>
> > To: "Brian Topping" <[EMAIL PROTECTED]>
> > CC: "Jboss user list (E-mail)" <[EMAIL PROTECTED]>
> > Subject: Re: [JBoss-user] JBoss3.0 -- any stuts users out there?
> > Reply-To: [EMAIL PROTECTED]
> >
> > Hello Brian,
> >
> > Tuesday, July 09, 2002, 11:06:58 AM, you wrote:
> >
> > BT> k, hopefully i'm "real close now"... any other jboss 3 /
> > struts 1.1 users out
> > BT> there that can help?
> >
> > I use 1.0.2 for now.
> >
> > BT> someone on the struts list reminded me that the struts.jar
> > belonged in the
> > BT> app.war's web-inf/lib folder, not as a peer to the app.war.
> > that could
> > BT> theoretically solve the problem with the getResource calls
> > that were failing,
> > BT> but then remembered making the jars as peers in the deploy
> > directory was the
> > BT> only thing that had struts working under jboss in the 
> first place.
> >
> > BT> does *anyone* have struts 1.1 working fully (with
> > i18n/properties) under
> > BT> jboss 3?
> >
> > I do have with 1.0.2. If didn't changed in that way I can 
> try to help you.
> > ApplicationResources (as in the user guide) must be in classes
> > directory.
> > Indeed, yesterday I had problems with it too. My jsp's began with
> > <%@ page language="java" contentType="text/html;charset=Cp1251"%>
> > When I supposed to get Cp1251 encoding in a browser. It didn't work
> > until I changed it to just
> > <%@ page language="java" contentType="text/html"%>
> >
> > Now works fine. Also, remember to have the locale set 
> correctly if you
> > use ApplicationResources_xx.properties.
> >
> > alex
> >
> > BT> pullleeeze?? :-)
> >
> > BT> apache lists are down again, i'm hoping there is someone here
> > that can help
> > BT> out...
> >
> > BT> th

Re: [JBoss-user] root webapp on jboss 3.x

2002-07-09 Thread David Ward

Root.war is very different than ROOT.war.  JBoss wants ROOT.war.

Unfortunately, on Windoze, you cannot rename Root.war to ROOT.war in 
Windows Explorer.  Go to a cmd terminal (just to be safe), first rename 
it to foobar.war, than to ROOT.war.

You do have two other methods, though.

1) Add a jboss-web.xml in your WEB-INF directory that specifies the 
context as /.

2) Instead of #1, put your war in an ear file and use the 
application.xml to map your war to /.

David

--

display name wrote:
> I am used to the tomcat way of deploying Root.war in the webapps directory,
> and accessing it at http://servername:8080  but when I put a war in the
> default/deploy directly, as you know, I have to type
> http://servername:8080/Root to get to it.  How do I implement a root
> directory?  Is this in a conf file?  This would be nice to add in the
> getting started documentation as well.
> 
> Thanks,
> 
> Brian



---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: RES: [JBoss-user] root webapp on jboss 3.x

2002-07-09 Thread Bryce Fischer

> Sorry,
> 
> That won´t work using jboss and Tomcat together...
> It only works using only Tomcat
> 
> Another sugestion???

I think it was posted in the past that all you need to do is name your
.war file ROOT.war or something like that If you can get to the
archives, it was discussed last week I believe.


> >-Mensagem original-
> >De: Tania G. Ramos [mailto:[EMAIL PROTECTED]]
> >Enviada em: terça-feira, 9 de julho de 2002 17:39
> >Para: '[EMAIL PROTECTED]'
> >Assunto: RES: [JBoss-user] root webapp on jboss 3.x
> >
> >Hi,
> >
> >You can add in the server.xml file the  following lines:
> >
> >
> > >  debug="0" privileged="true"/>
> >
> >By doing this, you are going to put your web application as a root
> >directory
> >
> >
> >[]'s
> >Tânia Ramos
> >Analista de Sistemas - NDS
> >* [EMAIL PROTECTED]
> >Fóton® Informática e Serviços
> >(61) 328 5060 R.: 240
> >
> >
> >>-Mensagem original-
> >>De: display name [mailto:[EMAIL PROTECTED]]
> >>Enviada em: terça-feira, 9 de julho de 2002 17:16
> >>Para: [EMAIL PROTECTED]
> >>Assunto: [JBoss-user] root webapp on jboss 3.x
> >>
> >>I am used to the tomcat way of deploying Root.war in the webapps
> directory,
> >>and accessing it at http://servername:8080  but when I put a war in the
> >>default/deploy directly, as you know, I have to type
> >>http://servername:8080/Root to get to it.  How do I implement a root
> >>directory?  Is this in a conf file?  This would be nice to add in the
> >>getting started documentation as well.
> >>
> >>Thanks,
> >>
> >>Brian
> >>
> >>



---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RES: [JBoss-user] root webapp on jboss 3.x

2002-07-09 Thread Tania G. Ramos

Sorry,

That won´t work using jboss and Tomcat together...
It only works using only Tomcat

Another sugestion???
[]'s
Tania Ramos

>-Mensagem original-
>De: Tania G. Ramos [mailto:[EMAIL PROTECTED]]
>Enviada em: terça-feira, 9 de julho de 2002 17:39
>Para: '[EMAIL PROTECTED]'
>Assunto: RES: [JBoss-user] root webapp on jboss 3.x
>
>Hi,
>
>You can add in the server.xml file the  following lines:
>
>
>  debug="0" privileged="true"/>
>
>By doing this, you are going to put your web application as a root
>directory
>
>
>[]'s
>Tânia Ramos
>Analista de Sistemas - NDS
>* [EMAIL PROTECTED]
>Fóton® Informática e Serviços
>(61) 328 5060 R.: 240
>
>
>>-Mensagem original-
>>De: display name [mailto:[EMAIL PROTECTED]]
>>Enviada em: terça-feira, 9 de julho de 2002 17:16
>>Para: [EMAIL PROTECTED]
>>Assunto: [JBoss-user] root webapp on jboss 3.x
>>
>>I am used to the tomcat way of deploying Root.war in the webapps
directory,
>>and accessing it at http://servername:8080  but when I put a war in the
>>default/deploy directly, as you know, I have to type
>>http://servername:8080/Root to get to it.  How do I implement a root
>>directory?  Is this in a conf file?  This would be nice to add in the
>>getting started documentation as well.
>>
>>Thanks,
>>
>>Brian
>>
>>
>>
>>---
>>This sf.net email is sponsored by:ThinkGeek
>>Stuff, things, and much much more.
>>http://thinkgeek.com/sf
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>---
>This sf.net email is sponsored by:ThinkGeek
>Stuff, things, and much much more.
>http://thinkgeek.com/sf
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] root webapp on jboss 3.x

2002-07-09 Thread Greg Turner

The only way I have found to do that is instead of deploying a war file, deploy
an ear file.  In the descriptor of the ear file you can map "/" to your war
file.



display name wrote:

> I am used to the tomcat way of deploying Root.war in the webapps directory,
> and accessing it at http://servername:8080  but when I put a war in the
> default/deploy directly, as you know, I have to type
> http://servername:8080/Root to get to it.  How do I implement a root
> directory?  Is this in a conf file?  This would be nice to add in the
> getting started documentation as well.
>
> Thanks,
>
> Brian
>
> ---
> This sf.net email is sponsored by:ThinkGeek
> Stuff, things, and much much more.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user

--
Greg Turner, JBoss Authorized Consultant

Tiburon Enterprise Systems
http://www.tiburon-e-systems.com
Box 1171
Tiburon, CA 94920
415-332-3363




---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] help with bean lock/transaction error

2002-07-09 Thread Bill Burke

If you could get a reproducible test case that would be cool.  Otherwise
there's not much I can do.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Gray Jones
> Sent: Tuesday, July 09, 2002 9:38 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] help with bean lock/transaction error
>
>
> I've been running with 1.4 so I don't think its a vm problem.  I was
> thinking about going the other route and trying it with 1.3 instead.
>
> I would be willing to try and trim my stuff down and see if I can come up
> with a tidy little test case if I can.  Our code is using castor jdo so it
> might be playing a part.  I could try and remove castor and see if the
> problem still exists.  I personally am not too worried about it right now.
> We've been using jRun as another j2ee server and the app works under that.
> I was planning on waiting until jBoss comes out with another release or
> until I get the app to a stable state (is there such a thing?) in jRun
> before coming back to jBoss.
>
> Bill - if you want me to try and get a reproducible test case let me know.
>
> Gray
>
> - Original Message -
> From: "Bill Burke" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, July 09, 2002 9:00 AM
> Subject: RE: [JBoss-user] help with bean lock/transaction error
>
>
> > Although this problem really troubles me I doubt it is a VM
> problem.  I am
> > reluctant to investigate this further because the other 2 times somebody
> > reported this bug to me it was user error(but Gray's case doesn't sound
> like
> > the other two).  I will run a test eventually to see if I can uncover
> > anything.  It would really be nice if somebody could get a simple test
> case
> > that I could run, or provide a dual-processor machine so that I can do
> some
> > serious tests.  Race conditions show up better on a dual-processor
> machine.
> >
> > Bill
> >
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of Alex
> > > Loubyansky
> > > Sent: Tuesday, July 09, 2002 4:08 AM
> > > To: JBoss-User
> > > Subject: Re: [JBoss-user] help with bean lock/transaction error
> > >
> > >
> > > Hi guys,
> > >
> > > I met the same problem as Gray, though I can't say the cause is the
> > > same. I had many experiments with primary keys, transactions and so
> > > on. And finally I gor it working just changing the vm.
> > > My buggy environment: Win2K, JBoss-3.1.0alpha (haven't tried others),
> > > Sun's jdk1.3.1_01.
> > > After changing to Sun's jdk1.4.0 (don't have another 1.3 for win)
> > > everything started to work fine.
> > >
> > > Is it a known issue? bug?
> > >
> > > I'm also going to test it on JRockit, RH7.2.
> > >
> > > alex
> > >
> > > ==
> > > ==
> > > From: Gray Jones
> > > Subject: Re: [JBoss-user] help with bean lock/transaction error
> > > Date: Thu, 27 Jun 2002 13:40:31 -0700
> > >
> > > --
> > > --
> > >
> > > Hi Bill,
> > >
> > > No I'm using an Integer as the primary key.  We use a session
> facade to
> > > front the entity bean.  We use local ejb references between
> the session
> > > facade and the entity bean.  The bean in question (ie user entity
> > > bean with
> > > pk=49) has gotten a fair amount of activity before the
> exception occurs.
> > >
> > > >From the log info it looks like the exception occurs on the
> > > setEntityContext
> > > method.  The actual bean that is used isn't the one that is
> hosting the
> > > entity bean.  It seems to be fairly transient in that it gets it's its
> > > entity context sent and then isn't used again.
> > >
> > > Thanks for any help
> > >
> > > Here is the log output from a normal sequence
> > > 16:00:15,164 INFO  [UserManagerBean] [13948051] getUser 49
> > > 16:00:15,164 INFO  [UserManagerBean] [13948051] getUserLocal 49
> > > 16:00:15,164 INFO  [UserEntityBean] [15477362].setEntityContext
> > > 16:00:15,174 INFO  [User] [9260186].49 getObject
> > > 16:00:15,174 INFO  [User] [9260186].49 ejbStore
> > >
> > > Here is the log output when the exception occurs
> > > 16:00:20,312 INFO  [UserManagerBean] [10898281] setSessionContext
> > > 16:00:20,312 INFO  [UserManagerBean] [10898281] ejbCreate
> > > 16:00:20,312 INFO  [UserManagerBean] [10898281] getUser 49
> > > 16:00:20,312 INFO  [UserManagerBean] [10898281] getUserLocal 49
> > > 16:00:20,322 INFO  [UserEntityBean] [10555042].setEntityContext
> > > 16:00:25,329 ERROR [LogInterceptor] TransactionRolledbackException,
> > > causedBy:
> > > java.lang.IllegalStateException: removing bean lock and it has tx set!
> > > at
> > > org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(QueuedP
> > > essimisticEJBLock.java:469)
> > > at
> > > org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:78)
> > > at
> > > org.jboss.ejb.plugins.EntityLock

RES: [JBoss-user] root webapp on jboss 3.x

2002-07-09 Thread Tania G. Ramos

Hi,

You can add in the server.xml file the  following lines:




By doing this, you are going to put your web application as a root
directory


[]'s
Tânia Ramos
Analista de Sistemas - NDS
* [EMAIL PROTECTED]
Fóton® Informática e Serviços
(61) 328 5060 R.: 240


>-Mensagem original-
>De: display name [mailto:[EMAIL PROTECTED]]
>Enviada em: terça-feira, 9 de julho de 2002 17:16
>Para: [EMAIL PROTECTED]
>Assunto: [JBoss-user] root webapp on jboss 3.x
>
>I am used to the tomcat way of deploying Root.war in the webapps directory,
>and accessing it at http://servername:8080  but when I put a war in the
>default/deploy directly, as you know, I have to type
>http://servername:8080/Root to get to it.  How do I implement a root
>directory?  Is this in a conf file?  This would be nice to add in the
>getting started documentation as well.
>
>Thanks,
>
>Brian
>
>
>
>---
>This sf.net email is sponsored by:ThinkGeek
>Stuff, things, and much much more.
>http://thinkgeek.com/sf
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] root webapp on jboss 3.x

2002-07-09 Thread display name

I am used to the tomcat way of deploying Root.war in the webapps directory,
and accessing it at http://servername:8080  but when I put a war in the
default/deploy directly, as you know, I have to type
http://servername:8080/Root to get to it.  How do I implement a root
directory?  Is this in a conf file?  This would be nice to add in the
getting started documentation as well.

Thanks,

Brian



---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] rePost: Funky xaRes Error on BMP Entity EJB

2002-07-09 Thread Stephen Davidson

Hi David.

I update 3.0.1 to the latest in CVS, and now I can't deploy.  I get an infinite loop 
trying to deploy my ear file.  Three of my jars, HRXAdmin.jar, HRXSecurity.jar, and 
HRXCommon.jar, are looping back 
on themselves during deploy.  I think you may have copies of these files from an 
earlier bug I found.  This is a show stopper for me.  I will be out tommorrow (Wed), 
but will be back Thurs and working 
on this.

Thanks,
Steve

David Jencks wrote:

> Are you using a cvs version? I recently fixed a bug with the UserTx from
> the ejb context not enlisting connections.
> 
> david jencks
> 
> On 2002.07.08 11:39:30 -0400 Stephen Davidson wrote:
> 
>>Greetings.
>>
>>I am running into an odd error when doing a lookup on an Entity EJB.  The
>>Entity EJB is using BeanManagedPersistance.  Any idea where I should
>>look, or what I missed in my port to JBoss?
>>
>>The transaction in question is BeanManaged, as opposed to
>>ContainerManaged.  If it would help, I can post my source code.
>>
>>Thanks,
>>Steve
>>


-- 
Java Developer
Looking for a new job opportunity
214-724-7741



---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Cluster Information Gathering?

2002-07-09 Thread Jason Stortz


First Question:
What would be the easiest way to interigate a cluster
and find out how many nodes it has as well as the
ip addresses of the nodes?

I have four machines started, but for some reason
I suspect not all of them joined the cluster, and
I wanted a way to count the number of nodes and find
out which ones exactly joined up.


Second Question:
I am not a network guru, so here goes...JBoss broadcasts
to find other nodes to add into cluster, how does it draw
the line?  If I have nodes on addresses like 10.1.2.xx
will those accept nodes from addresses like 10.1.1.xx?  Or
does the 1 and 2 mean these are considered different "spaces"
or "LAN"'s?

Thanks guys & gals.

Jason


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] rePost: Funky xaRes Error on BMP Entity EJB

2002-07-09 Thread Stephen Davidson

Hi David.

I have not updated in about a month.  Bad me.  I will update and retry...

-Steve

David Jencks wrote:

> Are you using a cvs version? I recently fixed a bug with the UserTx from
> the ejb context not enlisting connections.
> 
> david jencks
> 
> On 2002.07.08 11:39:30 -0400 Stephen Davidson wrote:
> 
>>Greetings.
>>
>>I am running into an odd error when doing a lookup on an Entity EJB.  The
>>Entity EJB is using BeanManagedPersistance.  Any idea where I should
>>look, or what I missed in my port to JBoss?
>>
>>The transaction in question is BeanManaged, as opposed to
>>ContainerManaged.  If it would help, I can post my source code.
>>
>>Thanks,
>>Steve


-- 
Java Developer
Looking for a new job opportunity
214-724-7741



---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JMS Timeout and Rollback YIKES!!!

2002-07-09 Thread Starsinic, Frank

I wrote a JMS based Workflow engine. When JBoss gets a message, it looks up
what do do in an XML file and does those things (tasks) one after the other.

It works almost exactly like ANT targets.

One of the tasks it does is to ftp a file.  Recently a file needed to get 
ftp'd that was close to 100 meg.  

It looks like JMS timed out because the FTP was taking so long and started
the process all over again which ended in an infinite loop.

Is there a way to increase the timeout for JMS messages?

I'm using Jboss 2.4.1

thanks,
frank


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re[4]: [JBoss-user] help with bean lock/transaction error

2002-07-09 Thread Alex Loubyansky

Hello Bill,

my problem was that JBoss was compiled with j2sdk1.4 while I ran it
with 1.3.1_01. After recompiling with 1.3.1_01 the exception
disappeared.

It seems like compatibility between VM's has one direction in
this case.
If Jboss is compiled with 1.3.1_01 then it can be run with both
1.3.1_01 and 1.4.0 VMs and applications can be compiled with both VMs.

But when JBoss is compiled with 1.4.0 then running it with 1.3.1_01
could cause the exception we are talking about. It's 100%
reproducible. I have a simple example for it and can turn it to jboss
test case.

I've heard many warnings "compiled with  - run with
". Well, now I experienced it myself :) Guys... that's
true :)))

alex

Tuesday, July 09, 2002, 4:29:16 PM, you wrote:

BB> You mean write a test case that exposes this problem?  That would be cool...

>> -Original Message-
>> From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, July 09, 2002 9:31 AM
>> To: Bill Burke
>> Cc: [EMAIL PROTECTED]
>> Subject: Re[2]: [JBoss-user] help with bean lock/transaction error
>>
>>
>> Hello Bill,
>>
>> well, I don't get a super machine :( But as to test case it'll be easy
>> enough. I can do it.
>>
>> alex
>>
>> Tuesday, July 09, 2002, 4:00:24 PM, you wrote:
>>
>> BB> Although this problem really troubles me I doubt it is a VM
>> problem.  I am
>> BB> reluctant to investigate this further because the other 2
>> times somebody
>> BB> reported this bug to me it was user error(but Gray's case
>> doesn't sound like
>> BB> the other two).  I will run a test eventually to see if I can uncover
>> BB> anything.  It would really be nice if somebody could get a
>> simple test case
>> BB> that I could run, or provide a dual-processor machine so that
>> I can do some
>> BB> serious tests.  Race conditions show up better on a
>> dual-processor machine.
>>
>> BB> Bill
>>
>>
>> >> -Original Message-
>> >> From: [EMAIL PROTECTED]
>> >> [mailto:[EMAIL PROTECTED]]On Behalf Of Alex
>> >> Loubyansky
>> >> Sent: Tuesday, July 09, 2002 4:08 AM
>> >> To: JBoss-User
>> >> Subject: Re: [JBoss-user] help with bean lock/transaction error
>> >>
>> >>
>> >> Hi guys,
>> >>
>> >> I met the same problem as Gray, though I can't say the cause is the
>> >> same. I had many experiments with primary keys, transactions and so
>> >> on. And finally I gor it working just changing the vm.
>> >> My buggy environment: Win2K, JBoss-3.1.0alpha (haven't tried others),
>> >> Sun's jdk1.3.1_01.
>> >> After changing to Sun's jdk1.4.0 (don't have another 1.3 for win)
>> >> everything started to work fine.
>> >>
>> >> Is it a known issue? bug?
>> >>
>> >> I'm also going to test it on JRockit, RH7.2.
>> >>
>> >> alex
>> >>
>> >> ==
>> >> ==
>> >> From: Gray Jones
>> >> Subject: Re: [JBoss-user] help with bean lock/transaction error
>> >> Date: Thu, 27 Jun 2002 13:40:31 -0700
>> >>
>> >> --
>> >> --
>> >>
>> >> Hi Bill,
>> >>
>> >> No I'm using an Integer as the primary key.  We use a session facade to
>> >> front the entity bean.  We use local ejb references between the session
>> >> facade and the entity bean.  The bean in question (ie user entity
>> >> bean with
>> >> pk=49) has gotten a fair amount of activity before the
>> exception occurs.
>> >>
>> >> >From the log info it looks like the exception occurs on the
>> >> setEntityContext
>> >> method.  The actual bean that is used isn't the one that is hosting the
>> >> entity bean.  It seems to be fairly transient in that it gets it's its
>> >> entity context sent and then isn't used again.
>> >>
>> >> Thanks for any help
>> >>
>> >> Here is the log output from a normal sequence
>> >> 16:00:15,164 INFO  [UserManagerBean] [13948051] getUser 49
>> >> 16:00:15,164 INFO  [UserManagerBean] [13948051] getUserLocal 49
>> >> 16:00:15,164 INFO  [UserEntityBean] [15477362].setEntityContext
>> >> 16:00:15,174 INFO  [User] [9260186].49 getObject
>> >> 16:00:15,174 INFO  [User] [9260186].49 ejbStore
>> >>
>> >> Here is the log output when the exception occurs
>> >> 16:00:20,312 INFO  [UserManagerBean] [10898281] setSessionContext
>> >> 16:00:20,312 INFO  [UserManagerBean] [10898281] ejbCreate
>> >> 16:00:20,312 INFO  [UserManagerBean] [10898281] getUser 49
>> >> 16:00:20,312 INFO  [UserManagerBean] [10898281] getUserLocal 49
>> >> 16:00:20,322 INFO  [UserEntityBean] [10555042].setEntityContext
>> >> 16:00:25,329 ERROR [LogInterceptor] TransactionRolledbackException,
>> >> causedBy:
>> >> java.lang.IllegalStateException: removing bean lock and it has tx set!
>> >> at
>> >> org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(QueuedP
>> >> essimisticEJBLock.java:469)
>> >> at
>> >> org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:78)
>> >> at
>> >> org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockIntercep
>> >> tor.java:124)
>> >>  

[JBoss-user] JBoss 2.4.7 + Catalina 4.0.4 - problems deploying expanded directory

2002-07-09 Thread R . Price

Using JBoss 2.4.4 + Jetty, I can deploy an unpacked, expanded directory by pointing the
autodeployer in the jboss.jcml to that particular directory.  I try the same thing with JBoss 2.4.7
 + Tomcat (Catalina) 4.0.4 and it doesn't work at all !!

It appears to be deployed - the log file indicates that it is creating a module of /
with a context path of //.  No errors on deployment.  Yet, when I try to hit a particular
.jsp immediately under that context path, say http://localhost// I get
a 500 error message from Catalina saying that there is no context configured to handle the
request.

I've tried putting the directory into JBoss' deploy directory.  I've tried putting the directory into
JBoss' deploy directory and then renaming it to .war, etc.  I get the same results
as above.  

The only time I can get it working with Tomcat is to package the directory up and deploy it
as a packaged file.  This ought to work!  Can anyone explain why it isn't?

rp

RES: [JBoss-user] JBoss-Catalina 3.0.1 - localhost:8080 not working

2002-07-09 Thread Emilio Numazaki

Hi Fee,

This problem happens because there is not a default context,
To solve this, put a .war file into deploy directory and access it by URL.
For example, if your .war file is named root.war, you can access it typing:
localhost:8080/root.

Hugs,

Emilio Numazaki
Analista de Sistemas - NDS
* [EMAIL PROTECTED]
Fóton® Informática e Serviços
(61) 328 5060 R.: 239

-Mensagem original-
De: Fee Ling Chin [mailto:[EMAIL PROTECTED]] 
Enviada em: terça-feira, 9 de julho de 2002 13:32
Para: '[EMAIL PROTECTED]'
Assunto: [JBoss-user] JBoss-Catalina 3.0.1 - localhost:8080 not working

Hi,

I installed JBoss-Catalina 3.0.1 and started JBoss.  JBoss came up okay.  I
went to http://localhost:8080 and I got the following error:

HTTP STatus 500 - No Context configured to process this request.

Does anyone know how to resolve this?

Thanks,
Fee


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: AW: [JBoss-user] Jboss CMP

2002-07-09 Thread Neal Sanche

Great to hear that. Excellent. You may want to look into using XDoclet
for code generating your deployment descriptors. I've been happily doing
so for months now without needing any manual intervention, avoiding this
kind of finger error.

Cheers.

-Neal

> 
> Hi Neal,
> 
> thank you for your quick response. in fact i had an erroy with my =
> DOCTYPE in
> jboss.xml
> Now everything is working fine :-)
> 
> -
> Ingo
> 
> 
> > -Urspr=FCngliche Nachricht-
> > Von: Neal Sanche [mailto:[EMAIL PROTECTED]]
> > Gesendet am: Dienstag, 9. Juli 2002 15:32
> > An: [EMAIL PROTECTED]
> > Betreff: Re: [JBoss-user] Jboss CMP
> >=20
> >=20
> > I think that might be due to the DOCTYPE you're using in one of your=20
> > deployment descriptors perhaps? Make sure your deployment descriptors =
> 
> > are for CMP 2.x, and not a lower version.
> >=20
> >=20
> >  > JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd";>
> >=20
> >  > "http://www.jboss.org/j2ee/dtd/jaws_3_0.dtd";>
> >=20
> >  > "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd";>
> >=20
> >  > "http://www.jboss.org/j2ee/dtd/jboss.dtd";>
> >=20
> > Are what I'm using as doctypes for the respective documents deployed.
> > Also, near the you of my jbosscmp-jdbc file I have:
> >=20
> >
> >  java:/MySqlDS
> >  mySQL
> >
> >=20
> > -Neal
> >=20
> > On Tuesday 09 July 2002 09:14 am, you wrote:
> > > Hi,
> > >
> > > i wrote a simple EntityBean with CMP2. it's implemented like the
> > > GangsterBean from the JBoss CMP sample. And i have created a new
> > > Datasource to my SAPDB Database. I put a sapdb-service.xml in
> > > the deployfolder.
> > > Everything worked fine, but my GangsterBean always uses the
> > > DefaultDS and not my SapDBDS.
> > > I tried the example from the JBoss CMP book and it worked fine
> > > with my SapDBDS.
> > >
> > > I watched the server.log file but my EntityBean uses the
> > > standardjaws.xml file, not the jbosscmp-jdbc.xml file wich i put
> > > similar to the example in the META-INF directory.
> > >
> > > Can you help me.
> > >
> > > Reagards
> > > Ingo
> > >
> > >
> > > ---
> > > This sf.net email is sponsored by:ThinkGeek
> > > Stuff, things, and much much more.
> > > http://thinkgeek.com/sf
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >=20
> >=20
> > ---
> > This sf.net email is sponsored by:ThinkGeek
> > Stuff, things, and much much more.
> > http://thinkgeek.com/sf
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >=20
> 
> 
> ---
> This sf.net email is sponsored by:ThinkGeek
> Stuff, things, and much much more.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 



---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss-Catalina 3.0.1 - localhost:8080 not working

2002-07-09 Thread Fee Ling Chin

Hi,

I installed JBoss-Catalina 3.0.1 and started JBoss.  JBoss came up okay.  I
went to http://localhost:8080 and I got the following error:

HTTP STatus 500 - No Context configured to process this request.

Does anyone know how to resolve this?

Thanks,
Fee


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Showstopper Undeploy Problem??

2002-07-09 Thread Frank Morton


- Original Message - 
From: "Jules Gosnell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 08, 2002 4:09 PM
Subject: Re: [JBoss-user] Showstopper Undeploy Problem??


> Frank Morton wrote:
> > More detail that may change your mind on the diagnosis.
> > In addition to a jsp directory containing .jsp files, there
> > were other directories, such as "graphics" and "css" that
> > also did not show when looking at the content through
> > the browser that were deployed as part of the same
> > .war file. Restart jboss and everything is back leaving
> > absolutely everything alone (ie, deploying the same .war
> > file without replacing it).
> > 
> > Different?
> > 
> Jules Gosnell wrote:
> 
> No.
> 
> Restarting JBoss would redeploy every app to Jetty, which would rebuild 
> any temporary caches on disk.
> 
> Simply touching the webapp that is displaying the problem would probably 
> have the same effect, since it would redeploy it.
> 
> when you say "jsp directory created by deploying the .war file" exactly 
> which directory are you talkng about ?

I am deploying the application as a .war file. In the .war file are
the following directories:

WEB-INF
css
graphics
jsp
properties
template
tmp

Deploying the application works fine for a number of days, then
suddenly 404 errors start coming up.

The "jsp" directory contains all the .jsp files. When this condition
occurs (ie, the 404 errors), if you look at the contents of the jsp
directory through the browser, last time all .jsp files were gone
with the exception of one. Additionally, a directory "include"
within the jsp directory was also "missing" about half the files
it normally contains.

I later also noticed that the other directories, like "graphics" were
also not showing.

Restart jboss and all is ok again without any other changes.

This has happened two times now in about 3 weeks.

Since non-jsp files were also disappearing, that is what made me
think it was more of a jboss/jetty issue and not a jsp specific issue.
I don't see how precompiling jsp files would help graphics files
from being undeployed.

Thanks for your help. This one is a little unnerving.

Frank




---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBoss3.0 -- any stuts users out there?

2002-07-09 Thread Jules Gosnell

see "Explain this Java2ClassLoadingCompliance JMX attribute to me" in 
this FAQ:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/contrib/jetty/FAQ?rev=HEAD&content-type=text/vnd.viewcvs-markup

The Java2ClassLoadingCompliance attribute may be set in 
jetty-plugin.sar/META-INF/jboss-service.xml (or jbossweb.sar - depending 
on version)

Jules


Frank Groot wrote:
> I have struts 1.1b working with JBoss-3.0.0/Jetty
> 
> struts.lib (and all the related jars) in WEB-INF/lib
> 
> and
> 
> ApplicationResource.properties in WEB-INF/class
> 
> of my .war archive
> 
> Cheers,
> 
> Frank
> 
> 
> -Original Message-
> From: Jamie Burns [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 09, 2002 15:20
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] JBoss3.0 -- any stuts users out there?
> 
> 
> I have a struts project working with JBoss/Jetty. I have the struts jars
> in
> server\all\lib. My ApplicationResource.properties is in
> server\all\deploy\xxx.ear
> 
> - Original Message -
> From: "Alex Loubyansky" <[EMAIL PROTECTED]>
> To: "Brian Topping" <[EMAIL PROTECTED]>
> Cc: "Jboss user list (E-mail)" <[EMAIL PROTECTED]>
> Sent: Tuesday, July 09, 2002 9:40 AM
> Subject: Re: [JBoss-user] JBoss3.0 -- any stuts users out there?
> 
> 
> 
>>Hello Brian,
>>
>>Tuesday, July 09, 2002, 11:06:58 AM, you wrote:
>>
>>BT> k, hopefully i'm "real close now"... any other jboss 3 / struts
> 
> 1.1
> users out
> 
>>BT> there that can help?
>>
>>I use 1.0.2 for now.
>>
>>BT> someone on the struts list reminded me that the struts.jar
> 
> belonged in
> the
> 
>>BT> app.war's web-inf/lib folder, not as a peer to the app.war.  that
> 
> could
> 
>>BT> theoretically solve the problem with the getResource calls that
> 
> were
> failing,
> 
>>BT> but then remembered making the jars as peers in the deploy
> 
> directory
> was the
> 
>>BT> only thing that had struts working under jboss in the first place.
>>
>>BT> does *anyone* have struts 1.1 working fully (with i18n/properties)
> 
> under
> 
>>BT> jboss 3?
>>
>>I do have with 1.0.2. If didn't changed in that way I can try to help
> 
> you.
> 
>>ApplicationResources (as in the user guide) must be in classes
>>directory.
>>Indeed, yesterday I had problems with it too. My jsp's began with
>><%@ page language="java" contentType="text/html;charset=Cp1251"%>
>>When I supposed to get Cp1251 encoding in a browser. It didn't work
>>until I changed it to just
>><%@ page language="java" contentType="text/html"%>
>>
>>Now works fine. Also, remember to have the locale set correctly if you
>>use ApplicationResources_xx.properties.
>>
>>alex
>>
>>BT> pullleeeze?? :-)
>>
>>BT> apache lists are down again, i'm hoping there is someone here that
> 
> can
> help
> 
>>BT> out...
>>
>>BT> thanks!
>>
>>BT> -b
>>
>>BT> p.s. this is the stack trace for my failing servlet.  This exact
>>BT> configuration runs fine when the struts.lib is pulled out of the
> 
> web-inf/lib
> 
>>BT> and put directly into the deploy directory, but that breaks
> 
> getResource calls
> 
>>BT> by the struts.jar util routines for properties...
>>
>>
>>
>>BT> 03:55:07,924 INFO  [RequestProcessor] Processing a 'GET' for path
>>BT> '/editRegistration'
>>BT> 03:55:08,074 ERROR [RequestUtils] Error creating form bean of
> 
> class
> 
>>BT> com.bill2.ejb.CustomerFullForm
>>BT> java.lang.NoClassDefFoundError:
> 
> org/apache/struts/action/ActionForm
> 
>>BT> at java.lang.ClassLoader.defineClass0(Native Method)
>>BT> at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
>>BT> at
>>BT>
> 
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
> 
>>BT> at
> 
> java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
> 
>>BT> at
> 
> java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> 
>>BT> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>>BT> at java.security.AccessController.doPrivileged(Native
> 
> Method)
> 
>>BT> at
> 
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> 
>>BT> at
>>BT>
> 
> org.jboss.mx.loading.UnifiedClassLoader.findClass(UnifiedClassLoader.jav
> a:22
> 6
> 
>>BT> )
>>BT> at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>>BT> at
>>BT>
> 
> org.jboss.mx.loading.UnifiedClassLoader.loadClassLocally(UnifiedClassLoa
> der.
> j
> 
>>BT> ava:234)
>>BT> at
>>BT>
> 
> org.jboss.mx.loading.UnifiedLoaderRepository.loadClassFromRepository(Uni
> fied
> L
> 
>>BT> oaderRepository.java:507)
>>BT> at
>>BT>
> 
> org.jboss.mx.loading.UnifiedLoaderRepository.loadClass(UnifiedLoaderRepo
> sito
> r
> 
>>BT> y.java:179)
>>BT> at
>>BT>
> 
> org.jboss.mx.loading.UnifiedClassLoader.loadClass(UnifiedClassLoader.jav
> a:28
> 3
> 
>>BT> )
>>BT> at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
>>BT> at
> 
> java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:553)
> 
>>BT> at java.lang.ClassLoader.loadClass(ClassLoader

Re: [JBoss-user] OracleDS binding on 3.0.1RC1?

2002-07-09 Thread Jamie Burns

Where do the versantjca-service.xml and admintools.sar live in this example?
In the .ear or in server\xxx\deploy?

- Original Message -
From: "David Jencks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 09, 2002 4:08 PM
Subject: Re: [JBoss-user] OracleDS binding on 3.0.1RC1?


> It goes in an .ear next to application.xml and looks like this:
>
> 
>
>
> 
>   
> versantjca-service.xml
>   
>   
> admintools.sar
>   
> 
>
> You can also use it to specify the classloader space for the ear: look at
> the cts/test/CtsCMP2UnitTestCase.
>
> david jencks
>
> On 2002.07.09 09:53:22 -0400 Jamie Burns wrote:
> > I've searched the JBossBook_24x.pdf and JBoss.3.0QuickStart.pdf for
> > jboss-app.xml. No hits. What is it, where does it live and what goes in
> > it
> > to make your solution work?
> >
> > Thanks
> >
> > - Original Message -
> > From: "David Jencks" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, July 08, 2002 9:02 PM
> > Subject: Re: [JBoss-user] OracleDS binding on 3.0.1RC1?
> >
> >
> > > This might be an order-of-startup problem.  If you deploy your ejbs
"by
> > > hand" after the OracleDS is started is there a problem?
> > >
> > > You can include both in an .ear  with a jboss-app.xml to get the
> > > oracle-service.xml deployed, or change the names of the packages -- I
> > think
> > > 10oracle-service.xml and 20myejbs.jar will work.
> > >
> > > david jencks
> > >
> > > On 2002.07.08 14:27:16 -0400 Brian Topping wrote:
> > > > G'day!
> > > >
> > > > Wondering if anyone has a solution to this.  I'm trying to regress a
> > > > classloader problem that I am having with 3.0 release, figured i
> > would
> > > > try
> > > > 3.0.1RC1.  I added classes12.jar to server/default/lib put my
> > > > oracle-service.xml into server/default/deploy and the OracleDS
> > reports
> > it
> > > > was
> > > > bound to java:/OracleDS, but when my CMP2.0 tries to find it, i get
a
> > > > report
> > > > stating "Error: can't find data source: java:/OracleDS".  See below
> > for
> > > > the
> > > > full output (20 lines or so) from the console.
> > > >
> > > > Does anyone have any ideas what I am doing wrong?  The names sure
> > look
> > > > the
> > > > same to me...
> > > >
> > > > thanks!
> > > >
> > > > -b
> > > >
> > > > 13:01:51,657 INFO  [MainDeployer] Starting deployment of package:
> > > >
> >
file:/C:/dev/jboss-3.0.1RC1_tomcat-4.0.4/server/default/deploy/oracle-servic
> > e
> > > > .xml
> > > > 13:01:51,737 WARN  [ServiceController]
> > > > jboss.jca:service=LocalTxDS,name=OracleDS does not implement any
> > Service
> > > > methods
> > > > 13:01:51,737 INFO  [JBossManagedConnectionPool] Creating
> > > > 13:01:51,737 INFO  [JBossManagedConnectionPool] Created
> > > > 13:01:51,737 INFO  [LocalTxConnectionManager] Creating
> > > > 13:01:51,747 INFO  [LocalTxConnectionManager] Created
> > > > 13:01:51,747 INFO  [JBossManagedConnectionPool] Starting
> > > > 13:01:51,747 INFO  [JBossManagedConnectionPool] Started
> > > > 13:01:51,747 INFO  [LocalTxConnectionManager] Starting
> > > > 13:01:51,767 INFO  [OracleDS] Bound connection factory for resource
> > > > adapter
> > > > 'JBoss LocalTransaction JDBC Wrapper' to JNDI name 'java:/OracleDS'
> > > > 13:01:51,767 INFO  [LocalTxConnectionManager] Started
> > > > 13:01:51,767 INFO  [MainDeployer] Deployed package:
> > > > file:/C:/dev/jboss-3.0.1RC1_tomcat-4.0.4/server/default/deploy/oracl
> > > > e-service.xml
> > > > 13:01:51,767 ERROR [URLDeploymentScanner] Incomplete Deployment
> > listing:
> > > > Packages waiting for a deployer:
> > > >   
> > > > Incompletely deployed packages:
> > > >   
> > > > MBeans waiting for classes:
> > > >   
> > > > MBeans waiting for other MBeans:
> > > > [ObjectName: jboss.j2ee:service=EJB,jndiName=ejb/bill2/Customer
> > > >  state: FAILED
> > > >  I Depend On:
> > > >  Depends On Me: org.jboss.deployment.DeploymentException: Error:
> > can't
> > > > find
> > > > data source: java:/OracleDS; - nested throwable:
> > > > (javax.naming.NameNotFoundException: OracleDS not bound)]
> > > >
> > > > _
> > > > If you have some ice cream, I will give it to you.
> > > > If you have no ice cream, I will take it away from you.
> > > >  - Ice Cream Koan
> > > >
> > > >
> > > >
> > > > ---
> > > > This sf.net email is sponsored by:ThinkGeek
> > > > Oh, it's good to be a geek.
> > > > http://thinkgeek.com/sf
> > > > ___
> > > > JBoss-user mailing list
> > > > [EMAIL PROTECTED]
> > > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > > >
> > > >
> > >
> > >
> > > ---
> > > This sf.net email is sponsored by:ThinkGeek
> > > Oh, it's good to be a geek.
> > > http://thinkgeek.com/sf
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> 

Re: [JBoss-user] JBoss 3.0 Quick Guide

2002-07-09 Thread David Ward

To add clustering to the other two pre-config'd servers, you will need 
to have jbossha.jar in it's lib subdir and cluster-service.xml in it's 
deploy subdir.  You put your ear file in the deploy dir of whatever 
server you want to start up (via run.sh/bat -c ).

To your question, the new structure is intuitive to me, however I don't 
like the duplication of the jar files in each of the server's lib 
subdirs.  I liked one of the earlier 3.0 betas where all the jars were 
in one super-lib dir and you just "depended" on a list of those jars 
from your xxx-xxx.xml file in deploy.  It made for a much smaller 
distribution.

just my 2c,
David

--

Mary Roderick wrote:
> Hi,
> A very basic but I believe helpful request:
> A section on deploying applications, specifically the purpose of the 3
> 'servers' now delivered with JBoss. I understand from the Quick Guide that
> server/all should be used when clustering but what about server/default and
> server/minimum? As an experienced JBoss user I was honestly confused about
> where to put my .ear file. I have found no information regarding the new
> JBoss structure and haven't seen any comments on it in the user list. Am I
> the only one for whom the new structure isn't intuitive?
> 
> Thanks,
> Mary
> 



---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Deployng multiple db2 services on jboss 3.0.0 -waiting for an appropriate deployer. message

2002-07-09 Thread Torsten Schlumm

> When I deploy this i get a message
> 
> " [MainDeployer] Deployment of package:
> file:/tmp/install/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/test.xml
> is waiting for an appropriate deployer."
> 
> 
> Is it possible to deploy multiple database services in this way and if so
> what am I doing wrong?
> 
> Any help would be appreciated
> 
> 
> Ian
> 

Ian,

try naming the second file 'test-service.xml' and see what happens. I
think all those files have to be called -service.xml

Cheers,
Torsten


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBoss 3.0 Quick Guide

2002-07-09 Thread Mary Roderick


Hi,
A very basic but I believe helpful request:
A section on deploying applications, specifically the purpose of the 3
'servers' now delivered with JBoss. I understand from the Quick Guide that
server/all should be used when clustering but what about server/default and
server/minimum? As an experienced JBoss user I was honestly confused about
where to put my .ear file. I have found no information regarding the new
JBoss structure and haven't seen any comments on it in the user list. Am I
the only one for whom the new structure isn't intuitive?

Thanks,
Mary



---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Deployng multiple db2 services on jboss 3.0.0 - waiting for an appropriate deployer. message

2002-07-09 Thread David Jencks

Sure, just be sure all your file names are like xxx-service.xml.  You can
also put both db configs in one db2-service.xml file

david jencks

On 2002.07.09 10:15:23 -0400 [EMAIL PROTECTED] wrote:
> Hi
> 
> I'm trying to deploy multiple db2 services using JBoss 3.0.0
> 
> When I copy the example db2-service.xml and drop it into the deploy
> directory everything is ok
> 
> 
> 
> 
>   
>   
>   
>   
> 
> 
> 
> 
>="org.jboss.resource.connectionmanager.LocalTxConnectionManager" name
> ="jboss.jca:service=LocalTxCM,name=DB2DS">
> 
> 
> 
> 
> 
> 
>name
> ="jboss.jca:service=LocalTxDS,name=DB2DS">
> 
> DB2DS
> 
>   
>  ="java.lang.String">jdbc:db2:mydatabase
>  ="java.lang.String">COM.ibm.db2.jdbc.app.DB2Driver
> 
>  ="java.lang.String">myuser
>  ="java.lang.String">mypassword
>   
> 
> 
> 
> 
>  ="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss
> LocalTransaction JDBC Wrapper
>   
> 
> 
> 
>   
>="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" name
> ="jboss.jca:service=LocalTxPool,name=DB2DS">
> 0
> 50
> 5000
> 15
> 
> ByContainer
>   
> 
>  ="CachedConnectionManager">jboss.jca:service=CachedConnectionManager
> 
>  ="JaasSecurityManagerService">jboss.security:name=JaasSecurityManager
> 
>  ="TransactionManager">java:/TransactionManager
> 
> jboss.jca:service=RARDeployer
>   
> 
> 
> 
> I then take another copy of this file and change it as per the following
> (changing the DB2DS to MYDS)
> 
> 
> 
>   
>   
>   
>   
> 
> 
> 
> 
>="org.jboss.resource.connectionmanager.LocalTxConnectionManager" name
> ="jboss.jca:service=LocalTxCM,name=MYDS">
> 
> 
> 
> 
> 
> 
>name
> ="jboss.jca:service=LocalTxDS,name=MYDS">
> 
> MYDS
> 
>   
>  ="java.lang.String">jdbc:db2:anotherdatabase
>  ="java.lang.String">COM.ibm.db2.jdbc.app.DB2Driver
> 
>  ="java.lang.String">myUser
>  ="java.lang.String">myPassword
>   
> 
> 
> 
> 
>  ="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss
> LocalTransaction JDBC Wrapper
>   
> 
> 
> 
>   
>="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" name
> ="jboss.jca:service=LocalTxPool,name=MYDS">
> 0
> 50
> 5000
> 15
> 
> ByContainer
>   
> 
>  ="CachedConnectionManager">jboss.jca:service=CachedConnectionManager
> 
>  ="JaasSecurityManagerService">jboss.security:name=JaasSecurityManager
> 
>  ="TransactionManager">java:/TransactionManager
> 
> jboss.jca:service=RARDeployer
>   
> 
> 
> 
> 
> When I deploy this i get a message
> 
> " [MainDeployer] Deployment of package:
> file:/tmp/install/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/test.xml
> is waiting for an appropriate deployer."
> 
> 
> Is it possible to deploy multiple database services in this way and if so
> what am I doing wrong?
> 
> Any help would be appreciated
> 
> 
> Ian
> 
> 
> 
> 
> 
> 
> 
> 
> 
> This E-mail transmission may contain confidential or legally privileged
> information that is intended for the addressee only. Any views or
> opinions
> presented are solely those of the author and do not necessarily represent
> those of CNM Limited. If you are not the intended recipient you are
> hereby
> notified that any disclosure, copying, distribution or reliance upon the
> contents of this E-mail is strictly prohibited. If you have received this
> E-mail transmission in error, please notify the sender immediately, so
> that
> CNM Limited may arrange for its proper delivery. Please then delete the
> message from your inbox.
> 
> 
> 
> ---
> This sf.net email is sponsored by:ThinkGeek
> Stuff, things, and much much more.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] OracleDS binding on 3.0.1RC1?

2002-07-09 Thread David Jencks

It goes in an .ear next to application.xml and looks like this:





  
versantjca-service.xml
  
  
admintools.sar
  


You can also use it to specify the classloader space for the ear: look at
the cts/test/CtsCMP2UnitTestCase.

david jencks

On 2002.07.09 09:53:22 -0400 Jamie Burns wrote:
> I've searched the JBossBook_24x.pdf and JBoss.3.0QuickStart.pdf for
> jboss-app.xml. No hits. What is it, where does it live and what goes in
> it
> to make your solution work?
> 
> Thanks
> 
> - Original Message -
> From: "David Jencks" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 08, 2002 9:02 PM
> Subject: Re: [JBoss-user] OracleDS binding on 3.0.1RC1?
> 
> 
> > This might be an order-of-startup problem.  If you deploy your ejbs "by
> > hand" after the OracleDS is started is there a problem?
> >
> > You can include both in an .ear  with a jboss-app.xml to get the
> > oracle-service.xml deployed, or change the names of the packages -- I
> think
> > 10oracle-service.xml and 20myejbs.jar will work.
> >
> > david jencks
> >
> > On 2002.07.08 14:27:16 -0400 Brian Topping wrote:
> > > G'day!
> > >
> > > Wondering if anyone has a solution to this.  I'm trying to regress a
> > > classloader problem that I am having with 3.0 release, figured i
> would
> > > try
> > > 3.0.1RC1.  I added classes12.jar to server/default/lib put my
> > > oracle-service.xml into server/default/deploy and the OracleDS
> reports
> it
> > > was
> > > bound to java:/OracleDS, but when my CMP2.0 tries to find it, i get a
> > > report
> > > stating "Error: can't find data source: java:/OracleDS".  See below
> for
> > > the
> > > full output (20 lines or so) from the console.
> > >
> > > Does anyone have any ideas what I am doing wrong?  The names sure
> look
> > > the
> > > same to me...
> > >
> > > thanks!
> > >
> > > -b
> > >
> > > 13:01:51,657 INFO  [MainDeployer] Starting deployment of package:
> > >
> file:/C:/dev/jboss-3.0.1RC1_tomcat-4.0.4/server/default/deploy/oracle-servic
> e
> > > .xml
> > > 13:01:51,737 WARN  [ServiceController]
> > > jboss.jca:service=LocalTxDS,name=OracleDS does not implement any
> Service
> > > methods
> > > 13:01:51,737 INFO  [JBossManagedConnectionPool] Creating
> > > 13:01:51,737 INFO  [JBossManagedConnectionPool] Created
> > > 13:01:51,737 INFO  [LocalTxConnectionManager] Creating
> > > 13:01:51,747 INFO  [LocalTxConnectionManager] Created
> > > 13:01:51,747 INFO  [JBossManagedConnectionPool] Starting
> > > 13:01:51,747 INFO  [JBossManagedConnectionPool] Started
> > > 13:01:51,747 INFO  [LocalTxConnectionManager] Starting
> > > 13:01:51,767 INFO  [OracleDS] Bound connection factory for resource
> > > adapter
> > > 'JBoss LocalTransaction JDBC Wrapper' to JNDI name 'java:/OracleDS'
> > > 13:01:51,767 INFO  [LocalTxConnectionManager] Started
> > > 13:01:51,767 INFO  [MainDeployer] Deployed package:
> > > file:/C:/dev/jboss-3.0.1RC1_tomcat-4.0.4/server/default/deploy/oracl
> > > e-service.xml
> > > 13:01:51,767 ERROR [URLDeploymentScanner] Incomplete Deployment
> listing:
> > > Packages waiting for a deployer:
> > >   
> > > Incompletely deployed packages:
> > >   
> > > MBeans waiting for classes:
> > >   
> > > MBeans waiting for other MBeans:
> > > [ObjectName: jboss.j2ee:service=EJB,jndiName=ejb/bill2/Customer
> > >  state: FAILED
> > >  I Depend On:
> > >  Depends On Me: org.jboss.deployment.DeploymentException: Error:
> can't
> > > find
> > > data source: java:/OracleDS; - nested throwable:
> > > (javax.naming.NameNotFoundException: OracleDS not bound)]
> > >
> > > _
> > > If you have some ice cream, I will give it to you.
> > > If you have no ice cream, I will take it away from you.
> > >  - Ice Cream Koan
> > >
> > >
> > >
> > > ---
> > > This sf.net email is sponsored by:ThinkGeek
> > > Oh, it's good to be a geek.
> > > http://thinkgeek.com/sf
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> > >
> >
> >
> > ---
> > This sf.net email is sponsored by:ThinkGeek
> > Oh, it's good to be a geek.
> > http://thinkgeek.com/sf
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> 
> 
> ---
> This sf.net email is sponsored by:ThinkGeek
> Stuff, things, and much much more.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf

Re: [JBoss-user] Quick question about jndi.properties files

2002-07-09 Thread R . Price

The comment prolly doesn't make sense when found in the jndi.properties file for a client, but 
overall the jndi.properties file is used by the InitialContext class to create a context (if it can find
it).  Look at the API docs and it will explain it.

rp







Oisin Kim <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
07/09/2002 09:00 AM
Please respond to jboss-user

        
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        [JBoss-user] Quick question about jndi.properties files


Hi all,

I have a very small question about jndi.properties files with jboss.

In the old  "IntererstClient" example code there is a jndi.properties
file with the comment:

#do not uncomment this line as it causes in VM calls to go over RMI
#java.naming.provider.url=localhost

I'm just trying to see the relevance of having this in client
application, as wouldn't all clients be in a different VM to the JNDI
provider (JBoss) anyway? 

I can understand that this might make some improvements in speed if it
was the servers properties file, but in a client it just confuses me!

Basically what I'm asking is what purpose does this have in clients?


Thanks in advance,
Oisin







---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




AW: [JBoss-user] Jboss CMP

2002-07-09 Thread Ingo Vietense

Hi Neal,

thank you for your quick response. in fact i had an erroy with my DOCTYPE in
jboss.xml
Now everything is working fine :-)

-
Ingo


> -Ursprüngliche Nachricht-
> Von: Neal Sanche [mailto:[EMAIL PROTECTED]]
> Gesendet am: Dienstag, 9. Juli 2002 15:32
> An: [EMAIL PROTECTED]
> Betreff: Re: [JBoss-user] Jboss CMP
> 
> 
> I think that might be due to the DOCTYPE you're using in one of your 
> deployment descriptors perhaps? Make sure your deployment descriptors 
> are for CMP 2.x, and not a lower version.
> 
> 
>  JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd";>
> 
>  "http://www.jboss.org/j2ee/dtd/jaws_3_0.dtd";>
> 
>  "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd";>
> 
>  "http://www.jboss.org/j2ee/dtd/jboss.dtd";>
> 
> Are what I'm using as doctypes for the respective documents deployed.
> Also, near the you of my jbosscmp-jdbc file I have:
> 
>
>  java:/MySqlDS
>  mySQL
>
> 
> -Neal
> 
> On Tuesday 09 July 2002 09:14 am, you wrote:
> > Hi,
> >
> > i wrote a simple EntityBean with CMP2. it's implemented like the
> > GangsterBean from the JBoss CMP sample. And i have created a new
> > Datasource to my SAPDB Database. I put a sapdb-service.xml in
> > the deployfolder.
> > Everything worked fine, but my GangsterBean always uses the
> > DefaultDS and not my SapDBDS.
> > I tried the example from the JBoss CMP book and it worked fine
> > with my SapDBDS.
> >
> > I watched the server.log file but my EntityBean uses the
> > standardjaws.xml file, not the jbosscmp-jdbc.xml file wich i put
> > similar to the example in the META-INF directory.
> >
> > Can you help me.
> >
> > Reagards
> > Ingo
> >
> >
> > ---
> > This sf.net email is sponsored by:ThinkGeek
> > Stuff, things, and much much more.
> > http://thinkgeek.com/sf
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> ---
> This sf.net email is sponsored by:ThinkGeek
> Stuff, things, and much much more.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] JBoss3.0 -- any stuts users out there?

2002-07-09 Thread Frank Groot

I have struts 1.1b working with JBoss-3.0.0/Jetty

struts.lib (and all the related jars) in WEB-INF/lib

and

ApplicationResource.properties in WEB-INF/class

of my .war archive

Cheers,

Frank


-Original Message-
From: Jamie Burns [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 15:20
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] JBoss3.0 -- any stuts users out there?


I have a struts project working with JBoss/Jetty. I have the struts jars
in
server\all\lib. My ApplicationResource.properties is in
server\all\deploy\xxx.ear

- Original Message -
From: "Alex Loubyansky" <[EMAIL PROTECTED]>
To: "Brian Topping" <[EMAIL PROTECTED]>
Cc: "Jboss user list (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, July 09, 2002 9:40 AM
Subject: Re: [JBoss-user] JBoss3.0 -- any stuts users out there?


> Hello Brian,
>
> Tuesday, July 09, 2002, 11:06:58 AM, you wrote:
>
> BT> k, hopefully i'm "real close now"... any other jboss 3 / struts
1.1
users out
> BT> there that can help?
>
> I use 1.0.2 for now.
>
> BT> someone on the struts list reminded me that the struts.jar
belonged in
the
> BT> app.war's web-inf/lib folder, not as a peer to the app.war.  that
could
> BT> theoretically solve the problem with the getResource calls that
were
failing,
> BT> but then remembered making the jars as peers in the deploy
directory
was the
> BT> only thing that had struts working under jboss in the first place.
>
> BT> does *anyone* have struts 1.1 working fully (with i18n/properties)
under
> BT> jboss 3?
>
> I do have with 1.0.2. If didn't changed in that way I can try to help
you.
> ApplicationResources (as in the user guide) must be in classes
> directory.
> Indeed, yesterday I had problems with it too. My jsp's began with
> <%@ page language="java" contentType="text/html;charset=Cp1251"%>
> When I supposed to get Cp1251 encoding in a browser. It didn't work
> until I changed it to just
> <%@ page language="java" contentType="text/html"%>
>
> Now works fine. Also, remember to have the locale set correctly if you
> use ApplicationResources_xx.properties.
>
> alex
>
> BT> pullleeeze?? :-)
>
> BT> apache lists are down again, i'm hoping there is someone here that
can
help
> BT> out...
>
> BT> thanks!
>
> BT> -b
>
> BT> p.s. this is the stack trace for my failing servlet.  This exact
> BT> configuration runs fine when the struts.lib is pulled out of the
web-inf/lib
> BT> and put directly into the deploy directory, but that breaks
getResource calls
> BT> by the struts.jar util routines for properties...
>
>
>
> BT> 03:55:07,924 INFO  [RequestProcessor] Processing a 'GET' for path
> BT> '/editRegistration'
> BT> 03:55:08,074 ERROR [RequestUtils] Error creating form bean of
class
> BT> com.bill2.ejb.CustomerFullForm
> BT> java.lang.NoClassDefFoundError:
org/apache/struts/action/ActionForm
> BT> at java.lang.ClassLoader.defineClass0(Native Method)
> BT> at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
> BT> at
> BT>
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
> BT> at
java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
> BT> at
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> BT> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> BT> at java.security.AccessController.doPrivileged(Native
Method)
> BT> at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> BT> at
> BT>
org.jboss.mx.loading.UnifiedClassLoader.findClass(UnifiedClassLoader.jav
a:22
6
> BT> )
> BT> at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
> BT> at
> BT>
org.jboss.mx.loading.UnifiedClassLoader.loadClassLocally(UnifiedClassLoa
der.
j
> BT> ava:234)
> BT> at
> BT>
org.jboss.mx.loading.UnifiedLoaderRepository.loadClassFromRepository(Uni
fied
L
> BT> oaderRepository.java:507)
> BT> at
> BT>
org.jboss.mx.loading.UnifiedLoaderRepository.loadClass(UnifiedLoaderRepo
sito
r
> BT> y.java:179)
> BT> at
> BT>
org.jboss.mx.loading.UnifiedClassLoader.loadClass(UnifiedClassLoader.jav
a:28
3
> BT> )
> BT> at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
> BT> at
java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:553)
> BT> at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
> BT> at
> BT>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.jav
a
> BT> :1355)
> BT> at
> BT>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.jav
a
> BT> :1254)
> BT> at
> BT>
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:1
90)
> BT> at
> BT>
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.jav
a:21
6
> BT> )
> BT> at
> BT>
org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:6
10)
> BT> at
> BT>
org.apache.struts.action.RequestProcessor.processActionForm(RequestProce
ssor
.
> BT> java:349)
>

Re: [JBoss-user] Running different versions of a webapp

2002-07-09 Thread Dan Christopherson

You'll also need different descriptors for the two versions, to map each 
to the proper database and to bind to different JNDI names.

danch

[EMAIL PROTECTED] wrote:
> Use scoped ears. Search jboss-user, or release notes for 3.0 final for details.
> 
> On Tue, Jul 09, 2002 at 10:02:17AM +0200, Keysers, Wonne wrote:
> 
>>Hi,
>>
>>What's the best way for running different version of the same webapp on 1 JBoss 
>server?
>>Same question for running different versions of EJBs, but I think JNDI can help us 
>out there, right?
>>
>>Any tips and/or tricks?
>>
>>Thanks a lot!
>>-Wonne
>>
> 



-- 

=
Disclaimer:
All statements are my own, personal opinions and have nothing to do
with the opinions of employer, wife, or cat. They may not have anything
to do with objective reality, as a matter of fact. Your Mileage May
Vary, Excludes Delivery Charges, etc.
=



---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Deployng multiple db2 services on jboss 3.0.0 - waiting for an appropriatedeployer. message

2002-07-09 Thread Ian . Sleigh

Hi

I'm trying to deploy multiple db2 services using JBoss 3.0.0

When I copy the example db2-service.xml and drop it into the deploy
directory everything is ok




  
  
  
  




  






  

DB2DS

  
jdbc:db2:mydatabase
COM.ibm.db2.jdbc.app.DB2Driver

myuser
mypassword
  




jboss.jca:service=RARDeployment,name=JBoss
LocalTransaction JDBC Wrapper
  



  
  
0
50
5000
15

ByContainer
  

jboss.jca:service=CachedConnectionManager

jboss.security:name=JaasSecurityManager

java:/TransactionManager

jboss.jca:service=RARDeployer
  



I then take another copy of this file and change it as per the following
(changing the DB2DS to MYDS)



  
  
  
  




  






  

MYDS

  
jdbc:db2:anotherdatabase
COM.ibm.db2.jdbc.app.DB2Driver

myUser
myPassword
  




jboss.jca:service=RARDeployment,name=JBoss
LocalTransaction JDBC Wrapper
  



  
  
0
50
5000
15

ByContainer
  

jboss.jca:service=CachedConnectionManager

jboss.security:name=JaasSecurityManager

java:/TransactionManager

jboss.jca:service=RARDeployer
  




When I deploy this i get a message

" [MainDeployer] Deployment of package:
file:/tmp/install/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/test.xml
is waiting for an appropriate deployer."


Is it possible to deploy multiple database services in this way and if so
what am I doing wrong?

Any help would be appreciated


Ian









This E-mail transmission may contain confidential or legally privileged
information that is intended for the addressee only. Any views or opinions
presented are solely those of the author and do not necessarily represent
those of CNM Limited. If you are not the intended recipient you are hereby
notified that any disclosure, copying, distribution or reliance upon the
contents of this E-mail is strictly prohibited. If you have received this
E-mail transmission in error, please notify the sender immediately, so that
CNM Limited may arrange for its proper delivery. Please then delete the
message from your inbox.



---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Binding external LDAP into jboss 3.0 JNDI name space

2002-07-09 Thread Shen, Minsheng (MinSheng)
Title: Binding external LDAP into jboss 3.0 JNDI name space






Hi,

I have been struggling with this problem for last two days. If anybody there can give me some hints, it will be greatly appreciated!

The Jboss 3.0 is installed on Windows 2000.


I am following the Jboss document for federating external LDAP into Jboss JNDI context using ExternalContext MBean. I created a ldap-service.xml and deploy it under server\default\deploy. It seems it is deployed successfully.  From JNDIView MBean, I can see the service=ExternalContext is registed under right jndiName in the DefaultDomain. But I can't see the external LDAP contents. Is something wrong already here?

I wrote a very simple bean and deployed into the jboss. The part of the code looks as following: 

    DirContext iniCtx = new InitialDirContext(); 

    DirContext ldapCtx = (DirContext)iniCtx.lookup("external/ldap/iplanet"); 

    Attributes attrs = ldapCtx.getAttributes("uid=3Gold, ou=People"); 


When it executes getAttributes(), it throws "java.rmi.ServerException: Naming lookup failure: Not an instance of DirContext". 

The attached is the ldap-service.xml for deploying external LDAP through ExternalContext MBean. One thing I am not sure in this file is the Properties attribute. I tried all values I can think of, such as , C:/SAAS_Home/config/saas_ldap.properties, c:\\SAAS_Home\\config\\saas_ldap.properties, 

I searched the jboss-user mailing by key words such as "DirContext", "LDAP", "naming lookup" and "ExternalContext" and etc. I could not find too much help. Any help will be greatly appreciated!

-Minsheng 

 <> 




 
 
 
	 
	
	 
	 
	 
		external/ldap/iplanet 
		file:/C:/SAAS_home/config/saas_ldap.properties 
		javax.naming.ldap.InitialLdapContext
		true 
	 
 



[JBoss-user] Re: any stuts users out there?

2002-07-09 Thread Shawn Becker

Regarding your NoClassDefFoundError for ActionForm

> BT> java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
> BT> at java.lang.ClassLoader.defineClass0(Native Method)
> BT> at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
...

I had this problem last week with Struts-1.0.2 on JBoss-3.0.0. To fix this
make sure that your EJB's  JAR file doesn't contain any classes that use
struts.

This happens in JBoss-3.0 because the web container's classloader (for
Jetty) first looks to JBoss's parent classloader to see if certain classes
have been loaded. If your EJB loads before your web-application's WAR file
(and it normally does), and if the EJB contains classes that use struts
classes, then for some reason the classloader thinks its already loaded
those referenced struts classes even though the struts.jar is not included
in the EJB's JAR file.

What I've done is removed all struts-related classes from my ejb-JAR file
and for symmetry I've also removed all EJB implementation classes from my
WAR file. All is running nicely now.

Good luck.

Shawn Becker
http://www.homeportfolio.com


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> [EMAIL PROTECTED]
> Sent: Tuesday, July 09, 2002 9:04 AM
> To: [EMAIL PROTECTED]
> Subject: JBoss-user digest, Vol 1 #2611 - 6 msgs
>
>
> Send JBoss-user mailing list submissions to
>   [EMAIL PROTECTED]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>   https://lists.sourceforge.net/lists/listinfo/jboss-user
> or, via email, send a message with subject or body 'help' to
>   [EMAIL PROTECTED]
>
> You can reach the person managing the list at
>   [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of JBoss-user digest..."
>
>
> Today's Topics:
>
>1. Re: JBoss3.0 -- any stuts users out there? (Alex Loubyansky)
>2. Re: JBoss 3.0 Quick Guide (Bruno)
>3. Re: Running different versions of a webapp ([EMAIL PROTECTED])
>4. JBoss+Log4J+JAXM=Big Headache (Mary Roderick)
>5. Re: How to find Deployed Applications in JBoss3.0?--help
> (David Jencks)
>6. RE: help with bean lock/transaction error (Bill Burke)
>
> --__--__--
>
> Message: 1
> Date: Tue, 9 Jul 2002 11:40:27 +0300
> From: Alex Loubyansky <[EMAIL PROTECTED]>
> To: "Brian Topping" <[EMAIL PROTECTED]>
> CC: "Jboss user list (E-mail)" <[EMAIL PROTECTED]>
> Subject: Re: [JBoss-user] JBoss3.0 -- any stuts users out there?
> Reply-To: [EMAIL PROTECTED]
>
> Hello Brian,
>
> Tuesday, July 09, 2002, 11:06:58 AM, you wrote:
>
> BT> k, hopefully i'm "real close now"... any other jboss 3 /
> struts 1.1 users out
> BT> there that can help?
>
> I use 1.0.2 for now.
>
> BT> someone on the struts list reminded me that the struts.jar
> belonged in the
> BT> app.war's web-inf/lib folder, not as a peer to the app.war.
> that could
> BT> theoretically solve the problem with the getResource calls
> that were failing,
> BT> but then remembered making the jars as peers in the deploy
> directory was the
> BT> only thing that had struts working under jboss in the first place.
>
> BT> does *anyone* have struts 1.1 working fully (with
> i18n/properties) under
> BT> jboss 3?
>
> I do have with 1.0.2. If didn't changed in that way I can try to help you.
> ApplicationResources (as in the user guide) must be in classes
> directory.
> Indeed, yesterday I had problems with it too. My jsp's began with
> <%@ page language="java" contentType="text/html;charset=Cp1251"%>
> When I supposed to get Cp1251 encoding in a browser. It didn't work
> until I changed it to just
> <%@ page language="java" contentType="text/html"%>
>
> Now works fine. Also, remember to have the locale set correctly if you
> use ApplicationResources_xx.properties.
>
> alex
>
> BT> pullleeeze?? :-)
>
> BT> apache lists are down again, i'm hoping there is someone here
> that can help
> BT> out...
>
> BT> thanks!
>
> BT> -b
>
> BT> p.s. this is the stack trace for my failing servlet.  This exact
> BT> configuration runs fine when the struts.lib is pulled out of
> the web-inf/lib
> BT> and put directly into the deploy directory, but that breaks
> getResource calls
> BT> by the struts.jar util routines for properties...
>
>
>
> BT> 03:55:07,924 INFO  [RequestProcessor] Processing a 'GET' for path
> BT> '/editRegistration'
> BT> 03:55:08,074 ERROR [RequestUtils] Error creating form bean of class
> BT> com.bill2.ejb.CustomerFullForm
> BT> java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
> BT> at java.lang.ClassLoader.defineClass0(Native Method)
> BT> at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
> BT> at
> BT>
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
> BT> at
> java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
> BT> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> BT> at

Re: [JBoss-user] OracleDS binding on 3.0.1RC1?

2002-07-09 Thread Jamie Burns

I've searched the JBossBook_24x.pdf and JBoss.3.0QuickStart.pdf for
jboss-app.xml. No hits. What is it, where does it live and what goes in it
to make your solution work?

Thanks

- Original Message -
From: "David Jencks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 08, 2002 9:02 PM
Subject: Re: [JBoss-user] OracleDS binding on 3.0.1RC1?


> This might be an order-of-startup problem.  If you deploy your ejbs "by
> hand" after the OracleDS is started is there a problem?
>
> You can include both in an .ear  with a jboss-app.xml to get the
> oracle-service.xml deployed, or change the names of the packages -- I
think
> 10oracle-service.xml and 20myejbs.jar will work.
>
> david jencks
>
> On 2002.07.08 14:27:16 -0400 Brian Topping wrote:
> > G'day!
> >
> > Wondering if anyone has a solution to this.  I'm trying to regress a
> > classloader problem that I am having with 3.0 release, figured i would
> > try
> > 3.0.1RC1.  I added classes12.jar to server/default/lib put my
> > oracle-service.xml into server/default/deploy and the OracleDS reports
it
> > was
> > bound to java:/OracleDS, but when my CMP2.0 tries to find it, i get a
> > report
> > stating "Error: can't find data source: java:/OracleDS".  See below for
> > the
> > full output (20 lines or so) from the console.
> >
> > Does anyone have any ideas what I am doing wrong?  The names sure look
> > the
> > same to me...
> >
> > thanks!
> >
> > -b
> >
> > 13:01:51,657 INFO  [MainDeployer] Starting deployment of package:
> >
file:/C:/dev/jboss-3.0.1RC1_tomcat-4.0.4/server/default/deploy/oracle-servic
e
> > .xml
> > 13:01:51,737 WARN  [ServiceController]
> > jboss.jca:service=LocalTxDS,name=OracleDS does not implement any Service
> > methods
> > 13:01:51,737 INFO  [JBossManagedConnectionPool] Creating
> > 13:01:51,737 INFO  [JBossManagedConnectionPool] Created
> > 13:01:51,737 INFO  [LocalTxConnectionManager] Creating
> > 13:01:51,747 INFO  [LocalTxConnectionManager] Created
> > 13:01:51,747 INFO  [JBossManagedConnectionPool] Starting
> > 13:01:51,747 INFO  [JBossManagedConnectionPool] Started
> > 13:01:51,747 INFO  [LocalTxConnectionManager] Starting
> > 13:01:51,767 INFO  [OracleDS] Bound connection factory for resource
> > adapter
> > 'JBoss LocalTransaction JDBC Wrapper' to JNDI name 'java:/OracleDS'
> > 13:01:51,767 INFO  [LocalTxConnectionManager] Started
> > 13:01:51,767 INFO  [MainDeployer] Deployed package:
> > file:/C:/dev/jboss-3.0.1RC1_tomcat-4.0.4/server/default/deploy/oracl
> > e-service.xml
> > 13:01:51,767 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
> > Packages waiting for a deployer:
> >   
> > Incompletely deployed packages:
> >   
> > MBeans waiting for classes:
> >   
> > MBeans waiting for other MBeans:
> > [ObjectName: jboss.j2ee:service=EJB,jndiName=ejb/bill2/Customer
> >  state: FAILED
> >  I Depend On:
> >  Depends On Me: org.jboss.deployment.DeploymentException: Error: can't
> > find
> > data source: java:/OracleDS; - nested throwable:
> > (javax.naming.NameNotFoundException: OracleDS not bound)]
> >
> > _
> > If you have some ice cream, I will give it to you.
> > If you have no ice cream, I will take it away from you.
> >  - Ice Cream Koan
> >
> >
> >
> > ---
> > This sf.net email is sponsored by:ThinkGeek
> > Oh, it's good to be a geek.
> > http://thinkgeek.com/sf
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
>
>
> ---
> This sf.net email is sponsored by:ThinkGeek
> Oh, it's good to be a geek.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Quick question about jndi.properties files

2002-07-09 Thread Oisin Kim

Hi all,

I have a very small question about jndi.properties files with jboss.

In the old  "IntererstClient" example code there is a jndi.properties
file with the comment:

#do not uncomment this line as it causes in VM calls to go over RMI
#java.naming.provider.url=localhost

I'm just trying to see the relevance of having this in client
application, as wouldn't all clients be in a different VM to the JNDI
provider (JBoss) anyway? 

I can understand that this might make some improvements in speed if it
was the servers properties file, but in a client it just confuses me!

Basically what I'm asking is what purpose does this have in clients?


Thanks in advance,
Oisin







---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] [SOLVED] OracleDS binding on 3.0.1RC1?

2002-07-09 Thread Jamie Burns

Last week l posted a problem binding an MS SQLServer 2000 datasource in
JBoss 3.0. Brian's description of his Oracle problem looks the same as my
SQL Server problem. I would like to apply this solution to my problem but I
dont understand this solution. Did you put the oracle-service.xml file in
your ear folder instead of in the deploy folder?

Thanks

- Original Message -
From: "Brian Topping" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 08, 2002 9:43 PM
Subject: RE: [JBoss-user] [SOLVED] OracleDS binding on 3.0.1RC1?


Indeed, this seems to be the problem.  I initially didn't suspect this,
because the error I posted was observed during manual deployment of the ejb
jar, but it seems to be working now.

Thanks David!!

-b

> -Original Message-
> From: David Jencks [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 4:02 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] OracleDS binding on 3.0.1RC1?
>
>
> This might be an order-of-startup problem.  If you deploy
> your ejbs "by
> hand" after the OracleDS is started is there a problem?
>
> You can include both in an .ear  with a jboss-app.xml to get the
> oracle-service.xml deployed, or change the names of the
> packages -- I think
> 10oracle-service.xml and 20myejbs.jar will work.
>
> david jencks
>
> On 2002.07.08 14:27:16 -0400 Brian Topping wrote:
> > G'day!
> >
> > Wondering if anyone has a solution to this.  I'm trying to regress a
> > classloader problem that I am having with 3.0 release,
> figured i would
> > try
> > 3.0.1RC1.  I added classes12.jar to server/default/lib put my
> > oracle-service.xml into server/default/deploy and the
> OracleDS reports it
> > was
> > bound to java:/OracleDS, but when my CMP2.0 tries to find
> it, i get a
> > report
> > stating "Error: can't find data source: java:/OracleDS".
> See below for
> > the
> > full output (20 lines or so) from the console.
> >
> > Does anyone have any ideas what I am doing wrong?  The
> names sure look
> > the
> > same to me...
> >
> > thanks!
> >
> > -b
> >
> > 13:01:51,657 INFO  [MainDeployer] Starting deployment of package:
> >
> file:/C:/dev/jboss-3.0.1RC1_tomcat-4.0.4/server/default/deploy
> /oracle-service
> > .xml
> > 13:01:51,737 WARN  [ServiceController]
> > jboss.jca:service=LocalTxDS,name=OracleDS does not
> implement any Service
> > methods
> > 13:01:51,737 INFO  [JBossManagedConnectionPool] Creating
> > 13:01:51,737 INFO  [JBossManagedConnectionPool] Created
> > 13:01:51,737 INFO  [LocalTxConnectionManager] Creating
> > 13:01:51,747 INFO  [LocalTxConnectionManager] Created
> > 13:01:51,747 INFO  [JBossManagedConnectionPool] Starting
> > 13:01:51,747 INFO  [JBossManagedConnectionPool] Started
> > 13:01:51,747 INFO  [LocalTxConnectionManager] Starting
> > 13:01:51,767 INFO  [OracleDS] Bound connection factory for resource
> > adapter
> > 'JBoss LocalTransaction JDBC Wrapper' to JNDI name 'java:/OracleDS'
> > 13:01:51,767 INFO  [LocalTxConnectionManager] Started
> > 13:01:51,767 INFO  [MainDeployer] Deployed package:
> > file:/C:/dev/jboss-3.0.1RC1_tomcat-4.0.4/server/default/deploy/oracl
> > e-service.xml
> > 13:01:51,767 ERROR [URLDeploymentScanner] Incomplete
> Deployment listing:
> > Packages waiting for a deployer:
> >   
> > Incompletely deployed packages:
> >   
> > MBeans waiting for classes:
> >   
> > MBeans waiting for other MBeans:
> > [ObjectName: jboss.j2ee:service=EJB,jndiName=ejb/bill2/Customer
> >  state: FAILED
> >  I Depend On:
> >  Depends On Me: org.jboss.deployment.DeploymentException:
> Error: can't
> > find
> > data source: java:/OracleDS; - nested throwable:
> > (javax.naming.NameNotFoundException: OracleDS not bound)]
> >
> > _
> > If you have some ice cream, I will give it to you.
> > If you have no ice cream, I will take it away from you.
> >  - Ice Cream Koan
> >
> >
> >
> > ---
> > This sf.net email is sponsored by:ThinkGeek
> > Oh, it's good to be a geek.
> > http://thinkgeek.com/sf
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
>
>
> ---
> This sf.net email is sponsored by:ThinkGeek
> Oh, it's good to be a geek.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This sf.net email is sponsored by:ThinkGeek
Oh, it's good to be a geek.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.

Re: [JBoss-user] Jboss CMP

2002-07-09 Thread Ingo Bruell

Hi Ingo Vietense,

IV> Can you help me.

it  looks like an error in the deployment descriptor. But you have not
send some info so i can not see.

Please  post  the  version  (jboss,  jdk,  os, etc) and the deployment
descriptors

best regards

Ingo Bruell 

---
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>

OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
Germany  PGP-Public-Key available at pgpkeys.mit.edu




---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re[4]: [JBoss-user] help with bean lock/transaction error

2002-07-09 Thread Alex Loubyansky

BB> You mean write a test case that exposes this problem?  That would be cool...

Yes. No problem. I'll do it. But it'll reproduce my cause for the
problem.

alex

>> -Original Message-
>> From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, July 09, 2002 9:31 AM
>> To: Bill Burke
>> Cc: [EMAIL PROTECTED]
>> Subject: Re[2]: [JBoss-user] help with bean lock/transaction error
>>
>>
>> Hello Bill,
>>
>> well, I don't get a super machine :( But as to test case it'll be easy
>> enough. I can do it.
>>
>> alex
>>
>> Tuesday, July 09, 2002, 4:00:24 PM, you wrote:
>>
>> BB> Although this problem really troubles me I doubt it is a VM
>> problem.  I am
>> BB> reluctant to investigate this further because the other 2
>> times somebody
>> BB> reported this bug to me it was user error(but Gray's case
>> doesn't sound like
>> BB> the other two).  I will run a test eventually to see if I can uncover
>> BB> anything.  It would really be nice if somebody could get a
>> simple test case
>> BB> that I could run, or provide a dual-processor machine so that
>> I can do some
>> BB> serious tests.  Race conditions show up better on a
>> dual-processor machine.
>>
>> BB> Bill
>>
>>
>> >> -Original Message-
>> >> From: [EMAIL PROTECTED]
>> >> [mailto:[EMAIL PROTECTED]]On Behalf Of Alex
>> >> Loubyansky
>> >> Sent: Tuesday, July 09, 2002 4:08 AM
>> >> To: JBoss-User
>> >> Subject: Re: [JBoss-user] help with bean lock/transaction error
>> >>
>> >>
>> >> Hi guys,
>> >>
>> >> I met the same problem as Gray, though I can't say the cause is the
>> >> same. I had many experiments with primary keys, transactions and so
>> >> on. And finally I gor it working just changing the vm.
>> >> My buggy environment: Win2K, JBoss-3.1.0alpha (haven't tried others),
>> >> Sun's jdk1.3.1_01.
>> >> After changing to Sun's jdk1.4.0 (don't have another 1.3 for win)
>> >> everything started to work fine.
>> >>
>> >> Is it a known issue? bug?
>> >>
>> >> I'm also going to test it on JRockit, RH7.2.
>> >>
>> >> alex
>> >>
>> >> ==
>> >> ==
>> >> From: Gray Jones
>> >> Subject: Re: [JBoss-user] help with bean lock/transaction error
>> >> Date: Thu, 27 Jun 2002 13:40:31 -0700
>> >>
>> >> --
>> >> --
>> >>
>> >> Hi Bill,
>> >>
>> >> No I'm using an Integer as the primary key.  We use a session facade to
>> >> front the entity bean.  We use local ejb references between the session
>> >> facade and the entity bean.  The bean in question (ie user entity
>> >> bean with
>> >> pk=49) has gotten a fair amount of activity before the
>> exception occurs.
>> >>
>> >> >From the log info it looks like the exception occurs on the
>> >> setEntityContext
>> >> method.  The actual bean that is used isn't the one that is hosting the
>> >> entity bean.  It seems to be fairly transient in that it gets it's its
>> >> entity context sent and then isn't used again.
>> >>
>> >> Thanks for any help
>> >>
>> >> Here is the log output from a normal sequence
>> >> 16:00:15,164 INFO  [UserManagerBean] [13948051] getUser 49
>> >> 16:00:15,164 INFO  [UserManagerBean] [13948051] getUserLocal 49
>> >> 16:00:15,164 INFO  [UserEntityBean] [15477362].setEntityContext
>> >> 16:00:15,174 INFO  [User] [9260186].49 getObject
>> >> 16:00:15,174 INFO  [User] [9260186].49 ejbStore
>> >>
>> >> Here is the log output when the exception occurs
>> >> 16:00:20,312 INFO  [UserManagerBean] [10898281] setSessionContext
>> >> 16:00:20,312 INFO  [UserManagerBean] [10898281] ejbCreate
>> >> 16:00:20,312 INFO  [UserManagerBean] [10898281] getUser 49
>> >> 16:00:20,312 INFO  [UserManagerBean] [10898281] getUserLocal 49
>> >> 16:00:20,322 INFO  [UserEntityBean] [10555042].setEntityContext
>> >> 16:00:25,329 ERROR [LogInterceptor] TransactionRolledbackException,
>> >> causedBy:
>> >> java.lang.IllegalStateException: removing bean lock and it has tx set!
>> >> at
>> >> org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(QueuedP
>> >> essimisticEJBLock.java:469)
>> >> at
>> >> org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:78)
>> >> at
>> >> org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockIntercep
>> >> tor.java:124)
>> >> at
>> >> org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreation
>> >> Interceptor.java:69)
>> >> at
>> >> org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
>> >> rceptor.java:96)
>> >> at
>> >> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
>> >> torCMT.java:167)
>> >> at
>> >> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:6
>> >> 1)
>> >> at
>> >> org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
>> >> java:129)
>> >> at
>> >> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
>> >> a

RE: Re[2]: [JBoss-user] help with bean lock/transaction error

2002-07-09 Thread Bill Burke

You mean write a test case that exposes this problem?  That would be cool...

> -Original Message-
> From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 09, 2002 9:31 AM
> To: Bill Burke
> Cc: [EMAIL PROTECTED]
> Subject: Re[2]: [JBoss-user] help with bean lock/transaction error
>
>
> Hello Bill,
>
> well, I don't get a super machine :( But as to test case it'll be easy
> enough. I can do it.
>
> alex
>
> Tuesday, July 09, 2002, 4:00:24 PM, you wrote:
>
> BB> Although this problem really troubles me I doubt it is a VM
> problem.  I am
> BB> reluctant to investigate this further because the other 2
> times somebody
> BB> reported this bug to me it was user error(but Gray's case
> doesn't sound like
> BB> the other two).  I will run a test eventually to see if I can uncover
> BB> anything.  It would really be nice if somebody could get a
> simple test case
> BB> that I could run, or provide a dual-processor machine so that
> I can do some
> BB> serious tests.  Race conditions show up better on a
> dual-processor machine.
>
> BB> Bill
>
>
> >> -Original Message-
> >> From: [EMAIL PROTECTED]
> >> [mailto:[EMAIL PROTECTED]]On Behalf Of Alex
> >> Loubyansky
> >> Sent: Tuesday, July 09, 2002 4:08 AM
> >> To: JBoss-User
> >> Subject: Re: [JBoss-user] help with bean lock/transaction error
> >>
> >>
> >> Hi guys,
> >>
> >> I met the same problem as Gray, though I can't say the cause is the
> >> same. I had many experiments with primary keys, transactions and so
> >> on. And finally I gor it working just changing the vm.
> >> My buggy environment: Win2K, JBoss-3.1.0alpha (haven't tried others),
> >> Sun's jdk1.3.1_01.
> >> After changing to Sun's jdk1.4.0 (don't have another 1.3 for win)
> >> everything started to work fine.
> >>
> >> Is it a known issue? bug?
> >>
> >> I'm also going to test it on JRockit, RH7.2.
> >>
> >> alex
> >>
> >> ==
> >> ==
> >> From: Gray Jones
> >> Subject: Re: [JBoss-user] help with bean lock/transaction error
> >> Date: Thu, 27 Jun 2002 13:40:31 -0700
> >>
> >> --
> >> --
> >>
> >> Hi Bill,
> >>
> >> No I'm using an Integer as the primary key.  We use a session facade to
> >> front the entity bean.  We use local ejb references between the session
> >> facade and the entity bean.  The bean in question (ie user entity
> >> bean with
> >> pk=49) has gotten a fair amount of activity before the
> exception occurs.
> >>
> >> >From the log info it looks like the exception occurs on the
> >> setEntityContext
> >> method.  The actual bean that is used isn't the one that is hosting the
> >> entity bean.  It seems to be fairly transient in that it gets it's its
> >> entity context sent and then isn't used again.
> >>
> >> Thanks for any help
> >>
> >> Here is the log output from a normal sequence
> >> 16:00:15,164 INFO  [UserManagerBean] [13948051] getUser 49
> >> 16:00:15,164 INFO  [UserManagerBean] [13948051] getUserLocal 49
> >> 16:00:15,164 INFO  [UserEntityBean] [15477362].setEntityContext
> >> 16:00:15,174 INFO  [User] [9260186].49 getObject
> >> 16:00:15,174 INFO  [User] [9260186].49 ejbStore
> >>
> >> Here is the log output when the exception occurs
> >> 16:00:20,312 INFO  [UserManagerBean] [10898281] setSessionContext
> >> 16:00:20,312 INFO  [UserManagerBean] [10898281] ejbCreate
> >> 16:00:20,312 INFO  [UserManagerBean] [10898281] getUser 49
> >> 16:00:20,312 INFO  [UserManagerBean] [10898281] getUserLocal 49
> >> 16:00:20,322 INFO  [UserEntityBean] [10555042].setEntityContext
> >> 16:00:25,329 ERROR [LogInterceptor] TransactionRolledbackException,
> >> causedBy:
> >> java.lang.IllegalStateException: removing bean lock and it has tx set!
> >> at
> >> org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(QueuedP
> >> essimisticEJBLock.java:469)
> >> at
> >> org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:78)
> >> at
> >> org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockIntercep
> >> tor.java:124)
> >> at
> >> org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreation
> >> Interceptor.java:69)
> >> at
> >> org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
> >> rceptor.java:96)
> >> at
> >> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
> >> torCMT.java:167)
> >> at
> >> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:6
> >> 1)
> >> at
> >> org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
> >> java:129)
> >> at
> >> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
> >> at
> org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
> >> at
> >> org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLoca
> >> lContainerInvoker.java:296)
> >> at
> >> o

Re: [JBoss-user] Jboss CMP

2002-07-09 Thread Neal Sanche


I think that might be due to the DOCTYPE you're using in one of your 
deployment descriptors perhaps? Make sure your deployment descriptors 
are for CMP 2.x, and not a lower version.


http://java.sun.com/dtd/ejb-jar_2_0.dtd";>

http://www.jboss.org/j2ee/dtd/jaws_3_0.dtd";>

http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd";>

http://www.jboss.org/j2ee/dtd/jboss.dtd";>

Are what I'm using as doctypes for the respective documents deployed.
Also, near the you of my jbosscmp-jdbc file I have:

   
 java:/MySqlDS
 mySQL
   

-Neal

On Tuesday 09 July 2002 09:14 am, you wrote:
> Hi,
>
> i wrote a simple EntityBean with CMP2. it's implemented like the
> GangsterBean from the JBoss CMP sample. And i have created a new
> Datasource to my SAPDB Database. I put a sapdb-service.xml in
> the deployfolder.
> Everything worked fine, but my GangsterBean always uses the
> DefaultDS and not my SapDBDS.
> I tried the example from the JBoss CMP book and it worked fine
> with my SapDBDS.
>
> I watched the server.log file but my EntityBean uses the
> standardjaws.xml file, not the jbosscmp-jdbc.xml file wich i put
> similar to the example in the META-INF directory.
>
> Can you help me.
>
> Reagards
> Ingo
>
>
> ---
> This sf.net email is sponsored by:ThinkGeek
> Stuff, things, and much much more.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] help with bean lock/transaction error

2002-07-09 Thread Gray Jones

I've been running with 1.4 so I don't think its a vm problem.  I was
thinking about going the other route and trying it with 1.3 instead.

I would be willing to try and trim my stuff down and see if I can come up
with a tidy little test case if I can.  Our code is using castor jdo so it
might be playing a part.  I could try and remove castor and see if the
problem still exists.  I personally am not too worried about it right now.
We've been using jRun as another j2ee server and the app works under that.
I was planning on waiting until jBoss comes out with another release or
until I get the app to a stable state (is there such a thing?) in jRun
before coming back to jBoss.

Bill - if you want me to try and get a reproducible test case let me know.

Gray

- Original Message -
From: "Bill Burke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 09, 2002 9:00 AM
Subject: RE: [JBoss-user] help with bean lock/transaction error


> Although this problem really troubles me I doubt it is a VM problem.  I am
> reluctant to investigate this further because the other 2 times somebody
> reported this bug to me it was user error(but Gray's case doesn't sound
like
> the other two).  I will run a test eventually to see if I can uncover
> anything.  It would really be nice if somebody could get a simple test
case
> that I could run, or provide a dual-processor machine so that I can do
some
> serious tests.  Race conditions show up better on a dual-processor
machine.
>
> Bill
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Alex
> > Loubyansky
> > Sent: Tuesday, July 09, 2002 4:08 AM
> > To: JBoss-User
> > Subject: Re: [JBoss-user] help with bean lock/transaction error
> >
> >
> > Hi guys,
> >
> > I met the same problem as Gray, though I can't say the cause is the
> > same. I had many experiments with primary keys, transactions and so
> > on. And finally I gor it working just changing the vm.
> > My buggy environment: Win2K, JBoss-3.1.0alpha (haven't tried others),
> > Sun's jdk1.3.1_01.
> > After changing to Sun's jdk1.4.0 (don't have another 1.3 for win)
> > everything started to work fine.
> >
> > Is it a known issue? bug?
> >
> > I'm also going to test it on JRockit, RH7.2.
> >
> > alex
> >
> > ==
> > ==
> > From: Gray Jones
> > Subject: Re: [JBoss-user] help with bean lock/transaction error
> > Date: Thu, 27 Jun 2002 13:40:31 -0700
> >
> > --
> > --
> >
> > Hi Bill,
> >
> > No I'm using an Integer as the primary key.  We use a session facade to
> > front the entity bean.  We use local ejb references between the session
> > facade and the entity bean.  The bean in question (ie user entity
> > bean with
> > pk=49) has gotten a fair amount of activity before the exception occurs.
> >
> > >From the log info it looks like the exception occurs on the
> > setEntityContext
> > method.  The actual bean that is used isn't the one that is hosting the
> > entity bean.  It seems to be fairly transient in that it gets it's its
> > entity context sent and then isn't used again.
> >
> > Thanks for any help
> >
> > Here is the log output from a normal sequence
> > 16:00:15,164 INFO  [UserManagerBean] [13948051] getUser 49
> > 16:00:15,164 INFO  [UserManagerBean] [13948051] getUserLocal 49
> > 16:00:15,164 INFO  [UserEntityBean] [15477362].setEntityContext
> > 16:00:15,174 INFO  [User] [9260186].49 getObject
> > 16:00:15,174 INFO  [User] [9260186].49 ejbStore
> >
> > Here is the log output when the exception occurs
> > 16:00:20,312 INFO  [UserManagerBean] [10898281] setSessionContext
> > 16:00:20,312 INFO  [UserManagerBean] [10898281] ejbCreate
> > 16:00:20,312 INFO  [UserManagerBean] [10898281] getUser 49
> > 16:00:20,312 INFO  [UserManagerBean] [10898281] getUserLocal 49
> > 16:00:20,322 INFO  [UserEntityBean] [10555042].setEntityContext
> > 16:00:25,329 ERROR [LogInterceptor] TransactionRolledbackException,
> > causedBy:
> > java.lang.IllegalStateException: removing bean lock and it has tx set!
> > at
> > org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(QueuedP
> > essimisticEJBLock.java:469)
> > at
> > org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:78)
> > at
> > org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockIntercep
> > tor.java:124)
> > at
> > org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreation
> > Interceptor.java:69)
> > at
> > org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
> > rceptor.java:96)
> > at
> > org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
> > torCMT.java:167)
> > at
> > org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:6
> > 1)
> > at
> > org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInter

Re[2]: [JBoss-user] help with bean lock/transaction error

2002-07-09 Thread Alex Loubyansky

Hello Bill,

well, I don't get a super machine :( But as to test case it'll be easy
enough. I can do it.

alex

Tuesday, July 09, 2002, 4:00:24 PM, you wrote:

BB> Although this problem really troubles me I doubt it is a VM problem.  I am
BB> reluctant to investigate this further because the other 2 times somebody
BB> reported this bug to me it was user error(but Gray's case doesn't sound like
BB> the other two).  I will run a test eventually to see if I can uncover
BB> anything.  It would really be nice if somebody could get a simple test case
BB> that I could run, or provide a dual-processor machine so that I can do some
BB> serious tests.  Race conditions show up better on a dual-processor machine.

BB> Bill


>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED]]On Behalf Of Alex
>> Loubyansky
>> Sent: Tuesday, July 09, 2002 4:08 AM
>> To: JBoss-User
>> Subject: Re: [JBoss-user] help with bean lock/transaction error
>>
>>
>> Hi guys,
>>
>> I met the same problem as Gray, though I can't say the cause is the
>> same. I had many experiments with primary keys, transactions and so
>> on. And finally I gor it working just changing the vm.
>> My buggy environment: Win2K, JBoss-3.1.0alpha (haven't tried others),
>> Sun's jdk1.3.1_01.
>> After changing to Sun's jdk1.4.0 (don't have another 1.3 for win)
>> everything started to work fine.
>>
>> Is it a known issue? bug?
>>
>> I'm also going to test it on JRockit, RH7.2.
>>
>> alex
>>
>> ==
>> ==
>> From: Gray Jones
>> Subject: Re: [JBoss-user] help with bean lock/transaction error
>> Date: Thu, 27 Jun 2002 13:40:31 -0700
>>
>> --
>> --
>>
>> Hi Bill,
>>
>> No I'm using an Integer as the primary key.  We use a session facade to
>> front the entity bean.  We use local ejb references between the session
>> facade and the entity bean.  The bean in question (ie user entity
>> bean with
>> pk=49) has gotten a fair amount of activity before the exception occurs.
>>
>> >From the log info it looks like the exception occurs on the
>> setEntityContext
>> method.  The actual bean that is used isn't the one that is hosting the
>> entity bean.  It seems to be fairly transient in that it gets it's its
>> entity context sent and then isn't used again.
>>
>> Thanks for any help
>>
>> Here is the log output from a normal sequence
>> 16:00:15,164 INFO  [UserManagerBean] [13948051] getUser 49
>> 16:00:15,164 INFO  [UserManagerBean] [13948051] getUserLocal 49
>> 16:00:15,164 INFO  [UserEntityBean] [15477362].setEntityContext
>> 16:00:15,174 INFO  [User] [9260186].49 getObject
>> 16:00:15,174 INFO  [User] [9260186].49 ejbStore
>>
>> Here is the log output when the exception occurs
>> 16:00:20,312 INFO  [UserManagerBean] [10898281] setSessionContext
>> 16:00:20,312 INFO  [UserManagerBean] [10898281] ejbCreate
>> 16:00:20,312 INFO  [UserManagerBean] [10898281] getUser 49
>> 16:00:20,312 INFO  [UserManagerBean] [10898281] getUserLocal 49
>> 16:00:20,322 INFO  [UserEntityBean] [10555042].setEntityContext
>> 16:00:25,329 ERROR [LogInterceptor] TransactionRolledbackException,
>> causedBy:
>> java.lang.IllegalStateException: removing bean lock and it has tx set!
>> at
>> org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(QueuedP
>> essimisticEJBLock.java:469)
>> at
>> org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:78)
>> at
>> org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockIntercep
>> tor.java:124)
>> at
>> org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreation
>> Interceptor.java:69)
>> at
>> org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
>> rceptor.java:96)
>> at
>> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
>> torCMT.java:167)
>> at
>> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:6
>> 1)
>> at
>> org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
>> java:129)
>> at
>> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
>> at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
>> at
>> org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLoca
>> lContainerInvoker.java:296)
>> at
>> org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
>> at $Proxy66.getObject(Unknown Source)
>> at
>> com.xtriahc.user.ejb.server.UserManagerBean.getUserById(UserManagerBe
>> an.java:115)
>> - Original Message -
>> From: "Bill Burke" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Wednesday, June 26, 2002 4:24 PM
>> Subject: RE: [JBoss-user] help with bean lock/transaction error
>>
>>
>> > Are you using a customer primary key class (i.e. NOT Integer, Long,
>> String).
>> > Did you implement the equals 

[JBoss-user] Jboss CMP

2002-07-09 Thread Ingo Vietense

Hi,

i wrote a simple EntityBean with CMP2. it's implemented like the 
GangsterBean from the JBoss CMP sample. And i have created a new
Datasource to my SAPDB Database. I put a sapdb-service.xml in
the deployfolder. 
Everything worked fine, but my GangsterBean always uses the DefaultDS
and not my SapDBDS.
I tried the example from the JBoss CMP book and it worked fine
with my SapDBDS.

I watched the server.log file but my EntityBean uses the
standardjaws.xml file, not the jbosscmp-jdbc.xml file wich i put
similar to the example in the META-INF directory.

Can you help me.

Reagards 
Ingo


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBoss3.0 -- any stuts users out there?

2002-07-09 Thread Jamie Burns

I have a struts project working with JBoss/Jetty. I have the struts jars in
server\all\lib. My ApplicationResource.properties is in
server\all\deploy\xxx.ear

- Original Message -
From: "Alex Loubyansky" <[EMAIL PROTECTED]>
To: "Brian Topping" <[EMAIL PROTECTED]>
Cc: "Jboss user list (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, July 09, 2002 9:40 AM
Subject: Re: [JBoss-user] JBoss3.0 -- any stuts users out there?


> Hello Brian,
>
> Tuesday, July 09, 2002, 11:06:58 AM, you wrote:
>
> BT> k, hopefully i'm "real close now"... any other jboss 3 / struts 1.1
users out
> BT> there that can help?
>
> I use 1.0.2 for now.
>
> BT> someone on the struts list reminded me that the struts.jar belonged in
the
> BT> app.war's web-inf/lib folder, not as a peer to the app.war.  that
could
> BT> theoretically solve the problem with the getResource calls that were
failing,
> BT> but then remembered making the jars as peers in the deploy directory
was the
> BT> only thing that had struts working under jboss in the first place.
>
> BT> does *anyone* have struts 1.1 working fully (with i18n/properties)
under
> BT> jboss 3?
>
> I do have with 1.0.2. If didn't changed in that way I can try to help you.
> ApplicationResources (as in the user guide) must be in classes
> directory.
> Indeed, yesterday I had problems with it too. My jsp's began with
> <%@ page language="java" contentType="text/html;charset=Cp1251"%>
> When I supposed to get Cp1251 encoding in a browser. It didn't work
> until I changed it to just
> <%@ page language="java" contentType="text/html"%>
>
> Now works fine. Also, remember to have the locale set correctly if you
> use ApplicationResources_xx.properties.
>
> alex
>
> BT> pullleeeze?? :-)
>
> BT> apache lists are down again, i'm hoping there is someone here that can
help
> BT> out...
>
> BT> thanks!
>
> BT> -b
>
> BT> p.s. this is the stack trace for my failing servlet.  This exact
> BT> configuration runs fine when the struts.lib is pulled out of the
web-inf/lib
> BT> and put directly into the deploy directory, but that breaks
getResource calls
> BT> by the struts.jar util routines for properties...
>
>
>
> BT> 03:55:07,924 INFO  [RequestProcessor] Processing a 'GET' for path
> BT> '/editRegistration'
> BT> 03:55:08,074 ERROR [RequestUtils] Error creating form bean of class
> BT> com.bill2.ejb.CustomerFullForm
> BT> java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
> BT> at java.lang.ClassLoader.defineClass0(Native Method)
> BT> at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
> BT> at
> BT>
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
> BT> at
java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
> BT> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> BT> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> BT> at java.security.AccessController.doPrivileged(Native Method)
> BT> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> BT> at
> BT>
org.jboss.mx.loading.UnifiedClassLoader.findClass(UnifiedClassLoader.java:22
6
> BT> )
> BT> at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
> BT> at
> BT>
org.jboss.mx.loading.UnifiedClassLoader.loadClassLocally(UnifiedClassLoader.
j
> BT> ava:234)
> BT> at
> BT>
org.jboss.mx.loading.UnifiedLoaderRepository.loadClassFromRepository(Unified
L
> BT> oaderRepository.java:507)
> BT> at
> BT>
org.jboss.mx.loading.UnifiedLoaderRepository.loadClass(UnifiedLoaderReposito
r
> BT> y.java:179)
> BT> at
> BT>
org.jboss.mx.loading.UnifiedClassLoader.loadClass(UnifiedClassLoader.java:28
3
> BT> )
> BT> at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
> BT> at
java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:553)
> BT> at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
> BT> at
> BT>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a
> BT> :1355)
> BT> at
> BT>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a
> BT> :1254)
> BT> at
> BT>
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:190)
> BT> at
> BT>
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:21
6
> BT> )
> BT> at
> BT>
org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:610)
> BT> at
> BT>
org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor
.
> BT> java:349)
> BT> at
> BT>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:243)
> BT> at
> BT>
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
> BT> at
> BT> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452)
> BT> at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> BT> at
javax.servlet.http.Htt

RE: [JBoss-user] help with bean lock/transaction error

2002-07-09 Thread Bill Burke

Although this problem really troubles me I doubt it is a VM problem.  I am
reluctant to investigate this further because the other 2 times somebody
reported this bug to me it was user error(but Gray's case doesn't sound like
the other two).  I will run a test eventually to see if I can uncover
anything.  It would really be nice if somebody could get a simple test case
that I could run, or provide a dual-processor machine so that I can do some
serious tests.  Race conditions show up better on a dual-processor machine.

Bill


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Alex
> Loubyansky
> Sent: Tuesday, July 09, 2002 4:08 AM
> To: JBoss-User
> Subject: Re: [JBoss-user] help with bean lock/transaction error
>
>
> Hi guys,
>
> I met the same problem as Gray, though I can't say the cause is the
> same. I had many experiments with primary keys, transactions and so
> on. And finally I gor it working just changing the vm.
> My buggy environment: Win2K, JBoss-3.1.0alpha (haven't tried others),
> Sun's jdk1.3.1_01.
> After changing to Sun's jdk1.4.0 (don't have another 1.3 for win)
> everything started to work fine.
>
> Is it a known issue? bug?
>
> I'm also going to test it on JRockit, RH7.2.
>
> alex
>
> ==
> ==
> From: Gray Jones
> Subject: Re: [JBoss-user] help with bean lock/transaction error
> Date: Thu, 27 Jun 2002 13:40:31 -0700
>
> --
> --
>
> Hi Bill,
>
> No I'm using an Integer as the primary key.  We use a session facade to
> front the entity bean.  We use local ejb references between the session
> facade and the entity bean.  The bean in question (ie user entity
> bean with
> pk=49) has gotten a fair amount of activity before the exception occurs.
>
> >From the log info it looks like the exception occurs on the
> setEntityContext
> method.  The actual bean that is used isn't the one that is hosting the
> entity bean.  It seems to be fairly transient in that it gets it's its
> entity context sent and then isn't used again.
>
> Thanks for any help
>
> Here is the log output from a normal sequence
> 16:00:15,164 INFO  [UserManagerBean] [13948051] getUser 49
> 16:00:15,164 INFO  [UserManagerBean] [13948051] getUserLocal 49
> 16:00:15,164 INFO  [UserEntityBean] [15477362].setEntityContext
> 16:00:15,174 INFO  [User] [9260186].49 getObject
> 16:00:15,174 INFO  [User] [9260186].49 ejbStore
>
> Here is the log output when the exception occurs
> 16:00:20,312 INFO  [UserManagerBean] [10898281] setSessionContext
> 16:00:20,312 INFO  [UserManagerBean] [10898281] ejbCreate
> 16:00:20,312 INFO  [UserManagerBean] [10898281] getUser 49
> 16:00:20,312 INFO  [UserManagerBean] [10898281] getUserLocal 49
> 16:00:20,322 INFO  [UserEntityBean] [10555042].setEntityContext
> 16:00:25,329 ERROR [LogInterceptor] TransactionRolledbackException,
> causedBy:
> java.lang.IllegalStateException: removing bean lock and it has tx set!
> at
> org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(QueuedP
> essimisticEJBLock.java:469)
> at
> org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:78)
> at
> org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockIntercep
> tor.java:124)
> at
> org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreation
> Interceptor.java:69)
> at
> org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
> rceptor.java:96)
> at
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
> torCMT.java:167)
> at
> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:6
> 1)
> at
> org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
> java:129)
> at
> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
> at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
> at
> org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLoca
> lContainerInvoker.java:296)
> at
> org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
> at $Proxy66.getObject(Unknown Source)
> at
> com.xtriahc.user.ejb.server.UserManagerBean.getUserById(UserManagerBe
> an.java:115)
> - Original Message -
> From: "Bill Burke" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 26, 2002 4:24 PM
> Subject: RE: [JBoss-user] help with bean lock/transaction error
>
>
> > Are you using a customer primary key class (i.e. NOT Integer, Long,
> String).
> > Did you implement the equals and hashCode methods correctly?
> Are you sure
> > that your primary key class serializes correctly?  Post the Primary Key
> > class and I'll take a look.
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of Gray Jones
> > > Sent: Wednesday, Ju

Re: [JBoss-user] How to find Deployed Applications in JBoss3.0?--help

2002-07-09 Thread David Jencks

Either stay in the same vm or use ListDeployedAsString

david jencks

On 2002.07.09 01:20:23 -0400 Jagan wrote:
> Hi All,
> 
> I am using JBoss3.0.Here i implemented the following code and i get the
> following exception.
> 
> try {
> ObjectName containerFactory =
> null;
> containerFactory = new
> ObjectName(
> 
> "jboss.system:service=MainDeployer");
> 
> (RMIAdaptorImpl_Stub).invoke(containerFactory,
> "listDeployed",
> new Object[] {},
> 
> new String[]
> {});
> } catch(Exception ex2) {
> ex2.printStackTrace();
> }
> 
> Exception :
> ---
> 
> java.rmi.UnmarshalException: error unmarshalling return; nested
> exception is:
> java.io.WriteAbortedException: Writing aborted by exception;
> java.io.NotSerializableException: org.jboss.deployment.DeploymentInfo
> java.io.WriteAbortedException: Writing aborted by exception;
> java.io.NotSerializableException: org.jboss.deployment.DeploymentInfo
> at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:445)
> at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
> at java.util.ArrayList.readObject(ArrayList.java:531)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:2214)
> 
> at
> java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
> at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
> at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
> at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:300)
> 
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:134)
> at org.jboss.jmx.adaptor.rmi.RMIAdaptorImpl_Stub.invoke(Unknown
> Source)
> at GetMBeanServer.main(GetMBeanServer.java:93)
> 
> Is this the rigth way to get the applications deployed into the JBoss3.0
> server?If yes,how do i resolve this exception?
> If no,please do help me how to find out the deployed applications?
> 
> Thanks in Advance.
> --Jagan.
> 
> 
> 
> 
> ---
> This sf.net email is sponsored by:ThinkGeek
> Stuff, things, and much much more.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss+Log4J+JAXM=Big Headache

2002-07-09 Thread Mary Roderick

Hi,
I have been struggling for a long time with the fact that our use of Log4J
conflicts with JBoss's. Because my concentration is on other areas and not
on logging I have been completely disabling our application's logging when
testing on JBoss rather than trying to figure out how integrate with JBoss.
If someone can give a few words of advice that would be great, but my real
question is.what do I do about JAXM's logging. I cannot shut it off. As
you can see from the stacktrace below JAXM doesn't like the
org.jboss.logging.log4j.ConsoleAppender. I am sure there are good reasons
for using JBoss wrapper classes but how can this be portable/compatible?

Again, my concentration is not logging. I need to test our EJB with JDK1.4
and want to use JBoss 3.0 to do so (I know JBoss isn't claiming
compatibility but several users are using JDK1.4 so I thought I would give
it a shot...) I cannot do my testing because our system intialization
fails. Before I go in and disable SOAP I wanted to see if someone could
help. I have already avoided the JBoss/Log4J problem long enough.

Thanks in advance,
Mary

See the bold text...the last message is of course just a symptom:

[10:34:07,739,Default] log4j:WARN Failed to set property [maxFileSize] to
value "500KB".
[10:34:07,749,Default] java.lang.IllegalArgumentException: object is not an
instance of declaring class
[10:34:07,759,Default]   at java.lang.reflect.Method.invoke(Native Method)
[10:34:07,769,Default]
[10:34:07,779,Default]   at
org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.java:196)
[10:34:07,789,Default]
[10:34:07,799,Default]   at
org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.java:155)
[10:34:07,809,Default]
[10:34:07,819,Default]   at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:120)
[10:34:07,830,Default]
[10:34:07,850,Default]   at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87)
[10:34:07,860,Default]
[10:34:07,870,Default]   at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:645)
[10:34:07,880,Default]
[10:34:07,890,Default]   at
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:603)
[10:34:07,900,Default]
[10:34:07,910,Default]   at
org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:500)
[10:34:07,920,Default]
[10:34:07,930,Default]   at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:406)
[10:34:07,940,Default]
[10:34:07,950,Default]   at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:432)
[10:34:07,970,Default]
[10:34:07,980,Default]   at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:456)
[10:34:07,990,Default]
[10:34:08,000,Default]   at
org.apache.log4j.LogManager.(LogManager.java:145)
[10:34:08,010,Default]
[10:34:08,020,Default]   at
org.apache.log4j.Category.getInstance(Category.java:518)
[10:34:08,030,Default]
[10:34:08,040,Default]   at
org.apache.commons.logging.impl.Log4JCategoryLog.(Log4JCategoryLog.java:97)
[10:34:08,060,Default]
[10:34:08,070,Default]   at
java.lang.reflect.Constructor.newInstance(Native Method)
[10:34:08,080,Default]
[10:34:08,090,Default]   at
org.apache.commons.logging.LogSource.makeNewLogInstance(LogSource.java:281)
[10:34:08,100,Default]
[10:34:08,110,Default]   at
org.apache.commons.logging.LogSource.getInstance(LogSource.java:238)
[10:34:08,120,Default]
[10:34:08,130,Default]   at
com.sun.xml.messaging.client.p2p.HttpSOAPConnection.(HttpSOAPConnection.java:39)
[10:34:08,150,Default]
[10:34:08,160,Default]   at java.lang.Class.forName0(Native Method)
[10:34:08,170,Default]
[10:34:08,180,Default]   at java.lang.Class.forName(Unknown Source)
[10:34:08,190,Default]
[10:34:08,200,Default]   at
com.csc.dip.jvpms.core.JvpmsSystem.initJaxmLogging(Unknown Source)
[10:34:08,210,Default]
[10:34:08,220,Default]   at com.csc.dip.jvpms.core.JvpmsSystem.init(Unknown
Source)
[10:34:08,230,Default]
[10:34:08,250,Default]   at
com.csc.dip.jvpms.web.SettingsConfigServlet.init(Unknown Source)
[10:34:08,260,Default]
[10:34:08,270,Default]   at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
[10:34:08,280,Default]
[10:34:08,290,Default]   at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267)
[10:34:08,300,Default]
[10:34:08,310,Default]   at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
[10:34:08,330,Default]
[10:34:08,340,Default]   at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
[10:34:08,350,Default]
[10:34:08,360,Default]   at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
[10:34:08,370,Default]
[10:34:08,380,Default]   at
org.jboss.web.catalina.EmbeddedCatalinaServiceSX.createWebContext(EmbeddedCatalinaServiceSX.java:428)
[10:34:08,390,Default]
[10:34:08,400,Default]   at
org.jboss.web.catalina.EmbeddedCatalinaServiceSX.perfo

Re: [JBoss-user] Running different versions of a webapp

2002-07-09 Thread marius

Use scoped ears. Search jboss-user, or release notes for 3.0 final for details.

On Tue, Jul 09, 2002 at 10:02:17AM +0200, Keysers, Wonne wrote:
> Hi,
> 
> What's the best way for running different version of the same webapp on 1 JBoss 
>server?
> Same question for running different versions of EJBs, but I think JNDI can help us 
>out there, right?
> 
> Any tips and/or tricks?
> 
> Thanks a lot!
> -Wonne

-- 
MVH
Marius Kotsbak
Boost communications AS


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBoss 3.0 Quick Guide

2002-07-09 Thread Bruno

Quoting Andreas Schaefer <[EMAIL PROTECTED]>:

> Hi Geeks
> 
> I am going to finish the JBoss 3.0 Quick Guide that
> can be found under
> http://sourceforge.net/project/showfiles.php?group_id=22866&release_id=97289
> 
> So if you have feedback for it please send it directly
> to me. Note that the template project is a separate
> download just underneath the Quick Guide.

I think it lacks a Chapter on SSL.
In Chapter 13, you have some information on Tomcat+SSL,
but this info is insufficient. You don't have anything
on RMI over SSL.

You are free to copy my pages on this subject:
http://www.lowagie.com/techtips/

best regards,
Bruno


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBoss3.0 -- any stuts users out there?

2002-07-09 Thread Alex Loubyansky

Hello Brian,

Tuesday, July 09, 2002, 11:06:58 AM, you wrote:

BT> k, hopefully i'm "real close now"... any other jboss 3 / struts 1.1 users out
BT> there that can help?

I use 1.0.2 for now.

BT> someone on the struts list reminded me that the struts.jar belonged in the
BT> app.war's web-inf/lib folder, not as a peer to the app.war.  that could
BT> theoretically solve the problem with the getResource calls that were failing,
BT> but then remembered making the jars as peers in the deploy directory was the
BT> only thing that had struts working under jboss in the first place.  

BT> does *anyone* have struts 1.1 working fully (with i18n/properties) under
BT> jboss 3?

I do have with 1.0.2. If didn't changed in that way I can try to help you.
ApplicationResources (as in the user guide) must be in classes
directory.
Indeed, yesterday I had problems with it too. My jsp's began with
<%@ page language="java" contentType="text/html;charset=Cp1251"%>
When I supposed to get Cp1251 encoding in a browser. It didn't work
until I changed it to just
<%@ page language="java" contentType="text/html"%>

Now works fine. Also, remember to have the locale set correctly if you
use ApplicationResources_xx.properties.

alex

BT> pullleeeze?? :-)

BT> apache lists are down again, i'm hoping there is someone here that can help
BT> out...

BT> thanks!

BT> -b

BT> p.s. this is the stack trace for my failing servlet.  This exact
BT> configuration runs fine when the struts.lib is pulled out of the web-inf/lib
BT> and put directly into the deploy directory, but that breaks getResource calls
BT> by the struts.jar util routines for properties...



BT> 03:55:07,924 INFO  [RequestProcessor] Processing a 'GET' for path
BT> '/editRegistration'
BT> 03:55:08,074 ERROR [RequestUtils] Error creating form bean of class
BT> com.bill2.ejb.CustomerFullForm
BT> java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
BT> at java.lang.ClassLoader.defineClass0(Native Method)
BT> at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
BT> at
BT> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
BT> at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
BT> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
BT> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
BT> at java.security.AccessController.doPrivileged(Native Method)
BT> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
BT> at
BT> org.jboss.mx.loading.UnifiedClassLoader.findClass(UnifiedClassLoader.java:226
BT> )
BT> at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
BT> at
BT> org.jboss.mx.loading.UnifiedClassLoader.loadClassLocally(UnifiedClassLoader.j
BT> ava:234)
BT> at
BT> org.jboss.mx.loading.UnifiedLoaderRepository.loadClassFromRepository(UnifiedL
BT> oaderRepository.java:507)
BT> at
BT> org.jboss.mx.loading.UnifiedLoaderRepository.loadClass(UnifiedLoaderRepositor
BT> y.java:179)
BT> at
BT> org.jboss.mx.loading.UnifiedClassLoader.loadClass(UnifiedClassLoader.java:283
BT> )
BT> at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
BT> at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:553)
BT> at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
BT> at
BT> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java
BT> :1355)
BT> at
BT> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java
BT> :1254)
BT> at
BT> org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:190)
BT> at
BT> org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:216
BT> )
BT> at
BT> org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:610)
BT> at
BT> org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor.
BT> java:349)
BT> at
BT> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:243)
BT> at
BT> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
BT> at
BT> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452)
BT> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
BT> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


BT> ---
BT> This sf.net email is sponsored by:ThinkGeek
BT> Stuff, things, and much much more.
BT> http://thinkgeek.com/sf
BT> ___
BT> JBoss-user mailing list
BT> [EMAIL PROTECTED]
BT> https://lists.sourceforge.net/lists/listinfo/jboss-user

-- 
Best regards,
 Alex Loubyansky




---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBo

Re: [JBoss-user] help with bean lock/transaction error

2002-07-09 Thread Alex Loubyansky

Hi guys,

I met the same problem as Gray, though I can't say the cause is the
same. I had many experiments with primary keys, transactions and so
on. And finally I gor it working just changing the vm.
My buggy environment: Win2K, JBoss-3.1.0alpha (haven't tried others),
Sun's jdk1.3.1_01.
After changing to Sun's jdk1.4.0 (don't have another 1.3 for win) everything started 
to work fine.

Is it a known issue? bug?

I'm also going to test it on JRockit, RH7.2.

alex


From: Gray Jones
Subject: Re: [JBoss-user] help with bean lock/transaction error 
Date: Thu, 27 Jun 2002 13:40:31 -0700 



Hi Bill,

No I'm using an Integer as the primary key.  We use a session facade to
front the entity bean.  We use local ejb references between the session
facade and the entity bean.  The bean in question (ie user entity bean with
pk=49) has gotten a fair amount of activity before the exception occurs.

>From the log info it looks like the exception occurs on the setEntityContext
method.  The actual bean that is used isn't the one that is hosting the
entity bean.  It seems to be fairly transient in that it gets it's its
entity context sent and then isn't used again.

Thanks for any help

Here is the log output from a normal sequence
16:00:15,164 INFO  [UserManagerBean] [13948051] getUser 49
16:00:15,164 INFO  [UserManagerBean] [13948051] getUserLocal 49
16:00:15,164 INFO  [UserEntityBean] [15477362].setEntityContext
16:00:15,174 INFO  [User] [9260186].49 getObject
16:00:15,174 INFO  [User] [9260186].49 ejbStore

Here is the log output when the exception occurs
16:00:20,312 INFO  [UserManagerBean] [10898281] setSessionContext
16:00:20,312 INFO  [UserManagerBean] [10898281] ejbCreate
16:00:20,312 INFO  [UserManagerBean] [10898281] getUser 49
16:00:20,312 INFO  [UserManagerBean] [10898281] getUserLocal 49
16:00:20,322 INFO  [UserEntityBean] [10555042].setEntityContext
16:00:25,329 ERROR [LogInterceptor] TransactionRolledbackException,
causedBy:
java.lang.IllegalStateException: removing bean lock and it has tx set!
at
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(QueuedP
essimisticEJBLock.java:469)
at
org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:78)
at
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockIntercep
tor.java:124)
at
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreation
Interceptor.java:69)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
rceptor.java:96)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
torCMT.java:167)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:6
1)
at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
java:129)
at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
at
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLoca
lContainerInvoker.java:296)
at
org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
at $Proxy66.getObject(Unknown Source)
at
com.xtriahc.user.ejb.server.UserManagerBean.getUserById(UserManagerBe
an.java:115)
- Original Message -
From: "Bill Burke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 26, 2002 4:24 PM
Subject: RE: [JBoss-user] help with bean lock/transaction error


> Are you using a customer primary key class (i.e. NOT Integer, Long,
String).
> Did you implement the equals and hashCode methods correctly?  Are you sure
> that your primary key class serializes correctly?  Post the Primary Key
> class and I'll take a look.
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Gray Jones
> > Sent: Wednesday, June 26, 2002 10:43 AM
> > To: [EMAIL PROTECTED]
> > Subject: [JBoss-user] help with bean lock/transaction error
> >
> >
> > Hello,
> >
> > I'm trying to use castor within a bmp entity bean's.  The
> > application works
> > for awhile and then I start to get the following error.  I have
> > castor setup
> > (I think) to use the transaction manager exposed from jboss so I don't
> > understand why its complaining about the local connection being unknown.
> >
> > Does anybody have any pointers for what I should be looking at to figure
> > this out?
> >
> > Thanks,
> >
> > Gray Jones
> >
> > java.lang.IllegalStateException: removing bean lock and it has tx set!
> >
> > RemoteException occurred in server thread; nested exception is:
> > java.rmi.ServerException: disconnect(ManagedConnection mc: null,
> > Object
> > c: org.jboss.resource.adapter.jdbc.local.LocalConnection@3d246)
> > called with
> > unkn
> > own managed connection; nested exception is:
> >  

[JBoss-user] JBoss3.0 -- any stuts users out there?

2002-07-09 Thread Brian Topping

k, hopefully i'm "real close now"... any other jboss 3 / struts 1.1 users out
there that can help?

someone on the struts list reminded me that the struts.jar belonged in the
app.war's web-inf/lib folder, not as a peer to the app.war.  that could
theoretically solve the problem with the getResource calls that were failing,
but then remembered making the jars as peers in the deploy directory was the
only thing that had struts working under jboss in the first place.  

does *anyone* have struts 1.1 working fully (with i18n/properties) under
jboss 3?

pullleeeze?? :-)

apache lists are down again, i'm hoping there is someone here that can help
out...

thanks!

-b

p.s. this is the stack trace for my failing servlet.  This exact
configuration runs fine when the struts.lib is pulled out of the web-inf/lib
and put directly into the deploy directory, but that breaks getResource calls
by the struts.jar util routines for properties...



03:55:07,924 INFO  [RequestProcessor] Processing a 'GET' for path
'/editRegistration'
03:55:08,074 ERROR [RequestUtils] Error creating form bean of class
com.bill2.ejb.CustomerFullForm
java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
org.jboss.mx.loading.UnifiedClassLoader.findClass(UnifiedClassLoader.java:226
)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at
org.jboss.mx.loading.UnifiedClassLoader.loadClassLocally(UnifiedClassLoader.j
ava:234)
at
org.jboss.mx.loading.UnifiedLoaderRepository.loadClassFromRepository(UnifiedL
oaderRepository.java:507)
at
org.jboss.mx.loading.UnifiedLoaderRepository.loadClass(UnifiedLoaderRepositor
y.java:179)
at
org.jboss.mx.loading.UnifiedClassLoader.loadClass(UnifiedClassLoader.java:283
)
at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:553)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java
:1355)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java
:1254)
at
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:190)
at
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:216
)
at
org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:610)
at
org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor.
java:349)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:243)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Running different versions of a webapp

2002-07-09 Thread Keysers, Wonne
Title: Running different versions of a webapp





Hi,


What's the best way for running different version of the same webapp on 1 JBoss server?
Same question for running different versions of EJBs, but I think JNDI can help us out there, right?


Any tips and/or tricks?


Thanks a lot!
-Wonne





RE: [JBoss-user] ejbHome methods for Stateful Session Bean

2002-07-09 Thread BURRIDGE, David, FM

Hi again,

Ok, the clue was that the Entity container does implement ejbHome methods
but not the Session containers. I checked out the Sun javadoc for
javax.ejb.EJBHome and there it is in black and white ...

'Session Beans do not have finders and home methods'

Sorry to have wasted everyones time.

Regards
David Burridge

-Original Message-
From: BURRIDGE, David, FM 
Sent: 08 July 2002 16:39
To: '[EMAIL PROTECTED]'
Subject: [JBoss-user] ejbHome methods for Stateful Session Bean


Hi,

I've been trying to get ejbHome business methods working on a stateful
session bean.
Whenever I deploy the relevant bean I get a warning that the container has
failed to map my home methods ...

[INFO,J2eeDeployer] Create application AccessControl.jar
[INFO,J2eeDeployer] install EJB module AccessControl.jar
[INFO,ContainerFactory]
Deploying:file:/C:/JBoss-2.4.4/tmp/deploy/Default/AccessControl.jar/
[INFO,ContainerFactory] Deploying Authentication
[INFO,ContainerFactory] Deploying AccessControl
[INFO,StatefulSessionContainer] authenticateUser in bean has not
been mapped
[INFO,AccessControl] Initializing
[INFO,AccessControl] Initialized
[INFO,AccessControl] Starting

In this case my home interface declares the method authenticateUser(), and
my bean provides the implementation as
the method ejbHomeAuthenticateUser().

I've looked at the source for StatefulSessionContainer.java (both the
version I'm using (JBoss 2.4.6) and the current JBoss 3.0 head). In both
cases, the home method mapping source seems to suggest that the container
implements the method rather than my bean. Is there an indirection through
the container (in the same way that create() and ejbCreate() work) or should
the method mapping look up methods directly onto my bean?

Can anyone tell me what I'm doing wrong?

Regards, 
David Burridge





  Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
The Royal Bank of Scotland is registered in Scotland No 90312
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB
 Regulated by the Financial Services Authority



---
This sf.net email is sponsored by:ThinkGeek
Oh, it's good to be a geek.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


***
  Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
The Royal Bank of Scotland is registered in Scotland No 90312
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB 
Regulated by the Financial Services Authority
***


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user