CMP Entity Bean Craziness

2001-12-20 Thread Ed Brown



Okay, here is the situation.

Database: Oracle on Solaris
Orion server: 1.5.2 on Windows 2000
Operating System: Windows 2000

I have a database table named FOO. I want to create different entity beans to
provide different views of the table named FOO. FOO is a table with many
columns. (Sure, I could create one entity bean, and then create "wrapper"
classes that provides the views of table FOO that I want, but I didn't want
to do that). Many of those column names contain underscores.

When I created the first CMP entity bean, I mapped all column names and used the

table name as the entity bean name. I wrote the appropriate ejb-jar.xml and
orion-ejb-jar.xml and packaged them. In the orion-ejb-jar.xml file, I used the
"persistence-name" to map the Java attribute to the proper table column. For all

attributes that mapped to a column name with an underscore, I removed the
underscore and uppercased the next character. (A column named long_col_name
would map to the attribute longColName).

So I deployed the entity bean and there were deployment errors. Orion complained

about illegal column names. Much later after going around in circles, I looked
at the ejb-jar.xml file that Orion generated and I noticed that the values for
the persistence-name mapped exactly to the column names of the database table.
It *IGNORED* what I had placed there. I had to edit the deployed xml file to get

the mapping correct and properly deployed.

Now, that's not very nice.

Next, I created another CMP entity bean to give a different view of table FOO. I

used the entity name FooTimeView and used the table attribute of
entity-deployment in the orion-ejb-jar.xml to map the entity to the FOO table. I

deployed it and, again, I got errors. I had to edit the deployed xml file to get

the correct mappings. I deployed again and it still failed. Only this time, it
tried to create a table named FOOTIMEVIEW. (Actually, it *DID* create the
table). That's not what I expected to happen. So, I looked at the deployed xml
file again and I noticed that the table name had been changed from what I
specified. This time, I also looked at the query that was generated and noticed

that the column names with underscores had the underscores removed.

Now, that's not very nice.

I edited that and restarted the server. Now all is well.

Okay, now I *KNOW* what I described should not happen. I want to know why it
did happen.

Has this happened to anyone else, or am I "special"?


Ed Brown


_
This mail sent via toadmail.com, web e-mail @ ToadNet - want to go fast?
http://www.toadmail.com




HTTP/HTTPS config failure - Ideas?

2001-12-20 Thread Stephen Davidson

Greetings.

The attached web-site.xml file describes a site where the default web application is 
the same as a described application.  Does anyone have any idea why the 
default context works, but the HRneXus one does not?

The reason for the extra commented out lines was I was doing some testing trying to 
figure out what worked, and what was not.

Thanks,
Steve
-- 
Stephen Davidson
Java Consultant
Delphi Consultants, LLC
http://www.delphis.com
Phone: 214-696-6224 x208



http://www.orionserver.com/dtds/web-site.dtd";>



	
	
	




	
	
	
	
	




Re: MDB with SwiftMQ

2001-12-20 Thread Mike Cannon-Brookes

It looks like you've typo'ed the name of the resource provider in your
orion-application.xml. Are you sure you didn't list it as
com.evermind.server.deloyment.ContextScanningResourceProvider there?

Chees,
Mike
 
Mike Cannon-Brookes :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
 Supporting YOUR J2EE World


