RE: Help with HTTP Internal Server Error

2001-10-05 Thread Knutsen Aslak

Hi

If your using Internet Explorer you might want to turn Friendly Error
Messages off.
I found this a couple a days ago(on this list). It seems that IE wraps more
or less every server error into the standard useless 500 InternalServer
error. Disabling Friend Error Messages should, in most cases, give you the
error message the server is sending, and not the one from ie.

Tools - Internet Options - Advanced - Browsing - Show friendly HTTP
error messages


Aslak Knutsen
EDB Teamco Dialog

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: 4. oktober 2001 16:09
To: Orion-Interest
Subject: Help with HTTP Internal Server Error





Hi

I'm getting a HTTP 500 Internal Server error when I try to access one of my
JSP
pages.

The following is written to the web-access.log file, but no other errors are
reported anywhere.

GET /budgeting/Test?event=accountSummaryaccType=SAVNG HTTP/1.1 500 482

Does the 482 at the end mean something or is there anywhere else where I
could
get more information about the error.

Just to make things interesting, the page works fine if I run it through
Tomcat.

Thanks

Derek Hardy







E-mail communication is not secure and may be intercepted by a third party.
This 
message is confidential to the intended addressee. If you are not the
intended 
addressee, please inform us immediately and then delete this message. Virgin

Direct does not accept responsibility for changes made to this message after
it
was sent. Although Virgin Direct believes this e-mail is free of any virus
or other
defect which may affect a computer, it is the responsibility of the
recipient to ensure 
that it is virus free and Virgin Direct does not accept any responsibility
for any loss 
or damage arising in any way from it's use.

Virgin Direct Personal Financial Service Ltd is regulated by the Personal 
Investment Authority for life insurance, pension and unit trust business and

represents only the Virgin Direct marketing group. Registered office:
Discovery
House, Whiting Road, Norwich NR4 6EJ, UK. Registered in England No. 3072766.

The Virgin One account is a secured personal bank account with The Royal
Bank 
of Scotland plc. It is provided by Virgin Direct Personal Finance Ltd which
is
a representative only of Virgin Direct Personal Financial Service Ltd. 
Registered office: Waterhouse Square, 138-142 Holborn, London EC1N 2TH, UK. 
Registered in England no 3414708.

The Virgin Deposit Account is a personal deposit account with The Royal Bank
of 
Scotland plc administered by Virgin Direct Personal Financial Service Ltd.

All telephone calls are recorded and may be monitored. 








RE: Orion Server with external webserver

2001-10-05 Thread Fredrik Gusting (PAC)

just to see how slow it is :-)


