Re: [JBoss-user] Does the JBoss have a Admin tool?

2002-06-07 Thread Marius Kotsbak

http://localhost:8082 ( or whatever the server is). Remember to close
this port in the firewall, or whoever can stop the server and so on.

On Fri, 2002-06-07 at 06:22, HyungChul Kim wrote:
> Hi.
> 
> Does the JBoss have an admin tool? If so, I want to know how to work an admin tool?



___

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

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



Re: [JBoss-user] ConnectionFactory

2002-06-07 Thread Marius Kotsbak

On Fri, 2002-06-07 at 02:44, Slava Voronin wrote:
> 
> When I do connection to JMS  I need to configure administer objects..
> Destination  and  ConnectionFactory.
> I can put destination in file jbossmq-destination-service.xml
Or a new file with the same structure, so you can just copy it when
upgrading jboss.


> but where to configure ConnectionFactory  with my  own name.
> I can connect using  ctx.lookup("ConnectionFactory"),
> but I want MyConnectionFactory.
>
Check the free JMS-doc/xdoclet-doc. It explains everything you need to
know.

 Thanks.
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> 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

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



AW: [JBoss-user] NPE using JBoss.net

2002-06-07 Thread Jung , Dr. Christoph

David,

There seems to be an assymetry in the read/write methods of your Javabeans?
The line in which the exception is thrown:

BeanDeserializer.java, line 198:

if (propDesc.getWriteMethod().getParameterTypes().length == 1) 

propDesc is the BeanProperty-MetaData of axis must be bound, otherwise you
would get a badElement AxisFault before. So
I guess it is a lacking writeMethod (setWhatEver(...)) such that the
getWriteMethod() deliver null.

I´m currently working on a more tolerant version of the BeanSerializer for
jboss.net that also covers entity beans and
entity-relations ...

CGJ

-Ursprüngliche Nachricht-
Von: David Ward [mailto:[EMAIL PROTECTED]] 
Gesendet: Freitag, 7. Juni 2002 08:55
An: [EMAIL PROTECTED]
Betreff: [JBoss-user] NPE using JBoss.net
Wichtigkeit: Hoch


I'm so close to getting my axis client code working with JBoss.net I can 
  taste it... however I'm getting a NullPointerException that I can't 
figure out.

My guess is that I have something misconfigured with namespaces or 
something else in my XML, but I'm not sure.

I've attached all the relevant information I can below.  The 
client-config.xml and web-service.xml files are at the bottom of the email.

Please help! (Dr. Jung?)

Thanks so much,
David

--

ENVIRONMENT:

RedHat Linux 7.1, kernel 2.4.9-31, i686
Sun JDK 1.4.0_01
JBoss 3.0.0 (final w/ Jetty)

ear file contents:
--
META-INF/MANIFEST.MF
META-INF/application.xml
dotech-gizzard-ejb.jar
dotech-gizzard-axis.wsr

wsr (in the ear) file contents:
---
META-INF/MANIFEST.MF
META-INF/web-service.xml

JAVA CODE:
--

String clientConfig = "/home/david//client-config.xml";
String url = "http://localhost:9090/axis/services/EJBPersistenceManager";;

Service service = new Service( new FileProvider(clientConfig) ); Call call =
(Call)service.createCall(); call.setTargetEndpointAddress( new URL(url) );

// I'm using reflection to dynamically get the method name in an 
InvocationHandler
QName qname = new QName( "http://net.jboss.org/gizzard/";, 
pMethod.getName() );

call.setOperationName(qname);
return call.invoke(pArgs); // error occurs here

CLIENT STACK TRACE:
---

  [java] java.lang.NullPointerException
  [java] at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:13
5)
  [java] at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deserializati
onContextImpl.java:865)
  [java] at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1528)
  [java] at
org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
  [java] at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
  [java] at
org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
  [java] at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
  [java] at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
  [java] at 
org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
  [java] at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
  [java] at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
  [java] at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
textImpl.java:201)
  [java] at
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:428) [java]
at org.apache.axis.client.Call.invoke(Call.java:1793)
  [java] at org.apache.axis.client.Call.invoke(Call.java:1594)
  [java] at org.apache.axis.client.Call.invoke(Call.java:1513)
  [java] at org.apache.axis.client.Call.invoke(Call.java:1093)
  [java] at
com.dotech.gizzard.persistence.axis.AXISPersistenceManagerFactory$1.invoke(A
XISPersistenceManagerFactory.java:49)
  [java] at $Proxy0.addUser(Unknown Source)
  [java] at
com.dotech.gizzard.persistence.test.UserTest.addUsers(UserTest.java:68)
  [java] at
com.dotech.gizzard.persistence.test.UserTest.main(UserTest.java:32)

AXIS MONITOR:

-

Listen Port: 9090
Target Host: localhost
Target Port: 8080
 Request 
POST /axis/services/EJBPersistenceManager HTTP/1.0
Content-Length: 1234
Host: localhost
Content-Type: text/xml; charset=utf-8
SOAPAction: ""


http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";>
  
   http://net.jboss.org/gizzard/";>

   
   http://net.jboss.org/gizzard";>

[EMAIL PROTECTED]
david
divad
David
Ward





   
   http://net.jboss.org/gizzard";>
-1
   
  
 Response 
HTTP/1.1 500 Internal Server Error
Date: Fri, 07 Jun 2002 06:21:32 GMT
Server: Jetty/4.0.1 (Linux 2.4.9-31 i386)
Servlet-Engine: Jetty/1.1 (Servlet 2.3; JSP 1.2

[JBoss-user] MySQL strange behaviour

2002-06-07 Thread wonder sonic

Hi,
I've done it (mysql and jboss 3.0 communication)
but...
-1- I can't connect with the user/password I want
though I've added the user/password in mysql.user and
granted all on my db for this user. The only user who
have access is 'root' (without password).

-2- After JBoss created the first SQL table (for the
1st CMP entity bean deployment), I get the following
error:
11:20:37,625 INFO  [EjbModule] Creating
11:20:37,655 INFO  [EjbModule] Deploying
myrpg-atlas/AdministratorEntity
11:20:38,527 INFO  [EjbModule] Deploying
myrpg-atlas/CharacterEntity
11:20:38,547 INFO  [EjbModule] Deploying
myrpg-atlas/ConfigurationEntity
11:20:38,567 INFO  [EjbModule] Deploying
myrpg-atlas/SequenceEntity
11:20:38,587 INFO  [EjbModule] Deploying
myrpg-atlas/UserEntity
11:20:38,617 INFO  [EjbModule] Deploying
myrpg-atlas/WorldEntity
11:20:38,647 INFO  [EjbModule] Deploying
myrpg-atlas/AdministratorSession
11:20:38,667 INFO  [EjbModule] Deploying
myrpg-atlas/Logger
11:20:38,677 INFO  [EjbModule] Deploying
myrpg-atlas/SequenceSession
11:20:38,697 INFO  [EjbModule] Deploying
myrpg-atlas/UserSession
11:20:42,442 INFO  [EjbModule] Created
11:20:42,442 INFO  [EjbModule] Starting
11:20:42,492 INFO  [myrpg-atlas/AdministratorEntity]
Table 'AdministratorEntity' already exists
11:20:42,612 ERROR [EjbModule] Starting failed
org.jboss.deployment.DeploymentException: Error while
creating table; - nested throwable:
(java.sql.SQLException: General erro
r: You have an error in your SQL syntax near 'INTEGER
NOT NULL, CONSTRAINT pk_SequenceEntity PRIMARY KEY
(name))' at line 1)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.createTable(JDBCStartCommand.java:190)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.execute(JDBCStartCommand.java:84)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:383)
at
org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:198)
at
org.jboss.ejb.EntityContainer.start(EntityContainer.java:376)
at
org.jboss.ejb.Container.invoke(Container.java:793)
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(ServiceController.java:894)
at $Proxy6.start(Unknown Source)
at
org.jboss.system.ServiceController.start(ServiceController.java:340)
at
sun.reflect.GeneratedMethodAccessor5.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at
org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy19.start(Unknown Source)
at
org.jboss.ejb.EjbModule.startService(EjbModule.java:440)
at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:894)
at $Proxy6.start(Unknown Source)
at
org.jboss.system.ServiceController.start(ServiceController.java:340)
at
sun.reflect.GeneratedMethodAccessor5.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at
org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy5.start(Unknown Source)
at
org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:398)
at
org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
at
org.jboss.deployment.MainDeployer.start(MainDeployer.java:671)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
at
sun.reflect.GeneratedMethodAccessor8.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDi

[JBoss-user] Patch for JBossCMP-Docs example

2002-06-07 Thread Phil Cornelius

Attached is a patch for the example that comes with the Dain's CMP2.0 docs.

After applying the patch the examples will run on Jboss 3.0.0 RC1, RC2, RC3
and the release version as well as the HEAD stream of jboss-all.

Running the tests also highlights the bug mentioned in David Jones' post
'JBoss3.0.0 CMR field not persisting' on June 6.

Yours
Phil Cornelius



JBossCMP-Docs.patch
Description: Binary data


[JBoss-user] performance on linux/windows

2002-06-07 Thread Tejeshwar




Hi..
 
 
I want to know one thing.
My question,
 
JBoss on windows/linux, which gives better 
performance?
whether windows or linux.
 
Pls reply back as early as possible.
 
Thanking you
 
with regards
 
Tejesh


Re: [JBoss-user] socket error trying to create a session bean

2002-06-07 Thread James Cleary

Is your application running the same or greater jre as JBoss?

I've seen socket errors when the client is running 1.4 and JBoss running
1.3.

Make them the same.  I thought i saw someone mention a bug with JBoss 3.0
final running 1.4.  Think you need to use 1.3 to kick off JBoss.




- Original Message -
From: "Chris Chen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 06, 2002 5:08 PM
Subject: RE: [JBoss-user] socket error trying to create a session bean


> Hi,
>
> This is my jboss.properties:
>
> java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
> java.naming.provider.url=jnp://localhost:1099
> java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
>
> Don't know if this will help you though, but I hope so.
>
> Chris
>
>
> At 02:00 PM 06/06/2002, you wrote:
> >Does anybody have the slightest idea of what could be causing such a
> >low-level socket type error?  I've since upgraded to jdk1.4 but to no
avail.
> >Still the same error.  Here's what I'm using for the jndi.properties on
the
> >client side.  Does this look right?
> >
> >java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
> >java.naming.provider.url=localhost:1099
> >java.naming.factory.url.pkgs=org.jboss.naming
> >
> >Thanks,
> >
> >Gray Jones
> >
> >-Original Message-
> >From: [EMAIL PROTECTED]
> >[mailto:[EMAIL PROTECTED]]On Behalf Of Gray Jones
> >Sent: Thursday, June 06, 2002 1:37 PM
> >To: [EMAIL PROTECTED]
> >Subject: [JBoss-user] socket error trying to create a session bean
> >
> >
> >
> >Hello,
> >
> >I am excited that 3.0 has been released.  I'm trying to convert a 2.4
> >project over to 3.0 and get a socket error when I try to call create on a
> >session bean.  I don't understand what the problem is and am not sure how
i
> >can diagnose the problem.  Can anybody give me some pointers as to where
i
> >could look?
> >
> >I'm using jdk 1.3.1_02.  I copied the entire client directory under
jboss3.0
> >to the class path of the client (which is a web application running under
> >tomcat).  The jboss server doesnt' make it to the point of calling my
> >ejbCreate method.
> >
> >Thanks for any help,
> >
> >Gray Jones
> >
> >java.net.SocketException: Connection aborted by peer: socket write error
> > at java.net.SocketOutputStream.socketWrite(Native Method)
> > at java.net.SocketOutputStream.write(SocketOutputStream.java:96)
> > at
java.io.BufferedOutputStream.write(BufferedOutputStream.java:112)
> > at
java.io.ObjectOutputStream.drain(ObjectOutputStream.java:1463)
> > at
> >java.io.ObjectOutputStream.setBlockData(ObjectOutputStream.java:1486)
> >
> > at
> >java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:407)
> > at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:268)
> > at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:106)
> > at
org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
> >Sour
> >ce)
> > at
> >org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvo
> >kerProxy.java:128)
> > at
> >org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.jav
> >a:108)
> > at
> >org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.
> >java:73)
> > at
> >org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:7
> >6)
> > at
> >org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185)
> > at
org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
> > at $Proxy1.create(Unknown Source)
> > at
> >com.xtriahc.xsecure.model.ejb.client.EJBXSecureManager.acquireHomeRef
> >erences(EJBXSecureManager.java:84)
> >
> >
> >___
> >
> >Don't miss the 2002 Sprint PCS Application Developer's Conference
> >August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> >
> >___
> >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
> >
> >___
> >JBoss-user mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/jboss-user
>
> PGP at ldap://certserver.pgp.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
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>



**
This e-mai

Re: [JBoss-user] performance on linux/windows

2002-06-07 Thread Marius Kotsbak

I think that the difference is litte if you use the best jdks on both
platforms (ibm/sun 1.4 for linux), but linux is far more stable and
easier to work with than windows. We run on SuSE.de. And I think linux
has a better memory/swap/disk-handling than win. It utilizes most of the
memory for buffers, while win might let the memory be free (i.e. don't
use it).


On Sat, 2002-06-08 at 00:50, Tejeshwar wrote:
> Hi..
> 
> 
> I want to know one thing.
> My question,
> 
> JBoss on windows/linux, which gives better performance?
> whether windows or linux.
> 
> Pls reply back as early as possible.
> 
> Thanking you
> 
> with regards
> 
> Tejesh



___

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

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



RE: [JBoss-user] performance on linux/windows

2002-06-07 Thread Maris Orbidans


and what about threads ?



IMHO JRockit is the best VM for JBoss

Its free

http://www.jrockit.com


Maris



> -Original Message-
> From: Marius Kotsbak [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 07, 2002 2:00 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] performance on linux/windows
> 
> 
> I think that the difference is litte if you use the best jdks on both
> platforms (ibm/sun 1.4 for linux), but linux is far more stable and
> easier to work with than windows. We run on SuSE.de. And I think linux
> has a better memory/swap/disk-handling than win. It utilizes 
> most of the
> memory for buffers, while win might let the memory be free (i.e. don't
> use it).
> 
> 
> On Sat, 2002-06-08 at 00:50, Tejeshwar wrote:
> > Hi..
> > 
> > 
> > I want to know one thing.
> > My question,
> > 
> > JBoss on windows/linux, which gives better performance?
> > whether windows or linux.
> > 
> > Pls reply back as early as possible.
> > 
> > Thanking you
> > 
> > with regards
> > 
> > Tejesh
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> 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

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



Re: [JBoss-user] performance on linux/windows

2002-06-07 Thread Karl Øie

with shame i have to agree with this, according to several performance tests 
w2k has better thread handeling than linux (2.4 kern) at the moment

mvh karl øie


On Friday 07 June 2002 13:35, Maris Orbidans wrote:
> and what about threads ?
>
>
>
> IMHO JRockit is the best VM for JBoss
>
> Its free
>
> http://www.jrockit.com
>
>
> Maris
>
> > -Original Message-
> > From: Marius Kotsbak [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, June 07, 2002 2:00 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] performance on linux/windows
> >
> >
> > I think that the difference is litte if you use the best jdks on both
> > platforms (ibm/sun 1.4 for linux), but linux is far more stable and
> > easier to work with than windows. We run on SuSE.de. And I think linux
> > has a better memory/swap/disk-handling than win. It utilizes
> > most of the
> > memory for buffers, while win might let the memory be free (i.e. don't
> > use it).
> >
> > On Sat, 2002-06-08 at 00:50, Tejeshwar wrote:
> > > Hi..
> > >
> > >
> > > I want to know one thing.
> > > My question,
> > >
> > > JBoss on windows/linux, which gives better performance?
> > > whether windows or linux.
> > >
> > > Pls reply back as early as possible.
> > >
> > > Thanking you
> > >
> > > with regards
> > >
> > > Tejesh
> >
> > ___
> >
> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> >
> > ___
> > 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
>
> ___
> 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

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



[JBoss-user] Error on bean deploy with CMR

2002-06-07 Thread Andre Selton

  Hi,

  When I deploy my EJB with CMR I got this error :

org.jboss.deployment.DeploymentException: Error in
ejb-jar.xml for relation Order-Item: cmr-field-type
should be java.util.Collection or java.util.Set but is
Order.

  This is a simple 1-N relationship between Order and
Itens.
  On my ejb-jar.xml :


 
Order-Item
  
   
Order-has-items
One

  Order


  items
 
java.util.Collection

  
  
   
Item-bel-order
Many

  Item


  order
  Order

  


  Am I doing something wrong ?
  Please help. TIA.

  Andre S.

__
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

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



[JBoss-user] Could not activate SFSB

2002-06-07 Thread Maris Orbidans


Does anyone one what could cause this ?

Could not activate; nested exception is: java.io.FileNotFoundException: 
C:\jboss-3.0.0\server\default\db\sessions\DataAccess\1023447581318.ser (The system 
cannot find the file specified)

___

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

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



RE: [JBoss-user] MySQL strange behaviour

2002-06-07 Thread MHewitt

wonder sonic,

Your first problem, I think, is that you have not flushed the tables to make
the new user permissions take effect.  Check out the docs for the mysqladmin
tool.

As for the second, try the SQL statement from the command line to see where
it is malformed.  This might help you debug the problem.
>From the partial SQL statement, it looks as if a comma is needed between the
CONSTRAINT clause and the PRIMARY KEY clause.

Good luck,
- Mike Hewitt
  [EMAIL PROTECTED]

-Original Message-
From: wonder sonic [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 5:27 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] MySQL strange behaviour


Hi,
I've done it (mysql and jboss 3.0 communication)
but...
-1- I can't connect with the user/password I want
though I've added the user/password in mysql.user and
granted all on my db for this user. The only user who
have access is 'root' (without password).

-2- After JBoss created the first SQL table (for the
1st CMP entity bean deployment), I get the following
error:




___

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

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



RE: [JBoss-user] Could not activate SFSB

2002-06-07 Thread Sacha Labourey

The SFSB session has expired, and the serialized representation has been
removed from the filesystem.

> -Message d'origine-
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de Maris
> Orbidans
> Envoyé : vendredi, 7 juin 2002 14:42
> À : [EMAIL PROTECTED]
> Objet : [JBoss-user] Could not activate SFSB
>
>
>
> Does anyone one what could cause this ?
>
> Could not activate; nested exception is:
> java.io.FileNotFoundException:
> C:\jboss-3.0.0\server\default\db\sessions\DataAccess\1023447581318
> .ser (The system cannot find the file specified)
>
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> ___
> 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

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



RE: [JBoss-user] Could not activate SFSB

2002-06-07 Thread Maris Orbidans


BTWIf I restart WEB browser, then it doesnt happen.

It happens if I without closing WEB browser log in as different user.



Maris

> -Original Message-
> From: Mâris Orbidâns 
> Sent: Friday, June 07, 2002 3:42 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Could not activate SFSB
> 
> 
> 
> Does anyone one what could cause this ?
> 
> Could not activate; nested exception is: 
> java.io.FileNotFoundException: 
> C:\jboss-3.0.0\server\default\db\sessions\DataAccess\102344758
> 1318.ser (The system cannot find the file specified)
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> 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

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



Re: [JBoss-user] ConnectionFactory

2002-06-07 Thread Slava Voronin

can you  please give me resource on internet or page on buy documentation
on configuring Connection factory. I am using jboss3 final.
Thanks.

Marius Kotsbak wrote:

>On Fri, 2002-06-07 at 02:44, Slava Voronin wrote:
>
>>When I do connection to JMS  I need to configure administer objects..
>>Destination  and  ConnectionFactory.
>>I can put destination in file jbossmq-destination-service.xml
>>
>Or a new file with the same structure, so you can just copy it when
>upgrading jboss.
>
>
>>but where to configure ConnectionFactory  with my  own name.
>>I can connect using  ctx.lookup("ConnectionFactory"),
>>but I want MyConnectionFactory.
>>
>Check the free JMS-doc/xdoclet-doc. It explains everything you need to
>know.
>
> Thanks.
>
>>
>>___
>>
>>Don't miss the 2002 Sprint PCS Application Developer's Conference
>>August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>>
>>___
>>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
>
>___
>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

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



RE: [JBoss-user] performance on linux/windows

2002-06-07 Thread Marius Kotsbak

On Fri, 2002-06-07 at 13:35, Maris Orbidans wrote:
> 
> and what about threads ?
> 
> 
> 
> IMHO JRockit is the best VM for JBoss
> 
> Its free
It says you can evaluate it for 30 days: 
http://www.jrockit.com/about/releases/2002-01-17.html

But... It seems like it is free now. I will give it a try.

The only problem is that it doesn't like the phread lib on my debian
unstable.
 
> 
> http://www.jrockit.com
> 
> 
> Maris
> 
> 
> 
> > -Original Message-
> > From: Marius Kotsbak [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, June 07, 2002 2:00 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] performance on linux/windows
> > 
> > 
> > I think that the difference is litte if you use the best jdks on both
> > platforms (ibm/sun 1.4 for linux), but linux is far more stable and
> > easier to work with than windows. We run on SuSE.de. And I think linux
> > has a better memory/swap/disk-handling than win. It utilizes 
> > most of the
> > memory for buffers, while win might let the memory be free (i.e. don't
> > use it).
> > 
> > 
> > On Sat, 2002-06-08 at 00:50, Tejeshwar wrote:
> > > Hi..
> > > 
> > > 
> > > I want to know one thing.
> > > My question,
> > > 
> > > JBoss on windows/linux, which gives better performance?
> > > whether windows or linux.
> > > 
> > > Pls reply back as early as possible.
> > > 
> > > Thanking you
> > > 
> > > with regards
> > > 
> > > Tejesh
> > 
> > 
> > 
> > ___
> > 
> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> > 
> > ___
> > 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
> 
> ___
> 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

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



Re: [JBoss-user] ConnectionFactory

2002-06-07 Thread Marius Kotsbak

jboss.org -> docs -> free docs -> jms 

On Fri, 2002-06-07 at 14:45, Slava Voronin wrote:
> can you  please give me resource on internet or page on buy documentation
> on configuring Connection factory. I am using jboss3 final.
> Thanks.
> 
> Marius Kotsbak wrote:
> 
> >On Fri, 2002-06-07 at 02:44, Slava Voronin wrote:
> >
> >>When I do connection to JMS  I need to configure administer objects..
> >>Destination  and  ConnectionFactory.
> >>I can put destination in file jbossmq-destination-service.xml
> >>
> >Or a new file with the same structure, so you can just copy it when
> >upgrading jboss.
> >
> >
> >>but where to configure ConnectionFactory  with my  own name.
> >>I can connect using  ctx.lookup("ConnectionFactory"),
> >>but I want MyConnectionFactory.
> >>
> >Check the free JMS-doc/xdoclet-doc. It explains everything you need to
> >know.
> >
> > Thanks.
> >
> >>
> >>___
> >>
> >>Don't miss the 2002 Sprint PCS Application Developer's Conference
> >>August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> >>
> >>___
> >>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
> >
> >___
> >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
> 
> ___
> 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

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



[JBoss-user] MBeans and dynamic queues

2002-06-07 Thread G.L. Grobe



 
 
I'm creating a dynamic queue according to the 
docs and am not sure of several things after looking up the MBean ... 

 
 MBeanServer server = 
