Re: JMS orion

2001-06-22 Thread Armin Michel

 I have a project to do which depends heavily on message driven beans.  It
 also needs to be as high performance  as possible, as we are expecting a
 lot of traffic.  I had planned on using the IBM JDK for this, but
 apparently it may have some problems with MDB.  The application needs only
 subscribe to a remote topic and process the messages.  Is this a problem? 
 What issues have been seen with orion and JMS?

All issues may be related to RH7.1/JDK combination. If you don't use RH7.1 
use may not have any problems at all.

Armin Michel




Re: big text in string as object over the network: very strange?

2001-06-22 Thread Tobias Streckel

I think the specification has declareted this but orion support the BLOB
under CMP.

See the database schema oracle.xml:

type-mapping type=java.io.Serializable name=blob /

this entry is a default!



-Ursprüngliche Nachricht-
Von: Simon Evans [EMAIL PROTECTED]
An: Orion-Interest [EMAIL PROTECTED]
Datum: Donnerstag, 21. Juni 2001 23:02
Betreff: RE: big text in string as object over the network: very strange?


CMP Entity beans do not support CLOB and BLOB fields...neither 1.1 or 2.0
EJB Specification. you will need to use a Bean Managed Entity Bean and use
the JDBC API with CLOB and BLOB. You save them and retrieve them as Streams
rather than objects.

-Original Message-
From: Metla, Suri [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 9:48 AM
To: Orion-Interest
Subject: RE: big text in string as object over the network: very
strange?


Are there any Data types in Java to access the Long and CLOB columns of the
Oracle Database? The first bottleneck comes with the JDBC driver to map the
Database columns of these types (BLOBS, CLOBS).

Regards,
Suri

-Original Message-
From: Tobias Streckel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 9:32 AM
To: Orion-Interest
Subject: Re: big text in string as object over the network: very strange?

Very strange

Okay, now I want to create a entity bean which have as attribute a
object(this object have a only StringBuffer() object).

The create method of the entity will be access from a session bean(in the
same apps). The client have access on the session bean.

If the session bean call the create method of the entity and the
StingBuffer
is small it will work.

If the StringBuffer() containts a String about 200 KB it throws the message

javax.ejb.CreateException: Error creating EntityBean: E/A-Exception:
Connection
reset by peer: socket write error

If the String is bigger than 600 kb I will get the Message:

com.evermind.server.rmi.RMIConnectionException
com.evermind.server.rmi.OrionRemoteException: Disconnected: Disconnected


WHAT HAPPENS´???
I HAVE NO ANSWER HOW I CAN GET IT TO WORK!

THANKS!

Tobi

-Ursprüngliche Nachricht-
Von: Tobias Streckel [EMAIL PROTECTED]
An: [EMAIL PROTECTED] [EMAIL PROTECTED]
Datum: Donnerstag, 21. Juni 2001 13:11
Betreff: Re: big text in string as object over the network:


Hy,

I want to save a file. In the database I have used a BLOB datatyp for the
field. What kind of variable is used in the Entity Bean to save the File.

Is it a java.io.File object?

Thanks a lot

by

Tobi








Re: Autocopy of deployment files

2001-06-22 Thread Juan Fuentes

OK, Jeff. It works

Thanks

Jeff Hubbach wrote:
 
 Juan,
 
 Prior to 1.4.8 (I'm pretty sure on this, but it might be 1.5.2), the
 orion-ejb-jar.xml files are deployed from an orion subdirectory of the
 jar file. ie:
 
 ejb-jar.xml
  - META-INF
   - ejb-jar.xml
  - orion
   - orion-ejb-jar.xml
  - your package heirarchy
   - your class files
 
 Jeff.
 
 --
 Jeff Hubbach
 Internet Developer
 New Media Designs, Inc.
 www.nmd.com

-- 
··
Juan Fuentes Nieto   Essi Projects
[EMAIL PROTECTED]t +34 977 221 182
http://www.essiprojects.com  f +34 977 230 170
··




RE: Problems specifying persistence directory in 1.5.2

2001-06-22 Thread Thomas Hertz


Hi,

Did you put that into the bugzilla database?
If not, please do so.

This seems to be really a bug which prevents you from starting 
multiple orion server from the  same machine when you are using 
the same binaries directory.

Greetings from Munich,

 /Thomas


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of [EMAIL PROTECTED]
Sent: Thursday, June 21, 2001 7:31 PM
To: Orion-Interest
Subject: Problems specifying persistence directory in 1.5.2



In moving from 1.4.5 to 1.5.2, we are no longer able to successfully
specify directory location for
application state persistence (see error below). Version 1.5.2 looks for
a directory named persistence  in
the application directory, ignoring any path attribute value, relative
or absolute (see below).

We tried this on both linux and 2000 with identical results.

Any input/confirmation of this problem would be most appreciated.


Orion Error:
Auto-deploying dio (New server version detected)...
Fatal Error: Transaction log file
(/D:/development/dio/orion/persistence/transaction.state) 
did not exist and was not possible to create, the most common reason for
this is an invalid 
path or Orion lacking security to write to that path: 
/D:/development/dio/orion/persistence/transaction.state 
(The system cannot find the path specified)



orion-application
 
 persistence path=./mypersistence/
 
/orion-application


Sam 





AW: Orion on Solaris 8

2001-06-22 Thread Joerg Weishaupt

Hi,

the problems are solved in the meantime, thanks to Johan and
Abhilash ;-)
Had to use bash instead of sh and set an environment variable
LANG=LATIN-2

I learned about the switch -Xconcurrentio on a recent Java
Tuning Workshop at SUN. This switch (SUN Solaris only) helps
increasing performance for applications which use a lot of
threads. Don't forget to set your LD_LIBRARY_PATH to
/usr/lib/libthread.so

You can find more tips on this page:
http://java.sun.com/docs/hotspot/PerformanceFAQ.html




-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im Auftrag von Ismael Blesa
Part
Gesendet: Mittwoch, 20. Juni 2001 17:26
An: Orion-Interest
Betreff: Re: Orion on Solaris 8


We have tried and it works fine this way.

What -Xconcurrentio means ?


Joerg Weishaupt wrote:

 Hi,

 I'm having two problems with Orion (1.4.5) on Solaris 8 with JDK 1.3.1

 a) I'm unable to set the process into the background. As soon as I log
