[JBoss-user] Better method to create CMP Bean?

2002-06-13 Thread Gordon Luk

Hi all,


Previous, i write BMP bean by hand... there's fine, becuase i choose
Bean Managment, mean that all manage by me... now, i am lazy... and know
JBOSS become support CMP2.0... it should be handle complex (little bit)
table to table's relation... ok.. when i read the JBOSS CMP Document...
found that i have to write defination files (could i say mapping file)
... jbosscmp-jdbc.xml... ejb.xml... These files could make mistake
easier... :-(

Is there any free GUI tools could generate the jbosscmp-jdbc...
ejb.xml...etc... , it could gather basic info from database ?

Or anyone he have a good method to do this?

Gordon (Lazy man)



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBoss3.0.0 final / tomcat exceptions [SOLVED]

2002-06-13 Thread Ionel Gardais

Scott M Stark wrote:

> The 3.0.0 final with tomcat 4.0.3 bundle works fine for me with the
> ../catalina
> relative path. You must have changed the path from the default. An absolute
> path will always work.
>
> 
> Scott Stark
> Chief Technology Officer
> JBoss Group, LLC
> 

I let JBoss choose the file-tree and with the binary package I've downloaded,
the tomcat4-service.xml file is in jboss_dist/server/default/deploy and the
catalina directory is jboss_dist/catalina

this is more than one level upward (that's why i've used ../../../catalina
instead of ../catalina)

unfortunatly, even with the right number of ../ it complains about not found
classes.
that's why I used an absolute path.

ionel


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBoss3.0.0 final / tomcat exceptions

2002-06-13 Thread Ionel Gardais

Aleksander Grzebyta wrote:

> - Original Message -
> From: "Ionel Gardais" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 12, 2002 4:23 PM
> Subject: Re: [JBoss-user] JBoss3.0.0 final / tomcat exceptions
>
> > I can know deploy the Tomcat service and get Tomcat up and running (i'm
> > getting a HTTP 500 error but at lease i'm getting something)
>
> This is probably because you have no apps deployed by default ?
>
> Olek

I did not change anything to the default installation.
there are  apps in the webapps directory (examples, ROOT, manager,
tomcat-docs and webdav)
i don't know if they are deployed or not by default, I guess no.

but yes, i have no apps of my own deployed.


can't tomcat serve plain html files (like an apache server) without
deploying an app ?


thanks,
ionel


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Re: JBossCMP Documentation Updated

2002-06-13 Thread Ionel Gardais

sorry for the previous mail, i didn't see it was link to your post

ionel


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] RE: LDAP Authentication settings

2002-06-13 Thread Shaw, Chris

Hi,

Thanks for the help & pointers (QS was especially useful)

I now have my login-config.xml file, as below, with the name "LDAPLogin".

How/where do I tell JBoss that the authentication needs to point to this
application-policy?

Thanks

Chris
-=-=-=



   
  
 com.sun.jndi.ldap.LdapCtxFactory   
 ldap://myserver:389
 simple 
 uniquemember=
 ,ou=Groups,o=ecb.int
 uniqueMember
   cn
 ou=Groups,dc=o=ecb.int
   true
 
   


> -Original Message-
> From: Shaw, Chris 
> Sent: 12 June 2002 14:25
> To:   '[EMAIL PROTECTED]'
> Subject:  LDAP Authentication settings
> 
> Hi,
> 
> I'm using the latest (and greatest) JBoss v3.0.0 with integrated Tomcat
> 4.0.3 to deploy a .war web archive - now I want to integrate
> authentication with LDAP.
> 
> I have created the correct entries in my WEB-INF/web.xml file (see below),
> and created a login.html file which posts to: j_security_check.
> 
> Now I am trying to find out how to integrate this with my LDAP server, ie
> where I specify my server name, port, base dn, etc etc.
> 
> I have searched the mail archives and the documentation (though obviously
> not the forums at the mo.!), but all the references seem to be pointing
> towards putting the settings in auth.conf. But when I open up this file I
> see that it states the following:
> // This file is now obsolete but is read for backward compatability
> // Use the login-config.xml file instead
> 
> Can someone point me towards a sample login-config.xml for LDAP
> integration...
> 
> Thanks in advance...
> 
> Chris
> -=-=-=
> 
> WEB-INF/web.xml
>  
> 
>   WEB Resource
>   Web resource description 
>   /
> HEAD
> GET
> POST
> PUT
> DELETE
> 
> 
>   Auth constraint description 
>   CNSRole 
>  
> 
>   NONE
> 
>   
> 
> FORM
> 
> /login.html
> /login-fail.html
>   
> 
> 
> 
> Chris Shaw
> European Central Bank
> DG Information Systems
> * [EMAIL PROTECTED]
> 
> 

Any e-mail message from the European Central Bank (ECB) is sent in good faith but 
shall neither be binding nor construed as constituting a commitment by the ECB except 
where provided for in a written agreement.
This e-mail is intended only for the use of the recipient(s) named above. Any 
unauthorised disclosure, use or dissemination, either in whole or in part, is 
prohibited.
If you have received this e-mail in error, please notify the sender immediately via 
e-mail and delete this e-mail from your system.


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Startup JBoss as stand alone

2002-06-13 Thread kris . kristensen



Env:
Win2000
JBoss2-4-4_Tomcat4-0-1

Subj. meaning without access to the internet

Our problem is that JBoss cannot deploy our archives (.war, .ear etc.) if the
box doesn't have access to the internet. The reason is simple enough
that these archives references a DTD in the deployment descriptors that points
to some URL on the net.
We could of course let the desriptors point at a DTD placed locally on the
system, but that would require that every customer installation of JBoss should
follow
the exact same pattern. For us that is not possible.
But what about placing the DTD's in tomcat??. Would JBoss be able to get the
DTD's from Tomcat at startup?? or is there any way we can place the referenced
DTD's locally, so that JBoss first makes its search locally and if not found
tries to go online to get it?

Best regards

OM Technology A/S Denmark

Kris Kristensen
[EMAIL PROTECTED]



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss3.0.0 final / tuned-updates

2002-06-13 Thread Ionel Gardais

Hi,

Whatever the tuned-updates tag is set to (true or false), my bean are
always stored (ejbStore) right after a findByXXX method has been called.

Is it a bug ?

thanks,
ionel


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] xaRes not enlisted(JBoss3Final)

2002-06-13 Thread Andrew

 Hi, in my stateless session bean client invokes method1 that in turns
invokes method2 of the same bean:
int method1(){
((Bean)ctx.getObject()).method2();//ctx is SessionContext object
}
trans-attributes:
method1- Never
method2- Required.

method1 dosen't make use of any datasources but method2 does.
In moment of method2 invocation throws Exception xaRes not enlisted- I think
JBoss tries to "delist" nonexistent XAResource-it's strange
because method1 not transacted method.

Thanks in advice.




___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Error during deploy of jboss-template project.

2002-06-13 Thread Shamis, Leonid

Hello,

I'm trying to deploy the jboss-template (Project Template for JBoss 3.0 from
Quick Start Guide) project on JBoss 3 final (jboss-3.0.0_tomcat-4.0.3).
The project is built fine but produces lot's of exceptions upon deploy.

The only changes that I've done are the changes from default database
configuration to Oracle (datasource.name=java:/OracleDS,
type.mapping=Oracle8). I used the oracle-service.xml from docs\examples\jca
and I've modified the server\default\conf\login-config.xml according to
instructions.

Please find enclosed the deployment error messages:
===
18:14:48,763 INFO  [Server] JBoss (MX MicroKernel) [3.0.0 Date:200205311035]
Sta
rted in 0m:17s:204ms
18:20:24,716 INFO  [MainDeployer] Starting deployment of package:
file:/D:/jboss
/server/default/deploy/ejb-test.jar
18:20:24,927 INFO  [EJBDeployer]
Bean   : test/TestMessage
Method : public void ejbCreate() throws CreateException
Section: 15.7.3
Warning: The ejbCreate() method must define no application exceptions.

18:20:24,927 INFO  [EJBDeployer]
Bean   : test/TestMessage
Method : public void ejbRemove() throws EJBException
Section: 15.7.5
Warning: The ejbRemove() method must define no application exceptions.

18:20:24,927 INFO  [EjbModule] Creating
18:20:24,957 INFO  [EjbModule] Deploying test/TestEntity
18:20:25,618 INFO  [EjbModule] Deploying test/SequenceGenerator
18:20:25,628 INFO  [EjbModule] Deploying test/TestSession
18:20:25,848 INFO  [EjbModule] Deploying test/TestMessage
18:20:30,625 INFO  [EjbModule] Remove JSR-77 EJB Module:
jboss.management.single
:J2EEApplication= ,J2EEServer=Single,j2eeType=EJBModule,name=ejb-test.jar
18:20:30,625 ERROR [EjbModule] Initialization failed
java.lang.SecurityException: Invalid authentication attempt, principal=null
at
org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubjec
t(BaseConnectionManager2.java:707)
at
org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateC
onnection(BaseConnectionManager2.java:531)
at
org.jboss.resource.connectionmanager.BaseConnectionManager2$Connectio
nManagerProxy.allocateConnection(BaseConnectionManager2.java:812)
at
org.jboss.resource.adapter.jdbc.local.LocalDataSource.getConnection(L
ocalDataSource.java:102)
at
org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.fixTableName(SQLUtil.java:38)
at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.(JDBCEnt
ityBridge.java:103)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.create(JDBCStoreManag
er.java:332)
at
org.jboss.ejb.plugins.CMPPersistenceManager.create(CMPPersistenceMana
ger.java:155)
at org.jboss.ejb.EntityContainer.create(EntityContainer.java:337)
at org.jboss.ejb.Container.invoke(Container.java:789)
at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:894)
at $Proxy6.create(Unknown Source)
at
org.jboss.system.ServiceController.create(ServiceController.java:272)

at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy20.create(Unknown Source)
at org.jboss.ejb.EjbModule.createService(EjbModule.java:392)
at
org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:
134)
at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:894)
at $Proxy6.create(Unknown Source)
at
org.jboss.system.ServiceController.create(ServiceController.java:272)

at
org.jboss.system.ServiceController.create(ServiceController.java:212)

at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy5.create(Unknown Source)
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:380)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:637)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:512)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.i

[JBoss-user] CMP Bug: Bad SQL for FK field

2002-06-13 Thread Jonathan . O'Connor

Guys,
Just to add some information for who ever's fixing the nullable foreign key field problem.
In JBoss 3.0.0 alpha, we had a work around. We declared both a CMP and CMR field for the same DB column (the FK field).
Then in ejbCreate() we called setCmpFKField( obj.getId() ), and in ejbPostCreate() we called setCmrFKObj( obj )

This worked fine, although we did an INSERT and then an unnecessary UPDATE.

When we try this solution in JBoss 3.0.0 Final, the system generates an INSERT statement with two references to the FK Column. Oracle (in our case) rejects this as bad SQL.

Question 1: Is it according to the EJB 2 spec to have a CMR and CMP field for the same DB column?
Question 2: Will the fix for non-null foreign key fields be made available as a patch?

Ciao,
Jonathan O'Connor
Ph: +353 1 872 3305
Mob: +353 86 824 9736
Fax: +353 1 873 3612


Re: [JBoss-user] LDAP Authentication settings

2002-06-13 Thread Marcus Ahnve

The Quick Start Guide provides excellent examples of just that. 

/Marcus

On Wed, 2002-06-12 at 14:25, Shaw, Chris wrote:
> Hi,
> 
> I'm using the latest (and greatest) JBoss v3.0.0 with integrated Tomcat
> 4.0.3 to deploy a .war web archive - now I want to integrate authentication
> with LDAP.
> 
> I have created the correct entries in my WEB-INF/web.xml file (see below),
> and created a login.html file which posts to: j_security_check.
> 
> Now I am trying to find out how to integrate this with my LDAP server, ie
> where I specify my server name, port, base dn, etc etc.
> 
> I have searched the mail archives and the documentation (though obviously
> not the forums at the mo.!), but all the references seem to be pointing
> towards putting the settings in auth.conf. But when I open up this file I
> see that it states the following:
> // This file is now obsolete but is read for backward compatability
> // Use the login-config.xml file instead
> 
> Can someone point me towards a sample login-config.xml for LDAP
> integration...
> 
> Thanks in advance...
> 
> Chris
> -=-=-=
> 
> WEB-INF/web.xml
>  
> 
>   WEB Resource
>   Web resource description 
>   /
> HEAD
> GET
> POST
> PUT
> DELETE
> 
> 
>   Auth constraint description 
>   CNSRole 
>  
> 
>   NONE
> 
>   
> 
> FORM
> 
> /login.html
> /login-fail.html
>   
> 
> 
> 
> Chris Shaw
> > European Central Bank
> > DG Information Systems
> > * [EMAIL PROTECTED]
> 
> 
> 
> Any e-mail message from the European Central Bank (ECB) is sent in good faith but 
>shall neither be binding nor construed as constituting a commitment by the ECB except 
>where provided for in a written agreement.
> This e-mail is intended only for the use of the recipient(s) named above. Any 
>unauthorised disclosure, use or dissemination, either in whole or in part, is 
>prohibited.
> If you have received this e-mail in error, please notify the sender immediately via 
>e-mail and delete this e-mail from your system.
> 
> 
> ___
> 
> Sponsored by:
> ThinkGeek at http://www.ThinkGeek.com/
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
Marcus Ahnve  email: [EMAIL PROTECTED]
Lecando ABOffice: +46-(0)8-634 94 18
SwedenMobile: +46-(0)70-462 19 18
www.lecando.com   ICQ#: 4564879

PGP: 891C 2F84 7CA2 F9F7 9B87 EC2F D93B 961B 4441 9BA2
 B941 DB1A



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] EJB finder with order by and empty where clause generates incorrect SQL

2002-06-13 Thread Peter Doornbosch

Hi,

I get incorrect SQL generated for finders with empty where clause, but 
with a (non-empty) order by, e.g.:

in jaws.xml:
  
findByAllname

in the server log:
  2002-06-13 10:37:22,742 DEBUG 
[org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand] findByAll command 
executing: SELECT department.objectid, name FROM department where  ORDER 
BY name

which causes an sql parse error on "where order by"...

Is this is known bug, or did i miss something w.r.t. jaws.xml syntax 
or? It did work in 2.4.4. Of course, there is a simple work-around 
by supplying a dummy where clause, but i'm just curious if i'm doing 
something wrong or if anybody else run into similar problems

Regards,
Peter



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] HBOS plc Automated Email Administrator

2002-06-13 Thread HBOS plc Email Administrator

The content of the following email which was sent to you has been
checked by the HBOS plc systems and had been found to contain an
attachment/content which we have deemed necessary to block at this time.

This message failed a virus check. Please contact the sender and ask
them to send it in an alternative format

Peter Doornbosch <[EMAIL PROTECTED]>
[JBoss-user] EJB finder with order by and empty where clause generates
incorrect SQL

--- Begin Message ---


--- End Message ---


[JBoss-user] Compatibility of ear file in JBoss/Jetty and JBoss/Tomcat

2002-06-13 Thread Chan Chee Siong

Hi Jules

   I used Jetty-4.0.1 that I downloaded 2 days ago. 
The details are as follows:

   Release Candidate 1. (05/06/2002)

   Jetty  - Jetty-4.0.1
   JettyExtra/jmx - JettyExtra-4.0.1RC2
   JBoss  - JBoss-2.4.6
   JBoss-Jetty- JBoss/contrib/jetty (cvs update -d
-p -r Branch_2_4 -D 'June 5, 2002 05:00am BST')

   Regards and have a nice day.


Cheers
Chee Siong

FROM: Jules GosnellDATE: 06/12/2002 05:13:03SUBJECT:
RE:  [JBoss-user] Compatibility of ear file in
JBoss/Jetty and JBoss/Tomcat Jetty should be 100%
Servlet 2.3 compliant.

Please let me know which version of Jetty you are
running with 2.4.6. If 
you are not using the latest 2.4.6 based release (with
Jetty-4.0.1) then 
please try again with this version.

http://prdownloads.sourceforge.net/jboss/JBoss-2.4.6_Jetty-4.0.1.zip?download

If problems persist, let me know and I shall get them
resolved ASAP.

Cheers,


Jules



__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] LDAP Authentication settings

2002-06-13 Thread Shaw, Chris

Thanks for the mail...

I've now tried the Quick Start Guide which helped get the login-config.xml
right - so I have an application-policy which I call LDAPLogin.

But now I am trying to get JBoss to find my application-policy.

>From the on-line docs I can see that I need to have a jboss-web.xml file
with the following:
  
  java:/jaas/myDomain
  

But now I am trying to find out where to tell JBoss that myDomain points to
LDAPLogin.

The online-docs keep referring to auth.conf but this file seems to have been
deprecated so I want to do it the 'right' way.

Thanks

Chris
-=-=-=


-Original Message-
From: Marcus Ahnve [mailto:[EMAIL PROTECTED]]
Sent: 13 June 2002 10:58
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] LDAP Authentication settings


The Quick Start Guide provides excellent examples of just that. 

/Marcus

On Wed, 2002-06-12 at 14:25, Shaw, Chris wrote:
> Hi,
> 
> I'm using the latest (and greatest) JBoss v3.0.0 with integrated Tomcat
> 4.0.3 to deploy a .war web archive - now I want to integrate
authentication
> with LDAP.
> 
> I have created the correct entries in my WEB-INF/web.xml file (see below),
> and created a login.html file which posts to: j_security_check.
> 
> Now I am trying to find out how to integrate this with my LDAP server, ie
> where I specify my server name, port, base dn, etc etc.
> 
> I have searched the mail archives and the documentation (though obviously
> not the forums at the mo.!), but all the references seem to be pointing
> towards putting the settings in auth.conf. But when I open up this file I
> see that it states the following:
> // This file is now obsolete but is read for backward compatability
> // Use the login-config.xml file instead
> 
> Can someone point me towards a sample login-config.xml for LDAP
> integration...
> 
> Thanks in advance...
> 
> Chris
> -=-=-=
> 
> WEB-INF/web.xml
>  
> 
>   WEB Resource
>   Web resource description 
>   /
> HEAD
> GET
> POST
> PUT
> DELETE
> 
> 
>   Auth constraint description 
>   CNSRole 
>  
> 
>   NONE
> 
>   
> 
> FORM
> 
> /login.html
> /login-fail.html
>   
> 
> 
> 
> Chris Shaw
> > European Central Bank
> > DG Information Systems
> > * [EMAIL PROTECTED]
> 
> 
> 
> Any e-mail message from the European Central Bank (ECB) is sent in good
faith but shall neither be binding nor construed as constituting a
commitment by the ECB except where provided for in a written agreement.
> This e-mail is intended only for the use of the recipient(s) named above.
Any unauthorised disclosure, use or dissemination, either in whole or in
part, is prohibited.
> If you have received this e-mail in error, please notify the sender
immediately via e-mail and delete this e-mail from your system.
> 
> 
> ___
> 
> Sponsored by:
> ThinkGeek at http://www.ThinkGeek.com/
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
Marcus Ahnve  email: [EMAIL PROTECTED]
Lecando ABOffice: +46-(0)8-634 94 18
SwedenMobile: +46-(0)70-462 19 18
www.lecando.com   ICQ#: 4564879

PGP: 891C 2F84 7CA2 F9F7 9B87 EC2F D93B 961B 4441 9BA2
 B941 DB1A



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Any e-mail message from the European Central Bank (ECB) is sent in good faith but 
shall neither be binding nor construed as constituting a commitment by the ECB except 
where provided for in a written agreement.
This e-mail is intended only for the use of the recipient(s) named above. Any 
unauthorised disclosure, use or dissemination, either in whole or in part, is 
prohibited.
If you have received this e-mail in error, please notify the sender immediately via 
e-mail and delete this e-mail from your system.


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Sun customer sample CMP CMR 2.0 app deployed and works

2002-06-13 Thread Aleksander Grzebyta

Hello !

I have succeded in deploying the Sun Customer-Subscriptions-Addresses CMP
CMR 2.0 sample application. It works on Hypersonic and Oracle with a little
modifications in JBoss type mapping. Interesting that I did not need to
provide any jbosscmp-jdbc.xml it works with pure ejb-jar.xml descriptor. I
know that I will need it for IBM DB2 because of restrictions in table and
column name length.

sincerely Olek


Software Team Manager
Talex S.A., Poznan, Poland
e-mail: [EMAIL PROTECTED]





___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Calling entity outside of TX

2002-06-13 Thread Jeff Schnitzer

In all my tests on JBoss 3.0 (release), trying to access an entity bean
outside of a transaction results in "Error getting application tx data
map" from an NPE.  The problem goes away if I set my transaction
attribute to "Required".

Does everyone else experience this same behavior?

Shouldn't this provide me with cached (and possibly stale) data?  The
default commit option for CMP 2.0 beans is B...

Thanks,
Jeff Schnitzer
[EMAIL PROTECTED]

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] questions on starting multiple jboss3.0 instances

2002-06-13 Thread Rajesh Acharya

What's wrong this message is being posted several times??

Raj

On Thursday 13 June 2002 00:36, you wrote:
> questions on starting multiple jboss3.0 instancesyou need to run
>
> run -c myserver
>   -Original Message-
>   From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Sheng Zou
>   Sent: Wednesday, June 12, 2002 11:43 AM
>   To: '[EMAIL PROTECTED]'
>   Subject: [JBoss-user] questions on starting multiple jboss3.0 instances
>
>
>   Hi all,
>
>   I am trying to start multiple jboss3.0 instances, and I made copies of
> jboss-3.0.0/server/default to jboss-3.0.0/server/myserver. Then I run the
> new instance as jboss-3.0.0/bin/run.bat myserver, however, I got this
> message at the beginning:
>
>   run.bat: unused non-option argument: myserver
>   And it doesn't seem to run "myserver" instance.
>
>   Help pls!
>
>   thanks,
>   sheng


Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1"
Content-Transfer-Encoding: quoted-printable
Content-Description: 


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] LDAP Authentication settings

2002-06-13 Thread Chris Chen

It's not in the auth.conf as that's been deprecated.. In the quick start 
guide, you'll find an example configuration for using the 
org.jboss.security.auth.spi.LdapLoginModule.  In the quick start guide, 
it's on page 49.

You need to configure the application-policy name to be the same as the 
what you're referring to in your jboss/security-domain element.  In your 
case, the application-policy name inside login-config.xml will be "myDomain".

Thanks,
Chris