(MBeanServer)    
MBeanServerFactory.findMBeanServer(null).iterator().next(); 
 
 server.invoke(new 
ObjectName("JBossMQ", "service", 
"Server"),    
"createQueue", new Object[] { bInfo.getNodeName() 
},    new 
String[] {"java.lang.String"});
 
At what point and in what order do I now do the following steps. Do I just 
need to do the above first 
and then carry on as I normally would w/ the steps below? If 
that's the case, I get the errors at the bottom.
 

- get the initial context
- lookup the connection factory 
- obtain the connection
- create a sesson
- lookup the destination (if this, do I still lookup w/ the prefix of 
"queue/" or as created in the MBean?)
- create a msg producer.
 
Basically all I want to do is send an object to a client.
 
--- error output ---
 
[WARN,TxCapsule] XAException: tx=XidImpl [FormatId=257, 
GlobalId=cassia//28, BranchQual=] 
errorCode=XAER_RMERRjavax.transaction.xa.XAException    
at 
org.jboss.mq.SpyXAResource.commit(SpyXAResource.java:102)    
at 
org.jboss.tm.TxCapsule.commitResources(TxCapsule.java:1490)    
at 
org.jboss.tm.TxCapsule.commit(TxCapsule.java:324)    
at 
org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:76)    
at 
org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:314)    
at 
org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:565)    
at 
org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:376)    
at 
org.jboss.mq.SpySession.run(SpySession.java:248)    
at 
org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:172)    
at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:725)    
at java.lang.Thread.run(Thread.java:484)
Any help much appreciated


[JBoss-user] Opening multiple databases in on session bean

2002-06-07 Thread Greg Noorman

I have started working with Jboss and was trying to access 2 different mysql
databases on the same server.  When I do this the server comes up with the
following warning:

13:44:38,984 WARN  [LocalTxConnectionManager$LocalConnectionEventListener]
prepare called on a local tx. You are not getting the semantics you expect!
13:44:38,985 WARN  [LocalTxConnectionManager$LocalConnectionEventListener]
prepare called on a local tx. You are not getting the semantics you expect!

If only access one of the databases (either one), no warnings and response
is quick.  If I hit both I get the warning and much slower response. I
suppose because it has to process the Event.  In all cases, it does retrieve
the correct information from the databases.
Any ideas about this warning???

We are running jboss-3.0.0_tomcat-4.0.3 on a Solaris system using jdk 1.3.

Here is the code:

package cae.mysql;

import java.util.*;
import javax.ejb.SessionBean;
import javax.naming.*;
import javax.rmi.PortableRemoteObject;
import java.sql.*;

public class MySQLBean implements SessionBean {
public void ejbCreate() {}
public void ejbPostCreate() {}
public String getTL (String tlname) throws java.rmi.RemoteException {
return getchk();
}
public String getchk() {
PreparedStatement pstmt = null;
Connection conn = null;
try {
conn = getConnectionchk();
pstmt = conn.prepareStatement("Select fval from checkit where
find = 1");
ResultSet rs = pstmt.executeQuery();
if (rs.next()) {
return rs.getString("fval");
}
} catch (Exception e) {
e.printStackTrace();
} finally {
try { if (pstmt != null) pstmt.close(); }
catch (Exception e) {}
try { if (conn != null) conn.close(); }
catch (Exception e) {}
}
return "Shucks";
}
public String getTL() {
PreparedStatement pstmt = null;
Connection conn = null;
try {
conn = getConnectionTL();
pstmt = conn.prepareStatement("Select des_num from contains
where draw_num = 174183");
ResultSet rs = pstmt.executeQuery();
if (rs.next()) {
return rs.getString("des_num");
}
} catch (Exception e) {
e.printStackTrace();
} finally {
try { if (pstmt != null) pstmt.close(); }
catch (Exception e) {}
try { if (conn != null) conn.close(); }
catch (Exception e) {}
}
return "Dang, Missed again\n";
}
public Connection getConnectionchk() throws Exception {
try {
Context ctx = new InitialContext();
javax.sql.DataSource ds =
(javax.sql.DataSource)ctx.lookup("java:comp/env/jdbc/chkDS");
return ds.getConnection();
} catch (Exception e) {
System.err.println("Couldn't get datasource!");
e.printStackTrace();
throw e;
}
}
public Connection getConnectionTL() throws Exception {
try {
Context ctx = new InitialContext();
javax.sql.DataSource ds =
(javax.sql.DataSource)ctx.lookup("java:comp/env/jdbc/TravLogDS");
return ds.getConnection();
} catch (Exception e) {
System.err.println("Couldn't get datasource!");
e.printStackTrace();
throw e;
}
}
public void ejbActivate() {}
public void ejbPassivate() {}
public void ejbRemove() {}
public void setSessionContext(javax.ejb.SessionContext ec) {}
}


___

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

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



Re: AW: [JBoss-user] NPE using JBoss.net

2002-06-07 Thread David Ward

Dr. Jung,

Thank your for your help.  That was the problem.  However, I can't 
really change the Javabeans since they are being created by XDoclet. 
Now, xdoclet 1.1.2's dataobjects conform to the JavaBeans spec - however 
1.2.0cvs valueobjects do not.  I need to use cvs' valueobjects because 
it creates getters and setters for my relationships.  Unfortunately, is 
also adds some gets that don't have sets.

Sooo, it looks like I need to write my own serializers and 
deserializers.  I see the docs at: http://xml.apache.org/axis/ , however 
my question to you is where do I put the de/serializer classes?  In the 
.wsr?

Thanks again,
David

--

Jung , Dr. Christoph wrote:
> David,
> 
> There seems to be an assymetry in the read/write methods of your Javabeans?
> The line in which the exception is thrown:
> 
> BeanDeserializer.java, line 198:
> 
> if (propDesc.getWriteMethod().getParameterTypes().length == 1) 
> 
> propDesc is the BeanProperty-MetaData of axis must be bound, otherwise you
> would get a badElement AxisFault before. So
> I guess it is a lacking writeMethod (setWhatEver(...)) such that the
> getWriteMethod() deliver null.
> 
> I´m currently working on a more tolerant version of the BeanSerializer for
> jboss.net that also covers entity beans and
> entity-relations ...
> 
> CGJ
> 
> -Ursprüngliche Nachricht-
> Von: David Ward [mailto:[EMAIL PROTECTED]] 
> Gesendet: Freitag, 7. Juni 2002 08:55
> An: [EMAIL PROTECTED]
> Betreff: [JBoss-user] NPE using JBoss.net
> Wichtigkeit: Hoch
> 
> 
> I'm so close to getting my axis client code working with JBoss.net I can 
>   taste it... however I'm getting a NullPointerException that I can't 
> figure out.
> 
> My guess is that I have something misconfigured with namespaces or 
> something else in my XML, but I'm not sure.
> 
> I've attached all the relevant information I can below.  The 
> client-config.xml and web-service.xml files are at the bottom of the email.
> 
> Please help! (Dr. Jung?)
> 
> Thanks so much,
> David
> 
> --
> 
> ENVIRONMENT:
> 
> RedHat Linux 7.1, kernel 2.4.9-31, i686
> Sun JDK 1.4.0_01
> JBoss 3.0.0 (final w/ Jetty)
> 
> ear file contents:
> --
> META-INF/MANIFEST.MF
> META-INF/application.xml
> dotech-gizzard-ejb.jar
> dotech-gizzard-axis.wsr
> 
> wsr (in the ear) file contents:
> ---
> META-INF/MANIFEST.MF
> META-INF/web-service.xml
> 
> JAVA CODE:
> --
> 
> String clientConfig = "/home/david//client-config.xml";
> String url = "http://localhost:9090/axis/services/EJBPersistenceManager";;
> 
> Service service = new Service( new FileProvider(clientConfig) ); Call call =
> (Call)service.createCall(); call.setTargetEndpointAddress( new URL(url) );
> 
> // I'm using reflection to dynamically get the method name in an 
> InvocationHandler
> QName qname = new QName( "http://net.jboss.org/gizzard/";, 
> pMethod.getName() );
> 
> call.setOperationName(qname);
> return call.invoke(pArgs); // error occurs here
> 
> CLIENT STACK TRACE:
> ---
> 
>   [java] java.lang.NullPointerException
>   [java] at
> org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:13
> 5)
>   [java] at
> org.apache.axis.encoding.DeserializationContextImpl.endElement(Deserializati
> onContextImpl.java:865)
>   [java] at
> org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1528)
>   [java] at
> org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
>   [java] at
> org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
>   [java] at
> org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
>   [java] at
> org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
>   [java] at
> org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
>   [java] at 
> org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
>   [java] at
> org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
>   [java] at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
>   [java] at
> org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
> textImpl.java:201)
>   [java] at
> org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:428) [java]
> at org.apache.axis.client.Call.invoke(Call.java:1793)
>   [java] at org.apache.axis.client.Call.invoke(Call.java:1594)
>   [java] at org.apache.axis.client.Call.invoke(Call.java:1513)
>   [java] at org.apache.axis.client.Call.invoke(Call.java:1093)
>   [java] at
> com.dotech.gizzard.persistence.axis.AXISPersistenceManagerFactory$1.invoke(A
> XISPersistenceManagerFactory.java:49)
>   [java] at $Proxy0.addUser(Unknown Source)
>   [java] at
> com.dotech.gizzard.persistence.test.UserTest.addUsers(UserTest.java:68)
>   [java] at
> com.dotech.gizzard.persistence.test.UserTest.main(UserTest.java:32)
>

RE: [JBoss-user] JCA and Firebird - Connection problems...

2002-06-07 Thread Torsten Terp


Hi,

I found the "bug"When specifying the connection properties
for the mbean org.jboss.resource.connectionmanager.XATxConnectionManager
in firebird-service.xml and using windows filenames, you have to specify
the full connection url, i.e., with host, port and filename.
If you only specify the filename it will be parsed as if the servername
is included in the filename. For a filename called c:/database/whatever.gdb,
this results in a connection like host=c and filename=/database/whatever.gdb
This later on leads to "Could not get a connection" when it trys to create a
socketconnection...

If you instead write the filename as localhost/3050:c:/database/whatever.gdb
it will work!

The above does not seem to be true for the
org.firebirdsql.management.FBManager,
i.e., the mbean code wich lets you create and destroy datebases on startup
and
shutdown. In this configuration you should apparently just write
c:/database/whatever.gdb in the filename attriute...

^torsten


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Andre Selton
Sent: 6. juni 2002 04:15
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] JCA and Firebird - Connection problems...


--- Torsten Terp <[EMAIL PROTECTED]> wrote:
> everything looks fine, but when an entitybean is
> deployed i get an
> org.firebirdsql.gds.GDSException :  Could not get a
> db connection! see
> below.
>
> I have used the org.firebirdsql.management.FBManager
> to create the database
> and using a tool like marathon 2.0 i can connect to
> the database and i see a
> nice empty database as expected.
>
> I am using:
> jBoss-3.0.0
> Firebird 1.0.0
> jca driver 1.0-beta-1
> all on win2k
>
> Anybody had this problem too?
>

  Yes. I have the same problem here. In my case the
problem only happen when I run it on Win2k. On Linux
everything works.
  I was not able to solve it, so I am doing all my
tests on Linux now. If you can find a solution for
this please let me know.

  Andre S.

__
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

___
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

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



[JBoss-user] strange NameNotFoundException under Linux

2002-06-07 Thread moritz petersen

hello list members,

i have a strange problem with jboss:

the EJBs and the webapplication are developed under win2k. 
everything works fine. then, copying the same configuration to a 
Linux box, i get an exception while accessing a bean:

javax.naming.NameNotFoundException: data not bound
 at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer
(StreamRemoteCall.java:245)
 at 
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
 at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
 at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
 at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)
 at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
 at javax.naming.InitialContext.lookup(InitialContext.java:350)
  

the exception is not thrown on every access to a bean. the same 
bean works quite well at a different place of the SAME application!

the Linux is SuSE linux 8.0 and i am using jboss 2.2.2 with tomcat 
3.2.2. any help or suggestions are appreciated. it worked a couple 
of weeks ago using Debian Linux.

is it possible, that it depends on the JDK?

i already checked the firewall settings, but even without the 
firewall, the same problem occurs.

thank you,

moritz.


___

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

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



Re: [JBoss-user] IIOP CosNaming

2002-06-07 Thread Gerard BUNEL



Hello Darius,
Your question and mine (related to JNDI Binding using RMI/IIOP) which
I think are related, seem to not inspire anybody in this
mailing list. Did you have any indirect answer that could help me also
?
"Schier, Darius" a écrit :



Hi
Francisco,


I
had a question about the refactoring of the corba service within the current
cvs version of jboss.



We
are using a Java side server that does some central tasks for our C++ Clients
(TAO), that communicate through Corba.

This
server is realized as a MBean now.

It
was pretty straightforward in jboss3.0 to bootstrap the CosNaming from
the C++ side through something like



corbaloc::1.2@localhost:5300/JBoss/Naming/root



After
a sync of the cvs version the CosNaming seems to be hooked very different.
If I do an dump of the ior string that is written into the log file, I
get something like



   
Repo Id:  IDL:omg.org/CosNaming/NamingContextExt:1.0



IIOP
Profile

   
Version:  1.2

   
Address:  inet:192.168.202.142:5300

Location: 
corbaloc::[EMAIL PROTECTED]:5300/JBoss/PPOA/%ac%ed%00%05sr%00'org.jboss.invocation.iiop.ReferenceDataxpt%00%09CosNamingq%00~%00%02


Components:  Native Codesets:

 
normal: ISO 8859-1:1987; Latin Alphabet No. 1

   
wide: ISO/IEC 10646-1:1993; UTF-16, UCS Transformation Format 16-bit form

 
Other Codesets:

 
X/Open UTF-8; UCS Transformation Format 8 (UTF-8)

Other
Wide Codesets:

 
X/Open UTF-8; UCS Transformation Format 8 (UTF-8)

   
Key:  4a 42 6f 73 73 2f 50 50 4f 41 2f ac ed 00 05 73 JBoss/PPOA/s

72
00 27 6f 72 67 2e 6a 62 6f 73 73 2e 69 6e 76 r.'org.jboss.inv

 
6f 63 61 74 69 6f 6e 2e 69 69 6f 70 2e 52 65 66 ocation.iiop.Ref

65
72 65 6e 63 65 44 61 74 61 78 70 74 00 09 43 erenceDataxpt..C

 
6f 73 4e 61 6d 69 6e 67 71 00 7e 00 02 
osNamingq.~..



If
I try to use this location for bootstrapping the name service, I cannot
get it.

Any
ideas?



Best
regards
Darius
Schier
Systems
Development / Databases
infor:
business
solutions AG
Hauerstrasse
12
66299 Friedrichsthal, Germany
Tel.: +49 (0) 0 68 97. 98
33-0
Fax: +49 (0) 0 68 97. 98 33-859


Vorstandssprecher:
Hubert Becker, Prof. Dr. Joachim Hertel - Vorstand: Andreas Reinicke, Ludwig
Augustin
Aufsichtsratsvorsitzender: Werner
Huttner
Sitz der Gesellschaft: Friedrichsthal/Saar.
Handelsregister: Amtsgericht Saarbrücken. HRB 11470


###
This message has been scanned by F-Secure
Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.F-Secure.com/

--
[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]
 




Re: [JBoss-user] Apache Tomcat/4.0.3 - HTTP Status 500 - No Contextconfigured to process this request

2002-06-07 Thread Jean-Christophe Pazzaglia

On Thu, 2002-06-06 at 19:45, Burkhard Vogel wrote:
> Hi,
> very simply there is nothing bound to the root context. As default there is
> (AFAIK) only something at /jboss/ , but to make sure check the server.log
> which gives anything deploy as web-application.
> hth,
> Burkhard

well I do have the same issue,
the only way I manage to do it is to define
a web app (.war) called ROOT.war,
may be someone know if it is possible
(or maybe only where) how to have the 
equivalent of the webapps folder 
to store directory structure 
instead of the compress one ?

jc

PS: why the move to catalina in 2.4.6 and not only on 3.x ?



___

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

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



[JBoss-user] Some working CMP 2.0 examples ?

2002-06-07 Thread Aleksander Grzebyta

Hello !

I cannot find any working sample of CMP 2.0 CMR. I obtain :

org.jboss.deployment.DeploymentException: Error while creating table; -
nested
hrowable: (java.sql.SQLException: ORA-00904: invalid column name
)

when trying deploy relator sample from:

http://iris.cs.byu.edu/tim/462/tutorial/tutorial.html

on Oracle.

I think I need to tell JBoss the foreign-key column name for CMR mapping,
but do not know how.

Are there some more complicated samples with all the stuff like in
jbosscmp-jdbc_3_0.dtd ?

sincerely Olek




___

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

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



[JBoss-user] [JBOSSSX] 'LoginCallBack' handler

2002-06-07 Thread Jean-Christophe Pazzaglia


Hi,

I was wondering if it is possible to store something 
else than the username/passwd in the 'login' callbackhandler ?

or do you think I need to use a Subject ?
[I want to share the same 'login module' for
a set (currently 2 but later 3 or 4) 
of related applications]

I tried unsuccesfully to add an extra field in my handler  (client)
and passing an array of 3 callback request in my Login Module. (server)

But the handler  only receive an array of 2 callbacks ...
in fact, it seems that the handler in the client side is 
called before the request from the appserver loginmodule is triggered
and that the loginmodule then use the cached values from this default
handler which obviously retrieve only the username/passwd (I' m using
2.4.6) 

Am I wrong ?
If not is it possible to change this behaviour ?

thanks in advance 

jc


-- 


___

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

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



[JBoss-user] Connection waiting...

2002-06-07 Thread Oskars Škutāns

Hi
There is one problem with my JBoss running on Windows 2000:
   After some jar files was changed, the "Connection wait..." messages appeared in my 
console.
   What can this mean?
