RE: methodException

2000-09-28 Thread Tom Klaasen

This seems very strange to me: if I compile the code with the sun compiler,
it doesn't generate any errors. When deploying, however, the error arises.

Do you know why this "created" variable is used, and why it isn't declared?

tom

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Karl Avedal
 Sent: woensdag 27 september 2000 23:48
 To: Orion-Interest
 Subject: Re: methodException
 
 
 Hello Tom,
 
 We treat bad error messages as bugs, so if you could please 
 report this to
 Bugzilla we'd be happy. An error in a Wrapper class usually 
 means there's some
 error somewhere that Orion doesn't catch (but the compiler does).
 
 Regards,
 Karl Avedal
 
 Tom Klaasen wrote:
 
  Stumbled across Yet Another Obscure Error Message.
  Does anybody has any idea what this error message means, 
 and what can be
  done about it? It seems to me that a variable is used that 
 is not defined,
  but since this is generated code, I don't understand why 
 the variable is not
  defined...
 
  Any help is much appreciated
 
  E:\orionjava -jar orion.jar
  Copying default deployment descriptor from archive at
  E:\orion\applications\isho
  p\ishop-ejb/orion/orion-ejb-jar.xml to deployment directory
  E:\orion\application
  -deployments\ishop\ishop-ejb...
  Auto-deploying ishop-ejb (No previous deployment found)...
  CustomerManagerEJB_St
  atefulSessionBeanWrapper3.java:68: Undefined variable: created
  methodException =
  EJBUtils.getUserException(e, !created);
 
  ^
  CustomerManagerEJB_StatefulSessionBeanWrapper3.java:137: 
 Undefined variable:
  cre
  ated
  methodException =
  EJBUtils.getUserException(e, !created);
 
  ^
  CustomerManagerEJB_StatefulSessionBeanWrapper3.java:210: 
 Undefined variable:
  cre
  ated
  methodException =
  EJBUtils.getUserException(e, !created);
 
  ^
  CustomerManagerEJB_StatefulSessionBeanWrapper3.java:277: 
 Undefined variable:
  cre
  ated
  methodException =
  EJBUtils.getUserException(e, !created);
 
  ^
  4 errors
  Error compiling 
 file:/E:/orion/applications/ishop/ishop-ejb/: Syntax error
  in source
  Orion/1.2.9 initialized
 
  E:\orion
 
  ~~~~~
 Tom Klaasen
 Software Engineer
 The E-corporation
 http://www.the-ecorp.com
 +32 (0)9 272 22 00
  ~
 
 
 




methodException

2000-09-27 Thread Tom Klaasen

Stumbled across Yet Another Obscure Error Message.
Does anybody has any idea what this error message means, and what can be
done about it? It seems to me that a variable is used that is not defined,
but since this is generated code, I don't understand why the variable is not
defined...

Any help is much appreciated


E:\orionjava -jar orion.jar
Copying default deployment descriptor from archive at
E:\orion\applications\isho
p\ishop-ejb/orion/orion-ejb-jar.xml to deployment directory
E:\orion\application
-deployments\ishop\ishop-ejb...
Auto-deploying ishop-ejb (No previous deployment found)...
CustomerManagerEJB_St
atefulSessionBeanWrapper3.java:68: Undefined variable: created
methodException =
EJBUtils.getUserException(e, !created);

^
CustomerManagerEJB_StatefulSessionBeanWrapper3.java:137: Undefined variable:
cre
ated
methodException =
EJBUtils.getUserException(e, !created);

^
CustomerManagerEJB_StatefulSessionBeanWrapper3.java:210: Undefined variable:
cre
ated
methodException =
EJBUtils.getUserException(e, !created);

^
CustomerManagerEJB_StatefulSessionBeanWrapper3.java:277: Undefined variable:
cre
ated
methodException =
EJBUtils.getUserException(e, !created);

^
4 errors
Error compiling file:/E:/orion/applications/ishop/ishop-ejb/: Syntax error
in source
Orion/1.2.9 initialized