At 02:39 AM 06/13/2002, you wrote:
>Thanks for the mail...
>
>I've now tried the Quick Start Guide which helped get the login-config.xml
>right - so I have an application-policy which I call LDAPLogin.
>
>But now I am trying to get JBoss to find my application-policy.
>
> From the on-line docs I can see that I need to have a jboss-web.xml file
>with the following:
>   
>   java:/jaas/myDomain
>   
>
>But now I am trying to find out where to tell JBoss that myDomain points to
>LDAPLogin.
>
>The online-docs keep referring to auth.conf but this file seems to have been
>deprecated so I want to do it the 'right' way.
>
>Thanks
>
>Chris
>-=-=-=
>
>
>-Original Message-
>From: Marcus Ahnve [mailto:[EMAIL PROTECTED]]
>Sent: 13 June 2002 10:58
>To: [EMAIL PROTECTED]
>Subject: Re: [JBoss-user] LDAP Authentication settings
>
>
>The Quick Start Guide provides excellent examples of just that.
>
>/Marcus
>
>On Wed, 2002-06-12 at 14:25, Shaw, Chris wrote:
> > Hi,
> >
> > I'm using the latest (and greatest) JBoss v3.0.0 with integrated Tomcat
> > 4.0.3 to deploy a .war web archive - now I want to integrate
>authentication
> > with LDAP.
> >
> > I have created the correct entries in my WEB-INF/web.xml file (see below),
> > and created a login.html file which posts to: j_security_check.
> >
> > Now I am trying to find out how to integrate this with my LDAP server, ie
> > where I specify my server name, port, base dn, etc etc.
> >
> > I have searched the mail archives and the documentation (though obviously
> > not the forums at the mo.!), but all the references seem to be pointing
> > towards putting the settings in auth.conf. But when I open up this file I
> > see that it states the following:
> > // This file is now obsolete but is read for backward compatability
> > // Use the login-config.xml file instead
> >
> > Can someone point me towards a sample login-config.xml for LDAP
> > integration...
> >
> > Thanks in advance...
> >
> > Chris
> > -=-=-=
> >
> > WEB-INF/web.xml
> >  
> > 
> >   WEB Resource
> >   Web resource description
> >   /
> > HEAD
> > GET
> > POST
> > PUT
> > DELETE
> > 
> > 
> >   Auth constraint description
> >   CNSRole
> > 
> > 
> >   NONE
> > 
> >   
> > 
> > FORM
> > 
> > /login.html
> > /login-fail.html
> > 
> > 
> >
> > 
> > Chris Shaw
> > > European Central Bank
> > > DG Information Systems
> > > * [EMAIL PROTECTED]
> > 
> >
> >
> > Any e-mail message from the European Central Bank (ECB) is sent in good
>faith but shall neither be binding nor construed as constituting a
>commitment by the ECB except where provided for in a written agreement.
> > This e-mail is intended only for the use of the recipient(s) named above.
>Any unauthorised disclosure, use or dissemination, either in whole or in
>part, is prohibited.
> > If you have received this e-mail in error, please notify the sender
>immediately via e-mail and delete this e-mail from your system.
> >
> >
> > ___
> >
> > Sponsored by:
> > ThinkGeek at http://www.ThinkGeek.com/
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
>--
>Marcus Ahnve  email: [EMAIL PROTECTED]
>Lecando ABOffice: +46-(0)8-634 94 18
>SwedenMobile: +46-(0)70-462 19 18
>www.lecando.com   ICQ#: 4564879
>
>PGP: 891C 2F84 7CA2 F9F7 9B87 EC2F D93B 961B 4441 9BA2
>  B941 DB1A
>
>
>
>___
>
>Don't miss the 2002 Sprint PCS Application Developer's Conference
>August 25-28 in Las Vegas -
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>Any e-mail message from the European Central Bank (ECB) is sent in good 
>faith but shall neither be binding nor construed as constituting a 
>commitment by the ECB except where provided for in a written agreement.
>This e-mail is intended only for the use of the recipient(s) named above. 
>Any unauthorised disclosure, use or dissemination, either in whole or in 
>part, is prohibited.
>If you have received t

[JBoss-user] problem with BLOB in Oracle

2002-06-13 Thread Aleksander Grzebyta

Hello !

I have succeded in deploying the Sun Customer-Subscriptions-Addresses CMP
CMR 2.0 sample application but needed to change the type mapping BLOB to
RAW(255) because of exceptions like below.
I know it is bacause one  CMP filed of SUNSCRIPTION bean is complex type an
is serialized to BLOB. Has anybody found a solution for Oracle BLOB problem
in JBoss.

BTW I think the JBoss stack traces are too large for exceptins because they
are printed for a few times for the same error.

Should I submit a bug report on it ?

sincerely Olek


##

11:57:59,461 INFO  [Engine] CreateSubscriptionJsp: init
11:58:04,758 ERROR [STDERR] java.lang.reflect.UndeclaredThrowableException:
11:58:04,758 ERROR [STDERR] java.rmi.ServerException: Internal error getting
re
ults for field member type
Embedded Exception
Unable to load to deserialize result: java.io.StreamCorruptedException:
InputSt
eam does not contain a serialized object; nested exception is:
javax.ejb.EJBException: Internal error getting results for field
member
type
Embedded Exception
Unable to load to deserialize result: java.io.StreamCorruptedException:
InputSt
eam does not contain a serialized object
11:58:04,758 ERROR [STDERR] javax.ejb.EJBException: Internal error getting
resu
ts for field member type
Embedded Exception
Unable to load to deserialize result: java.io.StreamCorruptedException:
InputSt
eam does not contain a serialized object
11:58:04,758 ERROR [STDERR] at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAb
tractCMPFieldBridge.loadArgumentResults(JDBCAbstractCMPFieldBridge.java:360)
11:58:04,758 ERROR [STDERR] at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAb
tractCMPFieldBridge.loadInstanceResults(JDBCAbstractCMPFieldBridge.java:304)
11:58:04,758 ERROR [STDERR] at
org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntit
Command.execute(JDBCLoadEntityCommand.java:142)
11:58:04,758 ERROR [STDERR] at
org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntit
Command.execute(JDBCLoadEntityCommand.java:62)
11:58:04,758 ERROR [STDERR] at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreMana
er.loadEntity(JDBCStoreManager.java:495)
11:58:04,758 ERROR [STDERR] at
org.jboss.ejb.plugins.CMPPersistenceManager.
oadEntity(CMPPersistenceManager.java:410)
11:58:04,774 ERROR [STDERR] at
org.jboss.resource.connectionmanager.CachedC
nnectionInterceptor.loadEntity(CachedConnectionInterceptor.java:353)
11:58:04,774 ERROR [STDERR] at
org.jboss.ejb.plugins.EntitySynchronizationI
terceptor.invoke(EntitySynchronizationInterceptor.java:310)
11:58:04,774 ERROR [STDERR] at
org.jboss.resource.connectionmanager.CachedC
nnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
11:58:04,774 ERROR [STDERR] at
org.jboss.ejb.plugins.EntityInstanceIntercep
or.invoke(EntityInstanceInterceptor.java:193)
11:58:04,774 ERROR [STDERR] at
org.jboss.ejb.plugins.EntityLockInterceptor.
nvoke(EntityLockInterceptor.java:107)
11:58:04,774 ERROR [STDERR] at
org.jboss.ejb.plugins.EntityCreationIntercep
or.invoke(EntityCreationInterceptor.java:69)
11:58:04,774 ERROR [STDERR] at
org.jboss.ejb.plugins.AbstractTxInterceptor.
nvokeNext(AbstractTxInterceptor.java:96)
11:58:04,774 ERROR [STDERR] at
org.jboss.ejb.plugins.TxInterceptorCMT.runWi
hTransactions(TxInterceptorCMT.java:167)
11:58:04,774 ERROR [STDERR] at
org.jboss.ejb.plugins.TxInterceptorCMT.invok
(TxInterceptorCMT.java:61)
11:58:04,774 ERROR [STDERR] at
org.jboss.ejb.plugins.SecurityInterceptor.in
oke(SecurityInterceptor.java:129)
11:58:04,774 ERROR [STDERR] at
org.jboss.ejb.plugins.LogInterceptor.invoke(
ogInterceptor.java:166)
11:58:04,774 ERROR [STDERR] at
org.jboss.ejb.EntityContainer.invoke(EntityC
ntainer.java:493)
11:58:04,774 ERROR [STDERR] at
org.jboss.ejb.plugins.local.BaseLocalContain
rInvoker.invoke(BaseLocalContainerInvoker.java:296)
11:58:04,774 ERROR [STDERR] at
org.jboss.ejb.plugins.local.EntityProxy.invo
e(EntityProxy.java:38)
11:58:04,774 ERROR [STDERR] at $Proxy32.getTitle(Unknown Source)
11:58:04,774 ERROR [STDERR] at
org.apache.jsp.createSubscription$jsp._jspSe
vice(createSubscription$jsp.java:133)
11:58:04,774 ERROR [STDERR] at
org.apache.jasper.runtime.HttpJspBase.servic
(HttpJspBase.java:107)
11:58:04,774 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpS
rvlet.java:853)
11:58:04,774 ERROR [STDERR] at
org.apache.jasper.servlet.JspServlet$JspServ
etWrapper.service(JspServlet.java:201)
11:58:04,774 ERROR [STDERR] at
org.apache.jasper.servlet.JspServlet.service
spFile(JspServlet.java:381)
11:58:04,774 ERROR [STDERR] at
org.apache.jasper.servlet.JspServlet.service
JspServlet.java:473)
11:58:04,774 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpS
rvlet.java:853)
11:58:04,774 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterCh
in.internalDoFilter(ApplicationFilterChain.java:247)
11:58:04,774 ERROR [STDERR] at

Re: [JBoss-user] JBoss3.0.0 final / tomcat exceptions

2002-06-13 Thread Aleksander Grzebyta

This issue was last days discussed in another thread: the
/server/default/deploy dir is a deploy dir in JBoss. Put there your WAR, JAR
and EAR files as well as expanded WAR archives.

sincerely Olek

- Original Message -
From: "Ionel Gardais" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 13, 2002 9:38 AM
Subject: Re: [JBoss-user] JBoss3.0.0 final / tomcat exceptions


> Aleksander Grzebyta wrote:
>
> > - Original Message -
> > From: "Ionel Gardais" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, June 12, 2002 4:23 PM
> > Subject: Re: [JBoss-user] JBoss3.0.0 final / tomcat exceptions
> >
> > > I can know deploy the Tomcat service and get Tomcat up and running
(i'm
> > > getting a HTTP 500 error but at lease i'm getting something)
> >
> > This is probably because you have no apps deployed by default ?
> >
> > Olek
>
> I did not change anything to the default installation.
> there are  apps in the webapps directory (examples, ROOT, manager,
> tomcat-docs and webdav)
> i don't know if they are deployed or not by default, I guess no.
>
> but yes, i have no apps of my own deployed.
>
>
> can't tomcat serve plain html files (like an apache server) without
> deploying an app ?
>
>
> thanks,
> ionel
>
>
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>
>




___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] LDAP Authentication settings

2002-06-13 Thread Shaw, Chris

I guess that java:/jaas/myDomain in jboss-web.xml points to an
application-policy in login-context.xml with the name "myDomain"   :-)

Chris
-=-=-

-Original Message-
From: Shaw, Chris 
Sent: 13 June 2002 11:39
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] LDAP Authentication settings


Thanks for the mail...

I've now tried the Quick Start Guide which helped get the login-config.xml
right - so I have an application-policy which I call LDAPLogin.

But now I am trying to get JBoss to find my application-policy.

>From the on-line docs I can see that I need to have a jboss-web.xml file
with the following:
  
  java:/jaas/myDomain
  

But now I am trying to find out where to tell JBoss that myDomain points to
LDAPLogin.

The online-docs keep referring to auth.conf but this file seems to have been
deprecated so I want to do it the 'right' way.

Thanks

Chris
-=-=-=


-Original Message-
From: Marcus Ahnve [mailto:[EMAIL PROTECTED]]
Sent: 13 June 2002 10:58
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] LDAP Authentication settings


The Quick Start Guide provides excellent examples of just that. 

/Marcus

On Wed, 2002-06-12 at 14:25, Shaw, Chris wrote:
> Hi,
> 
> I'm using the latest (and greatest) JBoss v3.0.0 with integrated Tomcat
> 4.0.3 to deploy a .war web archive - now I want to integrate
authentication
> with LDAP.
> 
> I have created the correct entries in my WEB-INF/web.xml file (see below),
> and created a login.html file which posts to: j_security_check.
> 
> Now I am trying to find out how to integrate this with my LDAP server, ie
> where I specify my server name, port, base dn, etc etc.
> 
> I have searched the mail archives and the documentation (though obviously
> not the forums at the mo.!), but all the references seem to be pointing
> towards putting the settings in auth.conf. But when I open up this file I
> see that it states the following:
> // This file is now obsolete but is read for backward compatability
> // Use the login-config.xml file instead
> 
> Can someone point me towards a sample login-config.xml for LDAP
> integration...
> 
> Thanks in advance...
> 
> Chris
> -=-=-=
> 
> WEB-INF/web.xml
>  
> 
>   WEB Resource
>   Web resource description 
>   /
> HEAD
> GET
> POST
> PUT
> DELETE
> 
> 
>   Auth constraint description 
>   CNSRole 
>  
> 
>   NONE
> 
>   
> 
> FORM
> 
> /login.html
> /login-fail.html
>   
> 
> 
> 
> Chris Shaw
> > European Central Bank
> > DG Information Systems
> > * [EMAIL PROTECTED]
> 
> 
> 
> Any e-mail message from the European Central Bank (ECB) is sent in good
faith but shall neither be binding nor construed as constituting a
commitment by the ECB except where provided for in a written agreement.
> This e-mail is intended only for the use of the recipient(s) named above.
Any unauthorised disclosure, use or dissemination, either in whole or in
part, is prohibited.
> If you have received this e-mail in error, please notify the sender
immediately via e-mail and delete this e-mail from your system.
> 
> 
> ___
> 
> Sponsored by:
> ThinkGeek at http://www.ThinkGeek.com/
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
Marcus Ahnve  email: [EMAIL PROTECTED]
Lecando ABOffice: +46-(0)8-634 94 18
SwedenMobile: +46-(0)70-462 19 18
www.lecando.com   ICQ#: 4564879

PGP: 891C 2F84 7CA2 F9F7 9B87 EC2F D93B 961B 4441 9BA2
 B941 DB1A



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Any e-mail message from the European Central Bank (ECB) is sent in good
faith but shall neither be binding nor construed as constituting a
commitment by the ECB except where provided for in a written agreement.
This e-mail is intended only for the use of the recipient(s) named above.
Any unauthorised disclosure, use or dissemination, either in whole or in
part, is prohibited.
If you have received this e-mail in error, please notify the sender
immediately via e-mail and delete this e-mail from your system.


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAI

[JBoss-user] Unable load stub in rmi/iiop application

2002-06-13 Thread Lee

Hi,

I just try to make a RMI/IIOP program use JBoss,the server side is an EJB 
and its class is tstejb.WellDayData,the client is a java application.

When I test this program,it generate following exception:


[ Property "jacorb.hashtable_class" not present. Will use default 
hashtable implementation ]

[ ConnectionManager: created new conn to target 10.68.168.68:8683 ]

[ Trying to connect to 10.68.168.68:8683 ]

[ Succeeded to connect to 10.68.168.68:8683 ]

[ ConnectionManager: found conn to target 10.68.168.68:8683 ]

java.lang.ClassCastException: Unable to load class: 
org.omg.stub.tstejb._WellDayDataHome_Stub

at 
com.ibm.rmi.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:269)

at 
javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:136)

at 
javaclt.WellDayDataTestClient1.(WellDayDataTestClient1.java:31)

I'm sorry but I don't know what is _WellDayDataHome_Stub,how can I get it 
and where should I put it.

Please help me.

Lee


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Unable load stub in rmi/iiop application

2002-06-13 Thread Gerard BUNEL

You probably have an EJB interface named org.omg.stub.tstejb.WellDayData for which is 
also
defined the EJBHome interface
which name must be org.omg.stub.tstejb.WellDayDataHome. Then you need to use the 
command:

rmic -iiop 

on your classes to generate the corresponding Stub class

Lee a écrit :

> Hi,
>
> I just try to make a RMI/IIOP program use JBoss,the server side is an EJB
> and its class is tstejb.WellDayData,the client is a java application.
>
> When I test this program,it generate following exception:
>
> [ Property "jacorb.hashtable_class" not present. Will use default
> hashtable implementation ]
>
> [ ConnectionManager: created new conn to target 10.68.168.68:8683 ]
>
> [ Trying to connect to 10.68.168.68:8683 ]
>
> [ Succeeded to connect to 10.68.168.68:8683 ]
>
> [ ConnectionManager: found conn to target 10.68.168.68:8683 ]
>
> java.lang.ClassCastException: Unable to load class:
> org.omg.stub.tstejb._WellDayDataHome_Stub
>
> at
> com.ibm.rmi.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:269)
>
> at
> javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:136)
>
> at
> javaclt.WellDayDataTestClient1.(WellDayDataTestClient1.java:31)
>
> I'm sorry but I don't know what is _WellDayDataHome_Stub,how can I get it
> and where should I put it.
>
> Please help me.
>
> Lee
>
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user

--
[EMAIL PROTECTED] - Atlantide - http://www.ago.fr/atlantide/
Technopole Brest Iroise BP 80802 - Site du Vernis - 29608 Brest cedex - France
Tel. : +33 2 98 05 43 21 - Fax. : +33 2 98 05 20 34
e-mail: [EMAIL PROTECTED]
Centre Affaires Oberthur - 74D, rue de Paris -  35700 Rennes - France
Tel. : +33 2 99 84 15 84 - Fax : +33 2 99 84 15 85
e-mail: [EMAIL PROTECTED]



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] problems with template project

2002-06-13 Thread Enrico Donelli

I downloaded the JBoss.3.0Template.Project.zip from sourceforge,
but when i run ant (after setting the .ant.properties) i get errors 
about missing files.

Any idea?

Thanks a lot!

Enrico


xdoclet-generate:
[ejbdoclet] Generating Javadoc
[ejbdoclet] Javadoc execution
[ejbdoclet] Loading source file 
/data/download/java/template/src/main/ejb/test/entity/TestEntityBean.java...
[ejbdoclet] Loading source file 
/data/download/java/template/src/main/ejb/test/message/TestMessageDrivenBean.java...
[ejbdoclet] Loading source file 
/data/download/java/template/src/main/ejb/test/session/SequenceGeneratorBean.java...
[ejbdoclet] Loading source file 
/data/download/java/template/src/main/ejb/test/session/TestSessionBean.java...
[ejbdoclet] Constructing Javadoc information...
[ejbdoclet] 
/data/download/java/template/src/main/ejb/test/entity/TestEntityBean.java:10: 
cannot resolve symbol
[ejbdoclet] symbol  : class TestEntity
[ejbdoclet] location: package interfaces
[ejbdoclet] import test.interfaces.TestEntity;
[ejbdoclet]^
[ejbdoclet] 
/data/download/java/template/src/main/ejb/test/entity/TestEntityBean.java:11: 
cannot resolve symbol
[ejbdoclet] symbol  : class TestEntityData
[ejbdoclet] location: package interfaces
[ejbdoclet] import test.interfaces.TestEntityData;

... and do on


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Hi

2002-06-13 Thread madhu

Hi all,
anyone have the example code of shopping cart?. i would like to 
implement it.
if any one having ,pl share the code with us. thanks in advance..



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Re: CMP Bug: Bad SQL for FK field

2002-06-13 Thread Jonathan . O'Connor

We fixed our problems by hacking the JBoss source! Thank God for open source.

We changed the getInsertFields() in JDBCCreateEntityCommand to call entity.getCmpFields() instead of entity.getFields(). The entity.getFields() gives you a list of CMP and CMR fields, and of course, if a CMP and CMR field map to same DB column, then we get our bad INSERT statement.

Now, our INSERT command only contains the CMP fields, and none of the nulled CMR fields. Our old workaround works again. We set the FK field using the CMP setter in ejbCreate() and then we have to set it again usin the CMR setter at ejbPostCreate(). Yeah, I know we could just make the column nullable, but don't ask!

Dain, is this a legitimate fix? We reckon its safe as CMR fields should only be set in ejbPostCreate(). Also, the INSERT statement should be smaller.

I was also having a look at the source to see if we could move the record insertion to after the ejbPostCreate. In CMPPersistenceManager, the CreateEntity() method calls store.createEntity(...). Would it be possible to ask the entity for its primary key (This is actually done in the JDBCCreateEntityCommand.execute() method). Use the key to patch up the cache, and then move the call to store.createEntity() to postCreateEntity() method? I'm sure its not so simple, but you never know!

Finally, I suppose this thread should be moved to the developer list.
Ciao,
Jonathan O'Connor
Ph: +353 1 872 3305
Mob: +353 86 824 9736
Fax: +353 1 873 3612


Guys,
Just to add some information for who ever's fixing the nullable foreign key field problem.
In JBoss 3.0.0 alpha, we had a work around. We declared both a CMP and CMR field for the same DB column (the FK field).
Then in ejbCreate() we called setCmpFKField( obj.getId() ), and in ejbPostCreate() we called setCmrFKObj( obj )

This worked fine, although we did an INSERT and then an unnecessary UPDATE.

When we try this solution in JBoss 3.0.0 Final, the system generates an INSERT statement with two references to the FK Column. Oracle (in our case) rejects this as bad SQL.

Question 1: Is it according to the EJB 2 spec to have a CMR and CMP field for the same DB column?
Question 2: Will the fix for non-null foreign key fields be made available as a patch


[JBoss-user] Is deadlock possible with multiple connection pools?

2002-06-13 Thread Geer, Benjamin

Suppose an application uses connections to two resources, resource-A and
resource-B.  There are two connection pools, both with a maximum size of
2.  There are 4 threads.

Imagine this scenario:

Threads 1, 2, 3 and 4 begin transactions.

Threads 1 and 2 request connections from the resource-A pool, and get
them, thus exhausting the pool.

Threads 3 and 4 request connections from the resource-B pool, and get
them, thus exhausting the pool.

Threads 1 and 2 request connections from the resource-B pool, and block
because the pool is empty.

Threads 3 and 4 request connections from the resource-A pool, and block
because the pool is empty.

Deadlock.

Is this possible with JBoss?  If not, how does JBoss deal with this
problem?

Ben


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss 3.0.0 - OraclePreparedStatement ClassCastException

2002-06-13 Thread James Cooley

Hi guys,

 I have an application that works with JBoss 2.4 but has stopped working 
with JBoss 3.0 final. I have configured oracle 8.1.7 with OCI drivers. I 
don't think the problem is with my configuration as:

CallableStatement call = (CallableStatement)prepareCall("{ call 
" + STORED_PROCEDURE_DEF + " }");

works, while:

OracleCallableStatement call = 
(OracleCallableStatement)prepareCall("{ call " + STORED_PROCEDURE_DEF + 
" }");

gives

java.lang.ClassCastException: 
org.jboss.resource.adapter.jdbc.local.LocalCallableStatement

I guess it may have stopped working on

> LocalCallableStatement.java revision 1.1.2.1
> date: 2002/04/26 19:53:52;  author: d_jencks;  state: Exp;  lines: +0 -0
> merged new Local jdbc wrapper from head

and I will try rolling back to the previous revision if nobody can see 
an obvious problem.

James



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Old class object not cleaned

2002-06-13 Thread Qingxian Wang

Problem description:

1. After I deployed a session bean to JBoss3.0.0 running on a Windows2000, I
call a business method of the session bean's remote interface to load a
Class object of a class, e.g. TestJDO, by using reflection and to create a
normal object by calling a constructor of the class and passing some object,
e.g. TestTO,  that has been passed when the business method is called.  The
TestJDO class is deployed within the EJB's JAR file.  Then I undeploy the
EJB.  It is fine.  

2. I deploy the EJB again and repeat the process in the step 1, an
exception, NoSuchMethodException, is caught when trying to call the
constructor of TestJDO and passing in an object of TestTO by calling
getConstructor(Class[] parameterTypes), although calling getConstructors()
method of the Class object proves that such constructor exists.  However,
sometimes, it is ok without any exceptions thrown out.

3. If I use getConstructors() method of the Class object of TestJDO to find
the constructor with the right argument type and pass the TestTO to the
constructor, an exception, IllegalArgumentExcetion, is called.

4. It seems to me that sometimes the old Class object of TestJDO is not
removed from the JVM when the old session bean is undeployed and it causes
the problem.

Any idears?

Regards

Qingxian