I`m using JBoss and Resin servers on W2000 Server.

Can anybody help me?

Oscar

___

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

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



[JBoss-user] (JBoss3)Handles problem in Tomcat standalone

2002-06-07 Thread Andrew

EJB handles not properly work in  Tomcat environment seems it's using
Tomcat's JNDI Context for lookup...
What could be wrong?

Thanks.




___

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

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



Re: [JBoss-user] Error on bean deploy with CMR

2002-06-07 Thread Dain Sundstrom

Andre Selton wrote:

>   Hi,
> 
>   When I deploy my EJB with CMR I got this error :
> 
> org.jboss.deployment.DeploymentException: Error in
> ejb-jar.xml for relation Order-Item: cmr-field-type
> should be java.util.Collection or java.util.Set but is
> Order.
> 
>   items
>  
> java.util.Collection
> 


This one if fine.

> 
>   order
>   Order
> 


This one it wrong. You only need (can have) cmr-field-type if the 
cmr-field is multi-valued.   I think this is another lame place in the 
spec, as I can look up the field type using reflection, but it is 
required.  Just remove the line and it should start working.

-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

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



Re: [JBoss-user] Some working CMP 2.0 examples ?

2002-06-07 Thread Dain Sundstrom

The examples are included in the for pay doc.  If you can wait until 
monday the new docs for the 3.0 final release should be available on 
flashline. We are just waiting for scott to get to his home computer. 
He has been in my city (Minneapolis) this week doing training.

If you are in a hurry, someone did post a patch (to this list) for the 
current documentation examples, but I recommend you wait until Monday.

-dain

Aleksander Grzebyta wrote:

> Hello !
> 
> I cannot find any working sample of CMP 2.0 CMR. I obtain :
> 
> org.jboss.deployment.DeploymentException: Error while creating table; -
> nested
> hrowable: (java.sql.SQLException: ORA-00904: invalid column name
> )
> 
> when trying deploy relator sample from:
> 
> http://iris.cs.byu.edu/tim/462/tutorial/tutorial.html
> 
> on Oracle.
> 
> I think I need to tell JBoss the foreign-key column name for CMR mapping,
> but do not know how.
> 
> Are there some more complicated samples with all the stuff like in
> jbosscmp-jdbc_3_0.dtd ?
> 
> sincerely Olek
> 
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> 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

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



[JBoss-user] Newbie Question about Jboss 3 and tomcat 4

2002-06-07 Thread Vincent Stoessel

Hello All,
I installed "jboss-3.0.0_tomcat-4.0.3"
and they both seem to start up with no
problems. When I try to access tomact on port
8080 I get an error page and this message in the console:

INFO  [Engine] StandardHost[localhost]:
MAPPING configuration error for request URI

I'm sure this is a common problem for beginners
anyone have the answer?

I am running on a redhat 7.2 server. Thanks.

-- 
Vincent Stoessel
Linux Systems Developer
vincent xaymaca.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

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



Re: [JBoss-user] ERROR: Internal error getting results for field member

2002-06-07 Thread Dain Sundstrom

Doh,  It looks like we have gone to far in reducing the excessive 
exception reporting.

You could try turing up the logging in the log4j.xml file.  It has 
examples and good comments.

If you can't figure it out, post a bug report at sourceforge and I'll 
take a look at it.

-dain

Brandon Knitter wrote:

> I'm tailing server.log, the only thing showing up during my request is:
> 
> 
> 2002-06-06 22:05:51,731 DEBUG
> [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Using
> properties: {user=ejukebox, password=xx}
> 2002-06-06 22:05:51,823 DEBUG
> 
>[org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.PlaylistBean.findByPrimaryKey]
> Executing SQL: SELECT playlist_id FROM playlists WHERE playlist_id=?
> 2002-06-06 22:05:52,145 DEBUG
> [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.PlaylistBean] Executing
> SQL: SELECT user_id, name, user FROM playlists WHERE (playlist_id=?)
> 
> Which looks about right for a prepared statement...any ideas?  Is there a way to
> turn up vebosity?
> 
> 



___

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

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



[JBoss-user] Apache Tomcat/4.0 - Http Status 404

2002-06-07 Thread Coral Burns


Hello:

I downloaded the Jboss-3.0.0/Tomcat4.0.3 bundle from the jboss.org site and
I'm trying to bring up a test .html page using the Tomcat webserver, but I
keep getting this error:

Apache Tomcat/4.0 - Http Status 404 - the requested resource /jsp/test.html
is not available.

Jboss, with the embedded Tomcat, seems to start fine and I get these
messages in the console when I start Jboss, so I'm assuming that Tomcat is
ok:

08:40:29,749 INFO  [MainDeployer] Adding deployer:
org.jboss.web.catalina.EmbeddedCatalinaServiceSX@113dc1
08:40:34,185 INFO  [STDOUT] Apache Tomcat/4.0.3
08:40:34,215 INFO  [Engine] HttpConnector Opening server socket on all host
IP addresses
08:40:34,225 INFO  [Engine] HttpConnector[8080] Starting background thread
08:40:35,036 INFO  [Engine] HttpProcessor[8080][0] Starting background
thread
08:40:35,046 INFO  [Engine] HttpProcessor[8080][1] Starting background
thread
08:40:35,056 INFO  [Engine] HttpProcessor[8080][2] Starting background
thread
08:40:35,056 INFO  [EmbeddedCatalinaServiceSX] OK

I put my test .html file in this location on my computer:

C:\jboss-3.0.0RC3_tomcat-4.0.3\catalina\webapps\examples\jsp\test.html

and try and bring it up with this URL:

http://localhost:8080/examples/jsp/test.html


But it just can't bring up the test page (and there's nothing to it except a
"Hello World") without the error.  

Am I missing some kind of configuration step, or something in my class path?
Does my test .html file need to be in a .war or .ear file?  All I want to do
is bring up a simple .html file and I can't do it.

Also, I'm assuming that I don't have to download Tomcat4.0.3 separately -
ie: that Tomcat4.0.3 is part of the JBoss bundle I downloaded.

Thanks alot,

Coral Burns



winmail.dat
Description: application/ms-tnef


Re: [JBoss-user] ERROR: Internal error getting results for field member

2002-06-07 Thread Brandon Knitter

Just noticed something.

> 2002-06-06 22:05:51,823 DEBUG
>
[org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.PlaylistBean.findByPrimaryKey]
> Executing SQL: SELECT playlist_id FROM playlists WHERE playlist_id=?

The above is correct SQL.

> 2002-06-06 22:05:52,145 DEBUG
> [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.PlaylistBean] Executing
> SQL: SELECT user_id, name, user FROM playlists WHERE (playlist_id=?) 

This is not correct, the field "user" does not exist in playlists.  How did it
generate that?

ejukebox=> \d playlists
   Table "playlists"
  Attribute  | Type  | Modifier 
-+---+--
 playlist_id | integer   | not null
 user_id | integer   | 
 name| character varying(60) | 
Indices: playlists_pkey,
 xifplaylists_users,
 xpkplaylists

ejukebox=> \d users
  Table "users"
Attribute |   Type   |  Modifier  
--+--+
 user_id  | integer  | not null
 uid  | character varying(40)| 
 pwd  | character varying(255)   | 
 fn   | character varying(255)   | 
 ln   | character varying(255)   | 
 email| text | 
 last_login   | timestamp with time zone | 
 total_artists| double precision | 
 total_albums | double precision | 
 total_titles | double precision | 
 total_filesize   | double precision | 
 total_songlength | double precision | 
 total_update | timestamp with time zone | 
 bitrate  | integer  | default 32
 playlink | integer  | 
Indices: users_pkey,
 xakusers_uid,
 xpkusers

ejukebox=> 

I'll turn up the logs and try again...thanks!


-- 
-bk


Quoting Dain Sundstrom <[EMAIL PROTECTED]>:

> Doh,  It looks like we have gone to far in reducing the excessive 
> exception reporting.
> 
> You could try turing up the logging in the log4j.xml file.  It has 
> examples and good comments.
> 
> If you can't figure it out, post a bug report at sourceforge and I'll 
> take a look at it.
> 
> -dain
> 
> Brandon Knitter wrote:
> 
> > I'm tailing server.log, the only thing showing up during my request is:
> > 
> > 
> > 2002-06-06 22:05:51,731 DEBUG
> > [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory]
> Using
> > properties: {user=ejukebox, password=xx}
> > 2002-06-06 22:05:51,823 DEBUG
> >
>
[org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.PlaylistBean.findByPrimaryKey]
> > Executing SQL: SELECT playlist_id FROM playlists WHERE playlist_id=?
> > 2002-06-06 22:05:52,145 DEBUG
> > [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.PlaylistBean]
> Executing
> > SQL: SELECT user_id, name, user FROM playlists WHERE (playlist_id=?)
> > 
> > Which looks about right for a prepared statement...any ideas?  Is there a
> way to
> > turn up vebosity?
> > 
> > 
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> 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

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



AW: AW: [JBoss-user] NPE using JBoss.net

2002-06-07 Thread Jung , Dr. Christoph

Yup. That´s exactly the place to put it them into (and of course to
reference it from the web-service.xml), unless
You want to use the across several ears in which case I would recommend you
to put them somwhere under lib.

CGJ

-Ursprüngliche Nachricht-
Von: David Ward [mailto:[EMAIL PROTECTED]] 
Gesendet: Freitag, 7. Juni 2002 15:30
An: [EMAIL PROTECTED]
Betreff: Re: AW: [JBoss-user] NPE using JBoss.net


Dr. Jung,

Thank your for your help.  That was the problem.  However, I can't 
really change the Javabeans since they are being created by XDoclet. 
Now, xdoclet 1.1.2's dataobjects conform to the JavaBeans spec - however 
1.2.0cvs valueobjects do not.  I need to use cvs' valueobjects because 
it creates getters and setters for my relationships.  Unfortunately, is 
also adds some gets that don't have sets.

Sooo, it looks like I need to write my own serializers and 
deserializers.  I see the docs at: http://xml.apache.org/axis/ , however 
my question to you is where do I put the de/serializer classes?  In the 
.wsr?

Thanks again,
David

--

Jung , Dr. Christoph wrote:
> David,
> 
> There seems to be an assymetry in the read/write methods of your 
> Javabeans? The line in which the exception is thrown:
> 
> BeanDeserializer.java, line 198:
> 
> if (propDesc.getWriteMethod().getParameterTypes().length == 1)
> 
> propDesc is the BeanProperty-MetaData of axis must be bound, otherwise 
> you would get a badElement AxisFault before. So I guess it is a 
> lacking writeMethod (setWhatEver(...)) such that the
> getWriteMethod() deliver null.
> 
> I´m currently working on a more tolerant version of the BeanSerializer 
> for jboss.net that also covers entity beans and entity-relations ...
> 
> CGJ
> 
> -Ursprüngliche Nachricht-
> Von: David Ward [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 7. Juni 2002 08:55
> An: [EMAIL PROTECTED]
> Betreff: [JBoss-user] NPE using JBoss.net
> Wichtigkeit: Hoch
> 
> 
> I'm so close to getting my axis client code working with JBoss.net I can 
>   taste it... however I'm getting a NullPointerException that I can't
> figure out.
> 
> My guess is that I have something misconfigured with namespaces or
> something else in my XML, but I'm not sure.
> 
> I've attached all the relevant information I can below.  The
> client-config.xml and web-service.xml files are at the bottom of the
email.
> 
> Please help! (Dr. Jung?)
> 
> Thanks so much,
> David
> 
> --
> 
> ENVIRONMENT:
> 
> RedHat Linux 7.1, kernel 2.4.9-31, i686
> Sun JDK 1.4.0_01
> JBoss 3.0.0 (final w/ Jetty)
> 
> ear file contents:
> --
> META-INF/MANIFEST.MF
> META-INF/application.xml
> dotech-gizzard-ejb.jar
> dotech-gizzard-axis.wsr
> 
> wsr (in the ear) file contents:
> ---
> META-INF/MANIFEST.MF
> META-INF/web-service.xml
> 
> JAVA CODE:
> --
> 
> String clientConfig = "/home/david//client-config.xml";
> String url = 
> "http://localhost:9090/axis/services/EJBPersistenceManager";;
> 
> Service service = new Service( new FileProvider(clientConfig) ); Call 
> call =
> (Call)service.createCall(); call.setTargetEndpointAddress( new URL(url) );
> 
> // I'm using reflection to dynamically get the method name in an
> InvocationHandler
> QName qname = new QName( "http://net.jboss.org/gizzard/";, 
> pMethod.getName() );
> 
> call.setOperationName(qname);
> return call.invoke(pArgs); // error occurs here
> 
> CLIENT STACK TRACE:
> ---
> 
>   [java] java.lang.NullPointerException
>   [java] at
> org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.j
> ava:13
> 5)
>   [java] at
>
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deserializati
> onContextImpl.java:865)
>   [java] at
> org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1528)
>   [java] at
> org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
>   [java] at
> org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
>   [java] at
> org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
>   [java] at
> org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
>   [java] at
> org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
>   [java] at 
> org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
>   [java] at
> org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
>   [java] at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
>   [java] at
>
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
> textImpl.java:201)
>   [java] at
> org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:428) [java]
> at org.apache.axis.client.Call.invoke(Call.java:1793)
>   [java] at org.apache.axis.client.Call.invoke(Call.java:1594)
>   [java] at org.apache.axis.client.Call.invoke(Call.java:1513)
>   [java] at org.apache.

Re: [JBoss-user] Problem binding on Name Server using RMI/IIOP

2002-06-07 Thread Francisco Reverbel

I have seen a stack trace like this before. Aren't you using an older 
JacORB version at the client side by any chance?

JBoss requires JacORB 1.4. Neither JacORB 1.3.X or 1.4.betaX will work.

JacORB 1.4 was not yet publicly available when we released JBoss 3.0,
which went out with an unofficial "sneak preview" of JacORB 1.4's
library (jacorb.jar). 

Please use at the client side the jacorb.jar file in the JBoss 3.0
distribution. Or else get JacORB 1.4, which was just released. 
(I didn't test the official JacORB 1.4 GA release with JBoss yet. 
This is the first thing in my todo list. It should work, unless 
there is some last minute surprise.)

Another thing: you should not need any CORBA code in your RMI/IIOP 
clients. Unless you are doing more CORBA stuff, you can remove the
ORB.init() call from your RMI/IIOP clients. There is no need to set the 
"java.naming.corba.orb" property before you construct an InitialContext.
The initial context factory and the provider URL are enough.

Let me know if the problem persists. I was away from this list for a 
few days, but should be able to respond quicker now.

Best,

Francisco

On Mon, 3 Jun 2002, Gerard BUNEL wrote:

> Helo,
> 
> Still trying to use RMI/IIOP with JBoss, and still not working.
> 
> I've forced my client app to use jacorb by setting properties this way:
> 
> Properties p = new Properties();
> p.put ("org.omg.CORBA.ORBClass", "org.jacorb.orb.ORB");
> p.put( "org.omg.CORBA.ORBSingletonClass",
> "org.jacorb.orb.ORBSingleton");
> _orb = ORB.init( new String[0], p);
> 
> Then, when I try to bind to JNDI with the folowing code:
> 
>   public void run () {
> InitialContext ic = null;
> java.util.Hashtable p = new java.util.Hashtable();
> p.put(Context.INITIAL_CONTEXT_FACTORY,
> "com.sun.jndi.cosnaming.CNCtxFactory");
> p.put(Context.PROVIDER_URL,  _config.getRootContext()); // IOR from
> JBoss
> p.put("java.naming.corba.orb", _orb);
> while (true) {
>   Runtime.getRuntime().gc();
>   try {
> synchronized (this) {
>   this.wait(5000);
> }
> if (ic == null) {
>   ic = new InitialContext(p);
> }
> ic.rebind( _name, _publisher);
>   } catch (InterruptedException e) {
> if (ic != null) {
>   try { ic.close(); } catch (Exception ex) {}
> }
> try { PortableRemoteObject.unexportObject(_publisher); } catch
> (Exception ex) {}
> return;
>   } catch (Exception e) {
>e.printStackTrace();
>   }
> }
> 
>   }
> 
> I do this to this way so that if JBoss server shuts down, I'll register
> again when it will be up.
> But doing this, an exception i thrown:
> 
> java.lang.ClassCastException:
> com.sun.corba.se.internal.corba.TypeCodeImpl
> at
> org.jacorb.orb.CDROutputStream.write_value(CDROutputStream.java:1465)
> 
> at org.jacorb.orb.Any.read_value(Any.java:802)
> at org.omg.CosNaming.NameHelper.insert(NameHelper.java:49)
> at
> org.omg.CosNaming._NamingContextStub.rebind(_NamingContextStub.java:99)
> at com.sun.jndi.cosnaming.CNCtx.callBindOrRebind(CNCtx.java:475)
> 
> at com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:567)
> at com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:584)
> at javax.naming.InitialContext.rebind(InitialContext.java:366)
> at
> com.ftrd.cti.server.CTIServerImpl.run(CTIServerImpl.java:2495)
> at java.lang.Thread.run(Thread.java:484)
> 
> Any Idea where the problem is ?
> When I did the same, but without forcing the use of jacorb, I had
> another Exeption
> 
> --
> [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
> 
> ___
> 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

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



Re: [JBoss-user] performance on linux/windows

2002-06-07 Thread Stephen Davidson

Greetings.

Which 2.4 Kernel?  And did you reset the Thread/Process handles in the Kernel?

Above 2.4.10 (I would STRONGLY RECOMMEND 2.4.18 for this, btw), a new thread manager 
and virtual process manager was put into the Linux Kernel.
The gotcha's;
1) Many Distro's, including SuSE, patched OUT the new thread manager in 2.4.17 and 
below (there were some bugs)
2) Linux Kernels ship with the following maximums by default;
   Max Threads/Process = 64;
   Max Processes/System = 1024

These defaults cause serious performance degradation of JBoss on Linux systems 
starting at around 150-200 concurrent users.  I boosted test box up to Threads = 
8192/Process=8192, have not had any 
problems, and the box screams.  (Have not actually deployed into production yet, 
sorry).  The reason that the defaults are so low is that for end-users, and 
development boxes, this prevents runaway 
forkers from taking down the system.  This does cause an issue for production servers, 
however.

-Steve

Karl Øie wrote:

> with shame i have to agree with this, according to several performance tests 
> w2k has better thread handeling than linux (2.4 kern) at the moment
> 
> mvh karl e
> 
> 
> On Friday 07 June 2002 13:35, Maris Orbidans wrote:
> 
>>and what about threads ?
>>
>>
>>
>>IMHO JRockit is the best VM for JBoss
>>
>>Its free
>>
>>http://www.jrockit.com
>>
>>
>>Maris
>>
>>
>>>-Original Message-
>>>From: Marius Kotsbak [mailto:[EMAIL PROTECTED]]
>>>Sent: Friday, June 07, 2002 2:00 PM
>>>To: [EMAIL PROTECTED]
>>>Subject: Re: [JBoss-user] performance on linux/windows
>>>
>>>
>>>I think that the difference is litte if you use the best jdks on both
>>>platforms (ibm/sun 1.4 for linux), but linux is far more stable and
>>>easier to work with than windows. We run on SuSE.de. And I think linux
>>>has a better memory/swap/disk-handling than win. It utilizes
>>>most of the
>>>memory for buffers, while win might let the memory be free (i.e. don't
>>>use it).
>>>
>>>On Sat, 2002-06-08 at 00:50, Tejeshwar wrote:
>>>
Hi..


I want to know one thing.
My question,

JBoss on windows/linux, which gives better performance?
whether windows or linux.

Pls reply back as early as possible.

Thanking you

with regards

Tejesh

>>>___
>>>
>>>Don't miss the 2002 Sprint PCS Application Developer's Conference
>>>August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>>>
>>>___
>>>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
>>
>>___
>>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
> 
> ___
> 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

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



Re: [JBoss-user] performance on linux/windows

2002-06-07 Thread Stephen Davidson

Greetings.

Which 2.4 Kernel?  And did you reset the Thread/Process handles in the Kernel?

Above 2.4.10 (I would STRONGLY RECOMMEND 2.4.18 for this, btw), a new thread manager 
and virtual process manager was put into the Linux Kernel.
The gotcha's;
1) Many Distro's, including SuSE, patched OUT the new thread manager in 2.4.17 and 
below (there were some bugs)
2) Linux Kernels ship with the following maximums by default;
   Max Threads/Process = 64;
   Max Processes/System = 1024

These defaults cause serious performance degradation of JBoss on Linux systems 
starting at around 150-200 concurrent users.  I boosted test box up to Threads = 
8192/Process=8192, have not had any 
problems, and the box screams.  (Have not actually deployed into production yet, 
sorry).  The reason that the defaults are so low is that for end-users, and 
development boxes, this prevents runaway 
forkers from taking down the system.  This does cause an issue for production servers, 
however.

-Steve

Karl Øie wrote:

> with shame i have to agree with this, according to several performance tests 
> w2k has better thread handeling than linux (2.4 kern) at the moment
> 
> mvh karl e
> 
> 
> On Friday 07 June 2002 13:35, Maris Orbidans wrote:
> 
>>and what about threads ?
>>
>>
>>
>>IMHO JRockit is the best VM for JBoss
>>
>>Its free
>>
>>http://www.jrockit.com
>>
>>
>>Maris
>>
>>
>>>-Original Message-
>>>From: Marius Kotsbak [mailto:[EMAIL PROTECTED]]
>>>Sent: Friday, June 07, 2002 2:00 PM
>>>To: [EMAIL PROTECTED]
>>>Subject: Re: [JBoss-user] performance on linux/windows
>>>
>>>
>>>I think that the difference is litte if you use the best jdks on both
>>>platforms (ibm/sun 1.4 for linux), but linux is far more stable and
>>>easier to work with than windows. We run on SuSE.de. And I think linux
>>>has a better memory/swap/disk-handling than win. It utilizes
>>>most of the
>>>memory for buffers, while win might let the memory be free (i.e. don't
>>>use it).
>>>
>>>On Sat, 2002-06-08 at 00:50, Tejeshwar wrote:
>>>
Hi..


I want to know one thing.
My question,

JBoss on windows/linux, which gives better performance?
whether windows or linux.

Pls reply back as early as possible.

Thanking you

with regards

Tejesh

>>>___
>>>
>>>Don't miss the 2002 Sprint PCS Application Developer's Conference
>>>August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>>>
>>>___
>>>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
>>
>>___
>>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
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


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


___

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

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



Re: [JBoss-user] Some working CMP 2.0 examples ?

2002-06-07 Thread Aleksander Grzebyta

Hello Dain !

OK we will make an order monday. I hope we will not obtain the older docs.

sincerely Olek


- Original Message -
From: "Dain Sundstrom" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 07, 2002 4:46 PM
Subject: Re: [JBoss-user] Some working CMP 2.0 examples ?


> The examples are included in the for pay doc.  If you can wait until
> monday the new docs for the 3.0 final release should be available on
> flashline. We are just waiting for scott to get to his home computer.
> He has been in my city (Minneapolis) this week doing training.
>
> If you are in a hurry, someone did post a patch (to this list) for the
> current documentation examples, but I recommend you wait until Monday.
>
> -dain
>
> Aleksander Grzebyta wrote:
>
> > Hello !
> >
> > I cannot find any working sample of CMP 2.0 CMR. I obtain :
> >
> > org.jboss.deployment.DeploymentException: Error while creating table; -
> > nested
> > hrowable: (java.sql.SQLException: ORA-00904: invalid column name
> > )
> >
> > when trying deploy relator sample from:
> >
> > http://iris.cs.byu.edu/tim/462/tutorial/tutorial.html
> >
> > on Oracle.
> >
> > I think I need to tell JBoss the foreign-key column name for CMR
mapping,
> > but do not know how.
> >
> > Are there some more complicated samples with all the stuff like in
> > jbosscmp-jdbc_3_0.dtd ?
> >
> > sincerely Olek
> >
> >
> >
> >
> > ___
> >
> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> >
> > ___
> > 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
>
> ___
> 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

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



Re: [JBoss-user] ERROR: Internal error getting results for field member

2002-06-07 Thread Brandon Knitter

I turned it up to trace and got for my method call that it's bombing on the
below.  I've noted that odd relational query, it just doesn't make sense.  It's
almost like the foreign-key-fields mapping is wrong.  I tried taking out the
section (docs say it's auto generated), but still say results.

2002-06-07 08:30:48,349 TRACE [org.jboss.ejb.plugins.LogInterceptor] Start
method=getUserView
2002-06-07 08:30:48,350 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT] Current
transaction in MI is null
2002-06-07 08:30:48,350 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT]
TX_REQUIRED for getUserView
2002-06-07 08:30:48,351 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT] Thread
came in with tx null
2002-06-07 08:30:48,352 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT] Starting
new tx TransactionImpl:XidImpl [FormatId=257, GlobalId=zoot//7, BranchQual=]
2002-06-07 08:30:48,354 TRACE [org.jboss.ejb.plugins.EntityLockInterceptor]
Begin invoke, key=1000
2002-06-07 08:30:48,356 TRACE [org.jboss.ejb.plugins.EntityInstancePool] Get
instance org.jboss.ejb.plugins.EntityInstancePool@6b93c5#true#class
org.blandsite.music.play.PlaylistBean
2002-06-07 08:30:48,358 TRACE [org.jboss.ejb.plugins.AbstractInstanceCache]
Activated bean PlaylistBean with id = 1000
2002-06-07 08:30:48,358 TRACE
[org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] entryAdded, entry=key:
1000, object: 43724e, entry: 57305
2002-06-07 08:30:48,359 TRACE [org.jboss.ejb.plugins.EntityInstanceInterceptor]
Begin invoke, key=1000
2002-06-07 08:30:48,359 TRACE
[org.jboss.ejb.plugins.EntitySynchronizationInterceptor] invoke called for ctx
org.jboss.ejb.EntityEnterpriseContext@43724e, tx=TransactionImpl:XidImpl
[FormatId=257, GlobalId=zoot//7, BranchQual=]
2002-06-07 08:30:48,360 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.PlaylistBean] RESET PERSISTENCE
CONTEXT: id=1000
2002-06-07 08:30:48,360 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.PlaylistBean] load data:
entity=PlaylistBean pk=1000
2002-06-07 08:30:48,361 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.PlaylistBean] No preload data
found: entity=PlaylistBean pk=1000
2002-06-07 08:30:48,361 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.PlaylistBean] Eager-load
for entity: readahead=[JDBCReadAheadMetaData : strategy=on-load, pageSize=255,
eagerLoadGroup=*]
2002-06-07 08:30:48,369 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.PlaylistBean] Executing
SQL: SELECT user_id, name, user FROM playlists WHERE (playlist_id=?)

[ This is just not right.  Maybe it should be:

  SELECT name, user_id from playlists where (playlist_id=?)

the UserBean should be a "parent" relationship to the PlaylistBean.]





2002-06-07 08:30:48,370 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PlaylistBean.playlistId]
Set parameter: index=1, jdbcType=INTEGER, value=1000
2002-06-07 08:30:48,377 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PlaylistBean.userId]
Get result: index=1, javaType=int, Simple, value=4
2002-06-07 08:30:48,378 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PlaylistBean.name]
Get result: index=2, javaType=java.lang.String, Simple, value=first playlist
2002-06-07 08:30:48,385 TRACE
[org.jboss.ejb.plugins.EntitySynchronizationInterceptor] loadEntity Exception,
clear tx for ctx=org.jboss.ejb.EntityEnterpriseContext@43724e,
tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=zoot//7, BranchQual=]
2002-06-07 08:30:48,386 TRACE
[org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] entryRemoved, entry=key:
null, object: null, entry: 57305
2002-06-07 08:30:48,386 TRACE [org.jboss.ejb.plugins.EntityInstanceInterceptor]
Ending invoke, exceptionThrown, ctx=org.jboss.ejb.EntityEnterpriseContext@43724e
2002-06-07 08:30:48,387 TRACE [org.jboss.ejb.plugins.EntityInstanceInterceptor]
End invoke, key=1000, ctx=org.jboss.ejb.EntityEnterpriseContext@43724e
2002-06-07 08:30:48,387 TRACE [org.jboss.ejb.plugins.EntityLockInterceptor] End
invoke, key=1000
2002-06-07 08:30:48,388 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT]
TxInterceptorCMT: In finally
2002-06-07 08:30:48,404 TRACE [org.jboss.ejb.plugins.LogInterceptor] End
method=getUserView



I have looked over my ejb-jar.xml and jbosscmp-jdbc.xml a lot, not sure what I
got wrong here.  You want me to post my problem as a bug?

-- 
-bk


Quoting Brandon Knitter <[EMAIL PROTECTED]>:

> Just noticed something.
> 
> > 2002-06-06 22:05:51,823 DEBUG
> >
>
[org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.PlaylistBean.findByPrimaryKey]
> > Executing SQL: SELECT playlist_id FROM playlists WHERE playlist_id=?
> 
> The above is correct SQL.
> 
> > 2002-06-06 22:05:52,145 DEBUG
> > [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.PlaylistBean]
> Executing
> > SQL: SELECT user_id, name, user FROM playlists WHERE (playlist_id=?) 
> 
> This is not correct, the field "user" does not exist in playlists.  How did
> it
> generate that?
> 
> ejukebox=> \d playlists
>   

Re: [JBoss-user] Problem binding on Name Server using RMI/IIOP

2002-06-07 Thread Gerard BUNEL



Francisco Reverbel a écrit :

> I have seen a stack trace like this before. Aren't you using an older
> JacORB version at the client side by any chance?
>

Don't  know. I downloaded the jboss-all which included the jacorb.jar. Is
there mean to know the version ?

>
> JBoss requires JacORB 1.4. Neither JacORB 1.3.X or 1.4.betaX will work.
>
> JacORB 1.4 was not yet publicly available when we released JBoss 3.0,
> which went out with an unofficial "sneak preview" of JacORB 1.4's
> library (jacorb.jar).
>
> Please use at the client side the jacorb.jar file in the JBoss 3.0
> distribution. Or else get JacORB 1.4, which was just released.
> (I didn't test the official JacORB 1.4 GA release with JBoss yet.
> This is the first thing in my todo list. It should work, unless
> there is some last minute surprise.)
>
> Another thing: you should not need any CORBA code in your RMI/IIOP
> clients. Unless you are doing more CORBA stuff, you can remove the
> ORB.init() call from your RMI/IIOP clients. There is no need to set the
> "java.naming.corba.orb" property before you construct an InitialContext.
> The initial context factory and the provider URL are enough.
>

I can beleive that (I worked with BEA WebLogic) but as it was not working I
tried using JacORB on client side

>
> Let me know if the problem persists. I was away from this list for a
> few days, but should be able to respond quicker now.
>

Really thanks
--
[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

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



Re: [JBoss-user] Some working CMP 2.0 examples ?

2002-06-07 Thread Dain Sundstrom

Wait until it says it is the new docs.  We will make an announcement on 
the lists.

-dain

Aleksander Grzebyta wrote:

> Hello Dain !
> 
> OK we will make an order monday. I hope we will not obtain the older docs.
> 
> sincerely Olek
> 
> 
> - Original Message -
> From: "Dain Sundstrom" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 07, 2002 4:46 PM
> Subject: Re: [JBoss-user] Some working CMP 2.0 examples ?
> 
> 
> 
>>The examples are included in the for pay doc.  If you can wait until
>>monday the new docs for the 3.0 final release should be available on
>>flashline. We are just waiting for scott to get to his home computer.
>>He has been in my city (Minneapolis) this week doing training.
>>
>>If you are in a hurry, someone did post a patch (to this list) for the
>>current documentation examples, but I recommend you wait until Monday.
>>
>>-dain
>>
>>Aleksander Grzebyta wrote:
>>
>>
>>>Hello !
>>>
>>>I cannot find any working sample of CMP 2.0 CMR. I obtain :
>>>
>>>org.jboss.deployment.DeploymentException: Error while creating table; -
>>>nested
>>>hrowable: (java.sql.SQLException: ORA-00904: invalid column name
>>>)
>>>
>>>when trying deploy relator sample from:
>>>
>>>http://iris.cs.byu.edu/tim/462/tutorial/tutorial.html
>>>
>>>on Oracle.
>>>
>>>I think I need to tell JBoss the foreign-key column name for CMR
>>>
> mapping,
> 
>>>but do not know how.
>>>
>>>Are there some more complicated samples with all the stuff like in
>>>jbosscmp-jdbc_3_0.dtd ?
>>>
>>>sincerely Olek
>>>
>>>
>>>
>>>
>>>___
>>>
>>>Don't miss the 2002 Sprint PCS Application Developer's Conference
>>>August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>>>
>>>___
>>>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
>>
>>___
>>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
> 
> ___
> 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

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



Re: [JBoss-user] Apache Tomcat/4.0 - Http Status 404

2002-06-07 Thread Aleksander Grzebyta

Hello !

It seems to me that original Tomcat webapps is not active when working with
JBoss. Try to deploy same simple war under /server/default/deploy dir.

sincerely Olek

- Original Message -
From: "Coral Burns" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 07, 2002 4:55 PM
Subject: [JBoss-user] Apache Tomcat/4.0 - Http Status 404


>
> Hello:
>
> I downloaded the Jboss-3.0.0/Tomcat4.0.3 bundle from the jboss.org site
and
> I'm trying to bring up a test .html page using the Tomcat webserver, but I
> keep getting this error:
>
> Apache Tomcat/4.0 - Http Status 404 - the requested resource
/jsp/test.html
> is not available.
>
> Jboss, with the embedded Tomcat, seems to start fine and I get these
> messages in the console when I start Jboss, so I'm assuming that Tomcat is
> ok:
>
> 08:40:29,749 INFO  [MainDeployer] Adding deployer:
> org.jboss.web.catalina.EmbeddedCatalinaServiceSX@113dc1
> 08:40:34,185 INFO  [STDOUT] Apache Tomcat/4.0.3
> 08:40:34,215 INFO  [Engine] HttpConnector Opening server socket on all
host
> IP addresses
> 08:40:34,225 INFO  [Engine] HttpConnector[8080] Starting background thread
> 08:40:35,036 INFO  [Engine] HttpProcessor[8080][0] Starting background
> thread
> 08:40:35,046 INFO  [Engine] HttpProcessor[8080][1] Starting background
> thread
> 08:40:35,056 INFO  [Engine] HttpProcessor[8080][2] Starting background
> thread
> 08:40:35,056 INFO  [EmbeddedCatalinaServiceSX] OK
>
> I put my test .html file in this location on my computer:
>
> C:\jboss-3.0.0RC3_tomcat-4.0.3\catalina\webapps\examples\jsp\test.html
>
> and try and bring it up with this URL:
>
> http://localhost:8080/examples/jsp/test.html
>
>
> But it just can't bring up the test page (and there's nothing to it except
a
> "Hello World") without the error.
>
> Am I missing some kind of configuration step, or something in my class
path?
> Does my test .html file need to be in a .war or .ear file?  All I want to
do
> is bring up a simple .html file and I can't do it.
>
> Also, I'm assuming that I don't have to download Tomcat4.0.3 separately -
> ie: that Tomcat4.0.3 is part of the JBoss bundle I downloaded.
>
> Thanks alot,
>
> Coral Burns
>




___

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

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



[JBoss-user] Entity Bean Cache performance issue in Jboss3.0.0

2002-06-07 Thread Jos Henrique Varanda

Hello,

I was using jboss-3.0.0rc3 and performance was not an
issue. Now I've installed jboss-3.0.0 and there is a
serious performance problem in that version.

I have 1500 entities into my DB and in a finder method
I look for them all. In RC3 the first time I execute
the finder is 2 times slower than the next ones, when,
I suppose, cache takes place. Now, in jboss-3.0.0, the
same finder executes 100 times or more slower than RC3
in the first time I execute it and just a second
slower in the next ones, when cache assumes.Is this a
bug in cache initialization? Anybody else noted this?

I checked the log file and the sql generated statements
and they look like the same in both versions. My
machine CPU gets a peek during the first finder call,
indicating that there is a lot of work being done.
Why is there this significative slower performance between
versions?
Can anybody help me with this issue?

Thanks,
jhvaranda


_
Chegou o novo MSN Explorer. Instale já. É gratuito: 
http://explorer.msn.com.br


___

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

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



Re: [JBoss-user] Problem binding on Name Server using RMI/IIOP

2002-06-07 Thread Dain Sundstrom

Oh, are trying to use a foreign key as a primary key?  If you are, it is 
not supported yet.  A new guy Ken is working on this, and said it 
"shouldn't be that hard" (that is what I said about the CMP 2.0 engine 
when I started).  If he has any luck, we should have this within a month 
or two.

-dain

Gerard BUNEL wrote:

> 
> Francisco Reverbel a écrit :
> 
> 
>>I have seen a stack trace like this before. Aren't you using an older
>>JacORB version at the client side by any chance?
>>
>>
> 
> Don't  know. I downloaded the jboss-all which included the jacorb.jar. Is
> there mean to know the version ?
> 
> 
>>JBoss requires JacORB 1.4. Neither JacORB 1.3.X or 1.4.betaX will work.
>>
>>JacORB 1.4 was not yet publicly available when we released JBoss 3.0,
>>which went out with an unofficial "sneak preview" of JacORB 1.4's
>>library (jacorb.jar).
>>
>>Please use at the client side the jacorb.jar file in the JBoss 3.0
>>distribution. Or else get JacORB 1.4, which was just released.
>>(I didn't test the official JacORB 1.4 GA release with JBoss yet.
>>This is the first thing in my todo list. It should work, unless
>>there is some last minute surprise.)
>>
>>Another thing: you should not need any CORBA code in your RMI/IIOP
>>clients. Unless you are doing more CORBA stuff, you can remove the
>>ORB.init() call from your RMI/IIOP clients. There is no need to set the
>>"java.naming.corba.orb" property before you construct an InitialContext.
>>The initial context factory and the provider URL are enough.
>>
>>
> 
> I can beleive that (I worked with BEA WebLogic) but as it was not working I
> tried using JacORB on client side
> 
> 
>>Let me know if the problem persists. I was away from this list for a
>>few days, but should be able to respond quicker now.
>>
>>
> 
> Really thanks
> --
> [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
> 
> ___
> 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

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



[JBoss-user] Startup tasks

2002-06-07 Thread Ludovico Basili

Hello,
I would like to execute some tasks at startup (i.e., starting a tftp
server). To do so, I need a way to load classes and invoke methods on them
as JBoss starts.
Which is the better way to do that ?

Thanks,

--
Ludovico Basili
Software Engineer
Allied Telesis K.K.
Phone +39 02 41411245  - FAX +39 02 41411260 - email
[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

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



[JBoss-user] Re: IIOP CosNaming

2002-06-07 Thread Francisco Reverbel

Hi Darius,

Thanks for your feedback!

The refactoring caused a change in the CosNaming IOR indeed. Now I see
that maybe I got a bit carried away when did this. I've made the CORBA 
naming service use the new IIOPInvoker stuff, but this was not really
necessary. The IOR change could have been avoided.

The new corbaloc URL looks really inconvenient. Probably the best thing
is to revert the change that made it this ugly... But the ugly URL should 
work anyway... I have no idea on why you can't reach the naming service 
with it.

Is this problem bothering you TOO much? I think I will revert the change
anyway (it is just a matter of hooking the CosNaming service directly to
the ORB again), but cannot do it right now. I would also like to 
understand why the ugly corbaloc URL does not work. 

Can you use the CosNaming IOR to reach the naming server? Just as a 
temporary workaround?

Best,

Francisco

On Wed, 5 Jun 2002, Schier, Darius wrote:

> Hi Francisco,
> 
> I had a question about the refactoring of the corba service within the
> current cvs version of jboss.
> 
>  
> 
> We are using a Java side server that does some central tasks for our C++
> Clients (TAO), that communicate through Corba.
> 
> This server is realized as a MBean now.
> 
> It was pretty straightforward in jboss3.0 to bootstrap the CosNaming from
> the C++ side through something like
> 
>  
> 
> corbaloc::1.2@localhost:5300/JBoss/Naming/root
> 
>  
> 
> After a sync of the cvs version the CosNaming seems to be hooked very
> different. If I do an dump of the ior string that is written into the log
> file, I get something like
> 
>  
> 
> Repo Id:  IDL:omg.org/CosNaming/NamingContextExt:1.0
> 
>  
> 
> IIOP Profile
> 
> Version:  1.2
> 
> Address:  inet:192.168.202.142:5300
> 
>Location:
> corbaloc::[EMAIL PROTECTED]:5300/JBoss/PPOA/%ac%ed%00%05sr%00'org.jboss.in
> vocation.iiop.ReferenceDataxpt%00%09CosNamingq%00~%00%02
> 
>  Components:  Native Codesets:
> 
>   normal: ISO 8859-1:1987; Latin Alphabet No. 1
> 
> wide: ISO/IEC 10646-1:1993; UTF-16, UCS Transformation
> Format 16-bit form
> 
>   Other Codesets:
> 
>   X/Open UTF-8; UCS Transformation Format 8 (UTF-8)
> 
>   Other Wide Codesets:
> 
>   X/Open UTF-8; UCS Transformation Format 8 (UTF-8)
> 
> Key:  4a 42 6f 73 73 2f 50 50 4f 41 2f ac ed 00 05 73
> JBoss/PPOA/s
> 
>   72 00 27 6f 72 67 2e 6a 62 6f 73 73 2e 69 6e 76
> r.'org.jboss.inv
> 
>   6f 63 61 74 69 6f 6e 2e 69 69 6f 70 2e 52 65 66
> ocation.iiop.Ref
> 
>   65 72 65 6e 63 65 44 61 74 61 78 70 74 00 09 43
> erenceDataxpt..C
> 
>   6f 73 4e 61 6d 69 6e 67 71 00 7e 00 02  osNamingq.~..
> 
>  
> 
> If I try to use this location for bootstrapping the name service, I cannot
> get it.
> 
> Any ideas?
> 
>  
> 
> Best regards
> 
>  Darius Schier
> Systems Development / Databases
> 
> infor:
> business solutions AG 
> Hauerstrasse 12 
> 66299 Friedrichsthal, Germany 
> Tel.: +49 (0) 0 68 97. 98 33-0
> Fax: +49 (0) 0 68 97. 98 33-859 
> <  mailto:[EMAIL PROTECTED]>
> <  http://www.infor.de>
> 
> Vorstandssprecher: Hubert Becker, Prof. Dr. Joachim Hertel - Vorstand:
> Andreas Reinicke, Ludwig Augustin
> Aufsichtsratsvorsitzender: Werner Huttner
> Sitz der Gesellschaft: Friedrichsthal/Saar. Handelsregister: Amtsgericht
> Saarbrücken. HRB 11470
> 
>  
> 
> ###
> 
> This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
> For more information, connect to http://www.F-Secure.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

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



Re: [JBoss-user] diff free-docs paid-docs

2002-06-07 Thread Rajesh Acharya

It would be of great help for new visitors (and for me too) to JBoss site...
if there is a pointer to an URL or Info where one can find the comparison 
between free docs and paid docs to get an Idea of what the buyer gets extra 
in terms of Information in the paid docs (in addition to the pride of 
contributing for JBoss development !! )

Raj



On Friday 07 June 2002 20:16, you wrote:
> The examples are included in the for pay doc.  If you can wait until
> monday the new docs for the 3.0 final release should be available on
> flashline. We are just waiting for scott to get to his home computer.
> He has been in my city (Minneapolis) this week doing training.
>
> If you are in a hurry, someone did post a patch (to this list) for the
> current documentation examples, but I recommend you wait until Monday.
>
> -dain
>
> Aleksander Grzebyta wrote:
> > Hello !
> >
> > I cannot find any working sample of CMP 2.0 CMR. I obtain :
> >
> > org.jboss.deployment.DeploymentException: Error while creating table; -
> > nested
> > hrowable: (java.sql.SQLException: ORA-00904: invalid column name
> > )
> >
> > when trying deploy relator sample from:
> >
> > http://iris.cs.byu.edu/tim/462/tutorial/tutorial.html
> >
> > on Oracle.
> >
> > I think I need to tell JBoss the foreign-key column name for CMR mapping,
> > but do not know how.
> >
> > Are there some more complicated samples with all the stuff like in
> > jbosscmp-jdbc_3_0.dtd ?
> >
> > sincerely Olek
> >
> >
> >
> >
> > ___
> >
> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> >
> > ___
> > 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
>
> ___
> 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

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



Re: [JBoss-user] Apache Tomcat/4.0 - Http Status 404

2002-06-07 Thread Vincent Stoessel

Hello, thanks for that advice you answered my tomcat question as well.
I think maybe this tomcat issue should be added to the FAQ.
Thanks.


Aleksander Grzebyta wrote:
> Hello !
> 
> It seems to me that original Tomcat webapps is not active when working with
> JBoss. Try to deploy same simple war under /server/default/deploy dir.
> 
> sincerely Olek
> 
> - Original Message -
> From: "Coral Burns" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 07, 2002 4:55 PM
> Subject: [JBoss-user] Apache Tomcat/4.0 - Http Status 404
> 
> 
> 
>>Hello:
>>
>>I downloaded the Jboss-3.0.0/Tomcat4.0.3 bundle from the jboss.org site
> 
> and
> 
>>I'm trying to bring up a test .html page using the Tomcat webserver, but I
>>keep getting this error:
>>
>>Apache Tomcat/4.0 - Http Status 404 - the requested resource
> 
> /jsp/test.html
> 
>>is not available.
>>
>>Jboss, with the embedded Tomcat, seems to start fine and I get these
>>messages in the console when I start Jboss, so I'm assuming that Tomcat is
>>ok:
>>
>>08:40:29,749 INFO  [MainDeployer] Adding deployer:
>>org.jboss.web.catalina.EmbeddedCatalinaServiceSX@113dc1
>>08:40:34,185 INFO  [STDOUT] Apache Tomcat/4.0.3
>>08:40:34,215 INFO  [Engine] HttpConnector Opening server socket on all
> 
> host
> 
>>IP addresses
>>08:40:34,225 INFO  [Engine] HttpConnector[8080] Starting background thread
>>08:40:35,036 INFO  [Engine] HttpProcessor[8080][0] Starting background
>>thread
>>08:40:35,046 INFO  [Engine] HttpProcessor[8080][1] Starting background
>>thread
>>08:40:35,056 INFO  [Engine] HttpProcessor[8080][2] Starting background
>>thread
>>08:40:35,056 INFO  [EmbeddedCatalinaServiceSX] OK
>>
>>I put my test .html file in this location on my computer:
>>
>>C:\jboss-3.0.0RC3_tomcat-4.0.3\catalina\webapps\examples\jsp\test.html
>>
>>and try and bring it up with this URL:
>>
>>http://localhost:8080/examples/jsp/test.html
>>
>>
>>But it just can't bring up the test page (and there's nothing to it except
> 
> a
> 
>>"Hello World") without the error.
>>
>>Am I missing some kind of configuration step, or something in my class
> 
> path?
> 
>>Does my test .html file need to be in a .war or .ear file?  All I want to
> 
> do
> 
>>is bring up a simple .html file and I can't do it.
>>
>>Also, I'm assuming that I don't have to download Tomcat4.0.3 separately -
>>ie: that Tomcat4.0.3 is part of the JBoss bundle I downloaded.
>>
>>Thanks alot,
>>
>>Coral Burns
>>
> 
> 
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



-- 
Vincent Stoessel
Linux Systems Developer
vincent xaymaca.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

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



RE: [JBoss-user] Apache Tomcat/4.0 - Http Status 404

2002-06-07 Thread Coral Burns

Thanks for your reply!

But what I would like to do is bring up one simple .html or .jsp file (not
within a war or ear file) on localhost port 8080 rather than deploying the
test .jsp file within a war file...how do I go about doing that?

Also, if I have downloaded the JBoss3.0.0/Tomcat4.0.3 bundle from jboss.org
then I have the entire Tomcat server don't I?  (I mean, I don't have to go
to jakarta and download TomCat 4.3.0 separately, do I)...

Thanks in advance,

Coral





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Aleksander
Grzebyta
Sent: Friday, June 07, 2002 9:47 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Apache Tomcat/4.0 - Http Status 404


Hello !

It seems to me that original Tomcat webapps is not active when working with
JBoss. Try to deploy same simple war under /server/default/deploy dir.

sincerely Olek

- Original Message -
From: "Coral Burns" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 07, 2002 4:55 PM
Subject: [JBoss-user] Apache Tomcat/4.0 - Http Status 404


>
> Hello:
>
> I downloaded the Jboss-3.0.0/Tomcat4.0.3 bundle from the jboss.org site
and
> I'm trying to bring up a test .html page using the Tomcat webserver, but I
> keep getting this error:
>
> Apache Tomcat/4.0 - Http Status 404 - the requested resource
/jsp/test.html
> is not available.
>
> Jboss, with the embedded Tomcat, seems to start fine and I get these
> messages in the console when I start Jboss, so I'm assuming that Tomcat is
> ok:
>
> 08:40:29,749 INFO  [MainDeployer] Adding deployer:
> org.jboss.web.catalina.EmbeddedCatalinaServiceSX@113dc1
> 08:40:34,185 INFO  [STDOUT] Apache Tomcat/4.0.3
> 08:40:34,215 INFO  [Engine] HttpConnector Opening server socket on all
host
> IP addresses
> 08:40:34,225 INFO  [Engine] HttpConnector[8080] Starting background thread
> 08:40:35,036 INFO  [Engine] HttpProcessor[8080][0] Starting background
> thread
> 08:40:35,046 INFO  [Engine] HttpProcessor[8080][1] Starting background
> thread
> 08:40:35,056 INFO  [Engine] HttpProcessor[8080][2] Starting background
> thread
> 08:40:35,056 INFO  [EmbeddedCatalinaServiceSX] OK
>
> I put my test .html file in this location on my computer:
>
> C:\jboss-3.0.0RC3_tomcat-4.0.3\catalina\webapps\examples\jsp\test.html
>
> and try and bring it up with this URL:
>
> http://localhost:8080/examples/jsp/test.html
>
>
> But it just can't bring up the test page (and there's nothing to it except
a
> "Hello World") without the error.
>
> Am I missing some kind of configuration step, or something in my class
path?
> Does my test .html file need to be in a .war or .ear file?  All I want to
do
> is bring up a simple .html file and I can't do it.
>
> Also, I'm assuming that I don't have to download Tomcat4.0.3 separately -
> ie: that Tomcat4.0.3 is part of the JBoss bundle I downloaded.
>
> Thanks alot,
>
> Coral Burns
>




___

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

___
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

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



Re: [JBoss-user] Problem binding on Name Server using RMI/IIOP

2002-06-07 Thread Francisco Reverbel

On Fri, 7 Jun 2002, Gerard BUNEL wrote:

> Francisco Reverbel a écrit :
> 
> > I have seen a stack trace like this before. Aren't you using an older
> > JacORB version at the client side by any chance?
> >
> 
> Don't  know. I downloaded the jboss-all which included the jacorb.jar. Is
> there mean to know the version ?

In case you have more than one jacorb.jar file in the client machine, 
you need to make sure that the right one is used. Put in the client 
classpath the jacorb.jar file provided with JBoss. Better yet, prepend 
it to the boot classpath, so you can be certain it will be seen before
any other: 

  java -Xbootclasspath/p:SOME_DIR/jacorb.jar ... YourClient

If you are using some script provided with JacORB (jaco or jaco.bat) 
to start you client, change the script so that uses the right jar 
file. There will be an Xbootclasspath in the script, make it point 
to the jacorb.jar file provided with JBoss.

Let me know if this works or not.

Best,

Francisco


___

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

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



[JBoss-user] EXCEPTION_ACCESS_VIOLATION

2002-06-07 Thread Greg Dunn


I'm running JBoss-2.4.6_Tomcat-4.0.3 on Windows 2000, jre1.3.1_03 and I'm
getting the following error after my welcome page loads.  A call to the
database on another server is made successfully and the page loads
completely but then this error hits.  Can anyone help me out on this?

  An unexpected exception has been detected in native code outside the VM.
  Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x9de6450
  Function name=(N/A)
  Library=(N/A)

  NOTE: We are unable to locate the function name symbol for the error
  just occurred. Please refer to release documentation for possible
  reason and solutions.

  Current Java thread:
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:85)
at
org.apache.catalina.connector.http.SocketInputStream.fill(SocketInputStream.
java:593)
at
org.apache.catalina.connector.http.SocketInputStream.read(SocketInputStream.
java:530)
at
org.apache.catalina.connector.http.SocketInputStream.readRequestLine(SocketI
nputStream.java:199)
at
org.apache.catalina.connector.http.HttpProcessor.parseRequest(HttpProcessor.
java:695)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
959)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:479)

Dynamic libraries:
0x0040 - 0x00405000 C:\jdk1.3.1_03\bin\java.exe
0x77F8 - 0x77FFA000 C:\WINNT\System32\ntdll.dll
0x77DB - 0x77E0A000 C:\WINNT\system32\ADVAPI32.dll
0x77E8 - 0x77F35000 C:\WINNT\system32\KERNEL32.DLL
0x77D4 - 0x77DB C:\WINNT\system32\RPCRT4.DLL
0x7800 - 0x78046000 C:\WINNT\system32\MSVCRT.dll
0x6D42 - 0x6D4F C:\jdk1.3.1_03\jre\bin\hotspot\jvm.dll
0x77E1 - 0x77E74000 C:\WINNT\system32\USER32.dll
0x77F4 - 0x77F7C000 C:\WINNT\system32\GDI32.DLL
0x7757 - 0x775A C:\WINNT\System32\WINMM.dll
0x6D22 - 0x6D227000 C:\jdk1.3.1_03\jre\bin\hpi.dll
0x6D3B - 0x6D3BD000 C:\jdk1.3.1_03\jre\bin\verify.dll
0x6D25 - 0x6D266000 C:\jdk1.3.1_03\jre\bin\java.dll
0x6D3C - 0x6D3CD000 C:\jdk1.3.1_03\jre\bin\zip.dll
0x6D34 - 0x6D348000 C:\jdk1.3.1_03\jre\bin\net.dll
0x7505 - 0x75058000 C:\WINNT\System32\WSOCK32.dll
0x7503 - 0x75044000 C:\WINNT\System32\WS2_32.DLL
0x7502 - 0x75028000 C:\WINNT\System32\WS2HELP.DLL
0x7828 - 0x7828C000 C:\WINNT\System32\rnr20.dll
0x7798 - 0x779A4000 C:\WINNT\System32\DNSAPI.DLL
0x777E - 0x777E8000 C:\WINNT\System32\winrnr.dll
0x7795 - 0x77979000 C:\WINNT\system32\WLDAP32.DLL
0x777F - 0x777F5000 C:\WINNT\System32\rasadhlp.dll
0x7783 - 0x7783E000 C:\WINNT\System32\RTUTILS.DLL
0x74FD - 0x74FED000 C:\WINNT\system32\msafd.dll
0x7734 - 0x77353000 C:\WINNT\System32\IPHLPAPI.DLL
0x7752 - 0x77525000 C:\WINNT\System32\ICMP.DLL
0x7732 - 0x77337000 C:\WINNT\System32\MPRAPI.DLL
0x7515 - 0x7515F000 C:\WINNT\System32\SAMLIB.DLL
0x7517 - 0x751BF000 C:\WINNT\System32\NETAPI32.DLL
0x77BE - 0x77BEF000 C:\WINNT\System32\SECUR32.DLL
0x751C - 0x751C6000 C:\WINNT\System32\NETRAP.DLL
0x77A5 - 0x77B45000 C:\WINNT\system32\OLE32.DLL
0x779B - 0x77A45000 C:\WINNT\system32\OLEAUT32.DLL
0x773B - 0x773DE000 C:\WINNT\System32\ACTIVEDS.DLL
0x7738 - 0x773A2000 C:\WINNT\System32\ADSLDPC.DLL
0x7788 - 0x7790D000 C:\WINNT\System32\SETUPAPI.DLL
0x77C1 - 0x77C6D000 C:\WINNT\System32\USERENV.DLL
0x774E - 0x77512000 C:\WINNT\System32\RASAPI32.DLL
0x774C - 0x774D1000 C:\WINNT\System32\RASMAN.DLL
0x7753 - 0x77552000 C:\WINNT\System32\TAPI32.DLL
0x77B5 - 0x77BD9000 C:\WINNT\system32\COMCTL32.DLL
0x77C7 - 0x77CBA000 C:\WINNT\system32\SHLWAPI.DLL
0x7736 - 0x77379000 C:\WINNT\System32\DHCPCSVC.DLL
0x691D - 0x69255000 C:\WINNT\System32\CLBCATQ.DLL
0x7501 - 0x75017000 C:\WINNT\System32\wshtcpip.dll
0x6D29 - 0x6D29A000 C:\jdk1.3.1_03\jre\bin\JdbcOdbc.dll
0x1F7D - 0x1F804000 C:\WINNT\System32\ODBC32.dll
0x76B3 - 0x76B6E000 C:\WINNT\system32\comdlg32.dll
0x6980 - 0x69A42000 C:\WINNT\system32\SHELL32.DLL
0x1F8C - 0x1F8D6000 C:\WINNT\System32\odbcint.dll
0x7792 - 0x77942000 C:\WINNT\system32\imagehlp.dll
0x72A0 - 0x72A2D000 C:\WINNT\system32\DBGHELP.dll
0x690A - 0x690AB000 C:\WINNT\System32\PSAPI.DLL

Local Time = Fri Jun 07 11:33:40 2002
Elapsed Time = 37
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.3.1_03-b03 mixed mo

Re: [JBoss-user] Connection waiting...

2002-06-07 Thread Burkhard Vogel

Hi,
Give us some stack/log...
Regards,
Burkhard
- Original Message -
From: "Oskars Škutāns" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 07, 2002 9:06 AM
Subject: [JBoss-user] Connection waiting...


Hi
There is one problem with my JBoss running on Windows 2000:
   After some jar files was changed, the "Connection wait..." messages
appeared in my console.
   What can this mean?
I`m using JBoss and Resin servers on W2000 Server.