On Fri, 2001-12-21 at 03:38, David Shepherd wrote:
> Has anyone got a MDB working with SwiftMQ?  I've followed the documentation but am 
>getting the following error on deployment...
> 
> Auto-unpacking \home\modules\jms_tests\dist\jms-tests.ear... done.
> Error instantiating application 'jms-tests' at 
>file://e:/home/modules/jms_tests/dist/jms-tests.ear: resource-provider cl
> ass 'com.evermind.server.deloyment.ContextScanningResourceProvider' not found
> 
> I noticed that 'deployment' is spelt 'deloyment' in the error message, is this a bug 
>or just a typo?
> 
> I extracted ContextScanningResourceProvider from orion.jar rather than compiling it 
>myself.  I'm not sure where to package this class, should it be in the ejb-jar? or in 
>the general app jar?
> 
> If anyone has this working can you please post your bean deployment config files.
> 
> My setup is as follows
> - Cygwin on Win NT 4.0 
> - Orion 1.5.2
> - SwiftMQ 2.1.3
> - JDK 1.3.1
> 
> Thanks
> Dave
> -- 
> David Shepherd
> [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> __
> Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
>convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/
> 
> Get your own FREE, personal Netscape Mail account today at 
>http://webmail.netscape.com/
> 
> 
-- 
Cheers,
Mike

-






Asynchronous MDB

2001-12-20 Thread Brian Chan

I've been reading of entries about asynchronous MDB not working. When will this be 
fixed? I have a mission critical app that depends on asynch msg'ing.

I successfully convinced my firm to port from Weblogic to Orion :)

- Brian Chan


load balancing load

2001-12-20 Thread Peter T. Brown



Hi--
 
I've 
got a one island, two node cluster. The whole setup works, each of the two nodes 
fields requests etc. However, the Linux load average on the load balancer 
fluctuates radically and often goes above 15 or 20! The load averages on the 
cluster nodes are well below 0.5. Anybody know what might be causing this 
behavior and how I can fix it?
 
Thanks,
 
Peter 
T. Brown


MDB with SwiftMQ

2001-12-20 Thread David Shepherd

Has anyone got a MDB working with SwiftMQ?  I've followed the documentation but am 
getting the following error on deployment...

Auto-unpacking \home\modules\jms_tests\dist\jms-tests.ear... done.
Error instantiating application 'jms-tests' at 
file://e:/home/modules/jms_tests/dist/jms-tests.ear: resource-provider cl
ass 'com.evermind.server.deloyment.ContextScanningResourceProvider' not found

I noticed that 'deployment' is spelt 'deloyment' in the error message, is this a bug 
or just a typo?

I extracted ContextScanningResourceProvider from orion.jar rather than compiling it 
myself.  I'm not sure where to package this class, should it be in the ejb-jar? or in 
the general app jar?

If anyone has this working can you please post your bean deployment config files.

My setup is as follows
- Cygwin on Win NT 4.0 
- Orion 1.5.2
- SwiftMQ 2.1.3
- JDK 1.3.1

Thanks
Dave
-- 
David Shepherd
[EMAIL PROTECTED]





__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/





Error Deploying a COMPLEX ejb jar. Haven't seen that one.

2001-12-20 Thread Lachezar Dobrev

   I have got a complex ejb-jar with a SSLB and an CMP-EB, which references
itself.

   When deploying I receive:

Auto-deploying Result_Server.jar (No previous deployment found)...
Error compiling D:\Orion\applications\IntraPlan/Result_Server.jar: Internal
error, unset persistence type for parent: 0


   Anyone stumbled upon this?
   HLP!!!

   Lachezar





RE: IOException: Server protocol was not ORMI - in Orion 1.4.0

2001-12-20 Thread Dan Haley



The 
protocol changes with the different versions of Orion. I've had this error when 
I upgraded to Orion 1.5.2 but still used the old 1.4.5 client jars (orion.jar 
etc).

  -Original Message-From: Mike 
  [mailto:[EMAIL PROTECTED]]Sent: 20 December 2001 09:50To: 
  Orion-InterestSubject: IOException: Server protocol was not ORMI - 
  in Orion 1.4.0
  hallo All,
   
  I get an exception while tryng to access 
  EJB (deployed into Orion 1.4.0) from external (different JVM) console client 
  :
   
  javax.naming.NamingException: Error reading 
  application-client descriptor: Error communicating with server: 
  Lookup error: java.io.IOException: Server 
  protocol was not ORMI; nested exception is:
      
  java.io.IOException: Server protocol was not ORMI; nested exception 
  is:
      
  javax.naming.NamingException: Lookup error: java.io.IOException: Server 
  protocol was not ORMI; nested exception is:
      
  java.io.IOException: Server protocol was not ORMI
   
  But when I deployed the same app into Orion 1.5.2 
  all works well.
  Where is the mistake ?
   
  thanx,
   _This 
  message has been checked for all known viruses by 