This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom it is addressed. If
you have received this e-mail in error you must not copy, distribute or take
any action in reliance on it. Please notify the sender by e-mail or
telephone.
We utilise an anti-virus system and therefore any files sent via e-mail will
have been checked for known viruses. You are however advised to run your own
virus check before opening any attachments received as we will not in any
event accept any liability whatsoever once an e-mail and/or any attachment
is received. Any views expressed by an individual within this e-mail do not
necessarily reflect the views of Systems Union Group plc or any of its
subsidiary companies.


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] LDAP Authentication settings

2002-06-13 Thread Shaw, Chris

Thanks for the help (much appreciated)...I now have a connection with LDAP -
so my PrincipalDN prefix & suffix are ok.

But, my last (hopefully!) problem is connected with roles...
In my web.xml I specify that I have a role called "CNSRole" and in LDAP I
have a group called CNSRole with certain users as members.

Despite re-reading the docs and trying every possible combination that I can
think of, I obviously can't get the attributes correct for the
roleAttributeId and for rolesCtxDN. Basically I just want to know if my user
is in the group specified in web.xml (in this case -
cn=CNSRole,ou=Groups,o=ecb.int with uniquemember=myUID).

 
com.sun.jndi.ldap.LdapCtxFactory 
ldap://myServer:389/ 
simple
uid=

,ou=Users,o=ecb.int 
uniquemember 

cn 
ou=Groups,o=ecb.int 
 

How do I get the role name passed into my LDAP query in the right place?

Thanks (again) for help...

Chris
-=-=-=


-Original Message-
From: Chris Chen [mailto:[EMAIL PROTECTED]]
Sent: 13 June 2002 11:58
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] LDAP Authentication settings


It's not in the auth.conf as that's been deprecated.. In the quick start 
guide, you'll find an example configuration for using the 
org.jboss.security.auth.spi.LdapLoginModule.  In the quick start guide, 
it's on page 49.

You need to configure the application-policy name to be the same as the 
what you're referring to in your jboss/security-domain element.  In your 
case, the application-policy name inside login-config.xml will be
"myDomain".

Thanks,
Chris


At 02:39 AM 06/13/2002, you wrote:
>Thanks for the mail...
>
>I've now tried the Quick Start Guide which helped get the login-config.xml
>right - so I have an application-policy which I call LDAPLogin.
>
>But now I am trying to get JBoss to find my application-policy.
>
> From the on-line docs I can see that I need to have a jboss-web.xml file
>with the following:
>   
>   java:/jaas/myDomain
>   
>
>But now I am trying to find out where to tell JBoss that myDomain points to
>LDAPLogin.
>
>The online-docs keep referring to auth.conf but this file seems to have
been
>deprecated so I want to do it the 'right' way.
>
>Thanks
>
>Chris
>-=-=-=
>
>
>-Original Message-
>From: Marcus Ahnve [mailto:[EMAIL PROTECTED]]
>Sent: 13 June 2002 10:58
>To: [EMAIL PROTECTED]
>Subject: Re: [JBoss-user] LDAP Authentication settings
>
>
>The Quick Start Guide provides excellent examples of just that.
>
>/Marcus
>
>On Wed, 2002-06-12 at 14:25, Shaw, Chris wrote:
> > Hi,
> >
> > I'm using the latest (and greatest) JBoss v3.0.0 with integrated Tomcat
> > 4.0.3 to deploy a .war web archive - now I want to integrate
>authentication
> > with LDAP.
> >
> > I have created the correct entries in my WEB-INF/web.xml file (see
below),
> > and created a login.html file which posts to: j_security_check.
> >
> > Now I am trying to find out how to integrate this with my LDAP server,
ie
> > where I specify my server name, port, base dn, etc etc.
> >
> > I have searched the mail archives and the documentation (though
obviously
> > not the forums at the mo.!), but all the references seem to be pointing
> > towards putting the settings in auth.conf. But when I open up this file
I
> > see that it states the following:
> > // This file is now obsolete but is read for backward compatability
> > // Use the login-config.xml file instead
> >
> > Can someone point me towards a sample login-config.xml for LDAP
> > integration...
> >
> > Thanks in advance...
> >
> > Chris
> > -=-=-=
> >
> > WEB-INF/web.xml
> >  
> > 
> >   WEB Resource
> >   Web resource description
> >   /
> > HEAD
> > GET
> > POST
> > PUT
> > DELETE
> > 
> > 
> >   Auth constraint description
> >   CNSRole
> > 
> > 
> >   NONE
> > 
> >   
> > 
> > FORM
> > 
> > /login.html
> > /login-fail.html
> > 
> > 
> >
> > 
> > Chris Shaw
> > > European Central Bank
> > > DG Information Systems
> > > * [EMAIL PROTECTED]
> > 
> >
> >
> > Any e-mail message from the European Central Bank (ECB) is sent in good
>faith but shall neither be binding nor construed as constituting a
>commitment by the ECB except where provided for in a written agreement.
> > This e-mail is intended only for the use of the recipient(s) named
above.
>Any unauthorised disclosure, use or dissemination, either in whole or in
>part, is prohibited.
> > If you have received this e-mail in error, please notify the sender
>immediately via e-mail and delete this e-mail from your system.
> >
> >
> > ___
> >
> > Sponsored by:
> > ThinkGeek at http://www.ThinkGeek.com/
> > ___

Re: [JBoss-user] JBoss3.0.0 final / tomcat exceptions

2002-06-13 Thread Ionel Gardais

Aleksander Grzebyta wrote:

> This issue was last days discussed in another thread: the
> /server/default/deploy dir is a deploy dir in JBoss. Put there your WAR, JAR
> and EAR files as well as expanded WAR archives.
>
> sincerely Olek

thanks,

this will serve my own apps.
but is it possible for tomcat (at least the one include in JBoss) to serve only html 
files
like a plain http server ?


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Better method to create CMP Bean?

2002-06-13 Thread David Jencks

xdoclet.

middlegen for generating xdoclet-ready beans from a db.

david jencks

On 2002.06.13 03:18:07 -0400 Gordon Luk wrote:
> Hi all,
> 
> 
> Previous, i write BMP bean by hand... there's fine, becuase i choose
> Bean Managment, mean that all manage by me... now, i am lazy... and know
> JBOSS become support CMP2.0... it should be handle complex (little bit)
> table to table's relation... ok.. when i read the JBOSS CMP Document...
> found that i have to write defination files (could i say mapping file)
> ... jbosscmp-jdbc.xml... ejb.xml... These files could make mistake
> easier... :-(
> 
> Is there any free GUI tools could generate the jbosscmp-jdbc...
> ejb.xml...etc... , it could gather basic info from database ?
> 
> Or anyone he have a good method to do this?
> 
> Gordon (Lazy man)
> 
> 
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Error during deploy of jboss-template project.

2002-06-13 Thread David Jencks

At least you have to properly set up a section in login-conf.xml for your
oracle datasource. See the instructions in the oracle-service.xml file for
how, also the quickstart guide.

david jencks

On 2002.06.13 04:30:31 -0400 "Shamis, Leonid" wrote:
> Hello,
> 
> I'm trying to deploy the jboss-template (Project Template for JBoss 3.0
> from
> Quick Start Guide) project on JBoss 3 final (jboss-3.0.0_tomcat-4.0.3).
> The project is built fine but produces lot's of exceptions upon deploy.
> 
> The only changes that I've done are the changes from default database
> configuration to Oracle (datasource.name=java:/OracleDS,
> type.mapping=Oracle8). I used the oracle-service.xml from
> docs\examples\jca
> and I've modified the server\default\conf\login-config.xml according to
> instructions.
> 
> Please find enclosed the deployment error messages:
> ===
> 18:14:48,763 INFO  [Server] JBoss (MX MicroKernel) [3.0.0
> Date:200205311035]
> Sta
> rted in 0m:17s:204ms
> 18:20:24,716 INFO  [MainDeployer] Starting deployment of package:
> file:/D:/jboss
> /server/default/deploy/ejb-test.jar
> 18:20:24,927 INFO  [EJBDeployer]
> Bean   : test/TestMessage
> Method : public void ejbCreate() throws CreateException
> Section: 15.7.3
> Warning: The ejbCreate() method must define no application exceptions.
> 
> 18:20:24,927 INFO  [EJBDeployer]
> Bean   : test/TestMessage
> Method : public void ejbRemove() throws EJBException
> Section: 15.7.5
> Warning: The ejbRemove() method must define no application exceptions.
> 
> 18:20:24,927 INFO  [EjbModule] Creating
> 18:20:24,957 INFO  [EjbModule] Deploying test/TestEntity
> 18:20:25,618 INFO  [EjbModule] Deploying test/SequenceGenerator
> 18:20:25,628 INFO  [EjbModule] Deploying test/TestSession
> 18:20:25,848 INFO  [EjbModule] Deploying test/TestMessage
> 18:20:30,625 INFO  [EjbModule] Remove JSR-77 EJB Module:
> jboss.management.single
> :J2EEApplication= ,J2EEServer=Single,j2eeType=EJBModule,name=ejb-test.jar
> 18:20:30,625 ERROR [EjbModule] Initialization failed
> java.lang.SecurityException: Invalid authentication attempt,
> principal=null
> at
> org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubjec
> t(BaseConnectionManager2.java:707)
> at
> org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateC
> onnection(BaseConnectionManager2.java:531)
> at
> org.jboss.resource.connectionmanager.BaseConnectionManager2$Connectio
> nManagerProxy.allocateConnection(BaseConnectionManager2.java:812)
> at
> org.jboss.resource.adapter.jdbc.local.LocalDataSource.getConnection(L
> ocalDataSource.java:102)
> at
> org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.fixTableName(SQLUtil.java:38)
> at
> org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.(JDBCEnt
> ityBridge.java:103)
> at
> org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.create(JDBCStoreManag
> er.java:332)
> at
> org.jboss.ejb.plugins.CMPPersistenceManager.create(CMPPersistenceMana
> ger.java:155)
> at org.jboss.ejb.EntityContainer.create(EntityContainer.java:337)
> at org.jboss.ejb.Container.invoke(Container.java:789)
> at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)
> at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
> at
> org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
> ler.java:894)
> at $Proxy6.create(Unknown Source)
> at
> org.jboss.system.ServiceController.create(ServiceController.java:272)
> 
> at java.lang.reflect.Method.invoke(Native Method)
> at
> org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
> nDispatcher.java:284)
> at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
> at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
> at $Proxy20.create(Unknown Source)
> at org.jboss.ejb.EjbModule.createService(EjbModule.java:392)
> at
> org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:
> 134)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
> nDispatcher.java:284)
> at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
> at
> org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
> ler.java:894)
> at $Proxy6.create(Unknown Source)
> at
> org.jboss.system.ServiceController.create(ServiceController.java:272)
> 
> at
> org.jboss.system.ServiceController.create(ServiceController.java:212)
> 
> at java.lang.reflect.Method.invoke(Native Method)
> at
> org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
> nDispatcher.java:284)
> at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
> at org.jboss.util.jmx.MBeanProxy

Re: [JBoss-user] Startup JBoss as stand alone

2002-06-13 Thread Jules Gosnell

I would be surprised if this were still the case with :

http://prdownloads.sourceforge.net/jboss/JBoss-2.4.6_Tomcat-4.0.3.zip?download

Give it a try !


Jules


[EMAIL PROTECTED] wrote:
> 
> Env:
> Win2000
> JBoss2-4-4_Tomcat4-0-1
> 
> Subj. meaning without access to the internet
> 
> Our problem is that JBoss cannot deploy our archives (.war, .ear etc.) if the
> box doesn't have access to the internet. The reason is simple enough
> that these archives references a DTD in the deployment descriptors that points
> to some URL on the net.
> We could of course let the desriptors point at a DTD placed locally on the
> system, but that would require that every customer installation of JBoss should
> follow
> the exact same pattern. For us that is not possible.
> But what about placing the DTD's in tomcat??. Would JBoss be able to get the
> DTD's from Tomcat at startup?? or is there any way we can place the referenced
> DTD's locally, so that JBoss first makes its search locally and if not found
> tries to go online to get it?
> 
> Best regards
> 
> OM Technology A/S Denmark
> 
> Kris Kristensen
> [EMAIL PROTECTED]
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user




___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Is deadlock possible with multiple connection pools?

2002-06-13 Thread David Jencks

This is will occur if you are using local transactions, thus not getting xa
2pc semantics.  It will not occur (at least in jboss 3.0) if you are using
xa transactions and close the connection handles as soon as you are done
doing each piece of work.  The connection can be used for many open
transactions sequentially.  I've notated when to close the connections.

This points out the importance of closing connections as soon as you are
done with them and properly implemented xa drivers.

There is a similar but simpler example.  If you have only one pool, one
connections, and two methods with Requires New tx setting, and one method
calls the other, there is also a block without xa.

david jencks

On 2002.06.13 07:12:25 -0400 "Geer, Benjamin" wrote:
> Suppose an application uses connections to two resources, resource-A and
> resource-B.  There are two connection pools, both with a maximum size of
> 2.  There are 4 threads.
> 
> Imagine this scenario:
> 
> Threads 1, 2, 3 and 4 begin transactions.
> 
> Threads 1 and 2 request connections from the resource-A pool, and get
> them, thus exhausting the pool.

They do some work and close the connections, thus making them available to
3 and 4, even though the transactions have not yet committed.
> 
> Threads 3 and 4 request connections from the resource-B pool, and get
> them, thus exhausting the pool.

They also do some work and close the connections.
> 
> Threads 1 and 2 request connections from the resource-B pool, and block
> because the pool is empty.
> 

They now get the connections from the pool, enroll them in the appropriate
tx, and do some more work.  Then they close them
> Threads 3 and 4 request connections from the resource-A pool, and block
> because the pool is empty.

Likewise, they get connections, do work, and close them.

When the txs commit, the tx manager is free to choose either connection
from each pool to commit either of the transactions.
> 
> Deadlock.
> 
> Is this possible with JBoss?  If not, how does JBoss deal with this
> problem?
> 
> Ben
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBoss 3.0.0 - OraclePreparedStatement ClassCastException

2002-06-13 Thread David Jencks

If you really need an OraclePreparedStatement, get the Oracle connection
from the Connection and get the prepared statement from it.  I don't
recommend using the previous version of the local wrapper.  Among other
things, it is unsupported.

david jencks


On 2002.06.13 07:21:20 -0400 James Cooley wrote:
> Hi guys,
> 
>  I have an application that works with JBoss 2.4 but has stopped working 
> with JBoss 3.0 final. I have configured oracle 8.1.7 with OCI drivers. I 
> don't think the problem is with my configuration as:
> 
> CallableStatement call = (CallableStatement)prepareCall("{ call 
> " + STORED_PROCEDURE_DEF + " }");
> 
> works, while:
> 
> OracleCallableStatement call = 
> (OracleCallableStatement)prepareCall("{ call " + STORED_PROCEDURE_DEF + 
> " }");
> 
> gives
> 
> java.lang.ClassCastException: 
> org.jboss.resource.adapter.jdbc.local.LocalCallableStatement
> 
> I guess it may have stopped working on
> 
> > LocalCallableStatement.java revision 1.1.2.1
> > date: 2002/04/26 19:53:52;  author: d_jencks;  state: Exp;  lines: +0
> -0
> > merged new Local jdbc wrapper from head
> 
> and I will try rolling back to the previous revision if nobody can see 
> an obvious problem.
> 
> James
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Compatibility of ear file in JBoss/Jetty and JBoss/Tomcat

2002-06-13 Thread Jules Gosnell

Chan Chee Siong wrote:
> Hi all
> 
>Anyone knows if an ear file can be deployed
> (without any changes) in both JBoss/Tomcat and
> JBoss/Jetty environment?
> 
>I have deployed an ear file and run it successfully
> in JBoss 2.4.6/Tomcat 4.0.3 but when I deployed to
> Jboss/Jetty environment, I have the following
> problems:
> 
>(1)  When I typed http://localhost:8080 as URL in
> the browser, it will redirect to http://jsp/login.jsp
> for Jboss/Jetty. The page is being redirected to
 > http://localhost:8080/jsp/login.jsp correctly for my
 > JBoss/Tomcat settings.
 >

Do you really mean

http://jsp/login.jsp

or

http://localhost/jsp/login.jsp

?

Can you mail me the war/ear that is causing the problem - and the source 
code if possible

>(2)  After I have manually type the full address
> and login to the system, I observed that my style
> sheets and images are not displayed correctly.
> 

can you expand - are they displayed at all etc..

>Are there any other settings for Jetty I must
> configure so that my application will run similarly in
> both JBoss/Tomcat and JBoss/Jetty environments ?
> 

Provided that your app is staying within the spec (and Tomcat is too) 
the two containers should behave identically. You should not have to 
reconfigure anything

I'm on it,

Send me whatever you can,


Jules

>Thanks in advance.
> 
> Cheers
> Chee Siong
> 
> __
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
> ___
> 
> Sponsored by:
> ThinkGeek at http://www.ThinkGeek.com/
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user




___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] RE: error running client against 3.0

2002-06-13 Thread Eric Kaplan

ok, i'll repeat the question.  pls let me know if there's something i'm not
doing that's brain-dead simple to fix.

>  -Original Message-
> From: Eric Kaplan [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, June 12, 2002 4:04 PM
> To:   Jboss-User
> Subject:  error running client against 3.0
> 
> I'm in the process of migrating to 3.0.  When I run my client, which ran
> fine before, I now get the following.  I pulled in what I think are the
> new client libraries.  Is this a configuration issue?
> 
> Regards
> 
> Eric
> 
> Error initializing connections to application server
> javax.naming.CommunicationException.  Root exception is
> java.lang.ClassNotFoundException: org.jboss.proxy.ClientContainer (no
> security manager: RMI class loader disabled)
>   at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:318)
>   at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:132)
>   at
> sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:143
> )
>   at
> java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:918)
>   at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
>   at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
>   at
> java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
>   at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
>   at
> java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
>   at
> java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
>   at
> java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
>   at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
>   at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
>   at java.rmi.MarshalledObject.get(MarshalledObject.java:138)
>   at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:353)
>   at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
>   at javax.naming.InitialContext.lookup(InitialContext.java:350)
>   at
> com.armanta.ejb.ArmantaDataAbstraction.getHome(ArmantaDataAbstraction.java
> :44)
>   at com.armanta.rptgen.DataServer.(DataServer.java:134)
>   at com.armanta.app.portviewer.PortGui.main(PortGui.java:461)
> *
> 
> C:\armanta-abp>
> 
> Eric Kaplan
> Armanta, Inc.
> 55 Madison Ave.
> Morristown, NJ  07960
> Phone: (973) 326-9600
> 



winmail.dat
Description: application/ms-tnef


Re: [JBoss-user] RE: error running client against 3.0

2002-06-13 Thread David Jencks

Did you verify that the missing class is in the jars in your client
classpath?

david jencks

On 2002.06.13 08:40:33 -0400 Eric Kaplan wrote:
> ok, i'll repeat the question.  pls let me know if there's something i'm
> not
> doing that's brain-dead simple to fix.
> 
> >  -Original Message-
> > From:   Eric Kaplan [mailto:[EMAIL PROTECTED]] 
> > Sent:   Wednesday, June 12, 2002 4:04 PM
> > To: Jboss-User
> > Subject:error running client against 3.0
> > 
> > I'm in the process of migrating to 3.0.  When I run my client, which
> ran
> > fine before, I now get the following.  I pulled in what I think are the
> > new client libraries.  Is this a configuration issue?
> > 
> > Regards
> > 
> > Eric
> > 
> > Error initializing connections to application server
> > javax.naming.CommunicationException.  Root exception is
> > java.lang.ClassNotFoundException: org.jboss.proxy.ClientContainer (no
> > security manager: RMI class loader disabled)
> > at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:318)
> > at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:132)
> > at
> > sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:143
> > )
> > at
> > java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:918)
> > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
> > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
> > at
> > java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
> > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
> > at
> > java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
> > at
> > java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
> > at
> > java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
> > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
> > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
> > at java.rmi.MarshalledObject.get(MarshalledObject.java:138)
> > at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:353)
> > at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
> > at javax.naming.InitialContext.lookup(InitialContext.java:350)
> > at
> > com.armanta.ejb.ArmantaDataAbstraction.getHome(ArmantaDataAbstraction.java
> > :44)
> > at com.armanta.rptgen.DataServer.(DataServer.java:134)
> > at com.armanta.app.portviewer.PortGui.main(PortGui.java:461)
> > *
> > 
> > C:\armanta-abp>
> > 
> > Eric Kaplan
> > Armanta, Inc.
> > 55 Madison Ave.
> > Morristown, NJ  07960
> > Phone: (973) 326-9600
> > 
> 

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] RE: error running client against 3.0

2002-06-13 Thread Eric Kaplan

pls ignore, mea culpa, sorry bout that.  the price of automation, i pulled
the libraries over but when i built for some reason they did not get copied
over

>  -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, June 13, 2002 8:41 AM
> To:   Eric Kaplan; Jboss-User
> Subject:  [JBoss-user] RE: error running client against 3.0
> 
> ok, i'll repeat the question.  pls let me know if there's something i'm
> not doing that's brain-dead simple to fix.
> 
>-Original Message-
>   From:   Eric Kaplan [mailto:[EMAIL PROTECTED]] 
>   Sent:   Wednesday, June 12, 2002 4:04 PM
>   To: Jboss-User
>   Subject:error running client against 3.0
> 
>   I'm in the process of migrating to 3.0.  When I run my client, which
> ran fine before, I now get the following.  I pulled in what I think are
> the new client libraries.  Is this a configuration issue?
> 
>   Regards
> 
>   Eric
> 
>   Error initializing connections to application server
>   javax.naming.CommunicationException.  Root exception is
> java.lang.ClassNotFoundException: org.jboss.proxy.ClientContainer (no
> security manager: RMI class loader disabled)
>   at
> sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:318)
>   at
> sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:132)
>   at
> sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:143
> )
>   at
> java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:918)
>   at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
>   at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
>   at
> java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
>   at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
>   at
> java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
>   at
> java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
>   at
> java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
>   at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
>   at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
>   at java.rmi.MarshalledObject.get(MarshalledObject.java:138)
>   at
> org.jnp.interfaces.NamingContext.lookup(NamingContext.java:353)
>   at
> org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
>   at
> javax.naming.InitialContext.lookup(InitialContext.java:350)
>   at
> com.armanta.ejb.ArmantaDataAbstraction.getHome(ArmantaDataAbstraction.java
> :44)
>   at
> com.armanta.rptgen.DataServer.(DataServer.java:134)
>   at com.armanta.app.portviewer.PortGui.main(PortGui.java:461)
>   *
> 
>   C:\armanta-abp>
> 
>   Eric Kaplan
>   Armanta, Inc.
>   55 Madison Ave.
>   Morristown, NJ  07960
>   Phone: (973) 326-9600
> 



winmail.dat
Description: application/ms-tnef


RE: [JBoss-user] RE: error running client against 3.0

2002-06-13 Thread Eric Kaplan

i should have done this earlier...  we use ant to build, and while i put
them in the proper source directory, the destination directory never
received the files...

sorry about that

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of David Jencks
Sent: Thursday, June 13, 2002 8:54 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] RE: error running client against 3.0


Did you verify that the missing class is in the jars in your client
classpath?

david jencks