-Original Message-
From: Jens Schumann [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 8:46 PM
To: Orion-Interest
Subject: RE: Orion Server with external webserver


Just to be curious.
Why do you want to connect from a (some time ago) 6 times slower jsp/servlet
engine to orion instead of using orion directly?

Jens

| -Original Message-
| From: [EMAIL PROTECTED]
| [mailto:[EMAIL PROTECTED]]On Behalf Of Fredrik
| Gusting (PAC)
| Sent: Thursday, October 04, 2001 5:12 PM
| To: Orion-Interest
| Subject: RE: Orion Server with external webserver
|
|
|
|
| Hi
|
| The generated principes.xml (in
| orion/application-deployments/time)is empty though but that
| should be empty i think. Ther is nothing I can do about it.
|
| My principles.xml in orion/config.
| looks like this. This should be correct or ?
|
| ?xml version=1.0?
| !DOCTYPE principals PUBLIC //Evermind - Orion Principals//
| http://www.orionserver.com/dtds/principals.dtd;
|
| principals
|   groups
|   group name=administrators
|   descriptionadministrators/description
|   permission name=administration /
|   permission
| name=com.evermind.server.AdministrationPermission /
|   /group
|   group name=guests
|   descriptionguests/description
|   /group
|   group name=users
|   descriptionusers/description
|   permission name=rmi:login /
|   permission
| name=com.evermind.server.rmi.RMIPermission /
|   /group
|   /groups
|   users
|   user username=admin password=123
|   descriptionThe default administrator/description
|   group-membership group=administrators /
|   group-membership group=guests /
|   group-membership group=users /
|   /user
|   user username=user password=456 deactivated=true
|   descriptionThe default user/description
|   group-membership group=guests /
|   group-membership group=users /
|   /user
|   user username=anonymous password=
|   descriptionThe default guest/anonyomous
| user/description
|   group-membership group=guests /
|   /user
|   /users
| /principals
| -Original Message-
| From: Hanlan, Dominic - Senior Developer [mailto:[EMAIL PROTECTED]]
| Sent: Thursday, October 04, 2001 1:46 PM
| To: Orion-Interest
| Subject: RE: Orion Server with external webserver
|
|
| Is Admin enabled in principles.xml
|
| -Original Message-
| From: Fredrik Gusting (PAC) [mailto:[EMAIL PROTECTED]]
| Sent: 04 October 2001 08:38
| To: Orion-Interest
| Subject: Orion Server with external webserver
|
|
| Hi all
| I've trouble with my connection from my Tomcat webserver to Orion server.
| In tomcat have set upp a servlet which takes a request from a browser and
| then do a lookup for my orionserver that contains a small example of an
| entitybean that simple returns the current time. I've setup
| everything onmy
| local machine. Tomcat port 8080, and Orion port 8000.
| When I try to create my Initialcontext I get LoginException or something.
| Her is a part of my code
|
| public class Dispatcher extends HttpServlet {
|
|   /**Initialize global variables*/
|
|   private static final String CONTENT_TYPE = text/html;
|   private Context context = null;
|
|   public void init(ServletConfig config) throws ServletException {
|
| super.init(config);
|
|   }
|
|   /**Process the HTTP Get request*/
|   public void doGet(HttpServletRequest request, HttpServletResponse
| response) throws ServletException, IOException {
|
| try
| {
|
|   Properties h = new Properties();
|
| h.put(Context.INITIAL_CONTEXT_FACTORY,com.evermind.server.Applica
| tionClient
| InitialContextFactory);
|   h.put(Context.PROVIDER_URL,ormi://localhost:80/time);
|   h.put(Context.SECURITY_PRINCIPAL, admin);
|   h.put(Context.SECURITY_CREDENTIALS, 123);
|
|   Context context = new InitialContext(h);  // HERE IT CRASHES
|
|   Object ref = (PerfectTimeHome)context.lookup(PerfectTimeHome);
|
|
| Do I have to configure orion for login, how???
| Has anybody got an external webserver to work with orion. Sample of that
| please!
|
| Regards
| Fredrik
| Fredrik Gusting(mailto: [EMAIL PROTECTED])
| System Designer
| Ericsson Process  Application Consulting
| Kistagången 4  Phone:  +46 8 568 63 189
| SE-125 82 Kista   Mobile: +46 70 52 63 189
|





RE: Why can't orion respond to their customers? (was RE: FW: Logging in to server twice does not work.)

2001-10-05 Thread The elephantwalker

Yash and Christian,

Obviously this works, because the OrionConsole app uses ormi, and if you put
in the wrong password, you just remove the server, and add a server with the
right password.

They are a little clunky with the interface...but adding the wrong password
doesn't prevent you from connecting. So lets look at your code.

It looks like you left out one important bit in the properties. The
dedicated.connection should be true.

With the code below, you won't have to restart your server.

Regards,


the elephantwalker
www.elephantwalker.com

So here is the code:

import javax.naming.*;
import java.util.*;
/**
  * InitialContext reconnection test.
  * @author Christian Tellefsen
 */

// Make sure you:
// a) Have a META-INF/application-client.xml in the right place.
// b) Replace the server name below.

public class ContextTest {
 static void connect() {
Hashtable env = new Hashtable();
env.put(dedicated.connection,true); // --- this makes it work!
env.put(
 java.naming.factory.initial,
 com.evermind.server.ApplicationClientInitialContextFactory);
env.put(
java.naming.provider.url,
 ormi://localhost/appit); // replace with your server
 try{
 // This will show the login box the first time,
// but not the second time.
new InitialContext(env);
 }
 catch(Exception e) {e.printStackTrace();}
 }

 public static void main(String[] s) {
 connect();
 System.out.println(Once more unto the breach...);
 connect();
 }
 }




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Yashasree
Sent: Thursday, October 04, 2001 10:48 PM
To: Orion-Interest
Cc: Orion-Interest
Subject: Re: Why can't orion respond to their customers? (was RE: FW:
Logging in to server twice does not work.)


Hi Christian.

We r in the same boat at u were and suffer from the same problem of logging
in to the server twice not working.
Did u find any workaround? Or did the orion guys respond

Awaiting eagerly for a positive response

Thanks in advance
Yash


- Original Message -
From: [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Wednesday, August 08, 2001 8:52 PM
Subject: Why can't orion respond to their customers? (was RE: FW: Logging in
to server twice does not work.)


 My God, this is frustrating.

 I have tried reporting the bug in bugzilla.
 I have tried mailing to the list.
 I have tried mailing Orion directly.

 All I have received from Orion is complete and utter silence. I have not
 even gotten a reply saying that the matter is being looked at, or even
that
 my mail has been received. If I had gotten any respnse at all I would not
 have said this publicly, but since you refuse to acknowledge my mails, I
 have to ask:

 Why do you not take your paying customers seriously? Your support is
 extremely bad. We have production systems running on your server, and we
 need to know when the bugs will be fixed.

 yours
 Christian.

 Does anyone have any email address the Orion guys will respond to?

 -Original Message-
 From: Mike Weissman [mailto:[EMAIL PROTECTED]]
 Sent: 8. august 2001 15:34
 To: Orion-Interest
 Subject: Re: FW: Logging in to server twice does not work.


 Christian,

 We never found a way around this, we run from an applet.  we were able
 to use the RMIContextfactory and have repeated login attempts.  We have
 also abandoned rmi lookups due to performance and are going towards a
 messaging paradigm for communication.
 mike

 [EMAIL PROTECTED] wrote:
 
  In think the message was lost again, trying one more time. Sorry for the
  repost...
 
   Does anyone know how to login again when the first attempt fails?
  
   Logging in twice seems to be impossible. How to reproduce:
  
   import javax.naming.*;
   import java.util.*;
  
   /**
* InitialContext reconnection test.
* @author Christian Tellefsen
*/
  
   // Make sure you:
   // a) Have a META-INF/application-client.xml in the right place.
   // b) Replace the server name below.
  
   public class ContextTest {
   static void connect() {
   Hashtable env = new Hashtable();
   env.put(
   java.naming.factory.initial,
  
 com.evermind.server.ApplicationClientInitialContextFactory);
   env.put(
   java.naming.provider.url,
   ormi://localhost/appit); // replace with your server
   try{
   // This will show the login box the first time,
   // but not the second time.
   new InitialContext(env);
   }
   catch(Exception e) {e.printStackTrace();}
   }
  
   public static void main(String[] s) {
   connect();
   System.out.println(Once more unto the breach...);
   connect();
   }
   }
  
   Obviously I would like the login box to appear again. I cannot find
any
   way to tell the 

RE: Date conversion problem ??

2001-10-05 Thread Shields James

The javadoc documentation for Date and Timestamp in java.util and java.sql
is worth consulting.


public class Timestamp
extends Date

A thin wrapper around java.util.Date that allows the JDBC API to identify
this as an SQL TIMESTAMP value. It adds the ability to hold the SQL
TIMESTAMP nanos value and provides formatting and parsing operations to
support the JDBC escape syntax for timestamp values. 

Note: This type is a composite of a java.util.Date and a separate
nanoseconds value. Only integral seconds are stored in the java.util.Date
component. The fractional seconds - the nanos - are separate. The getTime
method will return only integral seconds. If a time value that includes the
fractional seconds is desired, you must convert nanos to milliseconds
(nanos/100) and add this to the getTime value. The
Timestamp.equals(Object) method never returns true when passed a value of
type java.util.Date because the nanos component of a date is unknown. As a
result, the Timestamp.equals(Object) method is not symmetric with respect to
the java.util.Date.equals(Object) method. Also, the hashcode method uses the
underlying java.util.Data implementation and therefore does not include
nanos in its computation. Due to the differences between the Timestamp class
and the java.util.Date class mentioned above, it is recommended that code
not view Timestamp values generically as an instance of java.util.Date. The
inheritance relationship between Timestamp and java.util.Date really denotes
implementation inheritance, and not type inheritance. 


-Original Message-
From: Sarathy Mattaparti [mailto:[EMAIL PROTECTED]]
Sent: 05 October 2001 06:33
To: Orion-Interest
Subject: Re: Date conversion problem ??


use java.util.Timestamp instead of Date that will solve your problem.

Sarathy


Hellu,

I retrieve a datetime  field from the Ms SQL server. With a win sql client 
I
see:
2001-10-03 19:33:10.257

When I print the field in an EJB (I use CMP) the millisecond part is zero
!!!:
Wed Oct 03 19:33:10 GMT+02:00 2001
In milliseconds: 100213039

I had the same problem with the Postgres driver so I don't think it is the
JDBC driver (Opta driver of i-net)

Has anyone any idea what is happening and how I can solve this ??
Hope to get an answer, otherwise I have to convert the datetime fields in
the database to a long to store it in milliseconds, which isn't very 
elegant
I think !?

Eddie







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





explicit table-names in CMP

2001-10-05 Thread Toni Menzel

dear all,

We want to define an explicit table name for CMP's in OrionAppServer.
By default, CMP tables have the names of the full qualified classname
(entitybean).
E.g. if the ejb-entity-class is net.quintessence.core.Leg then the
table's name is: net_quintessence_core_leg.
But we want to use already existing tables which where mapped into
ejb-entities.

Is that possible? how?

thanx in advance, Toni Menzel
---
[EMAIL PROTECTED]
quintessence consulting GmbH - germany





Orion and Virus Checking

2001-10-05 Thread John . Miller



Hi,

I am developing an 
intranet application for uploading files to a central server using 
Orion,EJB, JSP etc.. on a Win 2k platform and have realised that there 
might be a potential problem.

Files that are 
uploaded could contain a virus so I need some method of scanning them. The 
obvious option is to have a virus checker on the actual server that scans at 
regular intervals. But, was wondering if anyone had ever encountered a problem 
like this and whatthey did. Did you use some java app to scan for any 
virus etc..

Any information on 
your experience or any ideas would be appreciated.

Many 
thanks,

John Miller
Analyst 
ProgrammerIT DepartmentBMG Entertainment UK  Ireland LtdBedford 
House, 69 Fulham High Street, London SW6 3JW Email:  
[EMAIL PROTECTED]Phone:  
+44-(0)20-7384 8102 Fax:  
+44-(0)20-7384 7872
Confidentiality 
Notice:
The 
information in this e-Mail message is confidential and for the use of the named 
recipients only. The information may be protected by privilege, work product 
immunity or other applicable law. 
If you 
are not the intended recipient - the retention, dissemination, distribution or 
copying of this e-Mail message is strictly prohibited. If you receive this 
e-Mail message in error, please notify me immediately by telephone (44 207 384 
8102) or e-Mail ([EMAIL PROTECTED]). 




RE: explicit table-names in CMP

2001-10-05 Thread Owen Fellows

Hi,

You can change this in the orion-ejb-jar.xml file in the
application-deployments directory.

Owen

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Toni Menzel
Sent: 05 October 2001 12:39
To: Orion-Interest
Subject: explicit table-names in CMP


dear all,

We want to define an explicit table name for CMP's in OrionAppServer.
By default, CMP tables have the names of the full qualified classname
(entitybean).
E.g. if the ejb-entity-class is net.quintessence.core.Leg then the
table's name is: net_quintessence_core_leg.
But we want to use already existing tables which where mapped into
ejb-entities.

Is that possible? how?

thanx in advance, Toni Menzel
---
[EMAIL PROTECTED]
quintessence consulting GmbH - germany





Exception thrown by EJB find method

2001-10-05 Thread Rodrigo Gevaerd

  
  Some code calls an findByPrimaryKey method of an entity EJB. The entity
throws an ObjectNotFoundException. In Orion 1.5.2 the exception catched by
the code is a RemoteException (com.evermind.server.rmi.OrionRemoteException)
with the message Transaction was rolled back:  + thrown
ObjectNotFoundException.toString() and nested within it is the thrown
ObjectNotFoundException. It looks like to me that there is an implementation
error in the EJB container of Orion. The exception catched should be
directly the ObjectNotFoundException, as happends with other Servers. Is it
true or am I doing or expecting wrongly? 

  []'s,

  Rodrigo.




Re: explicit table-names in CMP

2001-10-05 Thread Dave Smith

Toni Menzel wrote:

dear all,

We want to define an explicit table name for CMP's in OrionAppServer.
By default, CMP tables have the names of the full qualified classname
(entitybean).
E.g. if the ejb-entity-class is net.quintessence.core.Leg then the
table's name is: net_quintessence_core_leg.
But we want to use already existing tables which where mapped into
ejb-entities.

Is that possible? how?

thanx in advance, Toni Menzel
---
[EMAIL PROTECTED]
quintessence consulting GmbH - germany




The name can be set in the orion-ejb-jar.xml file. Details are in the 
docs for this file.

-- 
David Smith
e-Net Software Solutions Ltd
[EMAIL PROTECTED]
tel: 01454 851125







RE: explicit table-names in CMP

2001-10-05 Thread Mike Cannon-Brookes

In the orion-ejb-jar.xml file (Orion EJB deployment descriptor), each
entity-deployment tag has a 'table' attribute. This is the name of the
table in the database used for persistence.

See
http://kb.atlassian.com/content/orion/docs/deployment/orion-ejb-jar.xml.html

Cheers,
Mike

Mike Cannon-Brookes :: [EMAIL PROTECTED]

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



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Toni Menzel
 Sent: Friday, October 05, 2001 9:39 PM
 To: Orion-Interest
 Subject: explicit table-names in CMP


 dear all,

 We want to define an explicit table name for CMP's in OrionAppServer.
 By default, CMP tables have the names of the full qualified classname
 (entitybean).
 E.g. if the ejb-entity-class is net.quintessence.core.Leg then the
 table's name is: net_quintessence_core_leg.
 But we want to use already existing tables which where mapped into
 ejb-entities.

 Is that possible? how?

 thanx in advance, Toni Menzel
 ---
 [EMAIL PROTECTED]
 quintessence consulting GmbH - germany







Re: SV: explicit table-names in CMP

2001-10-05 Thread Paolo Ramasso


ciao
you have to set the table-name in your orion-ejb-jar.xml
entity-deployment name="AccountEJB" location="AccountEJB" wrapper="AccountEJBHome_EntityHomeWrapper58"
table="AccountEJB" data-source="jdbc/OracleDS">
and
in orion-application.xml say autocreate-tables false
ciao
Paolo
Patrik Andersson wrote:
 Part 1.1 Type: Plain
Text (text/plain)
 Encoding:
quoted-printable


begin:vcard 
n:ramasso;paolo
x-mozilla-html:FALSE
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
note;quoted-printable:Senior Sales Consultant=0D=0ASolution Team=0D=0AEMEA Java/XML Professional Community=0D=0A=0D=0A
fn:paolo ramasso
end:vcard



Re: explicit table-names in CMP

2001-10-05 Thread Tim Pouyer

Check out the orion-ejb-jar.xml file you will see a value called name or
table-name that is where you can specify the name of your table rather
than letting orion generate it for you.
Tim

On Fri, 2001-10-05 at 07:39, Toni Menzel wrote:
 dear all,
 
 We want to define an explicit table name for CMP's in OrionAppServer.
 By default, CMP tables have the names of the full qualified classname
 (entitybean).
 E.g. if the ejb-entity-class is net.quintessence.core.Leg then the
 table's name is: net_quintessence_core_leg.
 But we want to use already existing tables which where mapped into
 ejb-entities.
 
 Is that possible? how?
 
 thanx in advance, Toni Menzel
 ---
 [EMAIL PROTECTED]
 quintessence consulting GmbH - germany
 
 
 






load-balancer problem

2001-10-05 Thread Min-Hua Luo

Hi,

  I have three islands and 2 orion instances per
island for clustering. In my javabean, I have a hash
table that needs to be synchronized within the same
JVM. This hash table stores information global to the
whole application. When one connection lock this
table, no other connections are allowed to access it.
This works fine if the application runs in a SINGLE
JVM. However, when I deploy this application to
multiple islands, each islands and orion within the
islands have independent JVM, thus I cannot lock a
SINGLE hash table anymore. Different connections to
different islands and/or orions will have their own
hash table within their JVM.
  So the question is, how can I configure orion load
balancer and cluster so all orion instances among all
islands share the same hash table object so I can
guarantee the single hash table locking? Thanks a lot.

James

__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1




Logging in to server twice does not work

2001-10-05 Thread Christian . Tellefsen

Hi Elephantwalker,

thank you very much for taking the time to reply to me.

I cut  pasted your code into my class, and ran it. I am sorry to say that
the change in the code does not have any obvious effect (we have actually
tried this solution earlier).

What happens if I write wrong credentials, is that I get a stack trace, the
program writes the message, then immediately the other stack trace appears
and that's it. The login box does not reappear.

But if this works in your enviroment and not in ours, surely something,
somewhere must be different between our enviroments? Could it possibly be
some server setting? 

*
D:\clienttestconnect
java.lang.SecurityException: Invalid username/password for appit (yo)
at com.evermind._cd._mu(Unknown Source)
at com.evermind._cd._mu(Unknown Source)
at com.evermind._cd._np(Unknown Source)
at com.evermind._ce._np(Unknown Source)
at com.evermind.server.rmi.RMIContext.lookup(Unknown Source)
at com.evermind.server.administration.LazyResourceFinder._np(Unknown
Source)
at
com.evermind.server.administration.LazyResourceFinder.getEJBHome(Unknown
Source)
at com.evermind._ck._ho(Unknown Source)
at
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext
(Unknown Source)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at
com.telenor.mobil.planit.appit.test.ContextTest.connect(ContextTest.java:29)
at
com.telenor.mobil.planit.appit.test.ContextTest.main(ContextTest.java:35)
Once more unto the breach...
java.lang.SecurityException: Invalid username/password for appit (yo)
at com.evermind._cd._mu(Unknown Source)
at com.evermind._cd._mu(Unknown Source)
at com.evermind._cd._np(Unknown Source)
at com.evermind._ce._np(Unknown Source)
at com.evermind.server.rmi.RMIContext.lookup(Unknown Source)
at com.evermind.server.administration.LazyResourceFinder._np(Unknown
Source)
at
com.evermind.server.administration.LazyResourceFinder.getEJBHome(Unknown
Source)
at com.evermind._ck._ho(Unknown Source)
at
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext
(Unknown Source)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at
com.telenor.mobil.planit.appit.test.ContextTest.connect(ContextTest.java:29)
at
com.telenor.mobil.planit.appit.test.ContextTest.main(ContextTest.java:37)
*
D:\clientjava -version
java version 1.3.1
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)
*
D:\clientjava -jar orion.jar -version
Orion/1.5.2 (build 10460)
*
D:\clienttype testconnect.bat
java -classpath .;orion.jar com.telenor.mobil.planit.appit.test.ContextTest
*

yours,
Christian.

-Original Message-
From: The elephantwalker [mailto:[EMAIL PROTECTED]]
Sent: 5. oktober 2001 11:21
To: [EMAIL PROTECTED]
Subject: FW: Why can't orion respond to their customers? (was RE: FW:
Logging in to server twice does not work.)


Christian,

Just in case the list server is down...your double login is not a bug. You
left out a the dedicated.connection=true from your code, see below.

Regards,

the elephantwalker
www.elephantwalker.com

-Original Message-
From: The elephantwalker [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 2:18 AM
To: Orion-Interest
Subject: RE: Why can't orion respond to their customers? (was RE: FW:
Logging in to server twice does not work.)


Yash and Christian,

Obviously this works, because the OrionConsole app uses ormi, and if you put
in the wrong password, you just remove the server, and add a server with the
right password.

They are a little clunky with the interface...but adding the wrong password
doesn't prevent you from connecting. So lets look at your code.

It looks like you left out one important bit in the properties. The
dedicated.connection should be true.

With the code below, you won't have to restart your server.

Regards,


the elephantwalker
www.elephantwalker.com

So here is the code:

import javax.naming.*;
import java.util.*;
/**
  * InitialContext reconnection test.
  * @author Christian Tellefsen
 */

// Make sure you:
// a) Have a META-INF/application-client.xml in the right place.
// b) Replace the server name below.

public class ContextTest {
 static void connect() {
Hashtable env = new 

Re: explicit table-names in CMP

2001-10-05 Thread Joel B. Kinney

You may want to take a look at the orion-ejb-jar.xml file in
$ORION_HOME/application-deployments/...path to ejb/

The file contains the mappings from entities to tables (among other
things). If I need to make such changes I usaully copy the
orion-ejb-jar.xml to my development directory, make the changes, then
recopy to the deployment dir. Then orion picks up the changes upon
deployment.  

Hope this helps,
Joel

On Fri, 5 Oct 2001, Toni Menzel wrote:

 dear all,
 
 We want to define an explicit table name for CMP's in OrionAppServer.
 By default, CMP tables have the names of the full qualified classname
 (entitybean).
 E.g. if the ejb-entity-class is net.quintessence.core.Leg then the
 table's name is: net_quintessence_core_leg.
 But we want to use already existing tables which where mapped into
 ejb-entities.
 
 Is that possible? how?
 
 thanx in advance, Toni Menzel
 ---
 [EMAIL PROTECTED]
 quintessence consulting GmbH - germany
 
 
 





Re: explicit table-names in CMP

2001-10-05 Thread Mayssam Sayyadian

hi Toni,
You can do this from orion-ejb.jar.xml.
entity-deployment has a table attribute which
declares the table name for the specified CMP.
Write your own orion-ejb-jar.xml and put it beside
ejb-jar.xml and redeploy your application.
remember to delete (or change) the already built
orion-ejb-jar.xml in $ORION/application-deployments/your-app/META-INF
for more information look at orion docs for orion-ejb-jar.xml.html

--MS.


On Fri, 5 Oct 2001, Toni Menzel wrote:

 dear all,

 We want to define an explicit table name for CMP's in OrionAppServer.
 By default, CMP tables have the names of the full qualified classname
 (entitybean).
 E.g. if the ejb-entity-class is net.quintessence.core.Leg then the
 table's name is: net_quintessence_core_leg.
 But we want to use already existing tables which where mapped into
 ejb-entities.

 Is that possible? how?

 thanx in advance, Toni Menzel
 ---
 [EMAIL PROTECTED]
 quintessence consulting GmbH - germany







RE: explicit table-names in CMP

2001-10-05 Thread J.D. Bertron
Title: SV: explicit table-names in CMP



I had 
the same problem, but you can change the name of table in the orion-ejb-jar.xml 
file.
Under 
the Entity Deployment, you can set the name of the bean using the "name" 
attribute, the JNDI name using the "location" attribute and the table name using 
the "table" attribute.
By 
default, Orion will make the all the same.
J.D.

  -Original Message-From: Patrik Andersson 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, October 05, 2001 
  9:11 AMTo: Orion-InterestSubject: SV: explicit 
  table-names in CMP
  Doesn't the tablename default to $ejb-name? Also, what does 
  the schema-name (or whatever the name was) 
  mean. Try them! 
  regards, Patrik Andersson 
  -Ursprungligt meddelande- Från: Toni Menzel [mailto:[EMAIL PROTECTED]] 
  Skickat: den 5 oktober 2001 13:39 Till: Orion-Interest Ämne: explicit table-names 
  in CMP 
  dear all, 
  We want to define an explicit table name for CMP's in 
  OrionAppServer. By default, CMP tables have the names 
  of the full qualified classname (entitybean). 
  E.g. if the ejb-entity-class is "net.quintessence.core.Leg" 
  then the table's name is: 
  net_quintessence_core_leg. But we want to use already 
  existing tables which where mapped into ejb-entities. 
  Is that possible? how? 
  thanx in advance, Toni Menzel --- [EMAIL PROTECTED] quintessence consulting GmbH - germany 



Re: Date conversion problem ??

2001-10-05 Thread Fredrik Lindgren

You are right that is not the JDBC driver that makes this happen. It is 
JDBC itself. java.sql.Timestamp is a subclass of java.util.Date but it 
returns the integral seconds when calling getTime(). It supports nano 
second precision with the getNanos() method.

The javadoc includes this note:
Note: This type is a composite of a java.util.Date and a separate 
nanoseconds value. Only integral seconds are stored in the 
java.util.Date component. The fractional seconds - the nanos - are 
separate. The getTime method will return only integral seconds. If a 
time value that includes the fractional seconds is desired, you must 
convert nanos to milliseconds (nanos/100) and add this to the 
getTime value.  The Timestamp.equals(Object) method never returns  true 
when passed a value of type java.util.Date because the nanos component 
of a date is unknown. As a result, the Timestamp.equals(Object) method 
is not symmetric with respect to the java.util.Date.equals(Object) 
method.  Also, the hashcode method uses the underlying  java.util.Date 
implementation and therefore does not include nanos in its computation.

  Due to the differences between the Timestamp class and the 
java.util.Date class mentioned above, it is recommended that code not 
view Timestamp values generically as an instance of java.util.Date.  The 
inheritance relationship between Timestamp and java.util.Date really 
denotes implementation inheritance, and not type inheritance.

I hope this helped

/Fredrik Lindgren

Ed Bras wrote:

 Hellu,
 
 I retrieve a datetime  field from the Ms SQL server. With a win sql client I
 see:
 2001-10-03 19:33:10.257
 
 When I print the field in an EJB (I use CMP) the millisecond part is zero
 !!!:
 Wed Oct 03 19:33:10 GMT+02:00 2001
 In milliseconds: 100213039
 
 I had the same problem with the Postgres driver so I don't think it is the
 JDBC driver (Opta driver of i-net)
 
 Has anyone any idea what is happening and how I can solve this ??
 Hope to get an answer, otherwise I have to convert the datetime fields in
 the database to a long to store it in milliseconds, which isn't very elegant
 I think !?
 
 Eddie
 
 
 
 
 
 
 






RE: load-balancer problem

2001-10-05 Thread Simon Evans
Title: RE: load-balancer problem





you will probably want to use the database for this.
all instances use the same database, so locking here applies to all instanaces.
you can use an entity bean to access the database.


-Original Message-
From: Min-Hua Luo [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 8:29 AM
To: Orion-Interest
Subject: load-balancer problem



Hi,


 I have three islands and 2 orion instances per
island for clustering. In my javabean, I have a hash
table that needs to be synchronized within the same
JVM. This hash table stores information global to the
whole application. When one connection lock this
table, no other connections are allowed to access it.
This works fine if the application runs in a SINGLE
JVM. However, when I deploy this application to
multiple islands, each islands and orion within the
islands have independent JVM, thus I cannot lock a
SINGLE hash table anymore. Different connections to
different islands and/or orions will have their own
hash table within their JVM.
 So the question is, how can I configure orion load
balancer and cluster so all orion instances among all
islands share the same hash table object so I can
guarantee the single hash table locking? Thanks a lot.


James


__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1





Periodic Orion Information Mail - Oct 5 2001

2001-10-05 Thread Karl Avedal

News this week:

1. Version 1.5.3 in testing
2. Atlassian Orion Knowledge Base launched
3. Partner news
4. Miscellaneous news


Version 1.5.3 in testing
===

Orion 1.5.3 is now in testing with select partners. After such a long time 
without an upgrade we expect that many people will want to upgrade at the 
same time, so we're trying to make sure that it's working reasonably well 
before putting anything out there.


Atlassian Orion Knowledge Base launched
===

Atlassian launches a new Knowledge Base system (at http://kb.atlassian.com) 
with access to much information about Orion in a very useful way with 
support for user contributed annotations, related pages, etc.


Partner news
===

These are our new partners for this week:

The Middleware Company (http://www.middleware-company.com/), the company 
behind theserverside.com, now provides Orion training. More information 
will be available on our site shortly.

Smart Soft - The Java Training Company (http://www.smart-soft.com), use the 
Orion Server in their J2EE workshops: Java Servlets and JSP and Enterprise 
Java Beans.

The Elephantwalker (http://www.elephantwalker.com/) is providing 
subscription based support services for Orion. This is not actually a new 
service, but it hadn't been announced as an official partner before.


Miscellaneous news
===

CocoBase tells us that their new version is Orion compatible

DevX Appserver Zone published an interesting Orion review: 
http://www.appserver-zone.com/articles/sf0901/sf0901-1.asp

RMI configuration 
(http://www.orionserver.com/docs/rmi-configuration/rmi-configuration.xml) 
document added and the tag library tutorial finanlized


Regards
The Orion Team






I get unable to find assembly info. (There are not EJBS)

2001-10-05 Thread Vic Cekvenich

I created an aplication tomcat 4, and try to move it to Orion.

I get unable to find assembly info. (There are not EJB)

config/server.xml
 application name =vicWebPim path=../applications/vicWebPim /

In  config/default-web-stite.xml:
web-site host=[ALL] port=80 display-name=Default Orion WebSite
!-- The default web-app for this site, bound to the root --
default-web-app application=default name=defaultWebApp /
web-app application=PIM name=vicWebPim root=/pim /
!-- web-app application=news name=news-web root=/news / --


vicWebPim\META-INFapplication.xml:
?xml version=1.0?
!DOCTYPE application PUBLIC -//Sun Microsystems, Inc.//DTD J2EE 
Application 1.2//EN http://java.sun.com/j2ee/dtds/application_1_2.dtd;
application
 display-namePIM/display-name
   module
web
 web-urivicWebPim/web-uri
 context-root//context-root
/web
 /module
/application

What should I look at next?

Vic





Static page when db down?

2001-10-05 Thread Steve Best



Greetings, I was wondering how you can set it so 
that Orion will display a splash page if it is unable to connect to the db on 
startup?

Thanks
Steve


Re: I get unable to find assembly info. (There are not EJBS)

2001-10-05 Thread Vic Cekvenich

Got it fixed.
Vic

Vic Cekvenich wrote:

 I created an aplication tomcat 4, and try to move it to Orion.

 I get unable to find assembly info. (There are not EJB)

 config/server.xml
 application name =vicWebPim 
 path=../applications/vicWebPim /

 In  config/default-web-stite.xml:
 web-site host=[ALL] port=80 display-name=Default Orion WebSite
!-- The default web-app for this site, bound to the root --
default-web-app application=default name=defaultWebApp /
web-app application=PIM name=vicWebPim root=/pim /
!-- web-app application=news name=news-web root=/news / --


 vicWebPim\META-INFapplication.xml:
 ?xml version=1.0?
 !DOCTYPE application PUBLIC -//Sun Microsystems, Inc.//DTD J2EE 
 Application 1.2//EN http://java.sun.com/j2ee/dtds/application_1_2.dtd;
 application
 display-namePIM/display-name
   module
web
 web-urivicWebPim/web-uri
 context-root//context-root
/web
 /module
 /application

 What should I look at next?

 Vic