MessageLabs.

_

Alison Associates

The information contained in this e-mail and any attached files is intended only for the use of the person(s) to whom it is addressed and may be privileged, confidential and exempt from disclosure under applicable law.  The views of the author may not necessarily reflect the views of the Company.  If you are not the intended recipient please do not copy or convey this message or any attached files to any other person but delete this message and any attached files and notify us of incorrect receipt via e-mail to [EMAIL PROTECTED] 



_
This message has been checked for all known viruses by MessageLabs.



Re: Mysql table create errors with ejbsamples

2001-12-20 Thread Morten Wilken

you need to use another schema definition: this example is for sqlserver

 

i saw that there is no predefined schema for mysql so you need to make one
yourself... should be easy if you look at the other definitions
hope this helps

morten wilken
- Original Message -
From: "John Hogan" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Wednesday, December 19, 2001 3:12 PM
Subject: Mysql table create errors with ejbsamples


> All,
> I've gone through the process of configuring Orion and the ejbsamples to
run with a mysql database. Things seem to be nearly correct. Orion connects
to the database ok, but dies trying to create tables. The problem seems to
be related to syntax or type mismatches between hypersonic db and mysql.
Some of the postings on this list seem to suggest that these mismatches can
be addressed by defining type mappings in mysql.xml. I've tried this without
success.
> I've included the error message, data-sources.xml and the mysql.xml I'm
using. If anyone's been through the exercies and can provide any useful
pointers, it would be much appreciated. TIA.
>
> John Hogan
>
> ERROR TEXT:
> ===
> [root@dalcassion orion]# java -classpath
/opt/orion/application-deployments/serverclasses/mm.mysql-2.0.8 -jar
orion.jar
> Auto-deploying ejbsamples (New server version detected)...
> Auto-deploying usermanager (No previous deployment found)...
> Auto-creating table: create table com_evermind_ejb_EJBUser (username
SET(255) not null primary key, password SET(255) null, description SET(255)
null, locale SET(5) null, certificateIssuerDN SET(255) null,
certificateSerial SET(100) null)
> Warning: Error creating table: Syntax error or access violation: You have
an error in your SQL syntax near '255) not null primary key, password
SET(255) null, description SET(255) null, lo' at line 1
>
> Auto-creating table: create table com_evermind_ejb_EJBUser_groups
(username SET(255) not null, value SET(255) not null, primary key (username,
value))
> Warning: Error creating table: Syntax error or access violation: You have
an error in your SQL syntax near '255) not null, value SET(255) not null,
primary key (username, value))' at line 1
> done.
> Auto-deploying product (No previous deployment found)...
> Auto-creating table: create table MyProduct (id BIGINT not null primary
key, name SET(255) null, description SET(255) null, price FLOAT null)
> Warning: Error creating table: Syntax error or access violation: You have
an error in your SQL syntax near '255) null, description SET(255) null,
price FLOAT null)' at line 1
> done.
> Auto-deploying cart (No previous deployment found)... done.
> Orion/1.4.8 initialized
> =
>
>
> data-sources.xml
> =
> 
> http://www.orionserver.com/dtds/data-sources.dtd";>
>
> 
> 
>  name="mysql"
> class="com.evermind.sql.DriverManagerDataSource"
> location="jdbc/mysql"
> pooled-location ="jdbc/mysqlPooled"
> xa-location="jdbc/xa/mysql"
> ejb-location="jdbc/mysql"
> url="jdbc:mysql:/opt/mysql/mysql/data/menagerie"
> connection-driver="org.gjt.mm.mysql.Driver"
> username="root"
> password="sPikeO1"
> inactivity-timeout="30"
> />
> 
> =
>
>
> database-schemas/mysql.xml
> =
> 
>  " http://www.orionserver.com/dtds/database-schemas.dtd";>
>
>  ="primary key">
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
> 
> 
>
>
>
>
> --
>
> ___
> Get your email from http://www.ireland.com
>
>
>