Can anybody help me?

Oscar

___

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

___
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

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



Re: [JBoss-user] Startup tasks

2002-06-07 Thread Greg Turner

Get the docs and learn to write and deploy an MBean.  Then write an MBean
wrapper around your tftp server and deploy it.  Also the JMX book has an
example of writing an MBean for JBoss.

Ludovico Basili wrote:

> Hello,
> I would like to execute some tasks at startup (i.e., starting a tftp
> server). To do so, I need a way to load classes and invoke methods on them
> as JBoss starts.
> Which is the better way to do that ?
>
> Thanks,
>
> --
> Ludovico Basili
> Software Engineer
> Allied Telesis K.K.
> Phone +39 02 41411245  - FAX +39 02 41411260 - email
> [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
>
> ___
> 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

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



[JBoss-user] Re: (JBoss3)Handles problem in Tomcat standalone

2002-06-07 Thread Jon Swinth

Since nobody seems to have answered you.  Here is what I use to connect standalone 
Tomcat to Jboss.
There is more here than you asked for, but you get the idea.

  private static final String  contextFactory = 
"org.jnp.interfaces.NamingContextFactory" ;
  private static final String  urlPkgPrefixes = "org.jnp.interfaces" ;
  private static final String  providerUrl= "localhost:1099" ;
  private static InitialContextjndiContext = null ;

  public static InitialContext getJndiContext()
  throws NamingException {
return getJndiContext(false) ;
  } //end getJndiContext()

  public static synchronized InitialContext getJndiContext(
  boolean  restart )
  throws NamingException {
if (jndiContext == null
   || restart) {
Properties props = new Properties();
props.setProperty(Context.INITIAL_CONTEXT_FACTORY, contextFactory);
props.setProperty(Context.URL_PKG_PREFIXES, urlPkgPrefixes);
props.setProperty(Context.PROVIDER_URL, providerUrl);
jndiContext = new InitialContext(props);
} //end if
return jndiContext ;
  } //end getJndiContext()

  public static Object getRemoteHome(
  String   beanName,
  ClassremoteHomeClass )
  throws NamingException {
Object ref  = null ;
try {
  ref = getJndiContext().lookup(beanName);
} catch (Exception e) {
  ref = getJndiContext(true).lookup(beanName) ;
} //end try
return PortableRemoteObject.narrow(ref, remoteHomeClass);
  } //end getRemoteHome()


> From: "Andrew" <[EMAIL PROTECTED]>
> To: "JBossUser" <[EMAIL PROTECTED]>
> Date: Fri, 7 Jun 2002 18:46:02 +0400
> Subject: [JBoss-user] (JBoss3)Handles problem in Tomcat standalone
> Reply-To: [EMAIL PROTECTED]
>
>     EJB handles not properly work in  Tomcat environment seems it's using
> Tomcat's JNDI Context for lookup...
> What could be wrong?
>
> Thanks.

___

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

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



[JBoss-user] jbosscmp-jdbc.xml DTD?

2002-06-07 Thread Brandon Knitter

I added the following to the top of my jbosscmp-jdbc.xml file and was met with
TONS of errors, including errors from things I copied from the cmp2 commerce
example:


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


I did check out the "patch for cmp documentation updates" in another email (just
visually patched it), and even those may not meet the dtd that comes with jboss
3.0?  Is this known?

An example would be that the commerce example which comes with the cmp
documentation has the following excerpt in the jbosscmp-jdbc.xml file:


   
  java:/DefaultDS
  Hypersonic SQL
  true
  true
  true
  false
  300
  false
  true
  foreign-key
  true
   


But according to the dtd, the field "type-mapping" isn't allowed.







Sorry if this is a duplicate question, but I'm trying everything to see if I
messed up my files...I'm still having my weird relationship problem.

Thanks,

-- 
-bk






___

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

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



Re: [JBoss-user] diff free-docs paid-docs

2002-06-07 Thread Dain Sundstrom

I can tell you that the free docs have nothing on CMP 2, as I haven't 
written it yet.  I'm a little burnt out on writing, so it will be a few 
weeks before I get anything on cmp written for the free docs.

-dain

Rajesh Acharya wrote:

> It would be of great help for new visitors (and for me too) to JBoss site...
> if there is a pointer to an URL or Info where one can find the comparison 
> between free docs and paid docs to get an Idea of what the buyer gets extra 
> in terms of Information in the paid docs (in addition to the pride of 
> contributing for JBoss development !! )
> 
> Raj
> 
> 
> 
> On Friday 07 June 2002 20:16, you wrote:
> 
>>The examples are included in the for pay doc.  If you can wait until
>>monday the new docs for the 3.0 final release should be available on
>>flashline. We are just waiting for scott to get to his home computer.
>>He has been in my city (Minneapolis) this week doing training.
>>
>>If you are in a hurry, someone did post a patch (to this list) for the
>>current documentation examples, but I recommend you wait until Monday.
>>
>>-dain
>>
>>Aleksander Grzebyta wrote:
>>
>>>Hello !
>>>
>>>I cannot find any working sample of CMP 2.0 CMR. I obtain :
>>>
>>>org.jboss.deployment.DeploymentException: Error while creating table; -
>>>nested
>>>hrowable: (java.sql.SQLException: ORA-00904: invalid column name
>>>)
>>>
>>>when trying deploy relator sample from:
>>>
>>>http://iris.cs.byu.edu/tim/462/tutorial/tutorial.html
>>>
>>>on Oracle.
>>>
>>>I think I need to tell JBoss the foreign-key column name for CMR mapping,
>>>but do not know how.
>>>
>>>Are there some more complicated samples with all the stuff like in
>>>jbosscmp-jdbc_3_0.dtd ?
>>>
>>>sincerely Olek
>>>
>>>
>>>
>>>
>>>___
>>>
>>>Don't miss the 2002 Sprint PCS Application Developer's Conference
>>>August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>>>
>>>___
>>>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
>>
>>___
>>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
> 
> ___
> 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

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



Re: [JBoss-user] jbosscmp-jdbc.xml DTD?

2002-06-07 Thread Dain Sundstrom

The old docs are OLD.  The correct dtd to use is the one included with 
the release in docs/dtd.  Also type-mapping was changed to 
datasource-mapping between alpha and beta 2.

-dain

Brandon Knitter wrote:

> I added the following to the top of my jbosscmp-jdbc.xml file and was met with
> TONS of errors, including errors from things I copied from the cmp2 commerce
> example:
> 
> 
>  "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd";>
> 
> 
> I did check out the "patch for cmp documentation updates" in another email (just
> visually patched it), and even those may not meet the dtd that comes with jboss
> 3.0?  Is this known?
> 
> An example would be that the commerce example which comes with the cmp
> documentation has the following excerpt in the jbosscmp-jdbc.xml file:
> 
> 
>
>   java:/DefaultDS
>   Hypersonic SQL
>   true
>   true
>   true
>   false
>   300
>   false
>   true
>   foreign-key
>   true
>
> 
> 
> But according to the dtd, the field "type-mapping" isn't allowed.
> 
> 
> 
>   remove-table?, read-only?, read-time-out?, row-locking?, 
>  pk-constraint?, fk-constraint?, preferred-relation-mapping?, 
>  read-ahead?, list-cache-max?)>
> 
> 
> 
> Sorry if this is a duplicate question, but I'm trying everything to see if I
> messed up my files...I'm still having my weird relationship problem.
> 
> Thanks,
> 
> 