off from the SSH session the Orion process gets killed.
Startup is done by calling:
nohup java -server -jar -Xconcurrentio -Xms128m -Xmx384m orion.jar -out
$ORION_SERVER/log/server-out.log -err $ORION_SERVER/log/server-err.log


 b) All German specific vocales (Umlaute) are shown as a ? only.

 Maybe someone has some ideas ?

 TIA
 Joerg Weishaupt






Need original IP information with Loadbalancing

2001-06-22 Thread Darren Mosley

ok, after reading the lists it is becoming apparent that the Orion
loadbalancer is not the best thing to be using.  
Mainly because i need the clients ip address for a form of
authentication, and the loadbalancer.jar wont give it to my orions back
ends.

Therefore, can anyone suggest a resaonably priced hardware/software load
balancer which i could use for my Orion clustering.
Any reviews anywhere of load balancers?

I would prefer suggestions/something which is straight forward rather
than hacking things like Apache.

Cheers

Darren




Features of CMP

2001-06-22 Thread Stefan Marx

Hi,

Is there any List available which features ar implemented in Orion 1.5.2.

I have some special interest in the implementation of the EJB QL (Chapter 11
in the EJB2.0 Spec).

Thanks Stefan





Re: Classpath and library path ERROR ??? -- PLEASE again ???

2001-06-22 Thread Eddie

Helllu ??