IOException: Server protocol was not ORMI - in Orion 1.4.0

2001-12-20 Thread Mike



hallo All,
 
I get an exception while tryng to access EJB 
(deployed into Orion 1.4.0) from external (different JVM) console client 
:
 
javax.naming.NamingException: Error reading 
application-client descriptor: Error communicating with server: 
Lookup error: java.io.IOException: Server 
protocol was not ORMI; nested exception is:
    
java.io.IOException: Server protocol was not ORMI; nested exception 
is:
    
javax.naming.NamingException: Lookup error: java.io.IOException: Server protocol 
was not ORMI; nested exception is:
    
java.io.IOException: Server protocol was not ORMI
 
But when I deployed the same app into Orion 1.5.2 
all works well.
Where is the mistake ?
 
thanx,
 


How to bind RMI object in the orion server ?

2001-12-20 Thread Gautier Koscielny

Hello,

Apart from binding ejb instances in the orion server, I would like to
bind RMI objects. I try this piece of code but it failed because the 
server can't find the
remote interface (simpleInterface) of the simpleImpl server :



try {
  simpleImpl obj = new simpleImpl();

  InitialContext ctx = null;

  //
  // context creation
  //
 
  Hashtable henv = new Hashtable();
  
henv.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.ApplicationClientInitialContextFactory");
  henv.put(Context.PROVIDER_URL,"ormi:///simple");  
  henv.put(Context.SECURITY_AUTHENTICATION,"simple");
  henv.put(Context.SECURITY_PRINCIPAL,);
  henv.put(Context.SECURITY_CREDENTIALS,);
  try{
ctx = new InitialContext(henv);
  } catch(Exception e){
System.err.println("Failure when trying to initialize CTX");
e.printStackTrace();
  }

  ctx.bind("simpleServer", obj);  
 
} catch (NamingException ne) {
  System.err.println("Failure when trying to bind the simple server");
  ne.printStackTrace();
} catch (Exception e) {
  System.out.println("simpleImpl err: " + e.getMessage());
  e.printStackTrace();
}

---

The following error is throwned :

Error binding to server: com.evermind.server.rmi.OrionRemoteException: 
Disconnected: Class Not Found: simpleInterface


I'm aware that when you deploy an ejb you specify in a descriptor the 
remote interface of the ejb but here we do not want
to do this, we only want to bind dynamically others kind of objects in 
the naming service.

Has anyone encoutered the same trouble ?

Gautier Koscielny

-- 
 Gautier Koscielny   .~.
 Voice: (+33/0) 320 164 055 IT-OMICS /V\
 Fax:   (+33/0) 320 164 001 885, Avenue Eugène Avinée   /( )\
 mailto:[EMAIL PROTECTED]   F-59120 Loos Lez Lille  ^^-^^  
 





Favourite logging facility survey...

2001-12-20 Thread Paolo Perego

Hi orion gurus, I'm taking a look on logging facilities provided by log4j
project and the upcoming Sun jdk1.4. I've, of course, to integrate one of
these facilities in my application deployed with orion. What logging
facilities do you use, if any of course, and which one dao you think is better
between log4j and jdk1.4?

I've got my own thoughts about that question but I want to know more
experienced developer's ideas.

Thank you
Paolo
-- 
$>cd /pub
$>more beer

(0>
//\  Perego Paolo <[EMAIL PROTECTED]> - www.sikurezza.org/angel
V_/_ 'It's seems the hardest life I've never known'
I'm Linux drow 2.4.16-4GB - SuSE Linux 7.3 (i386) powered.



msg17373/pgp0.pgp
Description: PGP signature