___

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

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



Re: [JBoss-user] Some working CMP 2.0 examples ?

2002-06-07 Thread Ricardo Argüello

I bought the CMP docs from Flashline in January.

Am I elegible for an free update, or should I buy'em again?

Thanks in advance.

Ricardo Argüello


- Original Message - 
From: "Dain Sundstrom" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 07, 2002 9:46 AM
Subject: Re: [JBoss-user] Some working CMP 2.0 examples ?


> The examples are included in the for pay doc.  If you can wait until 
> monday the new docs for the 3.0 final release should be available on 
> flashline. We are just waiting for scott to get to his home computer. 
> He has been in my city (Minneapolis) this week doing training.
> 
> If you are in a hurry, someone did post a patch (to this list) for the 
> current documentation examples, but I recommend you wait until Monday.
> 
> -dain
> 
> Aleksander Grzebyta wrote:
> 
> > Hello !
> > 
> > I cannot find any working sample of CMP 2.0 CMR. I obtain :
> > 
> > org.jboss.deployment.DeploymentException: Error while creating table; -
> > nested
> > hrowable: (java.sql.SQLException: ORA-00904: invalid column name
> > )
> > 
> > when trying deploy relator sample from:
> > 
> > http://iris.cs.byu.edu/tim/462/tutorial/tutorial.html
> > 
> > on Oracle.
> > 
> > I think I need to tell JBoss the foreign-key column name for CMR mapping,
> > but do not know how.
> > 
> > Are there some more complicated samples with all the stuff like in
> > jbosscmp-jdbc_3_0.dtd ?
> > 
> > sincerely Olek
> > 
> > 
> > 
> > 
> > ___
> > 
> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> > 
> > ___
> > 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
> 
> ___
> 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

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



Re: [JBoss-user] Apache Tomcat/4.0 - Http Status 404

2002-06-07 Thread Aleksander Grzebyta

Hello !

OK. Maybe go to catalina/bin dir, and run tomcat separately from JBoss. Then
put some dir under webapps and then jsp in it. This must be WAR structure I
don't knwo its minimal set, however Tomcat allows to put dir into webapps
not only wars. On the other hand it seems to me that JBoss must obtain a war
archive into its deploy dir to know what to do with it.

sincerely Olek

- Original Message -
From: "Coral Burns" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 07, 2002 6:54 PM
Subject: RE: [JBoss-user] Apache Tomcat/4.0 - Http Status 404


> Thanks for your reply!
>
> But what I would like to do is bring up one simple .html or .jsp file (not
> within a war or ear file) on localhost port 8080 rather than deploying the
> test .jsp file within a war file...how do I go about doing that?
>
> Also, if I have downloaded the JBoss3.0.0/Tomcat4.0.3 bundle from
jboss.org
> then I have the entire Tomcat server don't I?  (I mean, I don't have to go
> to jakarta and download TomCat 4.3.0 separately, do I)...
>
> Thanks in advance,
>
> Coral
>
>
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Aleksander
> Grzebyta
> Sent: Friday, June 07, 2002 9:47 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Apache Tomcat/4.0 - Http Status 404
>
>
> Hello !
>
> It seems to me that original Tomcat webapps is not active when working
with
> JBoss. Try to deploy same simple war under /server/default/deploy dir.
>
> sincerely Olek
>
> - Original Message -
> From: "Coral Burns" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 07, 2002 4:55 PM
> Subject: [JBoss-user] Apache Tomcat/4.0 - Http Status 404
>
>
> >
> > Hello:
> >
> > I downloaded the Jboss-3.0.0/Tomcat4.0.3 bundle from the jboss.org site
> and
> > I'm trying to bring up a test .html page using the Tomcat webserver, but
I
> > keep getting this error:
> >
> > Apache Tomcat/4.0 - Http Status 404 - the requested resource
> /jsp/test.html
> > is not available.
> >
> > Jboss, with the embedded Tomcat, seems to start fine and I get these
> > messages in the console when I start Jboss, so I'm assuming that Tomcat
is
> > ok:
> >
> > 08:40:29,749 INFO  [MainDeployer] Adding deployer:
> > org.jboss.web.catalina.EmbeddedCatalinaServiceSX@113dc1
> > 08:40:34,185 INFO  [STDOUT] Apache Tomcat/4.0.3
> > 08:40:34,215 INFO  [Engine] HttpConnector Opening server socket on all
> host
> > IP addresses
> > 08:40:34,225 INFO  [Engine] HttpConnector[8080] Starting background
thread
> > 08:40:35,036 INFO  [Engine] HttpProcessor[8080][0] Starting background
> > thread
> > 08:40:35,046 INFO  [Engine] HttpProcessor[8080][1] Starting background
> > thread
> > 08:40:35,056 INFO  [Engine] HttpProcessor[8080][2] Starting background
> > thread
> > 08:40:35,056 INFO  [EmbeddedCatalinaServiceSX] OK
> >
> > I put my test .html file in this location on my computer:
> >
> > C:\jboss-3.0.0RC3_tomcat-4.0.3\catalina\webapps\examples\jsp\test.html
> >
> > and try and bring it up with this URL:
> >
> > http://localhost:8080/examples/jsp/test.html
> >
> >
> > But it just can't bring up the test page (and there's nothing to it
except
> a
> > "Hello World") without the error.
> >
> > Am I missing some kind of configuration step, or something in my class
> path?
> > Does my test .html file need to be in a .war or .ear file?  All I want
to
> do
> > is bring up a simple .html file and I can't do it.
> >
> > Also, I'm assuming that I don't have to download Tomcat4.0.3
separately -
> > ie: that Tomcat4.0.3 is part of the JBoss bundle I downloaded.
> >
> > Thanks alot,
> >
> > Coral Burns
> >
>
>
>
>
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> ___
> 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
>
> ___
> 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

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



Re: [JBoss-user] jbosscmp-jdbc.xml DTD?

2002-06-07 Thread Brandon Knitter

I am looking at %JBOSS_HOME%/docs/dtd/jbosscmp-jdbc_3_0.dtd, is this the correct
one?

If so, the example with the CMP docs has the following excerpt:

   
  
 userId
 USER_ID
  
   

But there is no string matching "foreign-key-field" in that dtd.  Am I doing
something wrong?  I'm willing to accept that!! :)

  [knitterb@zoot ~]$ grep foreign-key-field
~/progs/jboss-3.0.0/docs/dtd/jbosscmp-jdbc_3_0.dtd
  0.010u 0.000s 0:00.00 0.0%  0+0k 0+0io 118pf+0w
  [knitterb@zoot ~]$ 

Thanks,

-- 
-bk


Quoting Dain Sundstrom <[EMAIL PROTECTED]>:

> The old docs are OLD.  The correct dtd to use is the one included with 
> the release in docs/dtd.  Also type-mapping was changed to 
> datasource-mapping between alpha and beta 2.
> 
> -dain
> 
> Brandon Knitter wrote:
> 
> > I added the following to the top of my jbosscmp-jdbc.xml file and was met
> with
> > TONS of errors, including errors from things I copied from the cmp2
> commerce
> > example:
> > 
> > 
> >  > "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd";>
> > 
> > 
> > I did check out the "patch for cmp documentation updates" in another email
> (just
> > visually patched it), and even those may not meet the dtd that comes with
> jboss
> > 3.0?  Is this known?
> > 
> > An example would be that the commerce example which comes with the cmp
> > documentation has the following excerpt in the jbosscmp-jdbc.xml file:
> > 
> > 
> >
> >   java:/DefaultDS
> >   Hypersonic SQL
> >   true
> >   true
> >   true
> >   false
> >   300
> >   false
> >   true
> >   foreign-key
> >   true
> >
> > 
> > 
> > But according to the dtd, the field "type-mapping" isn't allowed.
> > 
> > 
> > 
> >  >  remove-table?, read-only?, read-time-out?, row-locking?, 
> >  pk-constraint?, fk-constraint?, preferred-relation-mapping?, 
> >  read-ahead?, list-cache-max?)>
> > 
> > 
> > 
> > Sorry if this is a duplicate question, but I'm trying everything to see if
> I
> > messed up my files...I'm still having my weird relationship problem.
> > 
> > Thanks,
> > 
> > 
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> 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

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



Re: [JBoss-user] diff free-docs paid-docs

2002-06-07 Thread Aleksander Grzebyta

Hello !

Lately the CMP 2.0 section disappeared from free docs so u have sample
answer.

sincerely Olek

- Original Message -
From: "Rajesh Acharya" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 07, 2002 6:54 PM
Subject: Re: [JBoss-user] diff free-docs paid-docs


> It would be of great help for new visitors (and for me too) to JBoss
site...
> if there is a pointer to an URL or Info where one can find the comparison
> between free docs and paid docs to get an Idea of what the buyer gets
extra
> in terms of Information in the paid docs (in addition to the pride of
> contributing for JBoss development !! )
>
> Raj
>
>
>
> On Friday 07 June 2002 20:16, you wrote:
> > The examples are included in the for pay doc.  If you can wait until
> > monday the new docs for the 3.0 final release should be available on
> > flashline. We are just waiting for scott to get to his home computer.
> > He has been in my city (Minneapolis) this week doing training.
> >
> > If you are in a hurry, someone did post a patch (to this list) for the
> > current documentation examples, but I recommend you wait until Monday.
> >
> > -dain
> >
> > Aleksander Grzebyta wrote:
> > > Hello !
> > >
> > > I cannot find any working sample of CMP 2.0 CMR. I obtain :
> > >
> > > org.jboss.deployment.DeploymentException: Error while creating
table; -
> > > nested
> > > hrowable: (java.sql.SQLException: ORA-00904: invalid column name
> > > )
> > >
> > > when trying deploy relator sample from:
> > >
> > > http://iris.cs.byu.edu/tim/462/tutorial/tutorial.html
> > >
> > > on Oracle.
> > >
> > > I think I need to tell JBoss the foreign-key column name for CMR
mapping,
> > > but do not know how.
> > >
> > > Are there some more complicated samples with all the stuff like in
> > > jbosscmp-jdbc_3_0.dtd ?
> > >
> > > sincerely Olek
> > >
> > >
> > >
> > >
> > > ___
> > >
> > > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> > >
> > > ___
> > > 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
> >
> > ___
> > 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
>
> ___
> 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

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