On 2002.06.13 08:40:33 -0400 Eric Kaplan wrote:
> ok, i'll repeat the question.  pls let me know if there's something i'm
> not
> doing that's brain-dead simple to fix.
>
> >  -Original Message-
> > From:   Eric Kaplan [mailto:[EMAIL PROTECTED]]
> > Sent:   Wednesday, June 12, 2002 4:04 PM
> > To: Jboss-User
> > Subject:error running client against 3.0
> >
> > I'm in the process of migrating to 3.0.  When I run my client, which
> ran
> > fine before, I now get the following.  I pulled in what I think are the
> > new client libraries.  Is this a configuration issue?
> >
> > Regards
> >
> > Eric
> >
> > Error initializing connections to application server
> > javax.naming.CommunicationException.  Root exception is
> > java.lang.ClassNotFoundException: org.jboss.proxy.ClientContainer (no
> > security manager: RMI class loader disabled)
> > at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:318)
> > at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:132)
> > at
> >
sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:143
> > )
> > at
> >
java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:918)
> > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
> > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
> > at
> > java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
> > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
> > at
> > java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
> > at
> > java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
> > at
> > java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
> > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
> > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
> > at java.rmi.MarshalledObject.get(MarshalledObject.java:138)
> > at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:353)
> > at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
> > at javax.naming.InitialContext.lookup(InitialContext.java:350)
> > at
> >
com.armanta.ejb.ArmantaDataAbstraction.getHome(ArmantaDataAbstraction.java
> > :44)
> > at com.armanta.rptgen.DataServer.(DataServer.java:134)
> > at com.armanta.app.portviewer.PortGui.main(PortGui.java:461)
> > *
> >
> > C:\armanta-abp>
> >
> > Eric Kaplan
> > Armanta, Inc.
> > 55 Madison Ave.
> > Morristown, NJ  07960
> > Phone: (973) 326-9600
> >
>

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Error with generated sql statements for cmp using cloudscape

2002-06-13 Thread Scheil, Sven

hello,

i've tried to deploy an entity bean on jboss 3.0.0 that i've developed and
tested with the j2ee ri and cloudscape.

cloudscape's table names are case sensitive. the sql statements generated
from the persistence manager of the j2ee ri are build with "" around the
table names. this is the reason why the combination j2ee ri and cloudscape
works with a tablename like "AdressTypEJBTable".

deploying the same bean on jboss is ok. but getting a reference from my
client app i.e. with getByPrimaryKey() results in an error:

Find failed SQL Exception: Table 'ADRESSTYPEJBTABLE' does not exist.


my question: where can i modify the generation of the sql statements, so it
is using "" around the names?

thanx

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] jboss, cocoon, jetty

2002-06-13 Thread Emmanuel Charpentier


  Hi

  I've managed to install and configure different setups:
  1) jetty+cocoon, fast and clean. Startup takes no time and pages take
  only 10 to 20 milliseconds to execute
  2) jboss/jetty+cocoon, huge and slow. Statup takes two minutes, and
  pages take whole seconds to execute.

  jetty+cocoon standalone talking to jboss is a great setup, but
  security seem to be much tougher to configure if at all possible (JAAS
  security).

  Plus I have to install xerces in jboss/lib and add it into jboss's
  classpath otherwise I get
  "SAX2 driver class org.apache.xerces.parsers.SAXParser not found"

  Anybody know anything or has any experience with that setup?
  Why is jboss/jetty+cocoon so painfully slo?
  Why isn't jboss's crimson.jar and jaxp.jar sufficient as a xml parser???

  emmanuel charpentier

  gnu-linux/debian, j2sdk1.3



java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
  at
org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:121)
  at
org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:96)
  at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:377)
  at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:365)
  at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:328)
  at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:291)
  at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
  at java.lang.Thread.run(Thread.java:484)


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Hi

2002-06-13 Thread James Ward

We should be having an Alpha Release today.  Check out the Cayambe
project:
http://www.cayambe.org
http://sf.net/projects/cayambe

We follow many of the Core J2EE Patterns and we are using Struts.  And
of-course it runs in JBoss 2.4.x and JBoss 3.0.

Let me know if you have any questions.

-James


-Original Message-
From: madhu [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 13, 2002 5:06 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Hi

Hi all,
anyone have the example code of shopping cart?. i would like to 
implement it.
if any one having ,pl share the code with us. thanks in advance..



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] jms transaction problem - local and xa transactions

2002-06-13 Thread Tim



I am accessing some entity beans (cmp) from the 
onmessage() method of a message driven bean.
The mdb has a transaction attribute of 
"Required".
 
If I do something like the following in the 
onmessage() method:
 
//Create a new orderOrderLocal order = 
orderHome.create(...);//Create some order-itemsfor (int i = 0; i 
< 20; i++){OrderItemLocal orderItem = 
orderItemHome.create(...);}
//Now try and iterate through the itemsIterator 
iter = order.getItems().iterator();The call to getItems() leads to an 
exception being thrown from the call to getItems() saying that the transaction 
has expired.
 
When I change the transaction attribute to 
"NotSupported"
 
JBoss gives me the following warning on the call to 
getItems()
 
2002-06-12 16:15:53,913 
WARN[org.jboss.resource.connectionmanager.LocalTxConnectionManager$LocalConnectionEventListener][Thread 
Pool Worker-0] prepare called on a local tx. You arenot getting the 
semantics you expect!
 
So it seems that one of the resources is 
using local transactions - consequently the transactions aren't being linked up 
and the calls to the entity beans are causing new transactions to be 
created.
 
But i do not know whether it is jms or the database 
doing this.
 
I guess there is someway to configure jms and 
the jdbc resources to use xa transactions but i can't figure out how, basically 
i am very confused :(
 
anyone know the answer, or can shed some 
light on what is going on?
 
thanks in advance.



RE: [JBoss-user] LDAP Authentication settings

2002-06-13 Thread Shaw, Chris

Hi,

I forgot to add that when I log in with an incorrect password then I see the
error in server.log which is fine.
But when I use a valid password I get the following error message on screen:

type: Status report
message: Access to the requested resource has been denied
description: Access to the specified resource (Access to the requested
resource has been denied) has been forbidden.

But there is nothing menioned in any log files when this happens. This is
why I assume that the problem is due to the resource being blocked because
the user is valid but doesn't have the correct role. 
And when I look in the LDAP log file I see from the generated queries that
there is no mention of the role which the user should be checked against.

So, it is the LDAP role mapping part that I am missingany ideas what
I've got wrong?

Thanks & Regards

Chris
-=-=-=


-Original Message-
From: Shaw, Chris 
Sent: 13 June 2002 13:45
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] LDAP Authentication settings


Thanks for the help (much appreciated)...I now have a connection with LDAP -
so my PrincipalDN prefix & suffix are ok.

But, my last (hopefully!) problem is connected with roles...
In my web.xml I specify that I have a role called "CNSRole" and in LDAP I
have a group called CNSRole with certain users as members.

Despite re-reading the docs and trying every possible combination that I can
think of, I obviously can't get the attributes correct for the
roleAttributeId and for rolesCtxDN. Basically I just want to know if my user
is in the group specified in web.xml (in this case -
cn=CNSRole,ou=Groups,o=ecb.int with uniquemember=myUID).

 
com.sun.jndi.ldap.LdapCtxFactory 
ldap://myServer:389/ 
simple
uid=

,ou=Users,o=ecb.int 
uniquemember 

cn 
ou=Groups,o=ecb.int 
 

How do I get the role name passed into my LDAP query in the right place?

Thanks (again) for help...

Chris
-=-=-=


-Original Message-
From: Chris Chen [mailto:[EMAIL PROTECTED]]
Sent: 13 June 2002 11:58
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] LDAP Authentication settings


It's not in the auth.conf as that's been deprecated.. In the quick start 
guide, you'll find an example configuration for using the 
org.jboss.security.auth.spi.LdapLoginModule.  In the quick start guide, 
it's on page 49.

You need to configure the application-policy name to be the same as the 
what you're referring to in your jboss/security-domain element.  In your 
case, the application-policy name inside login-config.xml will be
"myDomain".

Thanks,
Chris


At 02:39 AM 06/13/2002, you wrote:
>Thanks for the mail...
>
>I've now tried the Quick Start Guide which helped get the login-config.xml
>right - so I have an application-policy which I call LDAPLogin.
>
>But now I am trying to get JBoss to find my application-policy.
>
> From the on-line docs I can see that I need to have a jboss-web.xml file
>with the following:
>   
>   java:/jaas/myDomain
>   
>
>But now I am trying to find out where to tell JBoss that myDomain points to
>LDAPLogin.
>
>The online-docs keep referring to auth.conf but this file seems to have
been
>deprecated so I want to do it the 'right' way.
>
>Thanks
>
>Chris
>-=-=-=
>
>
>-Original Message-
>From: Marcus Ahnve [mailto:[EMAIL PROTECTED]]
>Sent: 13 June 2002 10:58
>To: [EMAIL PROTECTED]
>Subject: Re: [JBoss-user] LDAP Authentication settings
>
>
>The Quick Start Guide provides excellent examples of just that.
>
>/Marcus
>
>On Wed, 2002-06-12 at 14:25, Shaw, Chris wrote:
> > Hi,
> >
> > I'm using the latest (and greatest) JBoss v3.0.0 with integrated Tomcat
> > 4.0.3 to deploy a .war web archive - now I want to integrate
>authentication
> > with LDAP.
> >
> > I have created the correct entries in my WEB-INF/web.xml file (see
below),
> > and created a login.html file which posts to: j_security_check.
> >
> > Now I am trying to find out how to integrate this with my LDAP server,
ie
> > where I specify my server name, port, base dn, etc etc.
> >
> > I have searched the mail archives and the documentation (though
obviously
> > not the forums at the mo.!), but all the references seem to be pointing
> > towards putting the settings in auth.conf. But when I open up this file
I
> > see that it states the following:
> > // This file is now obsolete but is read for backward compatability
> > // Use the login-config.xml file instead
> >
> > Can someone point me towards a sample login-config.xml for LDAP
> > integration...
> >
> > Thanks in advance...
> >
> > Chris
> > -=-=-=
> >
> > WEB-INF/web.xml
> >  
> > 
> >   WEB Resource
> >   Web resource description
> >   /
> > HEAD
> > GET
> > POST
> > PUT
> > DELETE
> > 
> > 
> >   Auth constraint description
> >   CNSRole
> > 
> >

RE: [JBoss-user] JBoss 3.0.0 - OraclePreparedStatement ClassCastException

2002-06-13 Thread James Cooley

Thanks David,

 The connection returned is of type LocalConnection which implements only the 
java.sql.Connection interface and doesn't allow me to cast it to an OracleConnection 
(which I
to call Oracle extensions to the API). LocalManagedConnection does have a 
getConnection() 
but this is a private member of LocalConnection.

I can however cast it by doing a 

getMetaData().getConnection()

on the LocalConnection. I'm not sure if this is how you intended me to get it and it 
feels
inelegant but it does work. 

Rgds,

James



>FROM: David Jencks
>DATE: 06/13/2002 05:32:24
>SUBJECT: RE:  [JBoss-user] JBoss 3.0.0 - OraclePreparedStatement ClassCastException
>
>  
>
>If you really need an OraclePreparedStatement, get the Oracle connection
>from the Connection and get the prepared statement from it.  I don't
>recommend using the previous version of the local wrapper.  Among other
>things, it is unsupported.
>
>david jencks
>
>
>On 2002.06.13 07:21:20 -0400 James Cooley wrote:
>> Hi guys,
>> >  I have an application that works with JBoss 2.4 but has stopped working 
>> with JBoss 3.0 final. I have configured oracle 8.1.7 with OCI drivers. I 
>> don't think the problem is with my configuration as:
>> > CallableStatement call = (CallableStatement)prepareCall("{ call 
>> " + STORED_PROCEDURE_DEF + " }");
>> > works, while:
>> > OracleCallableStatement call = 
>> (OracleCallableStatement)prepareCall("{ call " + STORED_PROCEDURE_DEF + 
>> " }");
>> > gives
>> > java.lang.ClassCastException: 
>> org.jboss.resource.adapter.jdbc.local.LocalCallableStatement
>> > I guess it may have stopped working on
>> > > LocalCallableStatement.java revision 1.1.2.1
>> > date: 2002/04/26 19:53:52;  author: d_jencks;  state: Exp;  lines: +0
>> -0
>> > merged new Local jdbc wrapper from head
>> > and I will try rolling back to the previous revision if nobody can see 
>> an obvious problem.
>> > James
>> > > > ___
>> > Don't miss the 2002 Sprint PCS Application Developer's Conference
>> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>> > ___
>> JBoss-user mailing list
>> 
>> https://lists.sourceforge.net/lists/listinfo/jboss-user
>> > ___
>
>Don't miss the 2002 Sprint PCS Application Developer's Conference
>August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>
>___
>JBoss-user mailing list
>
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>   




___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] RE: JBoss 3/Tomcat 4.0.3 IllegalAccessError

2002-06-13 Thread Jerry Smith

No it doesn't unfortunately :-(  This setup works fine with Tomcat 4.0.3
standalone.  I'm not putting the extended class in a WAR. I've tried having
JBoss deploy it, placing it in catalina/server/lib, and server/all/lib.
Anyone else have an insight on this?

-Original Message-
From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 1:13 AM
To: Jerry Smith
Cc: '[EMAIL PROTECTED]'
Subject: Re: [JBoss-user] JBoss 3/Tomcat 4.0.3 IllegalAccessError


Hello Jerry,

The servlet 2.3 spec says (9.6.2 Web Application Classloader):
"The classloader that a container uses to load a servlet in a WAR must not
allow the WAR to
override JDK or Java Servlet API classes, and is recommended not to allow
Servlets in the
WAR visibility of the web containers implementation classes.
If a web container has a mechanism for exposing container-wide library JARs
to application
classloaders, it is recommended that the application classloader be
implemented in such a
way that classes packaged within the WAR are able to override classes
residing in containerwide
library JARs."

So, I'm not sure, but probably they shouldn't be in a war.
Does it help?

alex

Thursday, June 13, 2002, 1:33:04 AM, you wrote:

JS> I'm getting a java.lang.IllegalAccessError from a class that inherits
from a
JS> Catalina class:

JS> java.lang.IllegalAccessError: class
JS> org.apache.catalina.session.ReplicatedSession cannot access its
superclass
JS> org.apache.catalina.session.StandardSession
JS> at java.lang.ClassLoader.defineClass0(Native Method)
JS> at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
JS> at
JS> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
JS> at java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
JS> at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
JS> at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
JS> at java.security.AccessController.doPrivileged(Native Method)
JS> at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
JS> at
JS>
org.jboss.mx.loading.UnifiedClassLoader.findClass(UnifiedClassLoader.java:22
JS> 7)
JS> ... etc

JS> Where should class files that inherit from Catalina classes go?

JS> ___

JS> Sponsored by:
JS> ThinkGeek at http://www.ThinkGeek.com/
JS> ___
JS> JBoss-user mailing list
JS> [EMAIL PROTECTED]
JS> https://lists.sourceforge.net/lists/listinfo/jboss-user

-- 
Best regards,
 Alex Loubyansky


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [jetty-discuss] Re: [JBoss-user] Compatibility of ear file in JBoss/Jetty and JBoss/Tomcat

2002-06-13 Thread Dmitri Colebatch

Is this a struts application by any chance?

If so, have a look at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9734

try deploying you WAR in a non-root context...  alternatively, I have a
patched version of struts 1.1 I can send you.

otoh, if this isn't struts - sorry (o:

cheers
dim

- Original Message -
From: "Jules Gosnell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, June 13, 2002 10:31 PM
Subject: [jetty-discuss] Re: [JBoss-user] Compatibility of ear file in
JBoss/Jetty and JBoss/Tomcat


> Chan Chee Siong wrote:
> > Hi all
> >
> >Anyone knows if an ear file can be deployed
> > (without any changes) in both JBoss/Tomcat and
> > JBoss/Jetty environment?
> >
> >I have deployed an ear file and run it successfully
> > in JBoss 2.4.6/Tomcat 4.0.3 but when I deployed to
> > Jboss/Jetty environment, I have the following
> > problems:
> >
> >(1)  When I typed http://localhost:8080 as URL in
> > the browser, it will redirect to http://jsp/login.jsp
> > for Jboss/Jetty. The page is being redirected to
>  > http://localhost:8080/jsp/login.jsp correctly for my
>  > JBoss/Tomcat settings.
>  >
>
> Do you really mean
>
> http://jsp/login.jsp
>
> or
>
> http://localhost/jsp/login.jsp
>
> ?
>
> Can you mail me the war/ear that is causing the problem - and the source
> code if possible
>
> >(2)  After I have manually type the full address
> > and login to the system, I observed that my style
> > sheets and images are not displayed correctly.
> >
>
> can you expand - are they displayed at all etc..
>
> >Are there any other settings for Jetty I must
> > configure so that my application will run similarly in
> > both JBoss/Tomcat and JBoss/Jetty environments ?
> >
>
> Provided that your app is staying within the spec (and Tomcat is too)
> the two containers should behave identically. You should not have to
> reconfigure anything
>
> I'm on it,
>
> Send me whatever you can,
>
>
> Jules
>
> >Thanks in advance.
> >
> > Cheers
> > Chee Siong
> >
> > __
> > Do You Yahoo!?
> > Yahoo! - Official partner of 2002 FIFA World Cup
> > http://fifaworldcup.yahoo.com
> >
> > ___
> >
> > Sponsored by:
> > ThinkGeek at http://www.ThinkGeek.com/
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>
>
>  Yahoo! Groups Sponsor -~-->
> Will You Find True Love?
> Will You Meet the One?
> Free Love Reading by phone!
> http://us.click.yahoo.com/Deo18C/zDLEAA/Ey.GAA/CefplB/TM
> -~->
>
> For the latest information about Jetty, please see
http://jetty.mortbay.org
>
> To alter your subscription to this list goto
http://groups.yahoo.com/group/jetty-discuss
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] JBoss 3.0.0 - OraclePreparedStatement ClassCastException

2002-06-13 Thread Андрей Онищук

Try
Connection conn = dataSource.getConnection();
if(conn instanceoff org.jboss.resource.adapter.jdbc.local.LocalConnection) {
conn = 
((org.jboss.resource.adapter.jdbc.local.LocalConnection)conn).getUnderlyingConnection();
}
You must obtain OracleConnection in "conn" after it

> -Original Message-
> From: James Cooley [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, June 13, 2002 7:15 PM
> To: JBoss User List
> Cc: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] JBoss 3.0.0 - 
> OraclePreparedStatement ClassCastException
> 
> 
> Thanks David,
> 
>  The connection returned is of type LocalConnection which 
> implements only the 
> java.sql.Connection interface and doesn't allow me to cast it 
> to an OracleConnection (which I to call Oracle extensions to 
> the API). LocalManagedConnection does have a getConnection() 
> but this is a private member of LocalConnection.
> 
> I can however cast it by doing a 
> 
>   getMetaData().getConnection()
> 
> on the LocalConnection. I'm not sure if this is how you 
> intended me to get it and it feels inelegant but it does work. 
> 
> Rgds,
> 
> James
> 
> 
> 
> >FROM: David Jencks
> >DATE: 06/13/2002 05:32:24
> >SUBJECT: RE:  [JBoss-user] JBoss 3.0.0 - OraclePreparedStatement 
> >ClassCastException
> >
> >  
> >
> >If you really need an OraclePreparedStatement, get the Oracle 
> >connection from the Connection and get the prepared 
> statement from it.  
> >I don't recommend using the previous version of the local wrapper.  
> >Among other things, it is unsupported.
> >
> >david jencks
> >
> >
> >On 2002.06.13 07:21:20 -0400 James Cooley wrote:
> >> Hi guys,
> >> >  I have an application that works with JBoss 2.4 but has stopped 
> >> > working
> >> with JBoss 3.0 final. I have configured oracle 8.1.7 with OCI 
> >> drivers. I
> >> don't think the problem is with my configuration as:
> >> > CallableStatement call = 
> (CallableStatement)prepareCall("{ 
> >> > call
> >> " + STORED_PROCEDURE_DEF + " }");
> >> > works, while:
> >> > OracleCallableStatement call =
> >> (OracleCallableStatement)prepareCall("{ call " + 
> STORED_PROCEDURE_DEF 
> >> +
> >> " }");
> >> > gives
> >> > java.lang.ClassCastException:
> >> org.jboss.resource.adapter.jdbc.local.LocalCallableStatement
> >> > I guess it may have stopped working on
> >> > > LocalCallableStatement.java revision 1.1.2.1
> >> > date: 2002/04/26 19:53:52;  author: d_jencks;  state: 
> Exp;  lines: 
> >> > +0
> >> -0
> >> > merged new Local jdbc wrapper from head
> >> > and I will try rolling back to the previous revision if 
> nobody can 
> >> > see
> >> an obvious problem.
> >> > James
> >> > > > 
> ___
> >> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> >> August 25-28 in Las Vegas - 
> >> http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> >> > ___
> >> JBoss-user mailing list
> >>  
> >> https://lists.sourceforge.net/lists/listinfo/jboss-user
> >> > ___
> >
> >Don't miss the 2002 Sprint PCS Application Developer's Conference 
> >August 25-28 in Las Vegas - 
> >http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> >
> >___
> >JBoss-user mailing list
> > 
> >https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> > 
> 
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's 
> Conference August 25-28 in Las Vegas - 
> http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED] 
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Is deadlock possible with multiple connection pools?

2002-06-13 Thread Geer, Benjamin

David Jencks wrote:
> The connection can be used for many open transactions
> sequentially.

OK, that makes sense.

> When the txs commit, the tx manager is free to choose either
> connection from each pool to commit either of the transactions.

This comes as a surprise to me.  Does this mean that any connection must
be able to commit (or roll back) any work that was done using any other
connection in the same pool?  If so, then you could get a scenario like
this:

Say we have a pool of two connections to database MyDB (XAResource
objects xares1 and xares2).  We start two transactions (Xid objects xid1
and xid2).  The tx manager can make the following calls:

// Thread 1 (transaction xa1) requests a connection; we give it xares1.
xares1.start(xid1, TMNOFLAGS);
// Application does some work, then closes the connection; we return it
// to the pool.
xares1.end(xid1, TMSUSPEND);

// Thread 2 (transaction xa2) requests a connection; we give it xares1.
xares1.start(xid2, TMNOFLAGS);
// Application does some work, then closes the connection; we return it
// to the pool.
xares1.end(xid2, TMSUSPEND);

// Thread 1 (transaction xa1) requests a connection again; we give it
// xares1 again.
xares1.start(xid1, TMNOFLAGS);
// Application does some work, then closes the connection; we return it
// to the pool.
xares1.end(xid1, TMSUSPEND);

// Thread 1: commit xid1 using xares1.
xares1.end(xid1, TMSUCCESS);
status = xares1.prepare(xid1);
xares1.commit(xid1, false);

// Thread 2: commit xid2, *also using xares1*.
xid2NewBranch = makeNewBranch(xid2);
xares1.start(xid2, TMNOFLAGS);
xares1.end(xid2, TMSUCCESS);
status = xares1.prepare(xid2);
xares1.commit(xid2, false);

In other words, xares1 has to commit the work done for xid2, even though
it's never seen xid2 before.  This works only because xares1 and xares2
are both connected to database MyDB.  The database maintains all the
transaction state, and the connection objects are basically stateless.

Is this correct?  (I'm going to have to write my own XAResource, so I
want to make sure that this is the sort of scenario it needs to be able
to handle.)  Also, is the sequence of TMSUSPEND and TMRESUME correct in
the above example?

Benjamin


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] jetty and contexts

2002-06-13 Thread LaBanca, Rick

JBoss 3.0 with jetty. Say I have a war, foo.war, and I deploy it. By default
it will come up as http://localhost:8080/foo .

What I really want to do is have it as root. From what I'm reading, the only
way to do this is by setting it in a jboss-web.xml file, and putting in the
war (/).

Yep, that works. But what I really want is a way to map the app defined name
to my server externally. I find it odd that server specific instructions
have to be packaged with the app... or did I miss something and I can
configure it independant of the app contents?