E:\orion

~
   Tom Klaasen
   Software Engineer
   The E-corporation
   http://www.the-ecorp.com
   +32 (0)9 272 22 00
~




IllegalArgumentException

2000-09-08 Thread Tom Klaasen

I'm sorry to disturb you guys again, but I just keep hitting the wall in
trying to deploy my application.

The error I see this time is

E:\orionjava -jar orion.jar
Copying default deployment descriptor from archive at
E:\orion\applications\isho
p\ishop-ejb/orion/orion-ejb-jar.xml to deployment directory
E:\orion\application
-deployments\ishop\ishop-ejb...
Auto-deploying ishop-ejb (No previous deployment found)...
java.lang.IllegalArgu
mentException: Cannot convert from class java.lang.String to class
com.netitbe.i
shop.business.item2.ejb.ItemPk
at com.evermind.zip.a.t(JAX)
at com.evermind.server.ejb.compilation.fm.aew(JAX)
at com.evermind.server.ejb.compilation.fk.ru(JAX)
at com.evermind.server.ejb.compilation.fo.ad_(JAX)
at com.evermind.server.ejb.compilation.fx.agd(JAX)
at com.evermind.server.ejb.compilation.fo.ru(JAX)
at com.evermind.server.ejb.compilation.fq.ru(JAX)
at com.evermind.server.ejb.compilation.fw.ru(JAX)
at com.evermind.server.ejb.EJBContainer.bx(JAX)
at com.evermind.server.Application.bx(JAX)
at com.evermind.server.Application.f7(JAX)
at com.evermind.server.ApplicationServer.qu(JAX)
at com.evermind.server.ApplicationServer.an6(JAX)
at com.evermind.server.ApplicationServer.f7(JAX)
at com.evermind.server.gz.run(JAX)
at java.lang.Thread.run(Unknown Source)
at com.evermind.util.f.run(JAX)

E:\orion

This is similar to what I got a few days ago, and I thought I could solve
this by creating an orion-ejb-jar.xml (which costed me a lot of headache,
also).
My orion-ejb-jar.xml looks like this (it's not complete, but I want to solve
this error and then move on):
?xml version="1.0" encoding="UTF-8"?
orion-ejb-jar
enterprise-beans
entity-deployment 
data-source="jdbc/questEJBDS" 
location="com.netitbe.ishop.business.item2.ejb.ItemHome"
name="Item2"
table="item2"

primkey-mapping
cmp-field-mapping name="itemid" persistence-name="itemid"
persistence-type="varchar(255)"/
cmp-field-mapping name="version" persistence-name="version"
persistence-type="varchar(255)"/
cmp-field-mapping name="supplier"
persistence-name="supplier" persistence-type="varchar(255)"/
/primkey-mapping
finder-method 
partial="true" 
query="$1.supplier=$supplier and $1.itemid=$itemid and
$1.version=$version"

method
descriptionFind an item by its primary
key./description
ejb-nameItem2/ejb-name
method-intfHome/method-intf
method-namefindByPrimaryKey/method-name
method-params
 
method-paramcom.netitbe.ishop.business.item2.ejb.ItemPk/method-param
/method-params
/method
/finder-method
/entity-deployment
/enterprise-beans
/orion-ejb-jar

I presume the ejb-name is referring to the ejb-jar.xml, so this is the
relevant part:
entity
descriptionItem Bean2./description
ejb-nameItem2/ejb-name

homecom.netitbe.ishop.business.item2.ejb.ItemHome/home

remotecom.netitbe.ishop.business.item2.ejb.ItemEJB/remote

ejb-classcom.netitbe.ishop.business.item2.ejb.ItemImpl/ejb-class
persistence-typeContainer/persistence-type