Re: [JBoss-user] Entity Bean Cache performance issue in Jboss3.0.0

2002-06-07 Thread Dain Sundstrom

Jos Henrique Varanda wrote:

> Hello Dain,
> 
> I'm using the same ear file in RC3 and 3.0.0. I'm
> using Oracle8 db and using CMP 2.0 as well. The
> problem is: the same ear executes 100 times slower in
> 3.0.0 than in RC3.


What about with hypersonic?


> What about transaction demarcation? I'm using a
> session bean to coordinate all tasks. There is a
> method in that bean that is responsible for doing all
> the work. This method's transaction is marked as
> "Required". It accesses localy some cmp2.0 entity
> beans and returns a collection as a result. The
> performance problem occurs when it calls a finder
> method that finds all entities in db and then accesses
> some of their attributes. Specifically, the
> performance decrease is noticed when the session bean
> calls the getters accessor methods. These accessors
> methods' transaction demarcation are "Required" too.


Then you shouldn't get the O(n^2) performance I was talking about 
earlier.  Just check the log for an excessive amount of load queries.

Also if you query-modify-query in a loop you can get bad performance 
because the container must synchronize the data before a query is executed.


> Resuming, I have a staless session bean that iterates
> in all my entities looking for some attributes which
> are stored in a collection. All methods involved are
> marked as "Required" in the container-transaction
> section in ejb-jar.xml. Remember that this is the same
> ear file for both versions: RC3 and 3.0.0
> Any idea of what's happening?


Nope.  Do you have a profiler?  I use Optimize It.


> You told me in another thread at jboss forum that the
> only demarcation allowed in jboss at this time was the
> "Required" one. Does Jboss-3.0.0 already implement the
> other demarcations? Since my method is just for
> accessing data I could mark all the accessor methods
> as "Supports". It could speed things up!


JBoss support all of the transaction attributes, but when you use CMP 
you must always have a transaction.  Transaction over head in JBoss is 
almost immeasurable, so you won't get much of a speed up running without 
one.

-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

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



Re: [JBoss-user] Some working CMP 2.0 examples ?

2002-06-07 Thread Dain Sundstrom

You only get free updates with the documentation or CD subscription.

-dain

Ricardo Argüello wrote:

> I bought the CMP docs from Flashline in January.
> 
> Am I elegible for an free update, or should I buy'em again?
> 
> Thanks in advance.
> 
> Ricardo Argüello
> 
> 
> - Original Message - 
> From: "Dain Sundstrom" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 07, 2002 9:46 AM
> Subject: Re: [JBoss-user] Some working CMP 2.0 examples ?
> 
> 
> 
>>The examples are included in the for pay doc.  If you can wait until 
>>monday the new docs for the 3.0 final release should be available on 
>>flashline. We are just waiting for scott to get to his home computer. 
>>He has been in my city (Minneapolis) this week doing training.
>>
>>If you are in a hurry, someone did post a patch (to this list) for the 
>>current documentation examples, but I recommend you wait until Monday.
>>
>>-dain
>>
>>Aleksander Grzebyta wrote:
>>
>>
>>>Hello !
>>>
>>>I cannot find any working sample of CMP 2.0 CMR. I obtain :
>>>
>>>org.jboss.deployment.DeploymentException: Error while creating table; -
>>>nested
>>>hrowable: (java.sql.SQLException: ORA-00904: invalid column name
>>>)
>>>
>>>when trying deploy relator sample from:
>>>
>>>http://iris.cs.byu.edu/tim/462/tutorial/tutorial.html
>>>
>>>on Oracle.
>>>
>>>I think I need to tell JBoss the foreign-key column name for CMR mapping,
>>>but do not know how.
>>>
>>>Are there some more complicated samples with all the stuff like in
>>>jbosscmp-jdbc_3_0.dtd ?
>>>
>>>sincerely Olek
>>>
>>>
>>>
>>>
>>>___
>>>
>>>Don't miss the 2002 Sprint PCS Application Developer's Conference
>>>August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>>>
>>>___
>>>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
>>
>>___
>>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
> 
> ___
> 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

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



Re: [JBoss-user] Some working CMP 2.0 examples ?

2002-06-07 Thread Brandon Knitter

If you bought a subscription which has not expired (6 months and 12 months are
available), then you should get them.  If you bought them straight away ($10),
then no.

-- 
-bk


Quoting Ricardo Argüello <[EMAIL PROTECTED]>:

> I bought the CMP docs from Flashline in January.
> 
> Am I elegible for an free update, or should I buy'em again?
> 
> Thanks in advance.
> 
> Ricardo Argüello
> 
> 
> - Original Message - 
> From: "Dain Sundstrom" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 07, 2002 9:46 AM
> Subject: Re: [JBoss-user] Some working CMP 2.0 examples ?
> 
> 
> > The examples are included in the for pay doc.  If you can wait until 
> > monday the new docs for the 3.0 final release should be available on 
> > flashline. We are just waiting for scott to get to his home computer. 
> > He has been in my city (Minneapolis) this week doing training.
> > 
> > If you are in a hurry, someone did post a patch (to this list) for the 
> > current documentation examples, but I recommend you wait until Monday.
> > 
> > -dain
> > 
> > Aleksander Grzebyta wrote:
> > 
> > > Hello !
> > > 
> > > I cannot find any working sample of CMP 2.0 CMR. I obtain :
> > > 
> > > org.jboss.deployment.DeploymentException: Error while creating table; -
> > > nested
> > > hrowable: (java.sql.SQLException: ORA-00904: invalid column name
> > > )
> > > 
> > > when trying deploy relator sample from:
> > > 
> > > http://iris.cs.byu.edu/tim/462/tutorial/tutorial.html
> > > 
> > > on Oracle.
> > > 
> > > I think I need to tell JBoss the foreign-key column name for CMR
> mapping,
> > > but do not know how.
> > > 
> > > Are there some more complicated samples with all the stuff like in
> > > jbosscmp-jdbc_3_0.dtd ?
> > > 
> > > sincerely Olek
> > > 
> > > 
> > > 
> > > 
> > > ___
> > > 
> > > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> > > 
> > > ___
> > > 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
> > 
> > ___
> > 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
> 
> ___
> 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

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



Re: [JBoss-user] jbosscmp-jdbc.xml DTD?

2002-06-07 Thread David Russell

The final DTD has  and  respectively as opposed to the 
foreign-key-field versions.  Just spent a little time finding that one myself.

David


David P. Russell
Lead Technical Consultant
Idea Integration
[EMAIL PROTECTED]
[EMAIL PROTECTED]
(585) 249-2600
(585) 273-7728

>>> [EMAIL PROTECTED] 06/07/02 02:07PM >>>
I am looking at %JBOSS_HOME%/docs/dtd/jbosscmp-jdbc_3_0.dtd, is this the correct
one?

If so, the example with the CMP docs has the following excerpt:

   
  
 userId
 USER_ID
  
   

But there is no string matching "foreign-key-field" in that dtd.  Am I doing
something wrong?  I'm willing to accept that!! :)

  [knitterb@zoot ~]$ grep foreign-key-field
~/progs/jboss-3.0.0/docs/dtd/jbosscmp-jdbc_3_0.dtd
  0.010u 0.000s 0:00.00 0.0%  0+0k 0+0io 118pf+0w
  [knitterb@zoot ~]$ 

Thanks,

-- 
-bk


Quoting Dain Sundstrom <[EMAIL PROTECTED]>:

> The old docs are OLD.  The correct dtd to use is the one included with 
> the release in docs/dtd.  Also type-mapping was changed to 
> datasource-mapping between alpha and beta 2.
> 
> -dain
> 
> Brandon Knitter wrote:
> 
> > I added the following to the top of my jbosscmp-jdbc.xml file and was met
> with
> > TONS of errors, including errors from things I copied from the cmp2
> commerce
> > example:
> > 
> > 
> >  > "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd";>
> > 
> > 
> > I did check out the "patch for cmp documentation updates" in another email
> (just
> > visually patched it), and even those may not meet the dtd that comes with
> jboss
> > 3.0?  Is this known?
> > 
> > An example would be that the commerce example which comes with the cmp
> > documentation has the following excerpt in the jbosscmp-jdbc.xml file:
> > 
> > 
> >
> >   java:/DefaultDS
> >   Hypersonic SQL
> >   true
> >   true
> >   true
> >   false
> >   300
> >   false
> >   true
> >   foreign-key
> >   true
> >
> > 
> > 
> > But according to the dtd, the field "type-mapping" isn't allowed.
> > 
> > 
> > 
> >  >  remove-table?, read-only?, read-time-out?, row-locking?, 
> >  pk-constraint?, fk-constraint?, preferred-relation-mapping?, 
> >  read-ahead?, list-cache-max?)>
> > 
> > 
> > 
> > Sorry if this is a duplicate question, but I'm trying everything to see if
> I
> > messed up my files...I'm still having my weird relationship problem.
> > 
> > Thanks,
> > 
> > 
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm 
> 
> ___
> 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 

___
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

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



RE: [JBoss-user] Startup tasks

2002-06-07 Thread JD Brennan
Title: RE: [JBoss-user] Startup tasks





I have written an MBean, but can't figure out how to get it
to wait until all my Session and Entity Beans have been deployed before
doing the startup activity.


Is there some depends attribute I can put in the jboss-service.xml
file in my .sar?


I tried making JMX calls to the JBoss deployer, but it says
the beans are deployed before they can be looked up by JNDI.


I also tried catching JNDI lookup errors, but there were too
many combinations.  NameNotFoundException, ServerException wrapping
NameNotFoundException, RemoteException wrapping ServerException
wrapping NameNotFoundException.  I abandonded this path, since
it didn't seem I could ever catch all the combinations.


Thanks for any suggestions!


JD


-Original Message-
From: Greg Turner [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 10:38 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Startup tasks



Get the docs and learn to write and deploy an MBean.  Then write an MBean
wrapper around your tftp server and deploy it.  Also the JMX book has an
example of writing an MBean for JBoss.


Ludovico Basili wrote:


> Hello,
> I would like to execute some tasks at startup (i.e., starting a tftp
> server). To do so, I need a way to load classes and invoke methods on them
> as JBoss starts.
> Which is the better way to do that ?
>
> Thanks,
>
> --
> Ludovico Basili
> Software Engineer
> Allied Telesis K.K.
> Phone +39 02 41411245  - FAX +39 02 41411260 - email
> [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
>
> ___
> 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


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





RE: [JBoss-user] Where to put a ejb jar especif lib

2002-06-07 Thread Brandon Knitter

Would making an EAR make it possible to package an ejb.jar file with other
necessary supporting jars?

-- 
-bk


Quoting JD Brennan <[EMAIL PROTECTED]>:

> If you are trying to put a .jar inside your EJB jar, you can
> extract the contents of the jar into your jar.  That's what
> we do.  One stop shopping.  One jar to deploy.  Well, plus
> the service XML for the database, plus the JDBC driver.  So
> we got it down to 3 files...  ;-)
> 
> JD
> 
> -Original Message-
> From: Emerson Cargnin - MSA [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 06, 2002 1:28 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Where to put a ejb jar especif lib
> 
> 
> You got me wrong...
> 
> I asked :
> What directory, INSIDE THE EJB.JAR, I can put my jars libs...
> - Original Message -
> From: "Greg Turner" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, June 06, 2002 5:08 PM
> Subject: Re: [JBoss-user] Where to put a ejb jar especif lib
> 
> 
> > ejb.jar files go into /deploy
> >
> > Emerson Cargnin - MSA wrote:
> >
> > > I know its a little off-topic, but where I put a ejb jar especif lib. I
> > > tried ejb.jar#/lib dir but it didn't work. I had to put inside
> jboss/lib. Is
> > > there a better solution?
> > >
> > > Emerson Cargnin - MSA
> > > SICREDI - Ramal 3358-4860
> > >
> > > ___
> > >
> > > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> > >
> > > ___
> > > 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
> >
> > ___
> > 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
> 
> ___
> 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

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



[JBoss-user] JBoss 3.0.0 hiding RuntimeExceptions ???

2002-06-07 Thread Paul Kavanagh

Hi guys,

hoping someone can shed some light on this.

I'm using JBoss 3.0.0 (using default settings for everything) on Win2K, but
when I run my test applciation (Java client connecting to a simple session
bean) on it, JBoss is not showing us any RuntimeExceptions which are being
thrown (neither on the console nor in the server.log). The client is getting
a java.rmi.ServerException, but there's no stack trace or any info on the
server. I'm using the default log4j.xml. Any ideas ?

Thanks in advance,
-Paul


___

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

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



Re: [JBoss-user] diff free-docs paid-docs

2002-06-07 Thread Dain Sundstrom

There was never any text in the CMP 2 section.  I haven't written it yet.

-dain

Aleksander Grzebyta wrote:

> Hello !
> 
> Lately the CMP 2.0 section disappeared from free docs so u have sample
> answer.
> 
> sincerely Olek
> 
> - Original Message -
> From: "Rajesh Acharya" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 07, 2002 6:54 PM
> Subject: Re: [JBoss-user] diff free-docs paid-docs
> 
> 
> 
>>It would be of great help for new visitors (and for me too) to JBoss
>>
> site...
> 
>>if there is a pointer to an URL or Info where one can find the comparison
>>between free docs and paid docs to get an Idea of what the buyer gets
>>
> extra
> 
>>in terms of Information in the paid docs (in addition to the pride of
>>contributing for JBoss development !! )
>>
>>Raj
>>
>>
>>
>>On Friday 07 June 2002 20:16, you wrote:
>>
>>>The examples are included in the for pay doc.  If you can wait until
>>>monday the new docs for the 3.0 final release should be available on
>>>flashline. We are just waiting for scott to get to his home computer.
>>>He has been in my city (Minneapolis) this week doing training.
>>>
>>>If you are in a hurry, someone did post a patch (to this list) for the
>>>current documentation examples, but I recommend you wait until Monday.
>>>
>>>-dain
>>>
>>>Aleksander Grzebyta wrote:
>>>
Hello !

I cannot find any working sample of CMP 2.0 CMR. I obtain :

org.jboss.deployment.DeploymentException: Error while creating

> table; -
> 
nested
hrowable: (java.sql.SQLException: ORA-00904: invalid column name
)

when trying deploy relator sample from:

http://iris.cs.byu.edu/tim/462/tutorial/tutorial.html

on Oracle.

I think I need to tell JBoss the foreign-key column name for CMR

> mapping,
> 
but do not know how.

Are there some more complicated samples with all the stuff like in
jbosscmp-jdbc_3_0.dtd ?

sincerely Olek




___

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

___
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
>>>
>>>___
>>>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
>>
>>___
>>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
> 
> ___
> 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

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



Re: [JBoss-user] jbosscmp-jdbc.xml DTD?

2002-06-07 Thread Brandon Knitter

Hmmm, also it looks like  is an empty field, not as per
the doc examples:

  

  
order-has-lineitems
   


  
lineitem-belongsto-order
   
  
 ordernumber
 ORDER_NUMBER
  
   

 


Perhaps I'm beating a dead horse (sorry PITA), so if this is all supposed to be
fixed soon, any chance I getting an early release of the examples? :)  I'll keep
plodding through.

David Russel: If you have an example of a foreign-key-mapping one-to-many (or
otherwise) of your jbosscmp-jdbc.xml and ejb-jar.xml that you got working on
JBoss 3.0, would you be willing to share?  Attachments are fine with me! :)

-- 
-bk


Quoting David Russell <[EMAIL PROTECTED]>:

> The final DTD has  and  respectively as opposed to the
> foreign-key-field versions.  Just spent a little time finding that one
> myself.
> 
> David
> 
> 
> David P. Russell
> Lead Technical Consultant
> Idea Integration
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> (585) 249-2600
> (585) 273-7728
> 
> >>> [EMAIL PROTECTED] 06/07/02 02:07PM >>>
> I am looking at %JBOSS_HOME%/docs/dtd/jbosscmp-jdbc_3_0.dtd, is this the
> correct
> one?
> 
> If so, the example with the CMP docs has the following excerpt:
> 
>
>   
>  userId
>  USER_ID
>   
>
> 
> But there is no string matching "foreign-key-field" in that dtd.  Am I
> doing
> something wrong?  I'm willing to accept that!! :)
> 
>   [knitterb@zoot ~]$ grep foreign-key-field
> ~/progs/jboss-3.0.0/docs/dtd/jbosscmp-jdbc_3_0.dtd
>   0.010u 0.000s 0:00.00 0.0%  0+0k 0+0io 118pf+0w
>   [knitterb@zoot ~]$ 
> 
> Thanks,
> 
> -- 
> -bk
> 
> 
> Quoting Dain Sundstrom <[EMAIL PROTECTED]>:
> 
> > The old docs are OLD.  The correct dtd to use is the one included with 
> > the release in docs/dtd.  Also type-mapping was changed to 
> > datasource-mapping between alpha and beta 2.
> > 
> > -dain
> > 
> > Brandon Knitter wrote:
> > 
> > > I added the following to the top of my jbosscmp-jdbc.xml file and was
> met
> > with
> > > TONS of errors, including errors from things I copied from the cmp2
> > commerce
> > > example:
> > > 
> > > 
> > >  > > "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd";>
> > > 
> > > 
> > > I did check out the "patch for cmp documentation updates" in another
> email
> > (just
> > > visually patched it), and even those may not meet the dtd that comes
> with
> > jboss
> > > 3.0?  Is this known?
> > > 
> > > An example would be that the commerce example which comes with the cmp
> > > documentation has the following excerpt in the jbosscmp-jdbc.xml file:
> > > 
> > > 
> > >
> > >   java:/DefaultDS
> > >   Hypersonic SQL
> > >   true
> > >   true
> > >   true
> > >   false
> > >   300
> > >   false
> > >   true
> > >   foreign-key
> > >   true
> > >
> > > 
> > > 
> > > But according to the dtd, the field "type-mapping" isn't allowed.
> > > 
> > > 
> > > 
> > >  > >  remove-table?, read-only?, read-time-out?, row-locking?, 
> > >  pk-constraint?, fk-constraint?, preferred-relation-mapping?, 
> > >  read-ahead?, list-cache-max?)>
> > > 
> > > 
> > > 
> > > Sorry if this is a duplicate question, but I'm trying everything to see
> if
> > I
> > > messed up my files...I'm still having my weird relationship problem.
> > > 
> > > Thanks,
> > > 
> > > 
> > 
> > 
> > 
> > ___
> > 
> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm 
> > 
> > ___
> > 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 
> 
> ___
> 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
> 
> ___
> 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

___

RE: [JBoss-user] Startup tasks

2002-06-07 Thread Starsinic, Frank
Title: RE: [JBoss-user] Startup tasks



this 
is not possible until jboss 3.0 
 
even 
at that, i'm not sure how to set up the dependency.
 
 
frank

  -Original Message-From: JD Brennan 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, June 07, 2002 
  11:22 AMTo: '[EMAIL PROTECTED]'Subject: 
  RE: [JBoss-user] Startup tasks
  I have written an MBean, but can't figure out how to get 
  it to wait until all my Session and Entity Beans have 
  been deployed before doing the startup 
  activity. 
  Is there some depends attribute I can put in the 
  jboss-service.xml file in my .sar? 
  I tried making JMX calls to the JBoss deployer, but it 
  says the beans are deployed before they can be looked 
  up by JNDI. 
  I also tried catching JNDI lookup errors, but there were 
  too many combinations.  NameNotFoundException, 
  ServerException wrapping NameNotFoundException, 
  RemoteException wrapping ServerException wrapping 
  NameNotFoundException.  I abandonded this path, since it didn't seem I could ever catch all the combinations. 
  Thanks for any suggestions! 
  JD 
  -Original Message- From: Greg 
  Turner [mailto:[EMAIL PROTECTED]] 
  Sent: Friday, June 07, 2002 10:38 AM To: [EMAIL PROTECTED] Subject: 
  Re: [JBoss-user] Startup tasks 
  Get the docs and learn to write and deploy an MBean.  
  Then write an MBean wrapper around your tftp server 
  and deploy it.  Also the JMX book has an example 
  of writing an MBean for JBoss. 
  Ludovico Basili wrote: 
  > Hello, > I would like to 
  execute some tasks at startup (i.e., starting a tftp > server). To do so, I need a way to load classes and invoke methods 
  on them > as JBoss starts. > Which is the better way to do that ? > > Thanks, > > -- > 
  Ludovico Basili > Software Engineer 
  > Allied Telesis K.K. > Phone 
  +39 02 41411245  - FAX +39 02 41411260 - email > [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 > > 
  ___ > 
  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 
  ___ 
  JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user 
  


Re: [JBoss-user] Where to put a ejb jar especif lib

2002-06-07 Thread David Jencks

yes

david jencks

On 2002.06.07 14:26:16 -0400 Brandon Knitter wrote:
> Would making an EAR make it possible to package an ejb.jar file with
> other
> necessary supporting jars?
> 
> -- 
> -bk
> 
> 
> Quoting JD Brennan <[EMAIL PROTECTED]>:
> 
> > If you are trying to put a .jar inside your EJB jar, you can
> > extract the contents of the jar into your jar.  That's what
> > we do.  One stop shopping.  One jar to deploy.  Well, plus
> > the service XML for the database, plus the JDBC driver.  So
> > we got it down to 3 files...  ;-)
> > 
> > JD
> > 
> > -Original Message-
> > From: Emerson Cargnin - MSA [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, June 06, 2002 1:28 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] Where to put a ejb jar especif lib
> > 
> > 
> > You got me wrong...
> > 
> > I asked :
> > What directory, INSIDE THE EJB.JAR, I can put my jars libs...
> > - Original Message -
> > From: "Greg Turner" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, June 06, 2002 5:08 PM
> > Subject: Re: [JBoss-user] Where to put a ejb jar especif lib
> > 
> > 
> > > ejb.jar files go into /deploy
> > >
> > > Emerson Cargnin - MSA wrote:
> > >
> > > > I know its a little off-topic, but where I put a ejb jar especif
> lib. I
> > > > tried ejb.jar#/lib dir but it didn't work. I had to put inside
> > jboss/lib. Is
> > > > there a better solution?
> > > >
> > > > Emerson Cargnin - MSA
> > > > SICREDI - Ramal 3358-4860
> > > >
> > > > ___
> > > >
> > > > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > > > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> > > >
> > > > ___
> > > > 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
> > >
> > > ___
> > > 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
> > 
> > ___
> > 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
> 
> ___
> 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

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



Re: [JBoss-user] JBoss 3.0.0 hiding RuntimeExceptions ???

2002-06-07 Thread Brandon Knitter

Near the bottom of the log4j.xml file there are two "TRACE" entries, I
uncommented those and restarted jboss and have better errors now.

Hope that's what you were looking for.

-- 
-bk


Quoting Paul Kavanagh <[EMAIL PROTECTED]>:

> Hi guys,
> 
> hoping someone can shed some light on this.
> 
> I'm using JBoss 3.0.0 (using default settings for everything) on Win2K, but
> when I run my test applciation (Java client connecting to a simple session
> bean) on it, JBoss is not showing us any RuntimeExceptions which are being
> thrown (neither on the console nor in the server.log). The client is
> getting
> a java.rmi.ServerException, but there's no stack trace or any info on the
> server. I'm using the default log4j.xml. Any ideas ?
> 
> Thanks in advance,
> -Paul
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> 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

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