What do you need to do to get an answer from this newsgroup when you are
really in trouble ?? :(

I still haven't be able to include a jar file in the orion-application.xml,
that can be used by my application. It is able to use my jar when I put it
in the $ORION_HOME/lib dir, but that's not what I want, as every application
needs his own copy.

I like to hear from Linux users how they did this, as I noticed that all the
people that talked about it in the newsgroup, where all Windoze hackers. (I
use: redhat 7.0 with sun jdk and orion 1.5.1)

PLEASE some help, see below for more info ??

Eddie :(



- Original Message -
From: Eddie
To: Orion-Interest
Sent: Tuesday, June 19, 2001 11:20 AM
Subject: Re: Classpath and library path ERROR ??? -- PLEASE again ???


Thanks,

Indeed the library tag wasn't on the correct place in the
orion-application.xml.
However, after placing it in the correct place it still doesn't work:

.
 web-module id=web path=web /
 persistence path=persistence /

library path=./lib /
library path=./lib/log4j-core.jar /
library path=./lib/log4j.jar /

 principals path=principals.xml /
log
  file path=application.log /
 /log
 namespace-access

---

I also tried the orion-web.xml:


orion-web-app
 deployment-version=1.5.1
 development=true
 jsp-cache-directory=./persistence
 temporary-directory=./temp
 servlet-webdir=/servlets/

classpath path=./lib/log4j-core.jar /
 ejb-ref-mapping name=ejb/UserManagerHome /
...


But didn't had much luck, which didn't suprise me, as I am using the lib
files in my ejb's.
I am sure that the jar files can be find by Orion, as it complaints when it
can't find the files.

But are you using Linux ?? I have a friend that has exatly the same problems
on his linux machine!! .-- :(
Shoudn't I put it all in a ear file ?? and if so, where ??

Hope you have some ideas as I don't have them anymore. Neither do I know how
to debug this, as Orion doesn't show that it loads the jar file...or where
it looks..
Hmmm... frustrating..
Eddie
- Original Message -
From: elephantwalker
To: Orion-Interest
Sent: Monday, June 18, 2001 6:20 PM
Subject: RE: Classpath and library path ERROR ??? -- PLEASE again ???


The dtd for orion-application.xml says about library:

!-- A relative/absolute path/URL to a directory or a .jar/.zip to add as a
library-path for this server. Directories are scanned for jars/zips to
include at startup. --
!ELEMENT library (#PCDATA)
!ATTLIST library path CDATA #IMPLIED


The main orion-application element is:

!ELEMENT orion-application
(ejb-module*,web-module*,client-module*,security-role-mapping*,
persistence?, library*, principals?, mail-session*, user-manager?, log?,
data-sources?, namespace-access?)


Note the order. If library is not in the right order (after persistence and
before principals), this won't work.

But this is application, which is for the overall server. You might try the
orion-web.xml for specific support of  a codebase of a war file:

!-- Specifies a codebase where classes used by this application
(servlets/beans, etc) can be found. --
!ELEMENT classpath (#PCDATA)
!ATTLIST classpath path CDATA #IMPLIED


This should be the first element in your orion-web-app element.

regards,

the elephantwalker








-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Eddie
Sent: Monday, June 18, 2001 8:15 AM
To: Orion-Interest
Subject: Re: Classpath and library path ERROR ??? -- PLEASE again ???


Hellu,

I am have still having problems with the problem below. Can someone PLEASE
help me with this ???

Eddie


- Original Message -
From: Eddie
To: Orion-Interest
Sent: Friday, June 15, 2001 1:08 PM
Subject: Classpath and library path ERROR ???


OK,

I want to include a jar file in my application, so I put it in
$APPLICATION_ROOT/lib
and in the orion-application.jar I put (I first let Orion generate the
orion-application.xml file):
-
library path=./lib /
library path=./lib/log4j-core.jar /
library path=./lib/log4j.jar /
---

However My application can't find the jar files: NoClassDefFoundError.
Can someone please tell me how to solve this ???
I notice that Orion is reading the tags, as it complains when the names of
the directory or jar file is incorrect.

BTW: my application needs his own jar file (so putting it in the orion lib
dir is no alternative).

I have been struggling with this problem in the past as well and didn't
solve it.
I now have Orion 1.5.1 with redHat 7.0 and still have the same problem.
I searched the mailinglist and tried a lot of possible solutions, but had
bad luck.

I like to hear how people solved this running on Linux, without having there
application in an EAR, as I noticed that the people that have it working are
running Windowz or/and an EAR file.

I am getting frustrated by this problem, so please come up with a solution??

What I tried, among 

Re: Features of CMP

2001-06-22 Thread Ray Harrison

I am reasonably certain that EJB QL is NOT implemented in 1.5.2
--- Stefan Marx [EMAIL PROTECTED] wrote:
 Hi,
 
 Is there any List available which features ar implemented in Orion 1.5.2.
 
 I have some special interest in the implementation of the EJB QL (Chapter 11
 in the EJB2.0 Spec).
 
 Thanks Stefan
 
 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/




Re: Orion handling only servlet/jsp requests

2001-06-22 Thread kevin1

Well, kinda.
I'm not using apache... I'm using Zeus.  Orion is not the first server in
the chain -- it is being added on to an existing system.  The reverse proxy info
on orionsupport.com is good, but it is kind of Apache specific.  




Re: Aaarrrghhh!! CSS and Servlet again

2001-06-22 Thread Robert Koberg

Hi John,

I see why you are doing that but I don't agree it is a good way to go, at
least for me. It looks like you are a corporate developer who builds for an
intranet that would benefit from the context paths. But, for me (internet
development - each site unique), it works out better for the whole team when
the dev (and qa) server is setup with virtual hosts (? I am not a sys admin,
so...):
Dev server
dev-site1.workingdomain.com
dev-site2.workingdomain.com
QA server
qa-site1.workingdomain.com
qa-site2.workingdomain.com
Live server(s)
www.site1.com
www.site2.com

This way everyone is working (and qa'ing) out of the same environment as it
will be when live.

As for my personal development, I do work on local machines at home (not the
dev box) whenever possible. We keep everything in sync with CVS.  I also
have the 5 static IPs and keep a machine/static IP for each project. It is
easier for me (and everyone else on the team) to work without the context
path. I do see the context path as a problem in these containers especially
when working on large projects/groups with a variety of skills and needs. I
feel it is better to keep the same environment through the site promotion
process.

of course there are other ways to do it... Thanks for the discussion, Rob



- Original Message -
From: [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Thursday, June 21, 2001 3:34 PM
Subject: Re: Aaarrrghhh!! CSS and Servlet again




 In a typical web application server, there can be applications deployed to
 several contexts within the container.  Each context is differentiated
using a
 URL prefix, e.g.:

 http://myhost/webstore
 http://myhost/benefits-admin

 Webstore and benefits-admin represent different Servlet contexts which are
 different applications served out of the same container.  In most cases,
these
 applications won't share resources, so the css files for the webstore
 application will be somewhere below the document root for webstore, and
the css
 files for benefits-admin will be under it's document root, e.g.:

 /deploy/webapps/webstore/styles/main.css
 /deploy/webapps/benefits-admin/styles/main.css

 When you refer to the main.css file for the webstore app, it's URI is
 http://myhost/webstore/styles/main.css, or shortened to
 /webstore/styles/main.css.  For benefits-admin, it's
 /benefits-admin/styles/main.css.

 The prefix part (/webstore, or /benefits-admin) is the context path and
it is
 defined in your application deployment descriptor.  This can be changed
during
 deployment, so you don't want it hard coded in your HTML, JSP, or
Servlets.

 It is possible to use relative paths to get to the URI, for example a
servlet
 whose URL is /webstore/servlet/MyServlet can refer to the css file as
 ../styles/main.css, however that means that if you map a different URL to
your
 servlet, the relative URL won't work anymore.  Also, take an example of a
JSP
 found at /webstore/cart.jsp.  The relative URL of styles/main.css would
work,
 but what happens if the cart.jsp is redirected to from a servlet using a
 RequestDispatcher?  The browser thinks the URL is
 /webstore/servlet/DirectorServlet, so the relative URL breaks!

 Explicity referring to the context path and appending the absolute path to
the
 resource within the deployed web application ensures that the reference
will
 always work, so long as the resource is in the location specified by the
 absolute path.

 Obviously this is all irrelevant if you only have one context in your
 application server and it is deployed to the web site root.

 John H.




 Robert Koberg [EMAIL PROTECTED]@orionserver.com on 06/21/2001 01:28:51 PM

 Please respond to Orion-Interest [EMAIL PROTECTED]

 Sent by:  [EMAIL PROTECTED]


 To:   Orion-Interest [EMAIL PROTECTED]
 cc:

 Subject:  Re: Aaarrrghhh!! CSS and Servlet again


  To be safe, you really ought to use request.getContextPath() to prefix
the
  absolute URL of your css file relative to your document root.

 why (just curious)?

 what is different if just use:

 link rel=stylesheet type=text/css href=/blah.css title=blah

 The above is more generic (you don't need to run JSP for every file)




 - Original Message -
 From: [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Sent: Thursday, June 21, 2001 7:29 AM
 Subject: RE: Aaarrrghhh!! CSS and Servlet again


 
 
  To be safe, you really ought to use request.getContextPath() to prefix
the
  absolute URL of your css file relative to your document root.  When you
 deploy
  to a context like:
 
  http://myhost:myport/mycontext
 
  All of your paths are prefixed by /mycontext.  But if you change your
 deployment
  descriptor, you might change mycontext to something else.  You don't
 want that
  hard-coded into your servlets.  Also, the suggestion by elephantwalker
is
 true -
  you can use relative paths (/mycontext/servlet/../blah.css will get you
to
  /mycontext/blah.css) but if you decide to put your servlet in a package,
 or map
  a 

RE: Classpath and library path ERROR ??? -- PLEASE again ???

2001-06-22 Thread Lou Farho

I am not sure this will help but here it goes.
My problem was were to put classes shared by my web app and my ejbs.  I
wanted to jar them up and put them some where. I asked around and got
various responses.  The response I found most useful was to put the classes
in the ejb.jar file.  So, if you have a jar file with classes you want to
use, you need to extract them some where.  Then, when you build your ejb jar
include them.  The reason to do this is that Orion's ejb classloader will
make these classes visible to your web app.  I was also told that WebLogic's
classloader behaves the same way.  This seems like a clumsy solution but
when you want to just distribute an ear file, this looks pretty good.  And
it works for me.

Good Luck!





Re: Classpath and library path ERROR ??? -- PLEASE again ???

2001-06-22 Thread Ye He

i speicify my CLASSPATH thru applications.xml's
library path=.. / tag, using absolute path.  i'm on
SuSE 7.1 (kernel 2.4.0) with IBM jdk 1.3.0

--- Eddie [EMAIL PROTECTED] wrote:
 Helllu ??
 
 What do you need to do to get an answer from this newsgroup
 when you are
 really in trouble ?? :(
 
 I still haven't be able to include a jar file in the
 orion-application.xml,
 that can be used by my application. It is able to use my jar
 when I put it
 in the $ORION_HOME/lib dir, but that's not what I want, as
 every application
 needs his own copy.
 
 I like to hear from Linux users how they did this, as I
 noticed that all the
 people that talked about it in the newsgroup, where all
 Windoze hackers. (I
 use: redhat 7.0 with sun jdk and orion 1.5.1)
 
 PLEASE some help, see below for more info ??
 
 Eddie :(
 
 
 
 - Original Message -
 From: Eddie
 To: Orion-Interest
 Sent: Tuesday, June 19, 2001 11:20 AM
 Subject: Re: Classpath and library path ERROR ??? -- PLEASE
 again ???
 
 
 Thanks,
 
 Indeed the library tag wasn't on the correct place in the
 orion-application.xml.
 However, after placing it in the correct place it still
 doesn't work:
 
 .
  web-module id=web path=web /
  persistence path=persistence /
 
 library path=./lib /
 library path=./lib/log4j-core.jar /
 library path=./lib/log4j.jar /
 
  principals path=principals.xml /
 log
   file path=application.log /
  /log
  namespace-access
 
 ---
 
 I also tried the orion-web.xml:
 
 
 orion-web-app
  deployment-version=1.5.1
  development=true
  jsp-cache-directory=./persistence
  temporary-directory=./temp
  servlet-webdir=/servlets/
 
 classpath path=./lib/log4j-core.jar /
  ejb-ref-mapping name=ejb/UserManagerHome /
 ...
 
 
 But didn't had much luck, which didn't suprise me, as I am
 using the lib
 files in my ejb's.
 I am sure that the jar files can be find by Orion, as it
 complaints when it
 can't find the files.
 
 But are you using Linux ?? I have a friend that has exatly the
 same problems
 on his linux machine!! .-- :(
 Shoudn't I put it all in a ear file ?? and if so, where ??
 
 Hope you have some ideas as I don't have them anymore. Neither
 do I know how
 to debug this, as Orion doesn't show that it loads the jar
 file...or where
 it looks..
 Hmmm... frustrating..
 Eddie
 - Original Message -
 From: elephantwalker
 To: Orion-Interest
 Sent: Monday, June 18, 2001 6:20 PM
 Subject: RE: Classpath and library path ERROR ??? -- PLEASE
 again ???
 
 
 The dtd for orion-application.xml says about library:
 
 !-- A relative/absolute path/URL to a directory or a
 .jar/.zip to add as a
 library-path for this server. Directories are scanned for
 jars/zips to
 include at startup. --
 !ELEMENT library (#PCDATA)
 !ATTLIST library path CDATA #IMPLIED
 
 
 The main orion-application element is:
 
 !ELEMENT orion-application

(ejb-module*,web-module*,client-module*,security-role-mapping*,
 persistence?, library*, principals?, mail-session*,
 user-manager?, log?,
 data-sources?, namespace-access?)
 
 
 Note the order. If library is not in the right order (after
 persistence and
 before principals), this won't work.
 
 But this is application, which is for the overall server. You
 might try the
 orion-web.xml for specific support of  a codebase of a war
 file:
 
 !-- Specifies a codebase where classes used by this
 application
 (servlets/beans, etc) can be found. --
 !ELEMENT classpath (#PCDATA)
 !ATTLIST classpath path CDATA #IMPLIED
 
 
 This should be the first element in your orion-web-app
 element.
 
 regards,
 
 the elephantwalker
 
 
 
 
 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of
 Eddie
 Sent: Monday, June 18, 2001 8:15 AM
 To: Orion-Interest
 Subject: Re: Classpath and library path ERROR ??? -- PLEASE
 again ???
 
 
 Hellu,
 
 I am have still having problems with the problem below. Can
 someone PLEASE
 help me with this ???
 
 Eddie
 
 
 - Original Message -
 From: Eddie
 To: Orion-Interest
 Sent: Friday, June 15, 2001 1:08 PM
 Subject: Classpath and library path ERROR ???
 
 
 OK,
 
 I want to include a jar file in my application, so I put it in
 $APPLICATION_ROOT/lib
 and in the orion-application.jar I put (I first let Orion
 generate the
 orion-application.xml file):
 -
 library path=./lib /
 library path=./lib/log4j-core.jar /
 library path=./lib/log4j.jar /
 ---
 
 However My application can't find the jar files:
 NoClassDefFoundError.
 Can someone please tell me how to solve this ???
 I notice that Orion is reading the tags, as it complains when
 the names of
 the directory or jar file is incorrect.
 
 BTW: my application needs his own jar file (so putting it in
 the orion lib
 dir is no alternative).
 
 I have been struggling with this problem in the past as well
 and didn't
 
=== message truncated ===


__

RE: big text in string as object over the network:

2001-06-22 Thread elephantwalker

AFAIK, the Oracle 1.2 jdbc driver has problems with clobs and blobs. They
don't work.  The oci drivers don't seem to have this issue, but that doesn't
help you if you are using linux.

You should try a simple servlet w/jdbc code  Oracle database. Skip the
ejb's in this step just to see if it is a driver problem. If this doens't
work, you know what your problem is.

Binary data is serialized with the Long Raw datatype as noted in the
oracle-schema.xml. So if you have a cmp ejb, Long Raw would be used. You
might try that in your datatype for the simple servlet test.

regards,

the elephantwalker


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Tobias
Streckel
Sent: Thursday, June 21, 2001 4:07 AM
To: Orion-Interest
Subject: big text in string as object over the network:


Hello,

if I want to save a String(he is in a object which will save in a Oracle DB
as a BLOB) I get by huge texts a Error:

com.evermind.server.rmi.RMIConnectionException
com.evermind.server.rmi.OrionRemoteException: Disconnected: Disconnected

Have anyone a answer why it doesn't work?

Thanks

Tobi







having prolems with CMP, PostgreSQL, and Serializable

2001-06-22 Thread stew

I am trying to port an application that was running on JBOSS to
orion.  All my Entity beans are using CMP.  Whenever I try to create a
bean that has CMP field of type java.io.Serialazable i get the
following exception:

javax.ejb.CreateException: Error creating EntityBean: InputStream as
parameter not supported

here is the mapping from orion/config/database-schemas that I am
using:

type-mapping type=java.io.Serializable name=oid /

I am using postgres 7.1 and orion 1.5.2

I would appriciate any advice anyone had for me.

thanks

mike o'connor






RE: Classpath and library path ERROR ??? -- PLEASE again ???

2001-06-22 Thread elephantwalker

this tag works for me:

library path=lib /

then, everything in the lib directory is picked up, if it is a class or jar.

The key bit is from where?

if your ear build structure looks like this:

/META-INF
/mywar.war
/myejbs.jar
/lib
/lib/com/somepackage/some.class

The lib directory referred to in the library ... / tag is the same as the
lib directory in the ear. You don't have to worry that people can navigate
to this directory, because there is no web-app called lib in your files.
We used this to put our own usermanager code in, and it worked fine. If you
had a jar file, I'm not sure that you would have to refer to it in the
libary tag. I think the key bit is WHERE you put the lib directory in the
ear file.

I hope this helps.

Regards,

the elephantwalker

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Eddie
Sent: Friday, June 22, 2001 5:17 AM
To: Orion-Interest
Subject: Re: Classpath and library path ERROR ??? -- PLEASE again ???


Helllu ??

What do you need to do to get an answer from this newsgroup when you are
really in trouble ?? :(

I still haven't be able to include a jar file in the orion-application.xml,
that can be used by my application. It is able to use my jar when I put it
in the $ORION_HOME/lib dir, but that's not what I want, as every application
needs his own copy.

I like to hear from Linux users how they did this, as I noticed that all the
people that talked about it in the newsgroup, where all Windoze hackers. (I
use: redhat 7.0 with sun jdk and orion 1.5.1)

PLEASE some help, see below for more info ??

Eddie :(



- Original Message -
From: Eddie
To: Orion-Interest
Sent: Tuesday, June 19, 2001 11:20 AM
Subject: Re: Classpath and library path ERROR ??? -- PLEASE again ???


Thanks,

Indeed the library tag wasn't on the correct place in the
orion-application.xml.
However, after placing it in the correct place it still doesn't work:

.
 web-module id=web path=web /
 persistence path=persistence /

library path=./lib /
library path=./lib/log4j-core.jar /
library path=./lib/log4j.jar /

 principals path=principals.xml /
log
  file path=application.log /
 /log
 namespace-access

---

I also tried the orion-web.xml:


orion-web-app
 deployment-version=1.5.1
 development=true
 jsp-cache-directory=./persistence
 temporary-directory=./temp
 servlet-webdir=/servlets/

classpath path=./lib/log4j-core.jar /
 ejb-ref-mapping name=ejb/UserManagerHome /
...


But didn't had much luck, which didn't suprise me, as I am using the lib
files in my ejb's.
I am sure that the jar files can be find by Orion, as it complaints when it
can't find the files.

But are you using Linux ?? I have a friend that has exatly the same problems
on his linux machine!! .-- :(
Shoudn't I put it all in a ear file ?? and if so, where ??

Hope you have some ideas as I don't have them anymore. Neither do I know how
to debug this, as Orion doesn't show that it loads the jar file...or where
it looks..
Hmmm... frustrating..
Eddie
- Original Message -
From: elephantwalker
To: Orion-Interest
Sent: Monday, June 18, 2001 6:20 PM
Subject: RE: Classpath and library path ERROR ??? -- PLEASE again ???


The dtd for orion-application.xml says about library:

!-- A relative/absolute path/URL to a directory or a .jar/.zip to add as a
library-path for this server. Directories are scanned for jars/zips to
include at startup. --
!ELEMENT library (#PCDATA)
!ATTLIST library path CDATA #IMPLIED


The main orion-application element is:

!ELEMENT orion-application
(ejb-module*,web-module*,client-module*,security-role-mapping*,
persistence?, library*, principals?, mail-session*, user-manager?, log?,
data-sources?, namespace-access?)


Note the order. If library is not in the right order (after persistence and
before principals), this won't work.

But this is application, which is for the overall server. You might try the
orion-web.xml for specific support of  a codebase of a war file:

!-- Specifies a codebase where classes used by this application
(servlets/beans, etc) can be found. --
!ELEMENT classpath (#PCDATA)
!ATTLIST classpath path CDATA #IMPLIED


This should be the first element in your orion-web-app element.

regards,

the elephantwalker








-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Eddie
Sent: Monday, June 18, 2001 8:15 AM
To: Orion-Interest
Subject: Re: Classpath and library path ERROR ??? -- PLEASE again ???


Hellu,

I am have still having problems with the problem below. Can someone PLEASE
help me with this ???

Eddie


- Original Message -
From: Eddie
To: Orion-Interest
Sent: Friday, June 15, 2001 1:08 PM
Subject: Classpath and library path ERROR ???


OK,

I want to include a jar file in my application, so I put it in
$APPLICATION_ROOT/lib
and in the orion-application.jar I put (I first let Orion generate the
orion-application.xml 

Re: Classpath and library path ERROR ??? -- PLEASE again ???

2001-06-22 Thread Pablo Krause


Which orion-application.xml are you editing?
The one in applications/yourapplication/META-INF or the one in 
application-deployments/yourapplication?

I was having the same problem.  I was modifying the 
applications/myapplication/META-INF/orion-application.xml but it wasn't 
copied to the application-deployments directory automaticaly, so I erased 
everything in the application-deployments directory to force Orion to 
redoploy the whole app.  I also had to copy the 
application-deployments/myapplication/principals.xml to 
applications/myapplication/META-INF before deleting the mentioned directory 
or Orion would complain.
After this, it worked.  The problem is that it is Orion specific.  I haven't 
found a J2EE standard way to share classes between modules.

I tested this only in Windows though.

Good luck.


From: Eddie [EMAIL PROTECTED]
Reply-To: Orion-Interest [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Subject: Re: Classpath and library path ERROR ??? -- PLEASE again ???
Date: Fri, 22 Jun 2001 14:17:16 +0200

Helllu ??

What do you need to do to get an answer from this newsgroup when you are
really in trouble ?? :(

I still haven't be able to include a jar file in the orion-application.xml,
that can be used by my application. It is able to use my jar when I put it
in the $ORION_HOME/lib dir, but that's not what I want, as every 
application
needs his own copy.

I like to hear from Linux users how they did this, as I noticed that all 
the
people that talked about it in the newsgroup, where all Windoze hackers. (I
use: redhat 7.0 with sun jdk and orion 1.5.1)

PLEASE some help, see below for more info ??

Eddie :(



- Original Message -
From: Eddie
To: Orion-Interest
Sent: Tuesday, June 19, 2001 11:20 AM
Subject: Re: Classpath and library path ERROR ??? -- PLEASE again ???


Thanks,

Indeed the library tag wasn't on the correct place in the
orion-application.xml.
However, after placing it in the correct place it still doesn't work:

.
  web-module id=web path=web /
  persistence path=persistence /

 library path=./lib /
 library path=./lib/log4j-core.jar /
 library path=./lib/log4j.jar /

  principals path=principals.xml /
 log
   file path=application.log /
  /log
  namespace-access

---

I also tried the orion-web.xml:


orion-web-app
  deployment-version=1.5.1
  development=true
  jsp-cache-directory=./persistence
  temporary-directory=./temp
  servlet-webdir=/servlets/
 
 classpath path=./lib/log4j-core.jar /
  ejb-ref-mapping name=ejb/UserManagerHome /
...


But didn't had much luck, which didn't suprise me, as I am using the lib
files in my ejb's.
I am sure that the jar files can be find by Orion, as it complaints when it
can't find the files.

But are you using Linux ?? I have a friend that has exatly the same 
problems
on his linux machine!! .-- :(
Shoudn't I put it all in a ear file ?? and if so, where ??

Hope you have some ideas as I don't have them anymore. Neither do I know 
how
to debug this, as Orion doesn't show that it loads the jar file...or where
it looks..
Hmmm... frustrating..
Eddie
- Original Message -
From: elephantwalker
To: Orion-Interest
Sent: Monday, June 18, 2001 6:20 PM
Subject: RE: Classpath and library path ERROR ??? -- PLEASE again ???


The dtd for orion-application.xml says about library:

!-- A relative/absolute path/URL to a directory or a .jar/.zip to add as a
library-path for this server. Directories are scanned for jars/zips to
include at startup. --
!ELEMENT library (#PCDATA)
!ATTLIST library path CDATA #IMPLIED
 

The main orion-application element is:

!ELEMENT orion-application
(ejb-module*,web-module*,client-module*,security-role-mapping*,
persistence?, library*, principals?, mail-session*, user-manager?, log?,
data-sources?, namespace-access?)


Note the order. If library is not in the right order (after persistence and
before principals), this won't work.

But this is application, which is for the overall server. You might try the
orion-web.xml for specific support of  a codebase of a war file:

!-- Specifies a codebase where classes used by this application
(servlets/beans, etc) can be found. --
!ELEMENT classpath (#PCDATA)
!ATTLIST classpath path CDATA #IMPLIED
 

This should be the first element in your orion-web-app element.

regards,

the elephantwalker








-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Eddie
Sent: Monday, June 18, 2001 8:15 AM
To: Orion-Interest
Subject: Re: Classpath and library path ERROR ??? -- PLEASE again ???


Hellu,

I am have still having problems with the problem below. Can someone PLEASE
help me with this ???

Eddie


- Original Message -
From: Eddie
To: Orion-Interest
Sent: Friday, June 15, 2001 1:08 PM
Subject: Classpath and library path ERROR ???


OK,

I want to include a jar file in my application, so I put it in
$APPLICATION_ROOT/lib
and in the 

Re: having prolems with CMP, PostgreSQL, and Serializable

2001-06-22 Thread Phillip Ross

Your problem is stemming from the fact that the Postgresql JDBC driver wants
auto commit flag set to false before it can use setBinaryStream() method which
is used to store the stream.  Orion's entity bean wrapper seems to leave the
flag alone and not set it to false explicitly.  So, basicly, that's what causes
it... but the proper solution to workaround or fix it is still something I'm
playing around with.

- Phillip


--- [EMAIL PROTECTED] wrote:
 I am trying to port an application that was running on JBOSS to
 orion.  All my Entity beans are using CMP.  Whenever I try to create a
 bean that has CMP field of type java.io.Serialazable i get the
 following exception:
 
 javax.ejb.CreateException: Error creating EntityBean: InputStream as
 parameter not supported
 
 here is the mapping from orion/config/database-schemas that I am
 using:
 
 type-mapping type=java.io.Serializable name=oid /
 
 I am using postgres 7.1 and orion 1.5.2
 
 I would appriciate any advice anyone had for me.
 
 thanks
 
 mike o'connor
 
 
 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/




Problem connecting to Ms Sql Server 2000

2001-06-22 Thread Sergei Batiuk

Hey people,

I am having trouble connecting to MS SQL 2000 from my entity bean. I have an
ODBC data source set up for the database, and connect to it using
sun.jdbc.odbc.JdbcOdbc driver. I get the following:
java.rmi.RemoteException: java.sql.SQLException: [Microsoft][ODBC SQL Server
Driver]Connection is busy with results for another hstmt
at
Manager_StatelessSessionBeanWrapper0.getNewsItemsCount(Manager_StatelessSess
ionBeanWrapper0.java:209)
at /n/news-all.jsp._jspService(/n/news-all.jsp.java:78) (JSP page line 27)
at com.orionserver.http.OrionHttpJspPage.service(JAX)
at com.evermind.server.http.HttpApplication.xj(JAX)
at com.evermind.server.http.JSPServlet.service(JAX)
at com.evermind.server.http.d3.sw(JAX)
at com.evermind.server.http.d3.include(JAX)
at com.evermind.server.http.EvermindPageContext.include(JAX)
at /n/index.jsp._jspService(/n/index.jsp.java:182)
at com.orionserver.http.OrionHttpJspPage.service(JAX)
at com.evermind.server.http.HttpApplication.xj(JAX)
at com.evermind.server.http.JSPServlet.service(JAX)
at com.evermind.server.http.d3.sw(JAX)
at com.evermind.server.http.d3.su(JAX)
at com.evermind.server.http.ef.s1(JAX)
at com.evermind.server.http.ef.do(JAX)
at com.evermind.util.f.run(JAX)

What is going on?
Best regards,
Sergei.






Re: Aaarrrghhh!! CSS and Servlet again

2001-06-22 Thread john_haasbeek



The thing is, the specification you are working to defines the context path as a
deployment decision.  It is simply coincedence that the context path in all of
your deployments is the same (root).  Even in your situation, you should prefix
ANY hard coded URLs with getContextPath, because that protects you.  It is not a
thing that ever fails, it will always work, and it will always protect you from
different deployment issues.  What happens it your www.site1.com decides to
deploy the application as www.site1.com/app1...?  The context path is set in the
deployment descriptor, not in the code.  You really should make your code
independent of the deployment descriptor even if it just happens to be that your
current deployment descriptors match your code.

John H.




Robert Koberg [EMAIL PROTECTED]@orionserver.com on 06/22/2001 10:21:15 AM

Please respond to Orion-Interest [EMAIL PROTECTED]

Sent by:  [EMAIL PROTECTED]


To:   Orion-Interest [EMAIL PROTECTED]
cc:

Subject:  Re: Aaarrrghhh!! CSS and Servlet again


Hi John,

I see why you are doing that but I don't agree it is a good way to go, at
least for me. It looks like you are a corporate developer who builds for an
intranet that would benefit from the context paths. But, for me (internet
development - each site unique), it works out better for the whole team when
the dev (and qa) server is setup with virtual hosts (? I am not a sys admin,
so...):
Dev server
dev-site1.workingdomain.com
dev-site2.workingdomain.com
QA server
qa-site1.workingdomain.com
qa-site2.workingdomain.com
Live server(s)
www.site1.com
www.site2.com

This way everyone is working (and qa'ing) out of the same environment as it
will be when live.

As for my personal development, I do work on local machines at home (not the
dev box) whenever possible. We keep everything in sync with CVS.  I also
have the 5 static IPs and keep a machine/static IP for each project. It is
easier for me (and everyone else on the team) to work without the context
path. I do see the context path as a problem in these containers especially
when working on large projects/groups with a variety of skills and needs. I
feel it is better to keep the same environment through the site promotion
process.

of course there are other ways to do it... Thanks for the discussion, Rob



- Original Message -
From: [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Thursday, June 21, 2001 3:34 PM
Subject: Re: Aaarrrghhh!! CSS and Servlet again




 In a typical web application server, there can be applications deployed to
 several contexts within the container.  Each context is differentiated
using a
 URL prefix, e.g.:

 http://myhost/webstore
 http://myhost/benefits-admin

 Webstore and benefits-admin represent different Servlet contexts which are
 different applications served out of the same container.  In most cases,
these
 applications won't share resources, so the css files for the webstore
 application will be somewhere below the document root for webstore, and
the css
 files for benefits-admin will be under it's document root, e.g.:

 /deploy/webapps/webstore/styles/main.css
 /deploy/webapps/benefits-admin/styles/main.css

 When you refer to the main.css file for the webstore app, it's URI is
 http://myhost/webstore/styles/main.css, or shortened to
 /webstore/styles/main.css.  For benefits-admin, it's
 /benefits-admin/styles/main.css.

 The prefix part (/webstore, or /benefits-admin) is the context path and
it is
 defined in your application deployment descriptor.  This can be changed
during
 deployment, so you don't want it hard coded in your HTML, JSP, or
Servlets.

 It is possible to use relative paths to get to the URI, for example a
servlet
 whose URL is /webstore/servlet/MyServlet can refer to the css file as
 ../styles/main.css, however that means that if you map a different URL to
your
 servlet, the relative URL won't work anymore.  Also, take an example of a
JSP
 found at /webstore/cart.jsp.  The relative URL of styles/main.css would
work,
 but what happens if the cart.jsp is redirected to from a servlet using a
 RequestDispatcher?  The browser thinks the URL is
 /webstore/servlet/DirectorServlet, so the relative URL breaks!

 Explicity referring to the context path and appending the absolute path to
the
 resource within the deployed web application ensures that the reference
will
 always work, so long as the resource is in the location specified by the
 absolute path.

 Obviously this is all irrelevant if you only have one context in your
 application server and it is deployed to the web site root.

 John H.




 Robert Koberg [EMAIL PROTECTED]@orionserver.com on 06/21/2001 01:28:51 PM

 Please respond to Orion-Interest [EMAIL PROTECTED]

 Sent by:  [EMAIL PROTECTED]


 To:   Orion-Interest [EMAIL PROTECTED]
 cc:

 Subject:  Re: Aaarrrghhh!! CSS and Servlet again


  To be safe, you really ought to use request.getContextPath() to prefix
the
  absolute URL of your css file relative to your 

RE: Problem connecting to Ms Sql Server 2000

2001-06-22 Thread elephantwalker

Sergei,

Its probably the sun driver, I have had the same problems with Access, of
all things, with a standalone program. I would suggest using another
jdbc-odbc bridge besides sun's.  Use www.nogginware.com 's jdbc-odbc bridge,
its cheap, and it works. You can test it for free.

regards,

the elephantwalker



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Sergei Batiuk
Sent: Friday, June 22, 2001 2:13 PM
To: Orion-Interest
Subject: Problem connecting to Ms Sql Server 2000


Hey people,

I am having trouble connecting to MS SQL 2000 from my entity bean. I have an
ODBC data source set up for the database, and connect to it using
sun.jdbc.odbc.JdbcOdbc driver. I get the following:
java.rmi.RemoteException: java.sql.SQLException: [Microsoft][ODBC SQL Server
Driver]Connection is busy with results for another hstmt
at
Manager_StatelessSessionBeanWrapper0.getNewsItemsCount(Manager_StatelessSess
ionBeanWrapper0.java:209)
at /n/news-all.jsp._jspService(/n/news-all.jsp.java:78) (JSP page line 27)
at com.orionserver.http.OrionHttpJspPage.service(JAX)
at com.evermind.server.http.HttpApplication.xj(JAX)
at com.evermind.server.http.JSPServlet.service(JAX)
at com.evermind.server.http.d3.sw(JAX)
at com.evermind.server.http.d3.include(JAX)
at com.evermind.server.http.EvermindPageContext.include(JAX)
at /n/index.jsp._jspService(/n/index.jsp.java:182)
at com.orionserver.http.OrionHttpJspPage.service(JAX)
at com.evermind.server.http.HttpApplication.xj(JAX)
at com.evermind.server.http.JSPServlet.service(JAX)
at com.evermind.server.http.d3.sw(JAX)
at com.evermind.server.http.d3.su(JAX)
at com.evermind.server.http.ef.s1(JAX)
at com.evermind.server.http.ef.do(JAX)
at com.evermind.util.f.run(JAX)

What is going on?
Best regards,
Sergei.







BUG: Show stopper!!!!! max-tx-retries

2001-06-22 Thread Alex Paransky

There seems to be a SERIOUS bug in Orion 1.5.2.  It turns out that you
cannot disable the max-tx-retries AT ALL!!!  Setting it to 0 removes it as
a TAG from orion-ejb-jar.xml.  The next time around, it adds
max-tx-retries=3.  There is NO WAY to disable the max-tx-retries.  This
seems like a serious problem, since there are cases when I do not want to
retry a transaction.

-AP_





Re: Aaarrrghhh!! CSS and Servlet again

2001-06-22 Thread Robert Koberg

 What happens it your www.site1.com decides to
 deploy the application as www.site1.com/app1...?  The context path is set
in the
 deployment descriptor, not in the code.  You really should make your code
 independent of the deployment descriptor even if it just happens to be
that your
 current deployment descriptors match your code.

It is an upfront decision to go with a root-relative site (and site
promotion process), like going with java as opposed to the many other
technologies (what would happen if your site decides to use C on the
backend?). It is something that needs to be agreed upon early for a large,
multi-faceted site.

Our sites are mostly built with XSL/XML ( perhaps 1 to 4  XSL guys working
on a site at a time) and currently they are mostly separate from any backend
processes (maybe 75% pregenerated to html).  If I were to implement what you
are talking about:

(- there would need to be some way to dynamically generate the previously
pre-generated pages,
or
- pre-generate on and with each particular machine's context, )
and
- pass the approriate variable parameters to the XSL

This could defeat the promotion process.  Currently we are assured that what
is seen on qa is what will be on live.  The only variable in the promotion
process between qa and live is the cost/type of machine.

Since there are several resources (human and not) involved it is better to
set  the site structure early. It really clears things up for all invloved
and allows for a clean separation from others.







Re: BUG: Show stopper!!!!! max-tx-retries

2001-06-22 Thread Ray Harrison

Log it.
--- Alex Paransky [EMAIL PROTECTED] wrote:
 There seems to be a SERIOUS bug in Orion 1.5.2.  It turns out that you
 cannot disable the max-tx-retries AT ALL!!!  Setting it to 0 removes it as
 a TAG from orion-ejb-jar.xml.  The next time around, it adds
 max-tx-retries=3.  There is NO WAY to disable the max-tx-retries.  This
 seems like a serious problem, since there are cases when I do not want to
 retry a transaction.
 
 -AP_
 
 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/




Re: BUG: Show stopper!!!!! max-tx-retries

2001-06-22 Thread Ray Harrison

Very interesting - you can change the value to any positive number - you just can't 
change it to
zero. 
--- Alex Paransky [EMAIL PROTECTED] wrote:
 There seems to be a SERIOUS bug in Orion 1.5.2.  It turns out that you
 cannot disable the max-tx-retries AT ALL!!!  Setting it to 0 removes it as
 a TAG from orion-ejb-jar.xml.  The next time around, it adds
 max-tx-retries=3.  There is NO WAY to disable the max-tx-retries.  This
 seems like a serious problem, since there are cases when I do not want to
 retry a transaction.
 
 -AP_
 
 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/