rick

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Old class object not cleaned

2002-06-13 Thread JD Brennan
Title: RE: [JBoss-user] Old class object not cleaned





I had a similar problem.  


Class Foo has method f(Bar b);


My suspicion - and this is just a guess - is that 
the Class of the argument (Bar) was loaded by
a different ClassLoader than the class you are trying to 
call the method on (Foo).  Or that the two class were 
loaded by the same class loader at different points in 
time.  In either case the instance of the Class object
for b is not the same as the instance of the Class
object in the parameter to Foo.f() - thus causing the
exception.


The only solution I found for this was to restart JBoss
(and not do hot deploy).


If my guess is a correct then a fix or work-around would be
to use the class loader from the argument to load the
class you want to call the method on.


Class fooClass = b.getClass().getClassLoader().loadClass("Foo");


I haven't actually tried this.  Decided to remove the
need for the dynamic class loading instead.


JD


-Original Message-
From: Qingxian Wang [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 4:40 AM
To: '[EMAIL PROTECTED]'
Subject: [JBoss-user] Old class object not cleaned



Problem description:


1. After I deployed a session bean to JBoss3.0.0 running on a Windows2000, I
call a business method of the session bean's remote interface to load a
Class object of a class, e.g. TestJDO, by using reflection and to create a
normal object by calling a constructor of the class and passing some object,
e.g. TestTO,  that has been passed when the business method is called.  The
TestJDO class is deployed within the EJB's JAR file.  Then I undeploy the
EJB.  It is fine.  


2. I deploy the EJB again and repeat the process in the step 1, an
exception, NoSuchMethodException, is caught when trying to call the
constructor of TestJDO and passing in an object of TestTO by calling
getConstructor(Class[] parameterTypes), although calling getConstructors()
method of the Class object proves that such constructor exists.  However,
sometimes, it is ok without any exceptions thrown out.


3. If I use getConstructors() method of the Class object of TestJDO to find
the constructor with the right argument type and pass the TestTO to the
constructor, an exception, IllegalArgumentExcetion, is called.


4. It seems to me that sometimes the old Class object of TestJDO is not
removed from the JVM when the old session bean is undeployed and it causes
the problem.


Any idears?


Regards


Qingxian





This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom it is addressed. If
you have received this e-mail in error you must not copy, distribute or take
any action in reliance on it. Please notify the sender by e-mail or
telephone.
We utilise an anti-virus system and therefore any files sent via e-mail will
have been checked for known viruses. You are however advised to run your own
virus check before opening any attachments received as we will not in any
event accept any liability whatsoever once an e-mail and/or any attachment
is received. Any views expressed by an individual within this e-mail do not
necessarily reflect the views of Systems Union Group plc or any of its
subsidiary companies.



___


Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] Is deadlock possible with multiple connection po ols?

2002-06-13 Thread Geer, Benjamin

Sorry, my example was garbled.  Here's the scenario whose validity I'm
trying to confirm:

Say we have a pool of two connections to database MyDB (XAResource
objects xares1 and xares2).  We start two transactions (Xid objects xid1
and xid2).  The tx manager can make the following calls:

// Thread 1 (transaction xid1) requests a connection; we give 
// it xares1.
xares1.start(xid1, TMNOFLAGS);
// Application does some work, then closes the connection; we 
// return it to the pool.
xares1.end(xid1, TMSUSPEND);
 
// Thread 2 (transaction xid2) requests a connection; we give 
// it xares2.
xares2.start(xid2, TMNOFLAGS);
// Application does some work, then closes the connection; we 
// return it to the pool.
xares2.end(xid2, TMSUSPEND);

// Thread 1 (transaction xid1) requests a connection again; we give it
// xares1 again.
xares1.start(xid1, TMNOFLAGS);
// Application does some work, then closes the connection; we 
// return it to the pool.
xares1.end(xid1, TMSUSPEND);

// Thread 1: commit xid1 using xares1.
xares1.end(xid1, TMSUCCESS);
status = xares1.prepare(xid1);
xares1.commit(xid1, false);

// Thread 2: commit xid2, *also using xares1*.
xid2NewBranch = makeNewBranch(xid2);
xares1.start(xid2, TMNOFLAGS);
xares1.end(xid2, TMSUCCESS);
status = xares1.prepare(xid2);
xares1.commit(xid2, false);

In other words, xares1 has to commit the work done for xid2, even though
it's never seen xid2 before (because all the work for xid2 was done on
xares2).  This works only because xares1 and xares2 are both connected
to database MyDB.  This implies that the database maintains all the
transaction state, and that the connection objects are basically
stateless.

Is this correct?  (I'm going to have to write my own XAResource, so I
want to make sure that this is the sort of scenario it needs to be able
to handle.)  Also, is the sequence of TMSUSPEND and TMRESUME correct in
the above example?

Benjamin

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] CMR - CMP Problem on Jboss 3.0 final

2002-06-13 Thread Sebastien ASTIE



Hi,
I have a problem with creating entries in my 
DB.
When i want to access my data in the db everything 
runs fine...
When i want to add data in the DB using my 
entity bean, i have an exception saying that i specified the column twice in my 
query...
 
I have two tables Employee & Department (Two 
entity beans: TDepartment and TEmployee).
TDepartment has a relationship 1:N with 
TEmployee.
The department pk is called ID, the foreign key in 
Employee is departmentId.
 
When i look at the sql query generated by jboss, it 
has 2 fields departmentId when i try to add a new employee.
 
If anybody has any answer please let me 
know
 
Thank you


[JBoss-user] JMS - Message Driven Bean problem: SpyMessageConsumer reports "I dropped a message (timeout)"

2002-06-13 Thread Radu Mateescu



Hello,
I encounter problems when I try to send 
messages into a JMS queue. The client is a servlet which runs a loop attempting 
to send asynchronous messages into testQueue. From this queue, the messages are 
consummed by a Message Driven Bean. Here is the client:

public boolean sendAsynchronousRequest(Request 
request) {  String methodName = 
"sendAsynchronousRequest()";  QueueConnection connection = 
null;  QueueSession session = null;  QueueSender 
sender = null;  boolean retValue = 
false;if (request != null) 
{   if (connectionFactory != null) 
{try { // 
synchronize the connectionFactory global 
variable synchronized(connectionFactory){  // 
retrieve a JMS connection  connection = 
connectionFactory.createQueueConnection(); } // 
retrieve a session session = 
connection.createQueueSession(false, 
QueueSession.AUTO_ACKNOWLEDGE);  Hashtable 
body = new Hashtable(); int subject = 
JMSMESSAGE_EXECUTE_REQUEST; body.put(request.getID(), 
request); JMSMessage message = new 
JMSMessage(subject, 
body);  // 
synchronize the queue global 
variable synchronized (queue) 
{  // creates a JMS sender and associate 
it with the queue  sender = 
session.createSender(queue); }
 // create the 
object message ObjectMessage objectMessage = 
session.createObjectMessage(); objectMessage.setObject(message);
 // establish the 
priority of the JMS message int requestPriority 
= request.getPriority(); int jmsPriority = 
JMS_PRIORITY_LOW; switch (requestPriority) 
{  case 
REQUEST_PRIORITY_LOW:   jmsPriority = 
JMS_PRIORITY_LOW;   break;  case 
REQUEST_PRIORITY_HIGH:   jmsPriority 
= 
JMS_PRIORITY_HIGH;   break;  case 
REQUEST_PRIORITY_CRITICAL:   jmsPriority 
= 
JMS_PRIORITY_CRITICAL;   break; }  // 
send the message sender.send(objectMessage, 
DeliveryMode.NON_PERSISTENT, jmsPriority, 
timeToLive); servletLog.log(CLASS_NAME, 
Log.TRACE1, methodName, "Request " + request.getID() + " successfully sent to 
JMS" ); retValue = 
true;}catch(Throwable 
exc) { servletLog.log(CLASS_NAME, Log.ERROR, 
methodName, 
exc);}finally 
{ try 
{  // close connection, sender  and 
session  connection.close();  session.close();  sender.close(); } catch(Throwable 
exception) {  servletLog.log(CLASS_NAME, 
Log.ERROR, methodName, exception);  return 
false; }}   }   elseservletLog.log(CLASS_NAME, 
Log.ERROR, methodName, "The JMS connection factory is 
null");}  else   servletLog.log(CLASS_NAME, 
Log.ERROR, methodName, "The request is 
null");return 
 retValue; }
 
When this method runs for 10 times, everything 
is OK and the messages are correctly sent into testQueue. When I run this method 
in a larger loop (100 iterations), the first 20-30 messages are sent 
correctly but the rest will cause a MDB failure. Here is the JBOSS output 
:
2002-06-13 12:15:26,301 DEBUG 
[org.jboss.mq.SpyMessageConsumer] I dropped a message (timeout)2002-06-13 
12:15:26,384 DEBUG [org.jboss.mq.il.oil.OILClientIL] ConnectionReceiverOILClient 
is connecting to: 10.0.5.27:372652002-06-13 12:15:26,427 DEBUG 
[org.jboss.mq.il.oil.OILClientIL] ConnectionReceiverOILClient is connecting to: 
10.0.5.27:372682002-06-13 12:15:26,490 DEBUG 
[org.jboss.mq.il.oil.OILClientIL] ConnectionReceiverOILClient is connecting to: 
10.0.5.27:372712002-06-13 12:15:26,547 DEBUG 
[org.jboss.mq.il.oil.OILClientIL] ConnectionReceiverOILClient is connecting to: 
10.0.5.27:372742002-06-13 12:15:26,693 DEBUG 
[org.jboss.mq.il.oil.OILClientIL] ConnectionReceiverOILClient is connecting to: 
10.0.5.27:372772002-06-13 12:15:26,729 DEBUG 
[org.jboss.mq.il.oil.OILClientIL] ConnectionReceiverOILClient is connecting to: 
10.0.5.27:372802002-06-13 12:15:26,827 DEBUG 
[org.jboss.mq.il.oil.OILClientIL] ConnectionReceiverOILClient is connecting to: 
10.0.5.27:372832002-06-13 12:15:26,908 DEBUG 
[org.jboss.mq.il.oil.OILClientIL] ConnectionReceiverOILClient is connecting to: 
10.0.5.27:372862002-06-13 12:15:26,985 DEBUG 
[org.jboss.mq.il.oil.OILClientIL] ConnectionReceiverOILClient is connecting to: 
10.0.5.27:372892002-06-13 12:15:27,029 DEBUG 
[org.jboss.mq.il.oil.OILClientIL] ConnectionReceiverOILClient is connecting to: 
10.0.5.27:372922002-06-13 12:15:27,126 DEBUG 
[org.jboss.mq.il.oil.OILClientIL] ConnectionReceiverOILClient is connecting to: 
10.0.5.27:372952002-06-13 12:15:27,157 DEBUG 
[org.jboss.mq.il.oil.OILClientIL] ConnectionReceiverOILClient is connecting to: 
10.0.5.27:372982002-06-13 12:15:27,247 DEBUG 
[org.jboss.mq.il.oil.OILClientIL] ConnectionReceiverOILClient is connecting to: 
10.0.5.27:373012002-06-13 12:15:27,292 DEBUG 
[org.jboss.mq.il.oil.OILClientIL] ConnectionReceiverOILClient is connecting to: 
10.0.5.27:373042002-06-13 12:15:27,407 DEBUG 
[org.jboss.mq.il.oil.OILClientIL] ConnectionReceiverOILClient is connecting to: 
10.0.5.27:373072002-06-1

Re: [JBoss-user] jetty and contexts

2002-06-13 Thread David Ward

You have another option, but I'm not sure it fulfills your every desire...

Put your .war file in a .ear file, and then put this in 
/META-INF/application.xml (also in your .ear file):


http://java.sun.com/dtd/application_1_3.dtd'>

 My App
 My app is super-cool.
 
 
 myapp.war
 myapp
 
   


Now, I've done this pleny of times (successfully) giving it a 
context-root.  However, I'm not sure if replacing the context-root of 
"myapp" with "/" will work.

Give it a try and let us all know how it turned out.

Oh yeah - note that the doctype ref above assumes J2EE 1.3, not 1.2.

David

--

LaBanca, Rick wrote:
> JBoss 3.0 with jetty. Say I have a war, foo.war, and I deploy it. By default
> it will come up as http://localhost:8080/foo .
> 
> What I really want to do is have it as root. From what I'm reading, the only
> way to do this is by setting it in a jboss-web.xml file, and putting in the
> war (/).
> 
> Yep, that works. But what I really want is a way to map the app defined name
> to my server externally. I find it odd that server specific instructions
> have to be packaged with the app... or did I miss something and I can
> configure it independant of the app contents?
> 
> rick
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



-- 

-
David Ward
[EMAIL PROTECTED]
http://www.dotech.com


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] How to look up queue with jboss3.0

2002-06-13 Thread ch ejb

hi there,
i am getting error when iam looking a queue in jboss3.0.
the error is
JNDI lookup failed: javax.naming.NameNotFoundException: 
QueueConnectionFactory

how can i look up a queue named A from the Queue coonection??
my pieces of related code is as follows:(this works fine with Jboss2.4.3)

QueueConnectionFactory  queueConnectionFactory = null;
QueueConnection queueConnection = null;
QueueSessionqueueSession = null;
Queue   queue = null;
QueueSender queueSender = null;

jndiContext = new InitialContext();
queueName = new String("queue/A");
queueConnectionFactory = 
(QueueConnectionFactory)jndiContext.lookup("QueueConnectionFactory");
queue = (Queue) jndiContext.lookup(queueName);


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] problem with BLOB in Oracle

2002-06-13 Thread Damon Torgerson

BLOBs and CLOBs are a pain.  Well, they're a pain when you are trying to 
implement them your first time like me ;-)

Anyway, I'm pretty close and I've been following a previous thread here:

http://www.kpi.com.au/jbossarchive/0012/0028.html

and

http://www.kpi.com.au/jbossarchive/0012/0031.html

As well, I'm reading Java Programming with Oracle JDBC Chapter 12, which 
has a lot of information and examples...although they are not EJB 
examples but rather trivial JDBC examples...but good none the less.

When I get my solution working I am going to post the entire thing 
because a complete example would really be helpful to newbies like 
me  but I guess that doesn't really help you right now ;-)

Hope the above helps a little bit,
Damon

On Thursday, June 13, 2002, at 03:04 AM, Aleksander Grzebyta wrote:

> Hello !
>
> I have succeded in deploying the Sun Customer-Subscriptions-Addresses 
> CMP
> CMR 2.0 sample application but needed to change the type mapping BLOB to
> RAW(255) because of exceptions like below.
> I know it is bacause one  CMP filed of SUNSCRIPTION bean is complex 
> type an
> is serialized to BLOB. Has anybody found a solution for Oracle BLOB 
> problem
> in JBoss.
>
> BTW I think the JBoss stack traces are too large for exceptins because 
> they
> are printed for a few times for the same error.
>
> Should I submit a bug report on it ?
>
> sincerely Olek
>
> #
> ###
> ##
>
> 11:57:59,461 INFO  [Engine] CreateSubscriptionJsp: init
> 11:58:04,758 ERROR [STDERR] 
> java.lang.reflect.UndeclaredThrowableException:
> 11:58:04,758 ERROR [STDERR] java.rmi.ServerException: Internal error 
> getting
> re
> ults for field member type
> Embedded Exception
> Unable to load to deserialize result: java.io.StreamCorruptedException:
> InputSt
> eam does not contain a serialized object; nested exception is:
> javax.ejb.EJBException: Internal error getting results for field
> member
> type
> Embedded Exception
> Unable to load to deserialize result: java.io.StreamCorruptedException:
> InputSt
> eam does not contain a serialized object
> 11:58:04,758 ERROR [STDERR] javax.ejb.EJBException: Internal error 
> getting
> resu
> ts for field member type
> Embedded Exception
> Unable to load to deserialize result: java.io.StreamCorruptedException:
> InputSt
> eam does not contain a serialized object
> 11:58:04,758 ERROR [STDERR] at
> org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAb
> tractCMPFieldBridge.loadArgumentResults(JDBCAbstractCMPFieldBridge.java:360)
> 11:58:04,758 ERROR [STDERR] at
> org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAb
> tractCMPFieldBridge.loadInstanceResults(JDBCAbstractCMPFieldBridge.java:304)
> 11:58:04,758 ERROR [STDERR] at
> org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntit
> Command.execute(JDBCLoadEntityCommand.java:142)
> 11:58:04,758 ERROR [STDERR] at
> org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntit
> Command.execute(JDBCLoadEntityCommand.java:62)
> 11:58:04,758 ERROR [STDERR] at
> org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreMana
> er.loadEntity(JDBCStoreManager.java:495)
> 11:58:04,758 ERROR [STDERR] at
> org.jboss.ejb.plugins.CMPPersistenceManager.
> oadEntity(CMPPersistenceManager.java:410)
> 11:58:04,774 ERROR [STDERR] at
> org.jboss.resource.connectionmanager.CachedC
> nnectionInterceptor.loadEntity(CachedConnectionInterceptor.java:353)
> 11:58:04,774 ERROR [STDERR] at
> org.jboss.ejb.plugins.EntitySynchronizationI
> terceptor.invoke(EntitySynchronizationInterceptor.java:310)
> 11:58:04,774 ERROR [STDERR] at
> org.jboss.resource.connectionmanager.CachedC
> nnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
> 11:58:04,774 ERROR [STDERR] at
> org.jboss.ejb.plugins.EntityInstanceIntercep
> or.invoke(EntityInstanceInterceptor.java:193)
> 11:58:04,774 ERROR [STDERR] at
> org.jboss.ejb.plugins.EntityLockInterceptor.
> nvoke(EntityLockInterceptor.java:107)
> 11:58:04,774 ERROR [STDERR] at
> org.jboss.ejb.plugins.EntityCreationIntercep
> or.invoke(EntityCreationInterceptor.java:69)
> 11:58:04,774 ERROR [STDERR] at
> org.jboss.ejb.plugins.AbstractTxInterceptor.
> nvokeNext(AbstractTxInterceptor.java:96)
> 11:58:04,774 ERROR [STDERR] at
> org.jboss.ejb.plugins.TxInterceptorCMT.runWi
> hTransactions(TxInterceptorCMT.java:167)
> 11:58:04,774 ERROR [STDERR] at
> org.jboss.ejb.plugins.TxInterceptorCMT.invok
> (TxInterceptorCMT.java:61)
> 11:58:04,774 ERROR [STDERR] at
> org.jboss.ejb.plugins.SecurityInterceptor.in
> oke(SecurityInterceptor.java:129)
> 11:58:04,774 ERROR [STDERR] at
> org.jboss.ejb.plugins.LogInterceptor.invoke(
> ogInterceptor.java:166)
> 11:58:04,774 ERROR [STDERR] at
> org.jboss.ejb.EntityContainer.invoke(EntityC
> ntainer.java:493)
> 11:58:04,774 ERROR [STDERR] at
> org.jboss.ejb.plugins.local.BaseLocalContain
> rInvoker.invoke(BaseLocalContainerInvoker.java:296)
> 11:58:04,774 ERROR [STDERR] at
> org.jb

Re: [JBoss-user] IDE Question

2002-06-13 Thread Emerson Cargnin - MSA

We're are using Eclipse, as u said about XDoclet, we made an eclipse 
template to help in inserting XDoclet tags, take a look in yesterdays 
messages in xdoclet list...

Greg Turner wrote:

>What IDE are you guys and gals using?  I have been using Intellij, but
>now that I am getting into XDoclet, I find that Intellij is unable to
>run a build file that contains an XDoclet.  I am about ready to look to
>another IDE.  Any suggestions?
>
>Greg Turner
>
>Tiburon Enterprise Systems
>http://www.tiburon-e-systems.com
>Box 1171
>Tiburon, CA 94920
>415-332-3363
>
>
>
>___
>
>Sponsored by:
>ThinkGeek at http://www.ThinkGeek.com/
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] CMP/CMR Example of 1:n or n:m relation for JBoss 3.0.0/PostgreSQL7.2

2002-06-13 Thread Dr. D. Sturzebecher

Hi,

I have been trying to get a 1:n relation (and as well n:m) to work for some
time, but to no success. I have a JBoss 3.0.0 with no changes to the setup,
except for the DB access, a PostgreSQL 7.2 (both on linux). 1:1 Entity beans
work ok.

Does the default mapping work for 1:n and n:m ? I do get no fk in any table!
I do not get any mapping table!

If I specify these manually via jbosscmp-jdbc.xml I get:

org.jboss.deployment.DeploymentException: Configuration found in
jbosscmp-jdbc.xml for relation AB but relation is not a
jbosscmp-jdbc-managed relation in ejb-jar.xml

but relation AB is in ejb-jar.xml.

What am I missing?

Has anybody had any success with the above setup and is willing to share?

cheers,
dirk




___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] CreateException from ejbPostCreate method?

2002-06-13 Thread McAuley, Tim

Hiya,

> 
> Did you declare CreateException for both the ejbCreate and 
> ejbPostCreate 
> methods? Do they both define the exact same exception 
> declarations?  

Yes to both of the above.

> Can 
> you post a bug report the reproduces the UndeclaredThrowableException.
> 

I will do so tomorrow if it is still needed.

I tried it on JBoss 3.0.0 full release and got the same behaviour.

I have just tried it now on JBoss 3.1.0alpha but a good few other things
broke so I can't tell you the outcome of that test.
(java.lang.NoSuchFieldError: testData)

I saw your later posts. The beans I am testing are local entity beans. This
may explain the problem if a RemoteException is being generated for this.

All the best!

Tim

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Please help jboss-3.0.0_tomcat-4.0.3 does not work (tomcat4-service.xml changed)

2002-06-13 Thread kleung

Hi,
 
Please help me to configure out what is going on.
I downloaded the jboss-3.0.0_tomcat-4.0.3.zip file and
setup all paths. Jboss does not complain about much and
it works. However, when I try to access tomcat by
accessing the http://localhost:8080 in netscape4.76
browser, I got the following messages:
 Apache Tomcat/4.0.3 - HTTP Status 500 - No Context
configured to process this request.

Following messages are from Jboss console about
cataline.

* Begin Cataline Log messages
***
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/tomcat4-service.xml
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-common.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-common.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-default.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-default.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/naming-factory.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/naming-factory.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/tomcat-ajp.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/tomcat-ajp.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-webdav.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-webdav.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-invoker.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-invoker.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/catalina.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/catalina.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-resources.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-resources.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-snoop.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-snoop.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-common.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-common.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/bin/bootstrap.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/bin/bootstrap.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-manager.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-manager.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/jakarta-regexp-1.2.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/jakarta-regexp-1.2.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/jasper-compiler.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/jasper-compiler.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/warp.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/warp.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/servlet.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local

Re: [JBoss-user] CMP/CMR Example of 1:n or n:m relation for JBoss 3.0.0/PostgreSQL7.2

2002-06-13 Thread Greg Turner

Last week I attached a file containing an example of a many to many relationship 
handled by
CMP 2.0, complete with source and deployment descriptors.



"Dr. D. Sturzebecher" wrote:

> Hi,
>
> I have been trying to get a 1:n relation (and as well n:m) to work for some
> time, but to no success. I have a JBoss 3.0.0 with no changes to the setup,
> except for the DB access, a PostgreSQL 7.2 (both on linux). 1:1 Entity beans
> work ok.
>
> Does the default mapping work for 1:n and n:m ? I do get no fk in any table!
> I do not get any mapping table!
>
> If I specify these manually via jbosscmp-jdbc.xml I get:
>
> org.jboss.deployment.DeploymentException: Configuration found in
> jbosscmp-jdbc.xml for relation AB but relation is not a
> jbosscmp-jdbc-managed relation in ejb-jar.xml
>
> but relation AB is in ejb-jar.xml.
>
> What am I missing?
>
> Has anybody had any success with the above setup and is willing to share?
>
> cheers,
> dirk
>
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user