prim-key-classcom.netitbe.ishop.business.item2.ejb.ItemPk/prim-key-class
reentrantFalse/reentrant
cmp-field
field-nameitemid/field-name
/cmp-field
cmp-field
field-nameversion/field-name
/cmp-field
cmp-field
field-namesupplier/field-name
/cmp-field
cmp-field
field-namedescription/field-name
/cmp-field
cmp-field
field-namepricevalue/field-name
/cmp-field
cmp-field
field-namepricecurrency/field-name
/cmp-field
cmp-field
field-nameshopid/field-name
/cmp-field
cmp-field
field-namedisplayname/field-name
/cmp-field
cmp-field
field-nameicon/field-name
/cmp-field
cmp-field
field-nameimage/field-name
/cmp-field

RE: cmt-datasource/ejb-datasource

2000-09-08 Thread Tom Klaasen

Jeps, that works, thank you very much.
I wonder why this isn't documented. (I wonder why the documentation is so
bad anyway. We were planning on deploying orion, but with this kind of
documentation it is to doubt if it is safe to deploy orion on a public
server.)

Thanks again,

Tom Klaasen

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Chris Miller
 Sent: donderdag 7 september 2000 19:24
 To: Orion-Interest
 Subject: Re: cmt-datasource/ejb-datasource
 
 
 Try using the EJB JDBC url (ie 'ejb-location' from your 
 data-sources.xml)
 rather than the standard 'location'. At least, this worked 
 for me (I think
 I've got other problems related to my JDBC setup, but that's 
 another story).
 
 - Original Message -
 From: "Tom Klaasen" [EMAIL PROTECTED]
 To: "Orion-Interest" [EMAIL PROTECTED]
 Sent: Thursday, September 07, 2000 5:12 PM
 Subject: cmt-datasource/ejb-datasource
 
 
  Hi,
 
  I'm porting an ejb application that has already been deployed on
  SilverStream, to Orion.
  I've already solved a lot of problems, but this one seems to be very
  undocumented (I've searched the archive of this list, and at least 5
 persons
  have already asked this question, but it was never answered.)
 
  This is the error message I get:
 
  E:\orion\orionjava -jar orion.jar
  Copying default deployment descriptor from archive at
  E:\orion\orion\application
  s\ishop\ishop-ejb/orion/orion-ejb-jar.xml to deployment directory
  E:\orion\orion
  \application-deployments\ishop\ishop-ejb...
  Auto-deploying ishop-ejb... Error compiling
  file:/E:/orion/orion/applications/is
  hop/ishop-ejb/: jdbc/questDS did not contain a
 cmt-dataSource/ejb-datasource
  Orion/1.0.3 initialized
 
  The platform is
  Win NT 4.0
  Sybase Anywhere SQL 7.0
  latest orion
 
  Anybody any ideas/pointers as how to tackle this problem?
 
  Thanks,
 
  ~~~~~~~~~~~~~
 Tom Klaasen
 Software Engineer
 The E-corporation
 http://www.the-ecorp.com
 +32 (0)9 272 22 00
  ~
 
 
 
 
 




cmt-datasource/ejb-datasource

2000-09-07 Thread Tom Klaasen

Hi,

I'm porting an ejb application that has already been deployed on
SilverStream, to Orion.
I've already solved a lot of problems, but this one seems to be very
undocumented (I've searched the archive of this list, and at least 5 persons
have already asked this question, but it was never answered.)

This is the error message I get:

E:\orion\orionjava -jar orion.jar
Copying default deployment descriptor from archive at
E:\orion\orion\application
s\ishop\ishop-ejb/orion/orion-ejb-jar.xml to deployment directory
E:\orion\orion
\application-deployments\ishop\ishop-ejb...
Auto-deploying ishop-ejb... Error compiling
file:/E:/orion/orion/applications/is
hop/ishop-ejb/: jdbc/questDS did not contain a cmt-dataSource/ejb-datasource
Orion/1.0.3 initialized

The platform is
Win NT 4.0
Sybase Anywhere SQL 7.0
latest orion

Anybody any ideas/pointers as how to tackle this problem?

Thanks,

~
   Tom Klaasen
   Software Engineer
   The E-corporation
   http://www.the-ecorp.com
   +32 (0)9 272 22 00
~