[JBoss-user] JBoss 2.4.4+Tomcat 4.0.1 as NT service

2002-06-07 Thread Mitchell Kim



I have been trying to make JBoss+Tomcat to run as 
NT service but doesn't look like it's working correctly.  I was able to 
install Tomcat alone as NT Service using JavaService.exe.  However, when I 
try to install JBoss alone as a NT service, it gets installed fine but when I 
try to start the service, it fails.  My ultimate goal is to run 
JBoss+Tomcat both as a single NT service.  It looks like some people have 
done this but I just can't make it work.  I don't mind using JNT but didn't 
work out either.  Can anyone give me some tips on this?
 
Thanks.
 
Mitchell Kim 
(kimion.com)Software Developer[EMAIL PROTECTED]http://www.kimion.com


Re: [JBoss-user] Where to put a ejb jar especif lib

2002-06-07 Thread Brandon Knitter

That being the case, I did a little searching.  I had a very similar discussion
with a friend this week.

For an explanation on the archives:
http://www.onjava.com/pub/a/onjava/2001/06/26/ejb.html

And here's a description on the different classloaders and where to include
things in your archives:
http://www.onjava.com/pub/a/onjava/2001/07/25/ejb.html

Hope that helps, I was enlightened! :)

-- 
-bk


Quoting David Jencks <[EMAIL PROTECTED]>:

> yes
> 
> david jencks
> 
> On 2002.06.07 14:26:16 -0400 Brandon Knitter wrote:
> > Would making an EAR make it possible to package an ejb.jar file with
> > other
> > necessary supporting jars?
> > 
> > -- 
> > -bk
> > 
> > 
> > Quoting JD Brennan <[EMAIL PROTECTED]>:
> > 
> > > If you are trying to put a .jar inside your EJB jar, you can
> > > extract the contents of the jar into your jar.  That's what
> > > we do.  One stop shopping.  One jar to deploy.  Well, plus
> > > the service XML for the database, plus the JDBC driver.  So
> > > we got it down to 3 files...  ;-)
> > > 
> > > JD
> > > 
> > > -Original Message-
> > > From: Emerson Cargnin - MSA [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, June 06, 2002 1:28 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [JBoss-user] Where to put a ejb jar especif lib
> > > 
> > > 
> > > You got me wrong...
> > > 
> > > I asked :
> > > What directory, INSIDE THE EJB.JAR, I can put my jars libs...
> > > - Original Message -
> > > From: "Greg Turner" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, June 06, 2002 5:08 PM
> > > Subject: Re: [JBoss-user] Where to put a ejb jar especif lib
> > > 
> > > 
> > > > ejb.jar files go into /deploy
> > > >
> > > > Emerson Cargnin - MSA wrote:
> > > >
> > > > > I know its a little off-topic, but where I put a ejb jar especif
> > lib. I
> > > > > tried ejb.jar#/lib dir but it didn't work. I had to put inside
> > > jboss/lib. Is
> > > > > there a better solution?
> > > > >
> > > > > Emerson Cargnin - MSA
> > > > > SICREDI - Ramal 3358-4860
> > > > >
> > > > > ___
> > > > >
> > > > > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > > > > August 25-28 in Las Vegas --
> http://devcon.sprintpcs.com/adp/index.cfm
> > > > >
> > > > > ___
> > > > > 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
> > > >
> > > > ___
> > > > 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
> > > 
> > > ___
> > > 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
> > 
> > ___
> > 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
> 
> ___
> 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

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



[JBoss-user] Boolean in the ejb-ql has sql exception

2002-06-07 Thread Arthur Wang

Hi Everyone,

I am depoying my applcation in JBoss-Oracle, I have a query in ejb-jar.xml
taking a boolean parameter like, columnName= FALSE or TRUE, when this finder
was called, there will be a SQL exception, (Invalid Column name), I found
the reason for this is that Oracle doesn't have boolean type, so this sql
statement is invalid. And I want to fix this using declared-sql in
jbosscmp-jdbc.xml to overwrite this finder query, it works well, but another
problem is, how can I write declared-sql when this finder takes a cmr field
as a parameter, for example, findActiveAccountsForCustomer(Customer
customer), which customer is a cmr filed for account bean.

Any reply would be highly appreciated.

Thanks in advance.

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

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



RE: [JBoss-user] Startup tasks

2002-06-07 Thread JD Brennan
Title: RE: [JBoss-user] Startup tasks



Cool!  I'm running JBoss 3.x, but I can't 
figure out the dependency.
You can make one MBean depend on another, but I 
can't figure out
how to get a MBean to depend on a set of 
Session/Entity beans
being deployed.
 
JD
 
-Original Message-From: Starsinic, Frank 
[mailto:[EMAIL PROTECTED]]Sent: Friday, June 07, 2002 11:38 
AMTo: '[EMAIL PROTECTED]'Subject: RE: 
[JBoss-user] Startup tasks
this 
is not possible until jboss 3.0 
 
even 
at that, i'm not sure how to set up the dependency.
 
 
frank

  -Original Message-From: JD Brennan 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, June 07, 2002 
  11:22 AMTo: '[EMAIL PROTECTED]'Subject: 
  RE: [JBoss-user] Startup tasks
  I have written an MBean, but can't figure out how to get 
  it to wait until all my Session and Entity Beans have 
  been deployed before doing the startup 
  activity. 
  Is there some depends attribute I can put in the 
  jboss-service.xml file in my .sar? 
  I tried making JMX calls to the JBoss deployer, but it 
  says the beans are deployed before they can be looked 
  up by JNDI. 
  I also tried catching JNDI lookup errors, but there were 
  too many combinations.  NameNotFoundException, 
  ServerException wrapping NameNotFoundException, 
  RemoteException wrapping ServerException wrapping 
  NameNotFoundException.  I abandonded this path, since it didn't seem I could ever catch all the combinations. 
  Thanks for any suggestions! 
  JD 
  -Original Message- From: Greg 
  Turner [mailto:[EMAIL PROTECTED]] 
  Sent: Friday, June 07, 2002 10:38 AM To: [EMAIL PROTECTED] Subject: 
  Re: [JBoss-user] Startup tasks 
  Get the docs and learn to write and deploy an MBean.  
  Then write an MBean wrapper around your tftp server 
  and deploy it.  Also the JMX book has an example 
  of writing an MBean for JBoss. 
  Ludovico Basili wrote: 
  > Hello, > I would like to 
  execute some tasks at startup (i.e., starting a tftp > server). To do so, I need a way to load classes and invoke methods 
  on them > as JBoss starts. > Which is the better way to do that ? > > Thanks, > > -- > 
  Ludovico Basili > Software Engineer 
  > Allied Telesis K.K. > Phone 
  +39 02 41411245  - FAX +39 02 41411260 - email > [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 > > 
  ___ > 
  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 
  ___ 
  JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user 
  


RE: [JBoss-user] CMP Generated SQL Problem

2002-06-07 Thread Matt Munz

Dain,

>You need to chill.  It will be in soon enough.  I can add the feature in
>5 minutes  (java.rmi.server.UID), but you want it done intelligently
>right?

Yes -- please take the time to do it right.  To be honest, I don't plan on
using CMP.  I am planning on using JBoss for evaluation purposes at the
moment.  I don't have a major interest in J2EE in and of itself.  If JBoss
3.0 doesn't fit the spec (yet), that's fine -- I just need to know that.  I
don't want to spend time reading the J2EE spec and writing code based on
J2EE if JBoss doesn't support it (yet).

I understand that J2EE is a large and frequently changing specification.
How do JBoss's release versions relate to J2EE spec versions (and their
subcomponents)?  What is covered and what isn't, from version to version?
I'm sure this must be a FAQ, so if there's a place in the manual that covers
this, please let me know.

Thanks again for answering my questions -- and thanks for providing an
interesting product.  Please don't take these comments as negative
criticism -- I'm only trying to get more information about the product.

  - Matt

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Dain
Sundstrom
Sent: Thursday, June 06, 2002 8:16 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] CMP Generated SQL Problem


Matt Munz wrote:

> Dain,
>
>
>>Are you trying to use an unknown primary key (java.lang.Object)?  If you
>>are, it is not supported.
>>
>
> Is this really the case?  I posted a message regarding this very feature,
> titled "incorrect SQL generated for findAll() on CMP bean", and I am
> interested in getting it to work.  I just read the relevant parts of the
> J2EE and EJB 2.0 specs, and found no statement that this feature is
> optional.  I found the following on the JBoss FAQ.


Yes it is required by the spec.  Yes it is in the works.  Most
application do not need it so it has been low priority.


>>Is JBoss in compliance with the current EJB spec ?
>>Yes. JBoss is being continuously tested for compliance with the EJB 2.0
>>
> specification.
>
> Please resolve this discrepancy for me.  Does JBoss meet the EJB 2.0 spec
or
> not?  If Unknown Primary Keys are not supported, it appears that the
answer
> is "no".  If you couls, please clarify this for me.


You need to chill.  It will be in soon enough.  I can add the feature in
5 minutes  (java.rmi.server.UID), but you want it done intelligently
right?

-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

___
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

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



[JBoss-user] Read Clob from oracle using cmp2.0

2002-06-07 Thread Arthur Wang

Hi everyone,

I deployed my cmp2.0 to jboss3.0 and oracle8, when I get the entity from
oracle, the clob field of this bean always return null. I found that this is
a bug from the jboss forum, so I fix this by a utility class to retrieve
clob data directly, not through container, but i'd like to know if there are
some other better solutions for this.

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

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



Re: [JBoss-user] Boolean in the ejb-ql has sql exception

2002-06-07 Thread Dain Sundstrom

If you can wait a week, this will be fixed.  Also declared-sql is 
described in the JBossCMP documentation.

-dain

Arthur Wang wrote:

> Hi Everyone,
> 
> I am depoying my applcation in JBoss-Oracle, I have a query in ejb-jar.xml
> taking a boolean parameter like, columnName= FALSE or TRUE, when this finder
> was called, there will be a SQL exception, (Invalid Column name), I found
> the reason for this is that Oracle doesn't have boolean type, so this sql
> statement is invalid. And I want to fix this using declared-sql in
> jbosscmp-jdbc.xml to overwrite this finder query, it works well, but another
> problem is, how can I write declared-sql when this finder takes a cmr field
> as a parameter, for example, findActiveAccountsForCustomer(Customer
> customer), which customer is a cmr filed for account bean.
> 
> Any reply would be highly appreciated.
> 
> Thanks in advance.
> 
> 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
> 
> ___
> 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

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



Re: [JBoss-user] Startup tasks

2002-06-07 Thread Greg Turner


Yes, there is a depends tag.  I'm not sure how it works, but search
for it in the deploy directory for examples.
JD Brennan wrote:
 
I have written an MBean, but can't figure out how to get
it
to wait until all my Session and Entity Beans have been
deployed before
doing the startup activity.
Is there some depends attribute I can put in the jboss-service.xml
file in my .sar?
I tried making JMX calls to the JBoss deployer, but it
says
the beans are deployed before they can be looked up by
JNDI.
I also tried catching JNDI lookup errors, but there were
too
many combinations.  NameNotFoundException, ServerException
wrapping
NameNotFoundException, RemoteException wrapping ServerException
wrapping NameNotFoundException.  I abandonded this
path, since
it didn't seem I could ever catch all the combinations.
Thanks for any suggestions!
JD
-Original Message-
From: Greg Turner [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 10:38 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Startup tasks
Get the docs and learn to write and deploy an MBean. 
Then write an MBean
wrapper around your tftp server and deploy it. 
Also the JMX book has an
example of writing an MBean for JBoss.
Ludovico Basili wrote:
> Hello,
> I would like to execute some tasks at startup (i.e.,
starting a tftp
> server). To do so, I need a way to load classes and
invoke methods on them
> as JBoss starts.
> Which is the better way to do that ?
>
> Thanks,
>
> --
> Ludovico Basili
> Software Engineer
> Allied Telesis K.K.
> Phone +39 02 41411245  - FAX +39 02 41411260 -
email
> [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
>
> ___
> 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
___
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
 


Re: [JBoss-user] diff free-docs paid-docs

2002-06-07 Thread Aleksander Grzebyta

http://www.softagency.co.jp/jboss/org/documentation/HTML/ch13s145.html

That's what I meant.

sincerely Olek

- Original Message -
From: "Dain Sundstrom" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 07, 2002 8:33 PM
Subject: Re: [JBoss-user] diff free-docs paid-docs


> There was never any text in the CMP 2 section.  I haven't written it yet.
>
> -dain
>
> Aleksander Grzebyta wrote:
>
> > Hello !
> >
> > Lately the CMP 2.0 section disappeared from free docs so u have sample
> > answer.
> >
> > sincerely Olek
> >
> > - Original Message -
> > From: "Rajesh Acharya" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, June 07, 2002 6:54 PM
> > Subject: Re: [JBoss-user] diff free-docs paid-docs
> >
> >
> >
> >>It would be of great help for new visitors (and for me too) to JBoss
> >>
> > site...
> >
> >>if there is a pointer to an URL or Info where one can find the
comparison
> >>between free docs and paid docs to get an Idea of what the buyer gets
> >>
> > extra
> >
> >>in terms of Information in the paid docs (in addition to the pride of
> >>contributing for JBoss development !! )
> >>
> >>Raj
> >>
> >>
> >>
> >>On Friday 07 June 2002 20:16, you wrote:
> >>
> >>>The examples are included in the for pay doc.  If you can wait until
> >>>monday the new docs for the 3.0 final release should be available on
> >>>flashline. We are just waiting for scott to get to his home computer.
> >>>He has been in my city (Minneapolis) this week doing training.
> >>>
> >>>If you are in a hurry, someone did post a patch (to this list) for the
> >>>current documentation examples, but I recommend you wait until Monday.
> >>>
> >>>-dain
> >>>
> >>>Aleksander Grzebyta wrote:
> >>>
> Hello !
> 
> I cannot find any working sample of CMP 2.0 CMR. I obtain :
> 
> org.jboss.deployment.DeploymentException: Error while creating
> 
> > table; -
> >
> nested
> hrowable: (java.sql.SQLException: ORA-00904: invalid column name
> )
> 
> when trying deploy relator sample from:
> 
> http://iris.cs.byu.edu/tim/462/tutorial/tutorial.html
> 
> on Oracle.
> 
> I think I need to tell JBoss the foreign-key column name for CMR
> 
> > mapping,
> >
> but do not know how.
> 
> Are there some more complicated samples with all the stuff like in
> jbosscmp-jdbc_3_0.dtd ?
> 
> sincerely Olek
> 
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> 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
> >>>
> >>>___
> >>>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
> >>
> >>___
> >>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
> >
> > ___
> > 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
>
> ___
> 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

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



Re: [JBoss-user] Startup tasks

2002-06-07 Thread Greg Turner


don't focus on the beans themselves.  Focus, instead on the MBean
deployer that deploys the jar file that contains the beans.  Try to
figure out how to make the dependency on that specific deployer. 
I'm not 100% sure, but I think a deployer gets instantiated for each jar
file that needs deployment.
JD Brennan wrote:
 Cool! 
I'm running JBoss 3.x, but I can't figure out the dependency.You
can make one MBean depend on another, but I can't figure outhow
to get a MBean to depend on a set of Session/Entity beansbeing
deployed.JD
-Original
Message-
From: Starsinic, Frank [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002
11:38 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user]
Startup tasks
 
this
is not possible until jboss 3.0 even
at that, i'm not sure how to set up the dependency.frank

-Original
Message-
From: JD Brennan
[mailto:[EMAIL PROTECTED]]
Sent: Friday, June
07, 2002 11:22 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user]
Startup tasks
 
I have written an MBean, but can't figure out how to get
it
to wait until all my Session and Entity Beans have been
deployed before
doing the startup activity.
Is there some depends attribute I can put in the jboss-service.xml
file in my .sar?
I tried making JMX calls to the JBoss deployer, but it
says
the beans are deployed before they can be looked up by
JNDI.
I also tried catching JNDI lookup errors, but there were
too
many combinations.  NameNotFoundException, ServerException
wrapping
NameNotFoundException, RemoteException wrapping ServerException
wrapping NameNotFoundException.  I abandonded this
path, since
it didn't seem I could ever catch all the combinations.
Thanks for any suggestions!
JD
-Original Message-
From: Greg Turner [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 10:38 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Startup tasks
Get the docs and learn to write and deploy an MBean. 
Then write an MBean
wrapper around your tftp server and deploy it. 
Also the JMX book has an
example of writing an MBean for JBoss.
Ludovico Basili wrote:
> Hello,
> I would like to execute some tasks at startup (i.e.,
starting a tftp
> server). To do so, I need a way to load classes and
invoke methods on them
> as JBoss starts.
> Which is the better way to do that ?
>
> Thanks,
>
> --
> Ludovico Basili
> Software Engineer
> Allied Telesis K.K.
> Phone +39 02 41411245  - FAX +39 02 41411260 -
email
> [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
>
> ___
> 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
___
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
 


RE: [JBoss-user] Apache Tomcat/4.0 - Http Status 404

2002-06-07 Thread Coral Burns

Thanks Olek!

The only issue with what you mention below is that I do want to run the
Tomcat that is integrated with JBoss - I don't want to run TomCat in
standalone mode , since for the application I'm working with I'm deploying a
Bean to Jboss and also bringing up .jsp files via Tomcat (in an exploded
format - not part of a war file).

So essentially, I want to deploy the Bean to JBoss but also bring up a jsp
page that uses the bean via Tomcat.   So, I don't want to run JBoss and
Tomcat separately, but instead I want them to run together - so the
application can run.   I was able to do this with a former
JBoss-2.4.3/Tomcat3.2.3 download  - I just had to add some Tomcat jar files
to my classpath and edit the conf/server.xml file.  But I can't seem to get
the same things going with the latest  JBoss3.0.0/Tomcat4.0.3 bundle.  I can
bring up the examples provided in a browser, but the example.jsp pages are
deployed via a war.

There has to be some way that I can just bring up .jsp pages with JBoss
running with the integrated Tomcat which are in an "exploded" format, rather
than in a war file.

Coral Burns

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Aleksander
Grzebyta
Sent: Friday, June 07, 2002 12:04 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Apache Tomcat/4.0 - Http Status 404


Hello !

OK. Maybe go to catalina/bin dir, and run tomcat separately from JBoss. Then
put some dir under webapps and then jsp in it. This must be WAR structure I
don't knwo its minimal set, however Tomcat allows to put dir into webapps
not only wars. On the other hand it seems to me that JBoss must obtain a war
archive into its deploy dir to know what to do with it.

sincerely Olek

- Original Message -
From: "Coral Burns" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 07, 2002 6:54 PM
Subject: RE: [JBoss-user] Apache Tomcat/4.0 - Http Status 404


> Thanks for your reply!
>
> But what I would like to do is bring up one simple .html or .jsp file (not
> within a war or ear file) on localhost port 8080 rather than deploying the
> test .jsp file within a war file...how do I go about doing that?
>
> Also, if I have downloaded the JBoss3.0.0/Tomcat4.0.3 bundle from
jboss.org
> then I have the entire Tomcat server don't I?  (I mean, I don't have to go
> to jakarta and download TomCat 4.3.0 separately, do I)...
>
> Thanks in advance,
>
> Coral
>
>
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Aleksander
> Grzebyta
> Sent: Friday, June 07, 2002 9:47 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Apache Tomcat/4.0 - Http Status 404
>
>
> Hello !
>
> It seems to me that original Tomcat webapps is not active when working
with
> JBoss. Try to deploy same simple war under /server/default/deploy dir.
>
> sincerely Olek
>
> - Original Message -
> From: "Coral Burns" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 07, 2002 4:55 PM
> Subject: [JBoss-user] Apache Tomcat/4.0 - Http Status 404
>
>
> >
> > Hello:
> >
> > I downloaded the Jboss-3.0.0/Tomcat4.0.3 bundle from the jboss.org site
> and
> > I'm trying to bring up a test .html page using the Tomcat webserver, but
I
> > keep getting this error:
> >
> > Apache Tomcat/4.0 - Http Status 404 - the requested resource
> /jsp/test.html
> > is not available.
> >
> > Jboss, with the embedded Tomcat, seems to start fine and I get these
> > messages in the console when I start Jboss, so I'm assuming that Tomcat
is
> > ok:
> >
> > 08:40:29,749 INFO  [MainDeployer] Adding deployer:
> > org.jboss.web.catalina.EmbeddedCatalinaServiceSX@113dc1
> > 08:40:34,185 INFO  [STDOUT] Apache Tomcat/4.0.3
> > 08:40:34,215 INFO  [Engine] HttpConnector Opening server socket on all
> host
> > IP addresses
> > 08:40:34,225 INFO  [Engine] HttpConnector[8080] Starting background
thread
> > 08:40:35,036 INFO  [Engine] HttpProcessor[8080][0] Starting background
> > thread
> > 08:40:35,046 INFO  [Engine] HttpProcessor[8080][1] Starting background
> > thread
> > 08:40:35,056 INFO  [Engine] HttpProcessor[8080][2] Starting background
> > thread
> > 08:40:35,056 INFO  [EmbeddedCatalinaServiceSX] OK
> >
> > I put my test .html file in this location on my computer:
> >
> > C:\jboss-3.0.0RC3_tomcat-4.0.3\catalina\webapps\examples\jsp\test.html
> >
> > and try and bring it up with this URL:
> >
> > http://localhost:8080/examples/jsp/test.html
> >
> >
> > But it just can't bring up the test page (and there's nothing to it
except
> a
> > "Hello World") without the error.
> >
> > Am I missing some kind of configuration step, or something in my class
> path?
> > Does my test .html file need to be in a .war or .ear file?  All I want
to
> do
> > is bring up a simple .html file and I can't do it.
> >
> > Also, I'm assuming that I don't have to download Tomcat4.0.3
separately -
> > ie: that Tomcat4.0.3 is part of the JBoss bundle I downloaded.
> >
> > Thanks alot,
> >
> > Cora

RE: [JBoss-user] Boolean in the ejb-ql has sql exception

2002-06-07 Thread Arthur Wang

Thanks Dain,

But where can I get the JBossCMP documentation(free or not free) you
mentioned? and first, could you please tell me if I can write declared-sql
with a cmr field as a parameter?

Arthur

-Original Message-
From: Dain Sundstrom [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 12:03 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Boolean in the ejb-ql has sql exception


If you can wait a week, this will be fixed.  Also declared-sql is 
described in the JBossCMP documentation.

-dain

Arthur Wang wrote:

> Hi Everyone,
> 
> I am depoying my applcation in JBoss-Oracle, I have a query in ejb-jar.xml
> taking a boolean parameter like, columnName= FALSE or TRUE, when this
finder
> was called, there will be a SQL exception, (Invalid Column name), I found
> the reason for this is that Oracle doesn't have boolean type, so this sql
> statement is invalid. And I want to fix this using declared-sql in
> jbosscmp-jdbc.xml to overwrite this finder query, it works well, but
another
> problem is, how can I write declared-sql when this finder takes a cmr
field
> as a parameter, for example, findActiveAccountsForCustomer(Customer
> customer), which customer is a cmr filed for account bean.
> 
> Any reply would be highly appreciated.
> 
> Thanks in advance.
> 
> 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
> 
> ___
> 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

___
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] SapDB and Jboss

2002-06-07 Thread Arthur Wang

Hi everyone,

I am using Jboss3.0 RC2, I found some example db-service.xml file under
docs/examples/jca, but no example for sapdb (there is data mapping for sapdb
in standardjaws.xml and standardjbosscmp-jdbc.xml), I am not sure if I can
deploy cmp2.0 application in JBoss-SapDB. 

Your early reply would be highly apreciated.

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



[JBoss-user] Auto created relationship table name.

2002-06-07 Thread Arthur Wang

Hi ,

I have a many to many relationship betwen two beans, and I specify the
relation table in the ejb-jar.xml file, but when set the create-table as
true in jbosscmp-jdbc.xml, the created relation table has a different name
as the one I specified in the relationship defination, this should not be a
problem if I use existing table, but in this case(create table when deploy),
many to many relationship may not working. Any idea on it?

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



[JBoss-user] Working CMP/CMR Example For JBoss 3.0?

2002-06-07 Thread Brandon Knitter

I know that the JBoss group is working on a new document release, but in my
frustration (read: no more hair) I was hoping to get a working CMP example which
has CMR relationships as well.  If you have something that will build, and has
all the deployment descriptors and works on JBoss 3.0, I'd greatly appreciate it

Perhaps if you have a place to host it, that would be great.  If not, send me
your examples are some sort of archive, and I'll start a web page listing
examples for everyone else to use.

Thanks.

-- 
-bk






___

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 hiding RuntimeExceptions ???

2002-06-07 Thread Paul Kavanagh

Thanks Brandon, but unfortunately that didn't work - I still don't see any
stack trace on the server (I've attached my log4j.xml also). I uncommented
the TRACE entries, set the threshold level to "All", but still no stack
trace.

Here is the code which I'm using to programmatically create a
RuntimeException (inside a SLSB):

Object o = null;
System.out.println("");
o.hashCode();
System.out.println("");

On the client I get the NPE as expected:

java.rmi.ServerException: RemoteException occurred in server thread; nested
exception is:
java.rmi.ServerException: null
Embedded Exception
null
javax.ejb.EJBException: null
Embedded Exception
null
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:245)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
Source)
at
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProx
y.java:128)
at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73
)
at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
at
org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInter
ceptor.java:111)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy1.doTest(Unknown Source)
at
com.softface.framework.services.test.FrameworkTestMain.main(FrameworkTestMai
n.java:17)
java.lang.NullPointerException
<>