--
Greg Turner

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



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] CMP/CMR Example of 1:n or n:m relation for JBoss 3.0.0/PostgreSQL7.2

2002-06-13 Thread Simon Stewart

On Thu, Jun 13, 2002 at 07:23:52PM +0200, Dr. D. Sturzebecher wrote:
> Hi,
> 
> I have been trying to get a 1:n relation (and as well n:m) to work for some
> time, but to no success. I have a JBoss 3.0.0 with no changes to the setup,
> except for the DB access, a PostgreSQL 7.2 (both on linux). 1:1 Entity beans
> work ok.
> 
> Does the default mapping work for 1:n and n:m ? I do get no fk in any table!
> I do not get any mapping table!

First off, you need to make sure that you're using the new PostgreSQL
7.2 datatype mapping in your standardjbosscmp-jdbc.xml file (or
jbosscmp-jdbc.xml if it's just for this app) This is because the
datatype for a serialised Object is now "bytea" rather than "oid"

Assuming that's okay

> If I specify these manually via jbosscmp-jdbc.xml I get:
> 
> org.jboss.deployment.DeploymentException: Configuration found in
> jbosscmp-jdbc.xml for relation AB but relation is not a
> jbosscmp-jdbc-managed relation in ejb-jar.xml
> 
> but relation AB is in ejb-jar.xml.
> 
> What am I missing?

Can you please post both your ejb-jar.xml and your jbosscmp-jdbc.xml
file? It'd help. I suspect that you've not got the name of the
relationship right in the JBoss file.

> Has anybody had any success with the above setup and is willing to share?

I've got it working here, and have done for the last month or two
without pain.

Cheers,

Simon

-- 
Sex is not the answer. Sex is the question. Yes is the answer.

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Questions on Deployers

2002-06-13 Thread Greg Turner


+ jboss-3.0.0/lib/client/*.jar  There is no such directory. 
If you mean jboss-3.0.0/client, this is the set of jar files to use when
writing a client app.
+ jboss-3.0.0/lib/*.jar, + jboss-3.0.0/server/myserver/lib/*.jar. 
These jars are put into the classpath for JBoss and classes are lazy loaded
by JBoss per usual custom in Java.  Things are NOT deployed from lib
directories.
+ jboss-3.0.0/server/myserver/deploy/*.sar - may or may
not be used, depending on configuration.
On startup, JBoss configures itself from myserver/conf/jboss-service.xml. 
This file points to where further deployment should take place from. 
This file can point to myserver/deploy, as is typical.  Or it can
point to any local directory, or it can point to multiple sar files located
anywhere on the web.  If it points to a directory on a machine, then
it deploys anything that is deployable in that directory.
 
 
 
Sheng Zou wrote:
 
Hi,
I am a bit confused on the deployment strategy in JBoss
3.0.
what is usage and the loading sequence for
+ jboss-3.0.0/lib/*.jar
+ jboss-3.0.0/lib/client/*.jar
+ jboss-3.0.0/server/myserver/lib/*.jar
+ jboss-3.0.0/server/myserver/deploy/*.sar (i.e. jmx-rmi-adaptor.sar)
Are there any deployer specific generation tools?
thanks,
sheng

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


[JBoss-user] ServiceMBeanSupport in JBOSS 3.0 ???

2002-06-13 Thread Dirk Versavel

Dear,

We are trying to bind our own service into JBOSS 3.0 using ServiceMBeans.
The 2.4.4 documentation talks about extending the
org.jboss.util.ServiceMBeanSupport class, but this class does not exist any
more in jboss 3.0!!!

Is the mechanism to bind a service into JBOSS using JMX changed?!
If yes, how should we do this?!  Where can we find more up-to-date
information on this?!
Where are the javadocs!

Any help is very appreciated!
We are preparing a demo for next week and would like to show the power of
JBOSS.

Regards,
Dirk


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] proble with cmr in JbossRC2

2002-06-13 Thread karnati venkat
Hi,
I have problem while working with cmr. Even though it deployed properly giving following exception.
While doing findByPrimaryKey, it is picking cmr field also, which it should not.
2002-06-13 12:21:47,541 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.PatientAllergy] Executing SQL: SELECT ALLERGYID,REVIEWED, PATID, ONSETDATE, ALLERGYTYPE, ALLERGYREACTION, ALLERGYCOMMENT, MODIFIEDBY, MODIFIED, codevalues FROM PATIENTALLERGY WHERE (ALLERGYID=?) OR (ALLERGYID=?)2002-06-13 12:21:47,551 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackException, causedBy:java.sql.SQLException: ORA-00904: invalid column name
 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168) at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208) at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543) at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
 
my ejb-jar.xml  the relation is
     PatientAllergy-Codevalues   one-PatientAllergy-has-one-Codevalues One     PatientAllergy      codevalues          Codevalues-has-one-PatientAllergy   One            Codevalues               
and cmp jdbc is
         PatientAllergy-Codevalues   one-PatientAllergy-has-one-CodevaluesallergyType ALLERGYTYPE         Codevalues-has-one-PatientAllergy           
Please any one help meto clear this problem
Bye
vk
 Do You Yahoo!?
Sign-up for Video Highlights of 2002 FIFA World Cup

Re: [JBoss-user] proble with cmr in JbossRC2

2002-06-13 Thread Dain Sundstrom

The codevalues field is a foreign key field.  You are using the old 
specification for you relationships.  The new mapping is specified in 
the new JBossCMP documentation at FlashLine or you can figure it out 
from the DTD.

-dain

karnati venkat wrote:

> Hi,
> 
> I have problem while working with cmr. Even though it deployed properly 
> giving following exception.
> 
> While doing findByPrimaryKey, it is picking cmr field also, which it 
> should not.
> 
> 2002-06-13 12:21:47,541 DEBUG 
> [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.PatientAllergy] 
> Executing SQL: SELECT ALLERGYID,REVIEWED, PATID, ONSETDATE, ALLERGYTYPE, 
> ALLERGYREACTION, ALLERGYCOMMENT, MODIFIEDBY, MODIFIED, codevalues FROM 
> PATIENTALLERGY WHERE (ALLERGYID=?) OR (ALLERGYID=?)
> 2002-06-13 12:21:47,551 ERROR [org.jboss.ejb.plugins.LogInterceptor] 
> TransactionRolledbackException, causedBy:
> java.sql.SQLException: ORA-00904: invalid column name
> 
>  at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
>  at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
>  at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
>  at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
> 
>  
> 
> my ejb-jar.xml  the relation is
> 
> 
>
>   
> PatientAllergy-Codevalues
>   
>  
> 
>one-PatientAllergy-has-one-Codevalues
>  One
>  
> PatientAllergy
>  
>
>   codevalues
>   
>   
>   
>   
>  
>Codevalues-has-one-PatientAllergy
>One
>
>
>  Codevalues
>  
>  
>
>  
> 
> and cmp jdbc is
> 
>
> 
>   PatientAllergy-Codevalues
>   
>   
>
>one-PatientAllergy-has-one-Codevalues
>
> 
>  allergyType
>  ALLERGYTYPE 
> 
>
>   
>   
>
>Codevalues-has-one-PatientAllergy
>
>   
>   
> 
> 
>   
> 
> Please any one help meto clear this problem
> 
> Bye
> 
> vk
> 
> 
>  
> 
> 
> 
> Do You Yahoo!?
> Sign-up for Video Highlights 
>  
> of 2002 FIFA World Cup



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] IDE Question

2002-06-13 Thread Marius Kotsbak

I so a post, but no file. Could you send it again, or publish it
somewhere please?

On Thu, 2002-06-13 at 19:10, Emerson Cargnin - MSA wrote:
> We're are using Eclipse, as u said about XDoclet, we made an eclipse 
> template to help in inserting XDoclet tags, take a look in yesterdays 
> messages in xdoclet list...
> 
> Greg Turner wrote:
> 
> >What IDE are you guys and gals using?  I have been using Intellij, but
> >now that I am getting into XDoclet, I find that Intellij is unable to
> >run a build file that contains an XDoclet.  I am about ready to look to
> >another IDE.  Any suggestions?
> >
> >Greg Turner
> >
> >Tiburon Enterprise Systems
> >http://www.tiburon-e-systems.com
> >Box 1171
> >Tiburon, CA 94920
> >415-332-3363
> >
> >
> >
> >___
> >
> >Sponsored by:
> >ThinkGeek at http://www.ThinkGeek.com/
> >___
> >JBoss-user mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] ServiceMBeanSupport in JBOSS 3.0 ???

2002-06-13 Thread Greg Turner

Its there.  They just changed the package name.

Try import org.jboss.system.ServiceMBeanSupport;

Enjoy

Greg



Dirk Versavel wrote:

> Dear,
>
> We are trying to bind our own service into JBOSS 3.0 using ServiceMBeans.
> The 2.4.4 documentation talks about extending the
> org.jboss.util.ServiceMBeanSupport class, but this class does not exist any
> more in jboss 3.0!!!
>
> Is the mechanism to bind a service into JBOSS using JMX changed?!
> If yes, how should we do this?!  Where can we find more up-to-date
> information on this?!
> Where are the javadocs!
>
> Any help is very appreciated!
> We are preparing a demo for next week and would like to show the power of
> JBOSS.
>
> Regards,
> Dirk
>
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user

--
Greg Turner

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



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] ServiceMBeanSupport in JBOSS 3.0 ???

2002-06-13 Thread Greg Turner

Also take a look in quickstart guide available here:

http://sourceforge.net/project/showfiles.php?group_id=22866



Dirk Versavel wrote:

> Dear,
>
> We are trying to bind our own service into JBOSS 3.0 using ServiceMBeans.
> The 2.4.4 documentation talks about extending the
> org.jboss.util.ServiceMBeanSupport class, but this class does not exist any
> more in jboss 3.0!!!
>
> Is the mechanism to bind a service into JBOSS using JMX changed?!
> If yes, how should we do this?!  Where can we find more up-to-date
> information on this?!
> Where are the javadocs!
>
> Any help is very appreciated!
> We are preparing a demo for next week and would like to show the power of
> JBOSS.
>
> Regards,
> Dirk
>
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user

--
Greg Turner

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



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] CreateException from ejbPostCreate method?

2002-06-13 Thread Dain Sundstrom

You aren't going to get a CreateException for this, you will get an 
EJBException.  The create works create but when JBoss attempts to update 
the foreign key fields it will get a SQLException which it will wrap in 
an EJBException and that lame LogInterceptor code will wrap that in a 
ServerException which is a declared RemoteException.  When this hits the 
subclass of your bean implementation class you will get the 
UndeclaredThrowableException.

Anyway, I think it is working right now except for the 
UndeclaredThrowableException.  I'm going to yank out that code soon.

-dain

McAuley, Tim wrote:

> Hiya,
> 
> 
>>Did you declare CreateException for both the ejbCreate and 
>>ejbPostCreate 
>>methods? Do they both define the exact same exception 
>>declarations?  
>>
> 
> Yes to both of the above.
> 
> 
>>Can 
>>you post a bug report the reproduces the UndeclaredThrowableException.
>>
>>
> 
> I will do so tomorrow if it is still needed.
> 
> I tried it on JBoss 3.0.0 full release and got the same behaviour.
> 
> I have just tried it now on JBoss 3.1.0alpha but a good few other things
> broke so I can't tell you the outcome of that test.
> (java.lang.NoSuchFieldError: testData)
> 
> I saw your later posts. The beans I am testing are local entity beans. This
> may explain the problem if a RemoteException is being generated for this.
> 
> All the best!
> 
> Tim
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] problem with BLOB in Oracle

2002-06-13 Thread Dain Sundstrom

When you do get BLOB and CLOB working can you post the simple code I 
need to integrate.  I'm going to make results loading much more 
pluggable soon, so we can have an Oracle custom loader.

-dain

Damon Torgerson wrote:

> BLOBs and CLOBs are a pain.  Well, they're a pain when you are trying to 
> implement them your first time like me ;-)
> 
> Anyway, I'm pretty close and I've been following a previous thread here:
> 
> http://www.kpi.com.au/jbossarchive/0012/0028.html
> 
> and
> 
> http://www.kpi.com.au/jbossarchive/0012/0031.html
> 
> As well, I'm reading Java Programming with Oracle JDBC Chapter 12, which 
> has a lot of information and examples...although they are not EJB 
> examples but rather trivial JDBC examples...but good none the less.
> 
> When I get my solution working I am going to post the entire thing 
> because a complete example would really be helpful to newbies like me 
>  but I guess that doesn't really help you right now ;-)
> 
> Hope the above helps a little bit,
> Damon
> 
> On Thursday, June 13, 2002, at 03:04 AM, Aleksander Grzebyta wrote:
> 
>> Hello !
>>
>> I have succeded in deploying the Sun Customer-Subscriptions-Addresses CMP
>> CMR 2.0 sample application but needed to change the type mapping BLOB to
>> RAW(255) because of exceptions like below.
>> I know it is bacause one  CMP filed of SUNSCRIPTION bean is complex 
>> type an
>> is serialized to BLOB. Has anybody found a solution for Oracle BLOB 
>> problem
>> in JBoss.
>>
>> BTW I think the JBoss stack traces are too large for exceptins because 
>> they
>> are printed for a few times for the same error.
>>
>> Should I submit a bug report on it ?
>>
>> sincerely Olek
>>
>> #
>> ###
>> ##
>>
>> 11:57:59,461 INFO  [Engine] CreateSubscriptionJsp: init
>> 11:58:04,758 ERROR [STDERR] 
>> java.lang.reflect.UndeclaredThrowableException:
>> 11:58:04,758 ERROR [STDERR] java.rmi.ServerException: Internal error 
>> getting
>> re
>> ults for field member type
>> Embedded Exception
>> Unable to load to deserialize result: java.io.StreamCorruptedException:
>> InputSt
>> eam does not contain a serialized object; nested exception is:
>> javax.ejb.EJBException: Internal error getting results for field
>> member
>> type
>> Embedded Exception
>> Unable to load to deserialize result: java.io.StreamCorruptedException:
>> InputSt
>> eam does not contain a serialized object
>> 11:58:04,758 ERROR [STDERR] javax.ejb.EJBException: Internal error 
>> getting
>> resu
>> ts for field member type
>> Embedded Exception
>> Unable to load to deserialize result: java.io.StreamCorruptedException:
>> InputSt
>> eam does not contain a serialized object
>> 11:58:04,758 ERROR [STDERR] at
>> org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAb
>> tractCMPFieldBridge.loadArgumentResults(JDBCAbstractCMPFieldBridge.java:360) 
>>
>> 11:58:04,758 ERROR [STDERR] at
>> org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAb
>> tractCMPFieldBridge.loadInstanceResults(JDBCAbstractCMPFieldBridge.java:304) 
>>
>> 11:58:04,758 ERROR [STDERR] at
>> org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntit
>> Command.execute(JDBCLoadEntityCommand.java:142)
>> 11:58:04,758 ERROR [STDERR] at
>> org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntit
>> Command.execute(JDBCLoadEntityCommand.java:62)
>> 11:58:04,758 ERROR [STDERR] at
>> org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreMana
>> er.loadEntity(JDBCStoreManager.java:495)
>> 11:58:04,758 ERROR [STDERR] at
>> org.jboss.ejb.plugins.CMPPersistenceManager.
>> oadEntity(CMPPersistenceManager.java:410)
>> 11:58:04,774 ERROR [STDERR] at
>> org.jboss.resource.connectionmanager.CachedC
>> nnectionInterceptor.loadEntity(CachedConnectionInterceptor.java:353)
>> 11:58:04,774 ERROR [STDERR] at
>> org.jboss.ejb.plugins.EntitySynchronizationI
>> terceptor.invoke(EntitySynchronizationInterceptor.java:310)
>> 11:58:04,774 ERROR [STDERR] at
>> org.jboss.resource.connectionmanager.CachedC
>> nnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
>> 11:58:04,774 ERROR [STDERR] at
>> org.jboss.ejb.plugins.EntityInstanceIntercep
>> or.invoke(EntityInstanceInterceptor.java:193)
>> 11:58:04,774 ERROR [STDERR] at
>> org.jboss.ejb.plugins.EntityLockInterceptor.
>> nvoke(EntityLockInterceptor.java:107)
>> 11:58:04,774 ERROR [STDERR] at
>> org.jboss.ejb.plugins.EntityCreationIntercep
>> or.invoke(EntityCreationInterceptor.java:69)
>> 11:58:04,774 ERROR [STDERR] at
>> org.jboss.ejb.plugins.AbstractTxInterceptor.
>> nvokeNext(AbstractTxInterceptor.java:96)
>> 11:58:04,774 ERROR [STDERR] at
>> org.jboss.ejb.plugins.TxInterceptorCMT.runWi
>> hTransactions(TxInterceptorCMT.java:167)
>> 11:58:04,774 ERROR [STDERR] at
>> org.jboss.ejb.plugins.TxInterceptorCMT.invok
>> (TxInterceptorCMT.java:61)
>> 11:58:04,774 ERROR [STDERR] at
>> org.jboss.ejb.plugins.SecurityInterceptor.in
>> oke(SecurityInterceptor.java:129)
>> 11:58:04,774 ERROR [S

Re: [JBoss-user] lazy-load-groups not honored in 3.0 final

2002-06-13 Thread Dennis Muhlestein

You were correct.  When I placed a read-ahead tag at the query level,
my finder stopped loading all fields.  

I tried placing read-ahead at the entity level and nothing changed
though.  Is that correct behavior?  I tried both on-load and on-find for
the strategy.

Also, I still have another bean with 60+ fields and when I load it.
(Only one found with the findByPrimaryKey method) the eager-load-group
does not seem to be acknowleged.  I tried putting a read-ahead at the
entity level with strategy = on-load and specifying the eager-load-group
but the whole bean is still being loaded.  Before 3.0 final this
worked.  I didn't change this bean at all.  I just noticed the problem
when I added my new bean.

Any suggestions appreciated.
-Dennis


On Wed, 2002-06-12 at 14:32, Dain Sundstrom wrote:
> The query you have posted here is using read ahead on-load.  This means 
> that the entity you are loading was located using a finder, ejbSelect or 
> cmr-field. When you locate an object using one of these methods, the 
> default eager loading specification is overridden.  By default a finder 
> will eager load on-load all of the fields in an entity.  You can specify 
> the read-ahead loadgroup in the query specification, or at the entity level.
> 
> -dain
> 
> Dennis Muhlestein wrote:
> 
> >>Did you specify the default eager-load-group for the entity 
> >>you are having a problem?
> >>
> > 
> > It's right in there. (See xml below)
> > Header > 
> > JBoss, before 3.0 final, didn't load it until I viewed a message.  Now,
> > on this EJB (with 3.0 final), (And my other really big EJB) all fields
> > are loaded instead of in their respective load groups.
> > 
> > JBoss prints this when loading messages.
> > 
> > Executing SQL: SELECT Id,Owner, ToUser, FromUser, Created, Subject,
> > Message, FolderId FROM Messages WHERE (Id=?) OR (Id=?)..
> > 
> > The Message Field is not in the eager load group as far as I can tell.
> > 
> > Does the Xml Look correct?  My validator doesn't find any problems.
> > 
> > Thanks for your time..
> > Dennis
> > 
> > 
> > On Wed, 2002-06-12 at 12:57, Dain Sundstrom wrote:
> > 
> >>That is an eager load problem.  Lazy loading only happens when faulting 
> >>in data.  Did you specify the default eager-load-group for the entity 
> >>you are having a problem?
> >>
> >>-dain
> >>
> >>Dennis Muhlestein wrote:
> >>
> >>
> >>>Here is my dtd:
> >>> >>>"http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd";>
> >>>
> >>>Here is my load section:
> >>>
> >>>
> >>>
> >>>   
> >>>   Header  
>  
> >>>owner
> >>>toUser
> >>>fromUser
> >>>created
> >>>subject
> >>>folderId
> >>>
> >>>
> >>>Body
> >>>message
> >>>
> >>>
> >>>Header
> >>>
> >>>Body
> >>>
> >>>
> >>>
> >>>I don't get any warnings and When My MessageEJB loads, the message field
> >>>is loaded as well.
> >>>
> >>>JBoss 3.0 final / SuSE Linux 7.3 / sun jdk1.4.0 
> >>>
> >>>I don't get any jboss messages when I deploy.  Not quite as big a deal
> >>>on this ejb, but I have another one with many fields.  It has about 6
> >>>load groups bit it is also being loaded all at once.
> >>>
> >>>Thanks Dennis
> >>>
> >>>
> >>>On Wed, 2002-06-12 at 11:08, Dain Sundstrom wrote:
> >>>
> >>>
> The declaration of lazy load groups did change.  Does your 
> jbosscmp-jdbc.xml file declare a DOCTYPE?  If not, add it and you will 
> see messages telling you where the problem are.  The JBossCMP 
> documentation contains a complete read-ahead example, and it does lazy 
> loading correctly.
> 
> -dain
> 
> Dennis Muhlestein wrote:
> 
> 
> 
> >I have a couple ejbs that have an eager and multiple lazy load groups.
> >
> >I set them on on 3.0 rc2&3 and everything worked fine.  Now, on 3.0
> >final.  I noticed that in my debug output of sql, the entire ejb is
> >being loaded again.
> >
> >Has anything changed?  Maybe someone can verify this before I post a bug
> >or something.
> >
> >Thanks
> >Dennis
> >
> >
> >
> >
> >___
> >
> >Sponsored by:
> >ThinkGeek at http://www.ThinkGeek.com/
> >___
> >JBoss-user mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
> >
> 
> ___
> 
> Sponsored by:
> ThinkGeek at http://www.ThinkGeek.com/
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED

Re: [JBoss-user] Please help jboss-3.0.0_tomcat-4.0.3 does not work (tomcat4-service.xml changed)

2002-06-13 Thread Damon Torgerson

You have to define a context either in your application.xml file or your 
server.xml/web.xml files.

On Thursday, June 13, 2002, at 10:34 AM, [EMAIL PROTECTED] wrote:

> Hi,
>
> Please help me to configure out what is going on.
> I downloaded the jboss-3.0.0_tomcat-4.0.3.zip file and
> setup all paths. Jboss does not complain about much and
> it works. However, when I try to access tomcat by
> accessing the http://localhost:8080 in netscape4.76
> browser, I got the following messages:
>  Apache Tomcat/4.0.3 - HTTP Status 500 - No Context
> configured to process this request.
>
> Following messages are from Jboss console about
> cataline.
>
> * Begin Cataline Log messages
> ***
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/tomcat4-service.
> xml
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-common.
> jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-common.
> jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-default.
> jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-default.
> jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/naming-factory.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/naming-factory.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/tomcat-
> ajp.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/tomcat-
> ajp.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-webdav.
> jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-webdav.
> jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-invoker.
> jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-invoker.
> jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/catalina.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/catalina.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-resources.
> jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-resources.
> jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-snoop.
> jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-snoop.
> jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-common.
> jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-common.
> jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/bin/bootstrap.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/bin/bootstrap.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-manager.
> jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-manager.
> jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/jakarta-regexp-1.
> 2.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/jakarta-regexp-1.
> 2.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/jasper-
> compiler.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/jasper-
> compiler.jar
> INFO  [MainDeployer] Starting deployment of package:
> fi

Re: [JBoss-user] CMR - CMP Problem on Jboss 3.0 final

2002-06-13 Thread Dain Sundstrom

It looks like you are attempting to map to things to the departmentId 
column.   Some have gotten this working in the past, but it is not 
supported.  If you are not doing this, I'll need more information to 
help you. Specifically the relevant sections of the ejb-jar.xml file and 
the jbosscmp-jdbc.xml file.

-dain

Sebastien ASTIE wrote:

 > Hi,
 >
 > I have a problem with creating entries in my DB.
 >
 > When i want to access my data in the db everything runs fine...
 >
 > When i want to add data in the DB using my entity bean, i have an 
exception
 >  saying that i specified the column twice in my query...
 >
 >
 >
 > I have two tables Employee & Department (Two entity beans:
 > TDepartment  and TEmployee).
 >
 > TDepartment has a relationship 1:N with TEmployee.
 >
 > The department pk is called ID, the foreign key in Employee is
 > departmentId.
 >
 >
 >
 > When i look at the sql query generated by jboss, it has 2 fields 
departmentId
 >  when i try to add a new employee.
 >
 >
 >
 > If anybody has any answer please let me know
 >
 >
 >
 > Thank you
 >



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] questions on starting multiple jboss3.0 instances

2002-06-13 Thread David Ward

Igor,

Not sure if you have an Outlook virus (I can see in the mail headers 
that Outlook's your X-Mailer) or some other messed up automation, but 
this email has been re-sent to the jboss-user list MANY times.

Please track down this spam-like problem for: 1) yourself, 2) the 
members of this list and 3) possibly everyone else in your address book 
(if you do, indeed have an Outlook virus.).

BTW, I'm not emailing you this directly because if you do have a virus, 
I don't want my address in your book.

Thanks,
David

--

Igor Rabinovich wrote:
> you need to run
>  
> run -c myserver
> 
> -Original Message-
> *From:* [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]*On Behalf Of *Sheng Zou
> *Sent:* Wednesday, June 12, 2002 11:43 AM
> *To:* '[EMAIL PROTECTED]'
> *Subject:* [JBoss-user] questions on starting multiple jboss3.0
> instances
> 
> Hi all,
> 
> I am trying to start multiple jboss3.0 instances, and I made copies
> of jboss-3.0.0/server/default to jboss-3.0.0/server/myserver. Then I
> run the new instance as jboss-3.0.0/bin/run.bat myserver, however, I
> got this message at the beginning:
> 
> run.bat: unused non-option argument: myserver
> And it doesn't seem to run "myserver" instance.
> 
> Help pls!
> 
> thanks,
> sheng
> 


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] testing

2002-06-13 Thread kleung

Testing

Kam Lung Leung
System Architect
Wireless Web Access Inc.

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Please help jboss-3.0.0_tomcat-4.0.3 does not work (tomcat4-service.xml changed)

2002-06-13 Thread Greg Turner

The JBoss/Tomcat combo DOES work.  You just need to learn how to work it.  If you are 
using the JBoss/Tomcat combo,
that means you are running an app server call JBoss, which means Tomcat does not run 
independently.  This means
Tomcat is just another service offered by the JBoss app server.  All of this means 
that you need to create an ear
file and put it in the deploy directory.  The ear file should contain the mappings to 
map the various contexts to
war files.  Please note that none of what I have written is specific to JBoss.  Its 
all standard for any app
server.  I suggest you get yourself a good book about J2EE !!   I've attached a sample 
file that maps the root
context "/" to a war file and maps a context called "/foo" to another war file.



[EMAIL PROTECTED] wrote:

> Hi,
>
> Please help me to configure out what is going on.
> I downloaded the jboss-3.0.0_tomcat-4.0.3.zip file and
> setup all paths. Jboss does not complain about much and
> it works. However, when I try to access tomcat by
> accessing the http://localhost:8080 in netscape4.76
> browser, I got the following messages:
>  Apache Tomcat/4.0.3 - HTTP Status 500 - No Context
> configured to process this request.
>
> Following messages are from Jboss console about
> cataline.
>
> * Begin Cataline Log messages
> ***
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/tomcat4-service.xml
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-common.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-common.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-default.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-default.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/naming-factory.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/naming-factory.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/tomcat-ajp.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/tomcat-ajp.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-webdav.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-webdav.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-invoker.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-invoker.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/catalina.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/catalina.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-resources.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-resources.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-snoop.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-snoop.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-common.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-common.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/bin/bootstrap.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/bin/bootstrap.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-manager.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-manager.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.

RE: [JBoss-user] proble with cmr in JbossRC2

2002-06-13 Thread Ryan Lentell



vk,
 
I am 
experiencing the exact same problem with the final release. It appears not to be 
using the Foreign-Key mapping specified in jbosscmp-jdbc is being ignored. Is 
there a configuration necessary someplace outside of these two files that we are 
missing.
 
Ryan
 
I 
believe two of the field names in your jbosscmp-jdbc. I do not believe this 
fixes the problem as I already fixed this on mine and it did not 
help.
 
foreign-key-field  should be key-field
foreign-key-fields should be key-field 
 
 
 
 

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of karnati 
  venkatSent: Thursday, June 13, 2002 1:41 PMTo: 
  [EMAIL PROTECTED]Subject: [JBoss-user] proble with 
  cmr in JbossRC2
  Hi,
  I have problem while working with cmr. Even though it deployed properly 
  giving following exception.
  While doing findByPrimaryKey, it is picking cmr field also, which it should 
  not.
  2002-06-13 12:21:47,541 DEBUG 
  [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.PatientAllergy] 
  Executing SQL: SELECT ALLERGYID,REVIEWED, PATID, ONSETDATE, ALLERGYTYPE, 
  ALLERGYREACTION, ALLERGYCOMMENT, MODIFIEDBY, MODIFIED, codevalues FROM PATIENTALLERGY 
  WHERE (ALLERGYID=?) OR (ALLERGYID=?)2002-06-13 12:21:47,551 ERROR 
  [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackException, 
  causedBy:java.sql.SQLException: ORA-00904: invalid column name
   at 
  oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168) at 
  oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208) at 
  oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543) at 
  oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
   
  my ejb-jar.xml  the relation is
     
    
  PatientAllergy-Codevalues  
   
  one-PatientAllergy-has-one-Codevalues 
  One 
      
  PatientAllergy 
   
    
    
  codevalues  
   
    
    
    
   Codevalues-has-one-PatientAllergy  
   One  
    
    
     
     
  Codevalues   
     
     
      
    
  and cmp jdbc is
        
     PatientAllergy-Codevalues   one-PatientAllergy-has-one-CodevaluesallergyType ALLERGYTYPE  
      
     Codevalues-has-one-PatientAllergy  
        
     
  Please any one help meto clear this problem
  Bye
  vk
   
  
  
  Do You Yahoo!?Sign-up 
  for Video Highlights of 2002 FIFA World Cup


Re: [JBoss-user] problem with BLOB in Oracle

2002-06-13 Thread Damon Torgerson

I will post the code when I get it working...but I'm by no means an 
expert so ..

-damon

On Thursday, June 13, 2002, at 11:04 AM, Dain Sundstrom wrote:

> When you do get BLOB and CLOB working can you post the simple code I 
> need to integrate.  I'm going to make results loading much more 
> pluggable soon, so we can have an Oracle custom loader.
>
> -dain
>
> Damon Torgerson wrote:
>
>> BLOBs and CLOBs are a pain.  Well, they're a pain when you are trying 
>> to implement them your first time like me ;-)
>> Anyway, I'm pretty close and I've been following a previous thread 
>> here:
>> http://www.kpi.com.au/jbossarchive/0012/0028.html
>> and
>> http://www.kpi.com.au/jbossarchive/0012/0031.html
>> As well, I'm reading Java Programming with Oracle JDBC Chapter 12, 
>> which has a lot of information and examples...although they are not 
>> EJB examples but rather trivial JDBC examples...but good none the less.
>> When I get my solution working I am going to post the entire thing 
>> because a complete example would really be helpful to newbies like 
>> me  but I guess that doesn't really help you right now ;-)
>> Hope the above helps a little bit,
>> Damon
>> On Thursday, June 13, 2002, at 03:04 AM, Aleksander Grzebyta wrote:
>>> Hello !
>>>
>>> I have succeded in deploying the Sun Customer-Subscriptions-Addresses 
>>> CMP
>>> CMR 2.0 sample application but needed to change the type mapping BLOB 
>>> to
>>> RAW(255) because of exceptions like below.
>>> I know it is bacause one  CMP filed of SUNSCRIPTION bean is complex 
>>> type an
>>> is serialized to BLOB. Has anybody found a solution for Oracle BLOB 
>>> problem
>>> in JBoss.
>>>
>>> BTW I think the JBoss stack traces are too large for exceptins 
>>> because they
>>> are printed for a few times for the same error.
>>>
>>> Should I submit a bug report on it ?
>>>
>>> sincerely Olek
>>>
>>> ###
>>> ##
>>> ###
>>> ##
>>>
>>> 11:57:59,461 INFO  [Engine] CreateSubscriptionJsp: init
>>> 11:58:04,758 ERROR [STDERR] 
>>> java.lang.reflect.UndeclaredThrowableException:
>>> 11:58:04,758 ERROR [STDERR] java.rmi.ServerException: Internal error 
>>> getting
>>> re
>>> ults for field member type
>>> Embedded Exception
>>> Unable to load to deserialize result: 
>>> java.io.StreamCorruptedException:
>>> InputSt
>>> eam does not contain a serialized object; nested exception is:
>>> javax.ejb.EJBException: Internal error getting results for 
>>> field
>>> member
>>> type
>>> Embedded Exception
>>> Unable to load to deserialize result: 
>>> java.io.StreamCorruptedException:
>>> InputSt
>>> eam does not contain a serialized object
>>> 11:58:04,758 ERROR [STDERR] javax.ejb.EJBException: Internal error 
>>> getting
>>> resu
>>> ts for field member type
>>> Embedded Exception
>>> Unable to load to deserialize result: 
>>> java.io.StreamCorruptedException:
>>> InputSt
>>> eam does not contain a serialized object
>>> 11:58:04,758 ERROR [STDERR] at
>>> org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAb
>>> tractCMPFieldBridge.loadArgumentResults(JDBCAbstractCMPFieldBridge.java:
>>> 360)
>>> 11:58:04,758 ERROR [STDERR] at
>>> org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAb
>>> tractCMPFieldBridge.loadInstanceResults(JDBCAbstractCMPFieldBridge.java:
>>> 304)
>>> 11:58:04,758 ERROR [STDERR] at
>>> org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntit
>>> Command.execute(JDBCLoadEntityCommand.java:142)
>>> 11:58:04,758 ERROR [STDERR] at
>>> org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntit
>>> Command.execute(JDBCLoadEntityCommand.java:62)
>>> 11:58:04,758 ERROR [STDERR] at
>>> org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreMana
>>> er.loadEntity(JDBCStoreManager.java:495)
>>> 11:58:04,758 ERROR [STDERR] at
>>> org.jboss.ejb.plugins.CMPPersistenceManager.
>>> oadEntity(CMPPersistenceManager.java:410)
>>> 11:58:04,774 ERROR [STDERR] at
>>> org.jboss.resource.connectionmanager.CachedC
>>> nnectionInterceptor.loadEntity(CachedConnectionInterceptor.java:353)
>>> 11:58:04,774 ERROR [STDERR] at
>>> org.jboss.ejb.plugins.EntitySynchronizationI
>>> terceptor.invoke(EntitySynchronizationInterceptor.java:310)
>>> 11:58:04,774 ERROR [STDERR] at
>>> org.jboss.resource.connectionmanager.CachedC
>>> nnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
>>> 11:58:04,774 ERROR [STDERR] at
>>> org.jboss.ejb.plugins.EntityInstanceIntercep
>>> or.invoke(EntityInstanceInterceptor.java:193)
>>> 11:58:04,774 ERROR [STDERR] at
>>> org.jboss.ejb.plugins.EntityLockInterceptor.
>>> nvoke(EntityLockInterceptor.java:107)
>>> 11:58:04,774 ERROR [STDERR] at
>>> org.jboss.ejb.plugins.EntityCreationIntercep
>>> or.invoke(EntityCreationInterceptor.java:69)
>>> 11:58:04,774 ERROR [STDERR] at
>>> org.jboss.ejb.plugins.AbstractTxInterceptor.
>>> nvokeNext(AbstractTxInterceptor.java:96)
>>> 11:58:04,774 ERROR [STDERR] at
>>> org.jboss.ejb.plugins.TxInterceptorCMT.runWi
>>> hTransaction

RE: [JBoss-user] jetty and contexts

2002-06-13 Thread LaBanca, Rick

ok, I did know about that and in fact the final deliverable is likely an
ear.

But the problem is the same. My admin gets and ear, and he wants to drop
that into X number of servers. It would be preferred if the servers were
configured for mapping, but instead he would have to touch inside the ear
(use a q-tip!)

My premise is that an ear should be as server unaware as possible, but it's
also a practical matter to keep server configs separated. 

rick

> -Original Message-
> From: David Ward [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 12:45 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] jetty and contexts
> 
> 
> You have another option, but I'm not sure it fulfills your 
> every desire...
> 
> Put your .war file in a .ear file, and then put this in 
> /META-INF/application.xml (also in your .ear file):
> 
> 
>  Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>
> 
>  My App
>  My app is super-cool.
>  
>  
>  myapp.war
>  myapp
>  
>  
> 
> 
> Now, I've done this pleny of times (successfully) giving it a 
> context-root.  However, I'm not sure if replacing the context-root of 
> "myapp" with "/" will work.
> 
> Give it a try and let us all know how it turned out.
> 
> Oh yeah - note that the doctype ref above assumes J2EE 1.3, not 1.2.
> 
> David
> 
> --
> 
> LaBanca, Rick wrote:
> > JBoss 3.0 with jetty. Say I have a war, foo.war, and I 
> deploy it. By default
> > it will come up as http://localhost:8080/foo .
> > 
> > What I really want to do is have it as root. From what I'm 
> reading, the only
> > way to do this is by setting it in a jboss-web.xml file, 
> and putting in the
> > war (/).
> > 
> > Yep, that works. But what I really want is a way to map the 
> app defined name
> > to my server externally. I find it odd that server specific 
> instructions
> > have to be packaged with the app... or did I miss something 
> and I can
> > configure it independant of the app contents?
> > 
> > rick
> > 
> > ___
> > 
> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > August 25-28 in Las Vegas - 
> http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> > 
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
> -- 
> 
> -
> David Ward
> [EMAIL PROTECTED]
> http://www.dotech.com
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
> http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] jetty and contexts

2002-06-13 Thread David Ward

Ok, then (if it's true your app is just web-tier), just give him (the 
admin) a war file without a context-root in jboss-web.xml.  If he wants 
it in /, tell him to name the war ROOT.war.  If he wants it in /foobar, 
tell him to name the war foobar.war.  If he wants it... well, you get 
the picture.

David

--

LaBanca, Rick wrote:
> ok, I did know about that and in fact the final deliverable is likely an
> ear.
> 
> But the problem is the same. My admin gets and ear, and he wants to drop
> that into X number of servers. It would be preferred if the servers were
> configured for mapping, but instead he would have to touch inside the ear
> (use a q-tip!)
> 
> My premise is that an ear should be as server unaware as possible, but it's
> also a practical matter to keep server configs separated. 
> 
> rick
> 
> 
>>-Original Message-
>>From: David Ward [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, June 13, 2002 12:45 PM
>>To: [EMAIL PROTECTED]
>>Subject: Re: [JBoss-user] jetty and contexts
>>
>>
>>You have another option, but I'm not sure it fulfills your 
>>every desire...
>>
>>Put your .war file in a .ear file, and then put this in 
>>/META-INF/application.xml (also in your .ear file):
>>
>>
>>>Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>
>>
>> My App
>> My app is super-cool.
>> 
>> 
>> myapp.war
>> myapp
>> 
>> 
>>
>>
>>Now, I've done this pleny of times (successfully) giving it a 
>>context-root.  However, I'm not sure if replacing the context-root of 
>>"myapp" with "/" will work.
>>
>>Give it a try and let us all know how it turned out.
>>
>>Oh yeah - note that the doctype ref above assumes J2EE 1.3, not 1.2.
>>
>>David
>>
>>--
>>
>>LaBanca, Rick wrote:
>>
>>>JBoss 3.0 with jetty. Say I have a war, foo.war, and I 
>>
>>deploy it. By default
>>
>>>it will come up as http://localhost:8080/foo .
>>>
>>>What I really want to do is have it as root. From what I'm 
>>
>>reading, the only
>>
>>>way to do this is by setting it in a jboss-web.xml file, 
>>
>>and putting in the
>>
>>>war (/).
>>>
>>>Yep, that works. But what I really want is a way to map the 
>>
>>app defined name
>>
>>>to my server externally. I find it odd that server specific 
>>
>>instructions
>>
>>>have to be packaged with the app... or did I miss something 
>>
>>and I can
>>
>>>configure it independant of the app contents?
>>>
>>>rick
>>>
>>>___
>>>
>>>Don't miss the 2002 Sprint PCS Application Developer's Conference
>>>August 25-28 in Las Vegas - 
>>
>>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>>
>>>___
>>>JBoss-user mailing list
>>>[EMAIL PROTECTED]
>>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>>
>>
>>-- 
>>
>>-
>>David Ward
>>[EMAIL PROTECTED]
>>http://www.dotech.com
>>
>>
>>___
>>
>>Don't miss the 2002 Sprint PCS Application Developer's Conference
>>August 25-28 in Las Vegas - 
>>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>>
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



-- 

-
David Ward
[EMAIL PROTECTED]
http://www.dotech.com


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Re: CMP Bug: Bad SQL for FK field

2002-06-13 Thread Dain Sundstrom

Jonathan.O'[EMAIL PROTECTED] wrote:

> 
> We fixed our problems by hacking the JBoss source! Thank God for open 
> source.
> 
> We changed the getInsertFields() in JDBCCreateEntityCommand to call 
> entity.getCmpFields() instead of entity.getFields(). The 
> entity.getFields() gives you a list of CMP and CMR fields, and of 
> course, if a CMP and CMR field map to same DB column, then we get our 
> bad INSERT statement.
> 
> Now, our INSERT command only contains the CMP fields, and none of the 
> nulled CMR fields. Our old workaround works again. We set the FK field 
> using the CMP setter in ejbCreate() and then we have to set it again 
> usin the CMR setter at ejbPostCreate(). Yeah, I know we could just make 
> the column nullable, but don't ask!


I know. I know.

 
> Dain, is this a legitimate fix? We reckon its safe as CMR fields should 
> only be set in ejbPostCreate(). Also, the INSERT statement should be 
> smaller.


It works, but it is not a great solution.  The problem is you 
effectively end up with two caches of column values (one in the CMP 
field and on the CMR field), which could become a problem later (cache 
synchronization).  The real solution is to write another CMPField 
implementation that wraps the CMR field (very easy).  Then there is the 
problem of writing classes to handle the new metadata required (major 
pain). I'm working on the new metadata code which uses XSL and xml data 
binding (haven't decided which one yet).

 
> I was also having a look at the source to see if we could move the 
> record insertion to after the ejbPostCreate. In CMPPersistenceManager, 
> the CreateEntity() method calls store.createEntity(...). Would it be 
> possible to ask the entity for its primary key (This is actually done in 
> the JDBCCreateEntityCommand.execute() method). Use the key to patch up 
> the cache, and then move the call to store.createEntity() to 
> postCreateEntity() method? I'm sure its not so simple, but you never know!


It is not that simple.  If you fix the insert problem you still have a 
delete problem.  The simplest solution is to use deferred foreign keys 
and database cascade delete (which should work today).  There is a guy 
who said that he is working on it, but I don't know how far he is (or if 
he is still working on it).

-dain



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Is deadlock possible with multiple connection po ols?

2002-06-13 Thread David Jencks

I don't see you using xid2new branch.  AFAIK it couldn't be used for either
tx/xares.

Your scenario is explicitly required by the jta spec (I think, maybe jca
spec).

In addition, I believe that this should be allowed, but there is no mention
of it in any spec I can find (JTA, JCA, X/OPEN xa):

> // Thread 1 (transaction xid1) requests a connection; we give 
> // it xares1.
> xares1.start(xid1, TMNOFLAGS);
> // Application does some work, then closes the connection; we 
> // return it to the pool.
> xares1.end(xid1, TMSUSPEND);
>  
 
> // Thread 1 (transaction xid1) requests a connection again; we give it
> // xares2 this time.
> xares2.start(xid1, TMNOFLAGS);
> // Application does some work, then closes the connection; we 
> // return it to the pool.
> xares2.end(xid1, TMSUSPEND);
> 
> // Thread 1: commit xid1 using xares1.
> xares1.end(xid1, TMSUCCESS);
> status = xares1.prepare(xid1);
> xares1.commit(xid1, false);
> 
This is what I would like the jca 1.5 spec to clarify explicitly.

david jencks

On 2002.06.13 12:44:39 -0400 "Geer, Benjamin" wrote:
> Sorry, my example was garbled.  Here's the scenario whose validity I'm
> trying to confirm:
> 
> Say we have a pool of two connections to database MyDB (XAResource
> objects xares1 and xares2).  We start two transactions (Xid objects xid1
> and xid2).  The tx manager can make the following calls:
> 
> // Thread 1 (transaction xid1) requests a connection; we give 
> // it xares1.
> xares1.start(xid1, TMNOFLAGS);
> // Application does some work, then closes the connection; we 
> // return it to the pool.
> xares1.end(xid1, TMSUSPEND);
>  
> // Thread 2 (transaction xid2) requests a connection; we give 
> // it xares2.
> xares2.start(xid2, TMNOFLAGS);
> // Application does some work, then closes the connection; we 
> // return it to the pool.
> xares2.end(xid2, TMSUSPEND);
> 
> // Thread 1 (transaction xid1) requests a connection again; we give it
> // xares1 again.
> xares1.start(xid1, TMNOFLAGS);
> // Application does some work, then closes the connection; we 
> // return it to the pool.
> xares1.end(xid1, TMSUSPEND);
> 
> // Thread 1: commit xid1 using xares1.
> xares1.end(xid1, TMSUCCESS);
> status = xares1.prepare(xid1);
> xares1.commit(xid1, false);
> 
> // Thread 2: commit xid2, *also using xares1*.
> xid2NewBranch = makeNewBranch(xid2);
> xares1.start(xid2, TMNOFLAGS);
> xares1.end(xid2, TMSUCCESS);
> status = xares1.prepare(xid2);
> xares1.commit(xid2, false);
> 
> In other words, xares1 has to commit the work done for xid2, even though
> it's never seen xid2 before (because all the work for xid2 was done on
> xares2).  This works only because xares1 and xares2 are both connected
> to database MyDB.  This implies that the database maintains all the
> transaction state, and that the connection objects are basically
> stateless.
> 
> Is this correct?  (I'm going to have to write my own XAResource, so I
> want to make sure that this is the sort of scenario it needs to be able
> to handle.)  Also, is the sequence of TMSUSPEND and TMRESUME correct in
> the above example?
> 
> Benjamin
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] problem with BLOB in Oracle

2002-06-13 Thread Dain Sundstrom

Aleksander Grzebyta wrote:

> Hello !
> 
> I have succeded in deploying the Sun Customer-Subscriptions-Addresses CMP
> CMR 2.0 sample application 


That is cool.  Did you have to change anything in the example code?  If 
so can you post a patch at source forge.  We like to have all the 
examples on our demos page.

> but needed to change the type mapping BLOB to
> RAW(255) because of exceptions like below.
> I know it is bacause one  CMP filed of SUNSCRIPTION bean is complex type an
> is serialized to BLOB. Has anybody found a solution for Oracle BLOB problem
> in JBoss.


The problem is if the object serializes to more then 255 bytes it is 
truncated and can't be reloaded (StreamCorruptedException).

 
> BTW I think the JBoss stack traces are too large for exceptins because they
> are printed for a few times for the same error.


I agree, but Jason doesn't agree with us and he maintains the exception 
logging code.

 
> Should I submit a bug report on it ?


This is a known problem.  There are several reported bugs around this 
problem.


-dain



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



AW: [JBoss-user] lazy-load-groups not honored in 3.0 final

2002-06-13 Thread Stefan Groschupf

Hi,
I have to distribute my Servlet on two machines. Can I use Jboss instead of
a Apache load balancing?
But I have may be some tricky tasks.
My Servlet write files to disk, so whats happen when I use a JBoss cluster?
How much I must change on my Servlet when I use JBoss?
Would a JBoss cluster provide more performance then more then multiple
instances?

Thanks for any hints.
Stefan



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Calling entity outside of TX

2002-06-13 Thread Dain Sundstrom

You must have a transaction.  The spec suggests this requirement, but 
allows a way out if I wanted to support it.  It is on the todo list to 
support read-only entities without transactions, but I'm not sure if I 
want to add support.  I really don't understand why you would not want a 
transaction (they have immeasurable over head in JBoss).  If you are 
worried about long running transactions just use requires new.

-dain

Jeff Schnitzer wrote:

> In all my tests on JBoss 3.0 (release), trying to access an entity bean
> outside of a transaction results in "Error getting application tx data
> map" from an NPE.  The problem goes away if I set my transaction
> attribute to "Required".
> 
> Does everyone else experience this same behavior?
> 
> Shouldn't this provide me with cached (and possibly stale) data?  The
> default commit option for CMP 2.0 beans is B...
> 
> Thanks,
> Jeff Schnitzer
> [EMAIL PROTECTED]
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=dntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] forums

2002-06-13 Thread Dain Sundstrom

When Marc gets back from Montreal (next week).

-dain

Gary Grobe wrote:

> Any idea when they'll be back up?
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
> http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Calling entity outside of TX

2002-06-13 Thread Eric Kaplan

Dain

I think you didn't really mean immeasurable, but rather insignificant. :)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Dain
Sundstrom
Sent: Thursday, June 13, 2002 2:50 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Calling entity outside of TX


You must have a transaction.  The spec suggests this requirement, but
allows a way out if I wanted to support it.  It is on the todo list to
support read-only entities without transactions, but I'm not sure if I
want to add support.  I really don't understand why you would not want a
transaction (they have immeasurable over head in JBoss).  If you are
worried about long running transactions just use requires new.

-dain

Jeff Schnitzer wrote:

> In all my tests on JBoss 3.0 (release), trying to access an entity bean
> outside of a transaction results in "Error getting application tx data
> map" from an NPE.  The problem goes away if I set my transaction
> attribute to "Required".
>
> Does everyone else experience this same behavior?
>
> Shouldn't this provide me with cached (and possibly stale) data?  The
> default commit option for CMP 2.0 beans is B...
>
> Thanks,
> Jeff Schnitzer
> [EMAIL PROTECTED]
>
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=dntextlink
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Calling entity outside of TX

2002-06-13 Thread Dain Sundstrom

Ya I got to excited here.  Transactions are really insignificant in 
JBoss.  Transactions are really only expensive when they are distributed 
and the built in Jboss implementation does not support distributed 
transactions.

-dain

Eric Kaplan wrote:

> Dain
> 
> I think you didn't really mean immeasurable, but rather insignificant. :)
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Dain
> Sundstrom
> Sent: Thursday, June 13, 2002 2:50 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Calling entity outside of TX
> 
> 
> You must have a transaction.  The spec suggests this requirement, but
> allows a way out if I wanted to support it.  It is on the todo list to
> support read-only entities without transactions, but I'm not sure if I
> want to add support.  I really don't understand why you would not want a
> transaction (they have immeasurable over head in JBoss).  If you are
> worried about long running transactions just use requires new.
> 
> -dain
> 
> Jeff Schnitzer wrote:
> 
> 
>>In all my tests on JBoss 3.0 (release), trying to access an entity bean
>>outside of a transaction results in "Error getting application tx data
>>map" from an NPE.  The problem goes away if I set my transaction
>>attribute to "Required".
>>
>>Does everyone else experience this same behavior?
>>
>>Shouldn't this provide me with cached (and possibly stale) data?  The
>>default commit option for CMP 2.0 beans is B...
>>
>>Thanks,
>>Jeff Schnitzer
>>[EMAIL PROTECTED]
>>
>>___
>>
>>Don't miss the 2002 Sprint PCS Application Developer's Conference
>>August 25-28 in Las Vegas -
>>
> http://devcon.sprintpcs.com/adp/index.cfm?source=dntextlink
> 
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>>
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -
> http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Problems with template client example

2002-06-13 Thread Jim Williams

I asked this yesterday but I probably did not give
enough information to get a good answer.

All I want to do is test the template install with
jboss3.0 so I can move my development to jboss.

I can see the modules are installed when I do the
build for the template.

09:57:49,225 INFO  [MainDeployer] Starting deployment
of package:
file:/home/jim/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/ejb-test.jar
09:57:50,314 INFO  [EJBDeployer]
Bean   : test/TestMessage
Method : public void ejbCreate() throws
CreateException
Section: 15.7.3
Warning: The ejbCreate() method must define no
application exceptions.

09:57:50,316 INFO  [EJBDeployer]
Bean   : test/TestMessage
Method : public void ejbRemove() throws EJBException
Section: 15.7.5
Warning: The ejbRemove() method must define no
application exceptions.

09:57:50,320 INFO  [EjbModule] Creating
09:57:50,424 INFO  [EjbModule] Deploying
test/TestEntity
09:57:51,440 INFO  [EjbModule] Deploying
test/SequenceGenerator
09:57:51,475 INFO  [EjbModule] Deploying
test/TestSession
09:57:51,744 INFO  [EjbModule] Deploying
test/TestMessage
09:57:57,739 INFO  [EjbModule] Created
09:57:57,741 INFO  [EjbModule] Starting
09:57:58,234 INFO  [test/TestEntity] Created table
'TESTENTITY' successfully.
09:57:58,337 INFO  [EjbModule] Started
09:57:58,339 INFO  [MainDeployer] Successfully
completed deployment of package:
file:/home/jim/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/ejb-test.jar
09:57:58,358 INFO  [URLDeploymentScanner] Started
09:57:58,359 INFO  [MainDeployer] Successfully
completed deployment of package:
file:/home/jim/jboss-3.0.0_tomcat-4.0.3/server/default/conf/jboss-service.xml
09:57:58,360 INFO  [Server] JBoss (MX MicroKernel)
[3.0.0 Date:200205311035] Started in 0m:41s:836ms

So I go to run the client and I get this error.  NOTE
I will get this error wether the jboss server is
running or not!!! So that tells me there is a problem
with my config for jndi.

/opt/j2sdk1.4.0//lib/tools.jar test.client.TestClient
javax.naming.NoInitialContextException: Need to
specify class name in environment or system property,
or as an applet parameter, or in an application
resource file:  java.naming.factory.initial
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:640)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280)
at
javax.naming.InitialContext.lookup(InitialContext.java:347)
at
test.client.TestClient.main(TestClient.java:21)




Since I think it is the jndi config I will include my
file also (even though it is the default):

java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=localhost
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

I have tried everything for the url attribute that I
can think of to identify the machine and the port but
nothing changed.  I ahve read everything I can find on
jndi and it looks like I am doing thing correctly.

If I have to spend to much more time just checking if
I can get this running I am going to have to abandon
jboss all together and go back to doing things myself
and I do not want to do that.  This app is going to
grow way beyond what I am doing for this demo so I
will need sometype of container.  Maybe I should just
go back to the 2.4.6 version.

In case it matters I am doing this on RH 7.2 using
jdk1.4.

Please help a newbie!

Jim Williams
Software Engineer, 4Access Communications

__

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Using auto increment of mysql for PK

2002-06-13 Thread Javier A. Soltero

Do you or anyone else on this list have any suggestions about handling 
this problem effectively (and portably for different DBs) in 3.0?

Any suggestions would be appreciated. Currently, I'm guessing the only 
way to accomplish this is to have a separate class which can look up the 
next value in the sequence.

thanks.

-javier

Dain Sundstrom wrote:
> That won't work with CMP.  It does work with BMP if you are going that 
> route.  Unknown primary keys are are at the top of the new features 
> list,  so it will be at least a month.
> 
> -dain
> 
> Arthur Wang wrote:
> 
>> I am using auto_increment function of MySql database for primary key of
>> entity bean , so I don't need to set pk in ejbCreate, mysql will 
>> populate pk
>> field in the datatbase automatically, but it has following exceptions.
>>
>> -Original Message-
>> From: Dain Sundstrom [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, June 07, 2002 4:35 PM
>> To: [EMAIL PROTECTED]
>> Subject: Re: [JBoss-user] Using auto increment of mysql for PK
>>
>>
>> You need to be more specific. What exactly did you try?
>>
>> -dain
>>
>> Arthur Wang wrote:
>>
>>
>>> Hi,
>>> I tried to use auto_increment for primary key when I create a new entity
>>> bean, but there are following exception:
>>>
>>> -
>>> HTTP ERROR: 500 removing bean lock and it has tx set!; nested exception
>>>
>> is:
>>
>>> java.lang.IllegalStateException: removing bean lock and it has tx set!
>>> Embedded Exception removing bean lock and it has tx set!; nested 
>>> exception
>>> is: java.lang.IllegalStateException: removing bean lock and it has tx
>>>
>> set!;
>>
>>> nested exception is: javax.ejb.TransactionRolledbackLocalException:
>>>
>> removing
>>
>>> bean lock and it has tx set!; nested exception is:
>>> java.lang.IllegalStateException: removing bean lock and it has tx set!
>>> Embedded Exception removing bean lock and it has tx set!; nested 
>>> exception
>>> is: java.lang.IllegalStateException: removing bean lock and it has tx 
>>> set!
>>> 
>>>
>>> Any reply would be highly appreciated.
>>> thanks
>>>
>>>
>>> Arthur Wang
>>> Ensemble Systems Inc.
>>> Tel: (604)232-7954 Fax: (604)231-9545
>>> www.ensemble-systems.com
>>>
>>>
>>>
>>> ___
>>>
>>> Don't miss the 2002 Sprint PCS Application Developer's Conference
>>> August 25-28 in Las Vegas -
>>>
>> http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>>
>>> ___
>>> JBoss-user mailing list
>>> [EMAIL PROTECTED]
>>> https://lists.sourceforge.net/lists/listinfo/jboss-user
>>>
>>>
>>
>>
>>
>> ___
>>
>> Don't miss the 2002 Sprint PCS Application Developer's Conference
>> August 25-28 in Las Vegas -
>> http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>>
>> ___
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>> ___
>>
>> Don't miss the 2002 Sprint PCS Application Developer's Conference
>> August 25-28 in Las Vegas - 
>> http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>>
>> ___
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
> http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Problems with template client example

2002-06-13 Thread Radu Mateescu

is your jndi.properties in the client's classpath?

- Original Message -
From: "Jim Williams" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 13, 2002 3:24 PM
Subject: [JBoss-user] Problems with template client example


> I asked this yesterday but I probably did not give
> enough information to get a good answer.
>
> All I want to do is test the template install with
> jboss3.0 so I can move my development to jboss.
>
> I can see the modules are installed when I do the
> build for the template.
>
> 09:57:49,225 INFO  [MainDeployer] Starting deployment
> of package:
> file:/home/jim/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/ejb-test.jar
> 09:57:50,314 INFO  [EJBDeployer]
> Bean   : test/TestMessage
> Method : public void ejbCreate() throws
> CreateException
> Section: 15.7.3
> Warning: The ejbCreate() method must define no
> application exceptions.
>
> 09:57:50,316 INFO  [EJBDeployer]
> Bean   : test/TestMessage
> Method : public void ejbRemove() throws EJBException
> Section: 15.7.5
> Warning: The ejbRemove() method must define no
> application exceptions.
>
> 09:57:50,320 INFO  [EjbModule] Creating
> 09:57:50,424 INFO  [EjbModule] Deploying
> test/TestEntity
> 09:57:51,440 INFO  [EjbModule] Deploying
> test/SequenceGenerator
> 09:57:51,475 INFO  [EjbModule] Deploying
> test/TestSession
> 09:57:51,744 INFO  [EjbModule] Deploying
> test/TestMessage
> 09:57:57,739 INFO  [EjbModule] Created
> 09:57:57,741 INFO  [EjbModule] Starting
> 09:57:58,234 INFO  [test/TestEntity] Created table
> 'TESTENTITY' successfully.
> 09:57:58,337 INFO  [EjbModule] Started
> 09:57:58,339 INFO  [MainDeployer] Successfully
> completed deployment of package:
> file:/home/jim/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/ejb-test.jar
> 09:57:58,358 INFO  [URLDeploymentScanner] Started
> 09:57:58,359 INFO  [MainDeployer] Successfully
> completed deployment of package:
>
file:/home/jim/jboss-3.0.0_tomcat-4.0.3/server/default/conf/jboss-service.xm
l
> 09:57:58,360 INFO  [Server] JBoss (MX MicroKernel)
> [3.0.0 Date:200205311035] Started in 0m:41s:836ms
>
> So I go to run the client and I get this error.  NOTE
> I will get this error wether the jboss server is
> running or not!!! So that tells me there is a problem
> with my config for jndi.
>
> /opt/j2sdk1.4.0//lib/tools.jar test.client.TestClient
> javax.naming.NoInitialContextException: Need to
> specify class name in environment or system property,
> or as an applet parameter, or in an application
> resource file:  java.naming.factory.initial
> at
> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:640)
> at
> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
> at
>
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280)
> at
> javax.naming.InitialContext.lookup(InitialContext.java:347)
> at
> test.client.TestClient.main(TestClient.java:21)
>
>
>
>
> Since I think it is the jndi config I will include my
> file also (even though it is the default):
>
> java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
> java.naming.provider.url=localhost
> java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
>
> I have tried everything for the url attribute that I
> can think of to identify the machine and the port but
> nothing changed.  I ahve read everything I can find on
> jndi and it looks like I am doing thing correctly.
>
> If I have to spend to much more time just checking if
> I can get this running I am going to have to abandon
> jboss all together and go back to doing things myself
> and I do not want to do that.  This app is going to
> grow way beyond what I am doing for this demo so I
> will need sometype of container.  Maybe I should just
> go back to the 2.4.6 version.
>
> In case it matters I am doing this on RH 7.2 using
> jdk1.4.
>
> Please help a newbie!
>
> Jim Williams
> Software Engineer, 4Access Communications
>
> __
>
> __
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Please help jboss-3.0.0_tomcat-4.0.3 does not work (tomcat4-service.xml changed)

2002-06-13 Thread kleung

Hi Damon Torgerson,

Thank you for the information; however, I am still
confused. I am only trying to test out the Cataline
example and test pages. Last time when I installed the
jboss3.0.0RC1_Tomcat4.zip, I did not need to add
anything to the deploy directory. If I need to add a
context, can you send me a copy of a context example
for run the Cataline example page. 

Thank,

On Thu, 13 June 2002, Damon Torgerson wrote

> 
> You have to define a context either in your
application.xml file or your 
> server.xml/web.xml files.
> 
> On Thursday, June 13, 2002, at 10:34 AM,
[EMAIL PROTECTED] wrote:
> 
> > Hi,
> >
> > Please help me to configure out what is going on.
> > I downloaded the jboss-3.0.0_tomcat-4.0.3.zip file
and
> > setup all paths. Jboss does not complain about much
and
> > it works. However, when I try to access tomcat by
> > accessing the http://localhost:8080 in netscape4.76
> > browser, I got the following messages:
> >  Apache Tomcat/4.0.3 - HTTP Status 500 - No Context
> > configured to process this request.
> >
> > Following messages are from Jboss console about
> > cataline.
> >
> > * Begin Cataline Log messages
> > ***
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/tomcat4-service.
> > xml
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-common.
> > jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-common.
> > jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-default.
> > jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-default.
> > jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/naming-factory.jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/naming-factory.jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/tomcat-
> > ajp.jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/tomcat-
> > ajp.jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-webdav.
> > jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-webdav.
> > jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-invoker.
> > jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-invoker.
> > jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/catalina.jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/catalina.jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-resources.
> > jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-resources.
> > jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-snoop.
> > jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-snoop.
> > jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-common.
> > jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-common.
> > jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/bin/bootstrap.jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/bin/bootstrap.jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-manager.
> > jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-manager.
> > jar
> > INFO  [MainD

Re: [JBoss-user] lazy-load-groups not honored in 3.0 final

2002-06-13 Thread Dennis Muhlestein

> 
>  
> > Also, I still have another bean with 60+ fields and when I load it.
> > (Only one found with the findByPrimaryKey method) the eager-load-group
> > does not seem to be acknowleged.  I tried putting a read-ahead at the
> > entity level with strategy = on-load and specifying the eager-load-group
> > but the whole bean is still being loaded.  Before 3.0 final this
> > worked.  I didn't change this bean at all.  I just noticed the problem
> > when I added my new bean.
> 
> 
> Because you are using a finder you will get the default on-load 
> configuration from the defaults section.  Can you specify a read-ahead 
> for the findByPrimaryKey query?  I don't think you can.
> 
> How do you think this should work for findByPrimaryKey?
> 
> -dain


Seems to me that findByPrimaryKey should honor the eager-load-group with
no read-ahead strategy specified.  Otherwise, why is there an
eager-load-group tag at all (except for nested in the read-ahead tag)?

Right now my jbosscmp-jdbc.xml has the following:


group/names/fields
OneGroupName

more groups
 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Help - CMR problem with jbos-3.0.0 - column not found

2002-06-13 Thread Patrice Cousineau

Hi folks,

I'm having a problem with container-managed relationships in jboss-3.0.0. 
I've created two beans in a 1-to-N relationship with all appropriate 
abstract getters/setters. However, when I try to create an instance of the 
bean that maps to the table with the foreign key, I get a SQLException 
about an unknown column name. The log file for Jboss shows that the 
Persistence Manager attempted to insert an entry in the table using the 
names of the CMR fields as column names instead of the field-column 
mappings defined in jbosscmp-jdbc.xml.

Here is the relationships section of my ejb-jar.xml file:



  Proponent-Transfer
  
 
   proponent-makes-transfers
One

  ProponentEJB


  transfers
  java.util.Collection

  
  
 
   transfer-madeby-proponent
Many

  TransferEJB


  proponent

  



And here are the relationship mappings in my jbosscmp-jdbc.xml file:



  Proponent-Transfer
  

 
 proponent-makes-transfers



 
 transfer-madeby-proponent

  
proponentID
proponent_id
  

 



Any help or examples of working entity beans using CMR would be greatly 
appreciated...

Cheers,
Patrice.


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Problems with template client example

2002-06-13 Thread Jim Williams

That did it.
Thankyou very much.
Jim
--- Radu Mateescu <[EMAIL PROTECTED]> wrote:
> is your jndi.properties in the client's classpath?
> 
> - Original Message -
> From: "Jim Williams" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, June 13, 2002 3:24 PM
> Subject: [JBoss-user] Problems with template client
> example
> 
> 
> > I asked this yesterday but I probably did not give
> > enough information to get a good answer.
> >
> > All I want to do is test the template install with
> > jboss3.0 so I can move my development to jboss.
> >
> > I can see the modules are installed when I do the
> > build for the template.
> >
> > 09:57:49,225 INFO  [MainDeployer] Starting
> deployment
> > of package:
> >
>
file:/home/jim/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/ejb-test.jar
> > 09:57:50,314 INFO  [EJBDeployer]
> > Bean   : test/TestMessage
> > Method : public void ejbCreate() throws
> > CreateException
> > Section: 15.7.3
> > Warning: The ejbCreate() method must define no
> > application exceptions.
> >
> > 09:57:50,316 INFO  [EJBDeployer]
> > Bean   : test/TestMessage
> > Method : public void ejbRemove() throws
> EJBException
> > Section: 15.7.5
> > Warning: The ejbRemove() method must define no
> > application exceptions.
> >
> > 09:57:50,320 INFO  [EjbModule] Creating
> > 09:57:50,424 INFO  [EjbModule] Deploying
> > test/TestEntity
> > 09:57:51,440 INFO  [EjbModule] Deploying
> > test/SequenceGenerator
> > 09:57:51,475 INFO  [EjbModule] Deploying
> > test/TestSession
> > 09:57:51,744 INFO  [EjbModule] Deploying
> > test/TestMessage
> > 09:57:57,739 INFO  [EjbModule] Created
> > 09:57:57,741 INFO  [EjbModule] Starting
> > 09:57:58,234 INFO  [test/TestEntity] Created table
> > 'TESTENTITY' successfully.
> > 09:57:58,337 INFO  [EjbModule] Started
> > 09:57:58,339 INFO  [MainDeployer] Successfully
> > completed deployment of package:
> >
>
file:/home/jim/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/ejb-test.jar
> > 09:57:58,358 INFO  [URLDeploymentScanner] Started
> > 09:57:58,359 INFO  [MainDeployer] Successfully
> > completed deployment of package:
> >
>
file:/home/jim/jboss-3.0.0_tomcat-4.0.3/server/default/conf/jboss-service.xm
> l
> > 09:57:58,360 INFO  [Server] JBoss (MX MicroKernel)
> > [3.0.0 Date:200205311035] Started in 0m:41s:836ms
> >
> > So I go to run the client and I get this error. 
> NOTE
> > I will get this error wether the jboss server is
> > running or not!!! So that tells me there is a
> problem
> > with my config for jndi.
> >
> > /opt/j2sdk1.4.0//lib/tools.jar
> test.client.TestClient
> > javax.naming.NoInitialContextException: Need to
> > specify class name in environment or system
> property,
> > or as an applet parameter, or in an application
> > resource file:  java.naming.factory.initial
> > at
> >
>
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:640)
> > at
> >
>
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
> > at
> >
>
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280)
> > at
> >
>
javax.naming.InitialContext.lookup(InitialContext.java:347)
> > at
> > test.client.TestClient.main(TestClient.java:21)
> >
> >
> >
> >
> > Since I think it is the jndi config I will include
> my
> > file also (even though it is the default):
> >
> >
>
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
> > java.naming.provider.url=localhost
> >
>
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
> >
> > I have tried everything for the url attribute that
> I
> > can think of to identify the machine and the port
> but
> > nothing changed.  I ahve read everything I can
> find on
> > jndi and it looks like I am doing thing correctly.
> >
> > If I have to spend to much more time just checking
> if
> > I can get this running I am going to have to
> abandon
> > jboss all together and go back to doing things
> myself
> > and I do not want to do that.  This app is going
> to
> > grow way beyond what I am doing for this demo so I
> > will need sometype of container.  Maybe I should
> just
> > go back to the 2.4.6 version.
> >
> > In case it matters I am doing this on RH 7.2 using
> > jdk1.4.
> >
> > Please help a newbie!
> >
> > Jim Williams
> > Software Engineer, 4Access Communications
> >
> > __
> >
> > __
> > Do You Yahoo!?
> > Yahoo! - Official partner of 2002 FIFA World Cup
> > http://fifaworldcup.yahoo.com
> >
> >
>
___
> >
> > Don't miss the 2002 Sprint PCS Application
> Developer's Conference
> > August 25-28 in Las Vegas -
>
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> >
>
https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> 
>
_

  1   2   >