But on the JBoss console (and in the logs), all I see is:

569 TRACE [LogInterceptor] Start method=doTest
589 TRACE [TxInterceptorCMT] Current transaction in MI is null
619 TRACE [TxInterceptorCMT] TX_REQUIRED for doTest
639 TRACE [TxInterceptorCMT] Thread came in with tx null
659 TRACE [TxInterceptorCMT] Starting new tx TransactionImpl:XidImpl
[FormatId=257, GlobalId=pc-paul//3, BranchQual=]
679 TRACE [StatelessSessionInstancePool] Get instance
org.jboss.ejb.plugins.StatelessSessionInstancePool@75ade6#true#class
com.softface.framework.services.test.FrameworkTe

739 INFO  [STDOUT] testing.
759 INFO  [STDOUT] 
799 TRACE [TxInterceptorCMT] TxInterceptorCMT: In finally
820 TRACE [LogInterceptor] End method=doTest

ie the exception is somehow being gobbled up. Is anyone using JBoss 3.0.0
and seeing RuntimeExceptions ? If so, could you please post your log4j.xml ?

Thanks in advance,
-Paul

> -Original Message-
> From: Brandon Knitter [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 07, 2002 11:41 AM
> To: [EMAIL PROTECTED]; Paul Kavanagh
> Subject: Re: [JBoss-user] JBoss 3.0.0 hiding RuntimeExceptions ???
>
>
> Near the bottom of the log4j.xml file there are two "TRACE" entries, I
> uncommented those and restarted jboss and have better errors now.
>
> Hope that's what you were looking for.
>
> --
> -bk
>
>
> Quoting Paul Kavanagh <[EMAIL PROTECTED]>:
>
> > Hi guys,
> >
> > hoping someone can shed some light on this.
> >
> > I'm using JBoss 3.0.0 (using default settings for everything)
> on Win2K, but
> > when I run my test applciation (Java client connecting to a
> simple session
> > bean) on it, JBoss is not showing us any RuntimeExceptions
> which are being
> > thrown (neither on the console nor in the server.log). The client is
> > getting
> > a java.rmi.ServerException, but there's no stack trace or any
> info on the
> > server. I'm using the default log4j.xml. Any ideas ?
> >
> > Thanks in advance,
> > -Paul
> >
> >
> > ___
> >
> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
>
>















http://jakarta.apache.org/log4j/"; debug="false">

  
  
  

  
  









  
  

  
	
  

  

  
  
  

  




  
  

  


  
  
  

  

  

  

  

  
  
  

  

  

  

  
  

  
  

  
  

  
  
  

  


  
  




Re: [JBoss-user] JBoss3.0.0 CMR field not persisting

2002-06-07 Thread Brandon Knitter

I just noticed that you are working on an example for all of us! :)  Do you have
this ready, perhaps with the changes below?  I got the zip from your site below
about an hour ago, and I'm happy to see an example! :)

Thanks,

-- 
-bk


Quoting David Jones <[EMAIL PROTECTED]>:

> Greg Turner <[EMAIL PROTECTED]> writes:
> 
> > I've gotten many to many relationships to work, so I took a look at
> > what you are doing. While I did not take an indepth look at your code,
> > I did notice one big difference between our two approaches. Your code
> > is trying to do too much, in managing relationship IDs. If you were to
> > change your code to my way of doing it, here is what it would look
> > like:
> > 
> > Company company = companyHome.create (companyId, name);
> > 
> > Employee employee = employeeHome.create (emailId,email);
> > 
> > company.getEmployees().add (employee);
> 
> Thank you for the idea. I modified my EmployeeBean>>setCompanyId(companyId)
> to
> follow your suggestion, so rather than a direct:
> 
> employee.setCompany(companyLocal);
> 
> I'm instead doing the more roundabout:
> 
> companyLocal.getEmployees().add(employeeLocal);
> 
> And it works, when called from either ejbPostCreate() or after
> create() has returned to the client.
> 
> Thanks a lot.
> 
> 
> My original setCompany(companyLocal) still looks like it should work and is
> more direct. But I'll take anything that works for the moment :-) 
> 
> > Another big difference is that I do all the work in a SessionBean,
> > which means that it all occurs under the scope of one transaction.
> > Whereas, your code does things piece wise in the client, which means
> > not under the scope of one transaction. If you were to do it as I
> > suggest on the client, it may still not work because of the
> > differences in transaction scope.
> 
> The application that I am trying to convert to JBoss does access all
> Entities through Session beans. I was just hoping that for a minimal
> example the 2 entity beans and client class might be clearer, and it
> also matched Tim's original Version2 code example a little closer.
> 
> I had assumed that the greater number of transactions involved by
> making multiple calls from the client would only affect the
> performance rather than the correctness. Everything seems to work ok
> from the client.
> 
> > Hope this has given you some ideas. Please report back any successes.
> > 
> > Greg Turner
> 
> Thanks for the help. I'm hoping that the apparent underlying problems with
> setCompany() can be fixed up relatively soon, but at least I can
> continue using the add() technique for the moment.
> 
> 
> > David Jones wrote:
> > > I am new to both JBoss and EJB2.0 and the new CMP support. Using
> > >XDoclet I can create a couple of beans that include simple CMP and
> > >CMR fields, generate and deploy an ear to JBoss, and it appears to
> > >install it with no WARNings.
> > >
> > > But using a simple client I find that the value of my CMR/foreign
> > >key field never changes from null. This is irrespective of whether I
> > >set it in the ejbPostCreate or call it after create() returns to my
> > >client.
> > >
> > > [...]
> > >
> > > I have made the example available on my website: 47kb This includes
> > >the source, build.xml and a built ear ready to deploy.
> > >
> > > http://www.night.dircon.co.uk/jboss/cmr-example.zip
> -- 
> David G Jones [EMAIL PROTECTED]
> PGP Key ID=0x389707D3  http://www.night.dircon.co.uk/pgp.asc
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> 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] JBoss3.0.0 CMR field not persisting

2002-06-07 Thread Greg Turner

I have a simple app that relates hrefs to keywords in a many to many relationship.  
The idea
is to be able to save hrefs with a list of keywords and then, later on, search the 
library
for hrefs that match a list of keywords.  There are 3 tables, one table that has id as 
a
long, href as a varchar.  Another table has id as a long and keyword as a varchar.  
The thrid
table is the links table establishing the many to many relationship.  The code that I 
have
all seems to work OK.  I use a Cloudscape db.  I've attached a zip file that contains 
source
and deployment files.  I've tested this in Win2000 using RC2 version of JBoss.  Enjoy.

Brandon Knitter wrote:

> I just noticed that you are working on an example for all of us! :)  Do you have
> this ready, perhaps with the changes below?  I got the zip from your site below
> about an hour ago, and I'm happy to see an example! :)
>
> Thanks,
>
> --
> -bk
>
> Quoting David Jones <[EMAIL PROTECTED]>:
>
> > Greg Turner <[EMAIL PROTECTED]> writes:
> >
> > > I've gotten many to many relationships to work, so I took a look at
> > > what you are doing. While I did not take an indepth look at your code,
> > > I did notice one big difference between our two approaches. Your code
> > > is trying to do too much, in managing relationship IDs. If you were to
> > > change your code to my way of doing it, here is what it would look
> > > like:
> > >
> > > Company company = companyHome.create (companyId, name);
> > >
> > > Employee employee = employeeHome.create (emailId,email);
> > >
> > > company.getEmployees().add (employee);
> >
> > Thank you for the idea. I modified my EmployeeBean>>setCompanyId(companyId)
> > to
> > follow your suggestion, so rather than a direct:
> >
> > employee.setCompany(companyLocal);
> >
> > I'm instead doing the more roundabout:
> >
> > companyLocal.getEmployees().add(employeeLocal);
> >
> > And it works, when called from either ejbPostCreate() or after
> > create() has returned to the client.
> >
> > Thanks a lot.
> >
> >
> > My original setCompany(companyLocal) still looks like it should work and is
> > more direct. But I'll take anything that works for the moment :-)
> >
> > > Another big difference is that I do all the work in a SessionBean,
> > > which means that it all occurs under the scope of one transaction.
> > > Whereas, your code does things piece wise in the client, which means
> > > not under the scope of one transaction. If you were to do it as I
> > > suggest on the client, it may still not work because of the
> > > differences in transaction scope.
> >
> > The application that I am trying to convert to JBoss does access all
> > Entities through Session beans. I was just hoping that for a minimal
> > example the 2 entity beans and client class might be clearer, and it
> > also matched Tim's original Version2 code example a little closer.
> >
> > I had assumed that the greater number of transactions involved by
> > making multiple calls from the client would only affect the
> > performance rather than the correctness. Everything seems to work ok
> > from the client.
> >
> > > Hope this has given you some ideas. Please report back any successes.
> > >
> > > Greg Turner
> >
> > Thanks for the help. I'm hoping that the apparent underlying problems with
> > setCompany() can be fixed up relatively soon, but at least I can
> > continue using the add() technique for the moment.
> >
> >
> > > David Jones wrote:
> > > > I am new to both JBoss and EJB2.0 and the new CMP support. Using
> > > >XDoclet I can create a couple of beans that include simple CMP and
> > > >CMR fields, generate and deploy an ear to JBoss, and it appears to
> > > >install it with no WARNings.
> > > >
> > > > But using a simple client I find that the value of my CMR/foreign
> > > >key field never changes from null. This is irrespective of whether I
> > > >set it in the ejbPostCreate or call it after create() returns to my
> > > >client.
> > > >
> > > > [...]
> > > >
> > > > I have made the example available on my website: 47kb This includes
> > > >the source, build.xml and a built ear ready to deploy.
> > > >
> > > > http://www.night.dircon.co.uk/jboss/cmr-example.zip
> > --
> > David G Jones [EMAIL PROTECTED]
> > PGP Key ID=0x389707D3  http://www.night.dircon.co.uk/pgp.asc
> >
> > ___
> >
> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> >
> > ___
> > 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-use

Re: [JBoss-user] SapDB and Jboss

2002-06-07 Thread Brandon Knitter

I grepped the binary distro, nothing matches sap.

Also, 3.0 Final was released.

-- 
-bk


Quoting Arthur Wang <[EMAIL PROTECTED]>:

> Hi everyone,
> 
> I am using Jboss3.0 RC2, I found some example db-service.xml file under
> docs/examples/jca, but no example for sapdb (there is data mapping for
> sapdb
> in standardjaws.xml and standardjbosscmp-jdbc.xml), I am not sure if I can
> deploy cmp2.0 application in JBoss-SapDB. 
> 
> Your early reply would be highly apreciated.
> 
> 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



RE: [JBoss-user] SapDB and Jboss

2002-06-07 Thread Arthur Wang

I did get the jboss stable release this week, but do you mean that I cann't
run cmp2.0 with jboss-sapdb?

Thanks

-Original Message-
From: Brandon Knitter [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 3:14 PM
To: [EMAIL PROTECTED]; Arthur Wang
Subject: Re: [JBoss-user] SapDB and Jboss


I grepped the binary distro, nothing matches sap.

Also, 3.0 Final was released.

-- 
-bk


Quoting Arthur Wang <[EMAIL PROTECTED]>:

> Hi everyone,
> 
> I am using Jboss3.0 RC2, I found some example db-service.xml file under
> docs/examples/jca, but no example for sapdb (there is data mapping for
> sapdb
> in standardjaws.xml and standardjbosscmp-jdbc.xml), I am not sure if I can
> deploy cmp2.0 application in JBoss-SapDB. 
> 
> Your early reply would be highly apreciated.
> 
> 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



Re: [JBoss-user] JBoss3.0.0 CMR field not persisting

2002-06-07 Thread Brandon Knitter

Thank you! :)  I will check this over.  Briefly, it looks like what I have too,
but on my implementation when I try calling the abstract collection methods, I
am met with much dismay.  Have you tested the collection calls remotely?  You
client doesn't seem to do much?!?!?

Thanks again, I appreciate the example.



-- 
-bk


Quoting Greg Turner <[EMAIL PROTECTED]>:

> I have a simple app that relates hrefs to keywords in a many to many
> relationship.  The idea
> is to be able to save hrefs with a list of keywords and then, later on,
> search the library
> for hrefs that match a list of keywords.  There are 3 tables, one table that
> has id as a
> long, href as a varchar.  Another table has id as a long and keyword as a
> varchar.  The thrid
> table is the links table establishing the many to many relationship.  The
> code that I have
> all seems to work OK.  I use a Cloudscape db.  I've attached a zip file that
> contains source
> and deployment files.  I've tested this in Win2000 using RC2 version of
> JBoss.  Enjoy.
> 
> Brandon Knitter wrote:
> 
> > I just noticed that you are working on an example for all of us! :)  Do you
> have
> > this ready, perhaps with the changes below?  I got the zip from your site
> below
> > about an hour ago, and I'm happy to see an example! :)
> >
> > Thanks,
> >
> > --
> > -bk
> >
> > Quoting David Jones <[EMAIL PROTECTED]>:
> >
> > > Greg Turner <[EMAIL PROTECTED]> writes:
> > >
> > > > I've gotten many to many relationships to work, so I took a look at
> > > > what you are doing. While I did not take an indepth look at your
> code,
> > > > I did notice one big difference between our two approaches. Your code
> > > > is trying to do too much, in managing relationship IDs. If you were
> to
> > > > change your code to my way of doing it, here is what it would look
> > > > like:
> > > >
> > > > Company company = companyHome.create (companyId, name);
> > > >
> > > > Employee employee = employeeHome.create (emailId,email);
> > > >
> > > > company.getEmployees().add (employee);
> > >
> > > Thank you for the idea. I modified my
> EmployeeBean>>setCompanyId(companyId)
> > > to
> > > follow your suggestion, so rather than a direct:
> > >
> > > employee.setCompany(companyLocal);
> > >
> > > I'm instead doing the more roundabout:
> > >
> > > companyLocal.getEmployees().add(employeeLocal);
> > >
> > > And it works, when called from either ejbPostCreate() or after
> > > create() has returned to the client.
> > >
> > > Thanks a lot.
> > >
> > >
> > > My original setCompany(companyLocal) still looks like it should work and
> is
> > > more direct. But I'll take anything that works for the moment :-)
> > >
> > > > Another big difference is that I do all the work in a SessionBean,
> > > > which means that it all occurs under the scope of one transaction.
> > > > Whereas, your code does things piece wise in the client, which means
> > > > not under the scope of one transaction. If you were to do it as I
> > > > suggest on the client, it may still not work because of the
> > > > differences in transaction scope.
> > >
> > > The application that I am trying to convert to JBoss does access all
> > > Entities through Session beans. I was just hoping that for a minimal
> > > example the 2 entity beans and client class might be clearer, and it
> > > also matched Tim's original Version2 code example a little closer.
> > >
> > > I had assumed that the greater number of transactions involved by
> > > making multiple calls from the client would only affect the
> > > performance rather than the correctness. Everything seems to work ok
> > > from the client.
> > >
> > > > Hope this has given you some ideas. Please report back any successes.
> > > >
> > > > Greg Turner
> > >
> > > Thanks for the help. I'm hoping that the apparent underlying problems
> with
> > > setCompany() can be fixed up relatively soon, but at least I can
> > > continue using the add() technique for the moment.
> > >
> > >
> > > > David Jones wrote:
> > > > > I am new to both JBoss and EJB2.0 and the new CMP support. Using
> > > > >XDoclet I can create a couple of beans that include simple CMP and
> > > > >CMR fields, generate and deploy an ear to JBoss, and it appears to
> > > > >install it with no WARNings.
> > > > >
> > > > > But using a simple client I find that the value of my CMR/foreign
> > > > >key field never changes from null. This is irrespective of whether I
> > > > >set it in the ejbPostCreate or call it after create() returns to my
> > > > >client.
> > > > >
> > > > > [...]
> > > > >
> > > > > I have made the example available on my website: 47kb This includes
> > > > >the source, build.xml and a built ear ready to deploy.
> > > > >
> > > > > http://www.night.dircon.co.uk/jboss/cmr-example.zip
> > > --
> > > David G Jones [EMAIL PROTECTED]
> > > PGP Key ID=0x389707D3  http://www.night.dircon.co.uk/pgp.asc
> > >
> > > ___
> > >
> > > Don't mis

RE: [JBoss-user] SapDB and Jboss

2002-06-07 Thread Brandon Knitter

Oh, no, CMP2.0 should work fine.  Just make sure to add your DOCTYPE headers to
your deployment descriptors and the 2.0 version will show up! :)

Been playing with it for a few days now.

-- 
-bk


Quoting Arthur Wang <[EMAIL PROTECTED]>:

> I did get the jboss stable release this week, but do you mean that I cann't
> run cmp2.0 with jboss-sapdb?
> 
> Thanks
> 
> -Original Message-
> From: Brandon Knitter [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 07, 2002 3:14 PM
> To: [EMAIL PROTECTED]; Arthur Wang
> Subject: Re: [JBoss-user] SapDB and Jboss
> 
> 
> I grepped the binary distro, nothing matches sap.
> 
> Also, 3.0 Final was released.
> 
> -- 
> -bk
> 
> 
> Quoting Arthur Wang <[EMAIL PROTECTED]>:
> 
> > Hi everyone,
> > 
> > I am using Jboss3.0 RC2, I found some example db-service.xml file under
> > docs/examples/jca, but no example for sapdb (there is data mapping for
> > sapdb
> > in standardjaws.xml and standardjbosscmp-jdbc.xml), I am not sure if I
> can
> > deploy cmp2.0 application in JBoss-SapDB. 
> > 
> > Your early reply would be highly apreciated.
> > 
> > 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



Re: [JBoss-user] JBoss 3.0.0 hiding RuntimeExceptions ???

2002-06-07 Thread Brandon Knitter

I checked out things with: cvs co -r JBoss_3_0_0 jboss-all

So, after I apply that patch, then I go into jboss-all/build dir and run
build.sh.  Then what?  What do I move and copy over the binary distro I
downloaded?  Is it an entire dir, or just a jar?

Thanks in advance,

-- 
-bk


Quoting Marius Kotsbak <[EMAIL PROTECTED]>:

> I have reported it as bug
>
(http://sourceforge.net/tracker/?func=detail&aid=565279&group_id=22866&atid=376685),
>  
> and submitted a patch to solve it (#562036
>
http://sourceforge.net/tracker/index.php?func=detail&aid=562036&group_id=22866&atid=376687),
> 
> , but noone seems to notice. So I have to apply it myself every time I
> build jboss :-( 
> 
> Without it, I get exception like this that doesn't tell me anything
> several times a week! 
> 
> 
> On fre, 2002-06-07 at 20:29, Paul Kavanagh wrote:
> > Hi guys,
> > 
> > hoping someone can shed some light on this.
> > 
> > I'm using JBoss 3.0.0 (using default settings for everything) on Win2K,
> but
> > when I run my test applciation (Java client connecting to a simple
> session
> > bean) on it, JBoss is not showing us any RuntimeExceptions which are
> being
> > thrown (neither on the console nor in the server.log). The client is
> getting
> > a java.rmi.ServerException, but there's no stack trace or any info on the
> > server. I'm using the default log4j.xml. Any ideas ?
> > 
> > Thanks in advance,
> > -Paul
> > 
> > 
> > ___
> > 
> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> > 
> > ___
> > 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] JBoss3.0/Tomcat4.0 - don't want .jsp in war

2002-06-07 Thread Coral Burns


Hi Again:

I've posted a couple of times, but I thought I might not have been clear
with my problem.  I have the Jboss3.0.0/Tomcat4.0.3 bundle working with the
.war examples.

But I'm wondering what steps I have to take to get my .jsp files to work in
an "exploded" directory structure rather than via a .war file.  I need to
run Jboss and Tomcat together cause I'm using EJBs and also using the Tomcat
webserver for displaying .jsp files in full directories instead of a .war
file.  

This is where I've been storing the .jsp files (example):

C:\jboss-3.0.0RC3_tomcat-4.0.3\catalina\webapps\examples\jsp\test.jsp

And this is how I've been trying to call the .jsp files, after I've started
up JBoss with the embedded Tomcat:

http://localhost:8080/examples/jsp/test.html

I can't seem to find any documentation to help me on this, so your help will
be appriciated.

Thanks,

Coral Burns




***
Coral Burns
CRITICAL MASS 
Application Development
[EMAIL PROTECTED]
t: 403 262 3006
f: 403 262 7185
www.criticalmass.com




winmail.dat
Description: application/ms-tnef


[JBoss-user] errors on startup ...

2002-06-07 Thread G.L. Grobe



I'm getting errors like 
below when starting up JBoss and loading of my J2EE app w/ all of my session and 
entity beans, yet, my beans still run fine and I'm seeing no problems besides 
this output.--- snip ---[ERROR,ContainerFactory] Bean : 
AccountMethod : public abstract boolean addAccount(AccountInfo) throws 
RemoteExceptionSection: 9.2.7Warning: The method arguments in the remote 
interface must be of valid types for RMI/IIOP.--- end ---The 
arguments in this interface are of valid types AFAIK, meaning ... 
AccountInfo implements Serializable.Any help much 
appreciated.


  1   2   >