Re: question about ip allocation

2002-01-09 Thread Morten Raahede Knudsen

Hi

Thanks for your answers!

try adding a host=x.x.x.x attribute to the web-site tag in
default-web-site.xml

I have tried that, it only oanswers on the given address, but it still seems
 to block for other servers on other ip addresses.

Try changing the port number that Orion accepts requests from 80 to a
different unused value e.g 2002.
So that the url will look something like http://127.0.0.1:2002

This will give problems for users with firewalls.

I'm still open for suggestions!

Thanks in advance,

Morten Raahede Knudsen


 Morten Raahede Knudsen [EMAIL PROTECTED]
 Programmør

 Bilpriser.dk
 Tolderlundsvej 16
 DK-5000 Odense C

 Telefon +45 6314 6065
 Telefax +45 6619 2164

 Ved du hvad din bil er værd? Besøg http://www.bilpriser.dk






deploying ejb without jar'ing

2002-01-09 Thread Morten Wilken

im sure ive come across this... can i deploy ejb's directly from a
filestructure instead fo jarring them first? and if so how?

sincerely
Morten Wilken




Re: question about ip allocation

2002-01-09 Thread Maximilian Eberl

Your machine has 2 IP-adresses but only one port 80 !

No 2 servers can listen on 1 port - no matter how many network cards You
pull in.

You have to bind the IPs to different ports.
I am doing this on Linux but don't know how this is done on Windows.

Max

--

Maximilian Eberl
- developer -
netzdenker.de

http://www.netzdenker.de
mailto:[EMAIL PROTECTED]

Ludwigstrasse 2
D-67346 Speyer / Germany
tel: +49-6232-2602-02
fax: +49-6232-2602-05





string mappings

2002-01-09 Thread Morten Wilken

hi all,
i have a situation where i need to make an entitybean with a subject line
and a body text
in the class both these are implemented as Strings, but i need to map the
subject to a short varchar (ie 50 chars) and the body text to a larger one
(but not so large that i need to map it to a blob).. how do i differentiate
between the 2 in the db schema?

sincerely
Morten Wilken





RE: question about ip allocation

2002-01-09 Thread Justin Crosbie

Hi,

Two IP addresses - is this two network addresses, or is it two IP that point
to the same DNS entry? If you have two network addresses, on two separate
network cards, this should not happen. If they are actually pointing to the
same address, you will have to put Orion on a different port to IIS. What
you can do then is map an external address to the Orion ip/port to cater for
people outside your firewall.

HTH,
Justin

-Original Message-
From: Morten Raahede Knudsen [mailto:[EMAIL PROTECTED]]
Sent: 09 January 2002 07:52
To: Orion-Interest
Subject: Re: question about ip allocation


Hi

Thanks for your answers!

try adding a host=x.x.x.x attribute to the web-site tag in
default-web-site.xml

I have tried that, it only oanswers on the given address, but it still seems
 to block for other servers on other ip addresses.

Try changing the port number that Orion accepts requests from 80 to a
different unused value e.g 2002.
So that the url will look something like http://127.0.0.1:2002

This will give problems for users with firewalls.

I'm still open for suggestions!

Thanks in advance,

Morten Raahede Knudsen


 Morten Raahede Knudsen [EMAIL PROTECTED]
 Programmør

 Bilpriser.dk
 Tolderlundsvej 16
 DK-5000 Odense C

 Telefon +45 6314 6065
 Telefax +45 6619 2164

 Ved du hvad din bil er værd? Besøg http://www.bilpriser.dk






problems closing database connections.

2002-01-09 Thread JoseMa



Hi,

 We've installed a datasource 
with oracle and I have and application which do some transactionwith this 
datasource. When the number of transactions is small we don't have problems but 
when the number of transaction is big the number of connections to database 
raise and It does not diminish it seems that one does not become disconnected. 
We need restart the server to close the stablished connections to database. We 
have seen that the connections take much in closing tthemselves.

where does it can be the 
problem?


 Thanks,

 

 


AW: string mappings

2002-01-09 Thread Jan Heise


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

hi,

i remember, that i just altered the column from varchar
to text after the first deployment.

but perhaps there is a better solution.

jan

- --
Jan Heise / Tel: +49-163-4803237 / E-Mail: [EMAIL PROTECTED]

- -Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im Auftrag von Morten
Wilken
Gesendet: Mittwoch, 9. Januar 2002 11:50
An: Orion-Interest
Betreff: string mappings


hi all,
i have a situation where i need to make an entitybean with a subject
line
and a body text
in the class both these are implemented as Strings, but i need to map
the
subject to a short varchar (ie 50 chars) and the body text to a
larger one
(but not so large that i need to map it to a blob).. how do i
differentiate
between the 2 in the db schema?

sincerely
Morten Wilken



-BEGIN PGP SIGNATURE-
Version: PGP 7.0.4

iQA/AwUBPDxM0Z/YNqVvLvLkEQIx9gCffhBbxjLFonxcwCMFaWInTtY81lIAoLkZ
/AWF3VMJGrxW0cWBrwPHAIgT
=uEjj
-END PGP SIGNATURE-





RE: deploying ejb without jar'ing

2002-01-09 Thread Marc Rabil

I'm pretty sure you can not.

Marc

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Morten Wilken
Sent: Wednesday, January 09, 2002 4:10 AM
To: Orion-Interest
Subject: deploying ejb without jar'ing


im sure ive come across this... can i deploy ejb's directly from a
filestructure instead fo jarring them first? and if so how?

sincerely
Morten Wilken





Help!

2002-01-09 Thread Nihilist
Title: Message



Can 
anybody explain this error to me:

Error parsing JSP page /process/index.jsp Error creating jsp-page 
instance: java.lang.VerifyError: (class: __jspPage1_process_index_jsp, method: 
_jspService signature: 
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) 
Illegal target of jump or branch

It 
can't be replicated on a consistent basis, it seems to pop up, then go away, all 
by itself. And that's disturbing... Gotta be able to trust the app 
server!

Thanks,
Michael

-Michael LaccettiDeveloper, Eldan 
Software[EMAIL PROTECTED]



Re: question about ip allocation

2002-01-09 Thread Jon White

Sorry but that is just not true.  You can have two processes each with their
own address listening on the same port.  In fact you can have a process per
address since the unique combination must be address and port, the kernel
sorts all the rest out.  If you have netcat installed on your linux machine
try the following nc -s ip1 -l -p 2000 in another terminal run nc -s
ip2 -l -p 2000.  Both processes will be bound to port 2000 and you can
connect to each as you would expect.

The original poster's problem is likely that he does not have IIS properly
configured to listen on only one address.

- Original Message -
From: Maximilian Eberl [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Wednesday, January 09, 2002 5:27 AM
Subject: Re: question about ip allocation


 Your machine has 2 IP-adresses but only one port 80 !

 No 2 servers can listen on 1 port - no matter how many network cards You
 pull in.

 You have to bind the IPs to different ports.
 I am doing this on Linux but don't know how this is done on Windows.

 Max

 --

 Maximilian Eberl
 - developer -
 netzdenker.de

 http://www.netzdenker.de
 mailto:[EMAIL PROTECTED]

 Ludwigstrasse 2
 D-67346 Speyer / Germany
 tel: +49-6232-2602-02
 fax: +49-6232-2602-05







Re: question about ip allocation

2002-01-09 Thread Tim Endres

That is not true. Every ethernet interface can listen on its own port 80.
This can even be done with virtual interfaces which share the same
physical network card. Ports are a abstraction implemented at the driver
level and based on header information in each packet.

tim.

 Your machine has 2 IP-adresses but only one port 80 !
 
 No 2 servers can listen on 1 port - no matter how many network cards You
 pull in.
 
 You have to bind the IPs to different ports.
 I am doing this on Linux but don't know how this is done on Windows.
 
 Max
 
 --
 
 Maximilian Eberl
 - developer -
 netzdenker.de
 
 http://www.netzdenker.de
 mailto:[EMAIL PROTECTED]
 
 Ludwigstrasse 2
 D-67346 Speyer / Germany
 tel: +49-6232-2602-02
 fax: +49-6232-2602-05





RE: deploying ejb without jar'ing

2002-01-09 Thread Alex Paransky

Yes you can,

1. Configure an application deployment at directory app with app/META-INF
(I'll call my app directory app for this example)
2. Inside of app/META-INF/application.xml add your ejb module, let's call it
model
3. Create a directory app/model
4. Create a directory app/model/META-INF and put ejb-jar.xml in it
5. Update orion-application.xml and put a librarty path=path to your
classes pointing to where your EJB classes live

Follow standard procedures to deploy an application (i.e. updating
server.xml etc...)

-AP_

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Morten Wilken
Sent: Wednesday, January 09, 2002 1:10 AM
To: Orion-Interest
Subject: deploying ejb without jar'ing


im sure ive come across this... can i deploy ejb's directly from a
filestructure instead fo jarring them first? and if so how?

sincerely
Morten Wilken





RE: question about ip allocation

2002-01-09 Thread Jarrod Roberson

this is incorrect, they is a port 80 for each IP address.
As long as the clients can access each IP address, they can get to
either port 80.
Now Orion may be listening to ALL ip addresses on port 80 making it
look like there is only one
port 80. But each interface as a full compliment of ports.

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]] On Behalf Of 
 Maximilian Eberl
 Sent: Wednesday, January 09, 2002 5:27 AM
 To: Orion-Interest
 Subject: Re: question about ip allocation
 
 
 Your machine has 2 IP-adresses but only one port 80 !
 
 No 2 servers can listen on 1 port - no matter how many 
 network cards You
 pull in.
 
 You have to bind the IPs to different ports.
 I am doing this on Linux but don't know how this is done on Windows.
 
 Max
 
 --
 
 Maximilian Eberl
 - developer -
 netzdenker.de
 
http://www.netzdenker.de
mailto:[EMAIL PROTECTED]

Ludwigstrasse 2
D-67346 Speyer / Germany
tel: +49-6232-2602-02
fax: +49-6232-2602-05








RE: Help!

2002-01-09 Thread Alex Paransky
Title: Message



Most 
likely, your .jsp page is too large. I think there is a limit of 64K per 
method, and since the JSP page all get's generated into a single method, you 
might be exceeding that. Try using dynamic includes instead of static 
includes, or if you are not using includes at all, try to break up the page and 
use dynamic includes.

-AP_

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of 
  NihilistSent: Wednesday, January 09, 2002 6:41 AMTo: 
  Orion-InterestSubject: Help!
  Can anybody explain this error to me:
  
  Error parsing JSP page /process/index.jsp Error creating jsp-page 
  instance: java.lang.VerifyError: (class: __jspPage1_process_index_jsp, method: 
  _jspService signature: 
  (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) 
  Illegal target of jump or branch
  
  It 
  can't be replicated on a consistent basis, it seems to pop up, then go away, 
  all by itself. And that's disturbing... Gotta be able to trust the 
  app server!
  
  Thanks,
  Michael
  
  -Michael LaccettiDeveloper, Eldan 
  Software[EMAIL PROTECTED]
  


RE: deploying ejb without jar'ing

2002-01-09 Thread Nihilist

It's possible...  It's just a matter of editing the application's
META-INF/application.xml to point to a directory (eg: project/ejb-jar),
then creating another META-INF directory (eg: project/ejb-jar/META-INF)
and dumping the ejb-jar.xml under that.

Of course, if by 'deploying' you mean sending them to another app
server, blah blah blah...  Then I'm not too sure.  I suspect that you'd
have to create the jar for that.

Mike

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Morten Wilken
Sent: January 9, 2002 4:10 AM
To: Orion-Interest
Subject: deploying ejb without jar'ing


im sure ive come across this... can i deploy ejb's directly from a
filestructure instead fo jarring them first? and if so how?

sincerely
Morten Wilken






Re: deploying ejb without jar'ing

2002-01-09 Thread Renaud Bruyeron


I do this all the time.

filestructure:

app/
META-INF/
app-ejb/
META-INF/
com/fullsix/...
app-web/
WEB-INF/

I point orion at app/ (via server.xml), and in the application.xml, instead
of referencing
a .jar, I reference app-ejb/ like this:
application
...
 module
  ejbapp-ejb/ejb
 /module
...
/application

As long as orion finds the META-INF for the ejbs, it does not make
a difference wether it's a jar or not.
it will deploy the app into $ORION_HOME/application-deployments/ as usual.

 - Renaud

- Original Message -
From: Marc Rabil [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Wednesday, January 09, 2002 2:48 PM
Subject: RE: deploying ejb without jar'ing


 I'm pretty sure you can not.

 Marc

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Morten Wilken
 Sent: Wednesday, January 09, 2002 4:10 AM
 To: Orion-Interest
 Subject: deploying ejb without jar'ing


 im sure ive come across this... can i deploy ejb's directly from a
 filestructure instead fo jarring them first? and if so how?

 sincerely
 Morten Wilken








RE: Distributing EJBs

2002-01-09 Thread Carroll, Jim


I should make it clear in what follows that I am trying to load balance
the EJBs in an application, not the web side. I know how to set up
clustering. What I can't get to work is distribution of a set of EJBs
across several servers like the following:

   -- server1 / EJBs
  |
  server0 -   |
  JSP/Servlet Based __|
 EJB Client   |
  |
  |
   -- server2 / EJBs


-Original Message-
From: Carroll, Jim 
Sent: Wednesday, January 09, 2002 1:42 PM
To: 'Orion-Interest'
Subject: Distributing EJBs



I have been trying to distribute the same application across several
servers for the purposes of load balancing. The team at Orion seems to
have purposely made this impossible. I am using the
RMIInitialContextFactory from the web container (from a JSP page) in
order to round robbin between two servers. The code is rather simple:

  Properties prop = new Properties;
  prop.put(java.naming.factory.initial,
   com.evermind.server.rmi.RMIInitialContextFactory);
  prop.put(java.naming.provider.url,
   ormi://server1/appName);

   ... fill in security credentials ...

  InitialContext ic = new IntialContext(prop);
  BeanHome bh = ic.lookup(EJBName);
  BeanRemote br = bh.create();
  br.invokeMethod(); // this executes on server1

  // Now try to execute it on server2

  prop.put(java.naming.provider.url,
   ormi://server2/appName);

  InitialContext ic2 = new InitialContext(prop);
  BeanHome bh2 = ic2.lookup(EJBName);
  BeanRemote br2 = bh2.create();
  br2.invokeMethod(); // this ALSO executes on server1

The initial url of the RMIInitialContextFactory is used UNTIL server1
fails. Then server2 will start working (again, for every call).

That someone would always want the same server simply because: 1) they
are withing a (web) container (I'm not sure if this works from a stand
alone client or not either), and 2) the application is the same seems an
absurd assumption on the part of the Orion developers. Is there a way
around this?

Thanks




RE: question about ip allocation

2002-01-09 Thread john_haasbeek


On windows (NT) you can bind multiple IP addresses to a single NIC under
the Advanced tab on the TCP/IP protocol properties dialog.  Of course,
you'll have to reboot...

John H.




Jarrod Roberson [EMAIL PROTECTED]@orionserver.com on 01/09/2002
11:06:29 AM

Please respond to Orion-Interest [EMAIL PROTECTED]

Sent by:  [EMAIL PROTECTED]


To:   Orion-Interest [EMAIL PROTECTED]
cc:

Subject:  RE: question about ip allocation


this is incorrect, they is a port 80 for each IP address.
As long as the clients can access each IP address, they can get to
either port 80.
Now Orion may be listening to ALL ip addresses on port 80 making it
look like there is only one
port 80. But each interface as a full compliment of ports.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]] On Behalf Of
 Maximilian Eberl
 Sent: Wednesday, January 09, 2002 5:27 AM
 To: Orion-Interest
 Subject: Re: question about ip allocation


 Your machine has 2 IP-adresses but only one port 80 !

 No 2 servers can listen on 1 port - no matter how many
 network cards You
 pull in.

 You have to bind the IPs to different ports.
 I am doing this on Linux but don't know how this is done on Windows.

 Max

 --

 Maximilian Eberl
 - developer -
 netzdenker.de

http://www.netzdenker.de
mailto:[EMAIL PROTECTED]

Ludwigstrasse 2
D-67346 Speyer / Germany
tel: +49-6232-2602-02
fax: +49-6232-2602-05












REMOVE

2002-01-09 Thread Magnus Forslund

 




How to get target page on the loginError page...

2002-01-09 Thread Alex Paransky

After the user has entered improper login information, I want the loginError
page to contain a link to the page that the user was going to along with all
the necessary parameters.  Is there a way to get this target information
from the errorPage and generate a link?

I am trying to avoid having the user to press the back button to attempt
re-login again.

Thanks.
-AP_





RE: deploying ejb without jar'ing

2002-01-09 Thread Marc Rabil

Sorry for the bad advice - looks like good ole Orion allows you to do all
kinds of things!

Marc

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Renaud
Bruyeron
Sent: Wednesday, January 09, 2002 1:23 PM
To: Orion-Interest
Subject: Re: deploying ejb without jar'ing



I do this all the time.

filestructure:

app/
META-INF/
app-ejb/
META-INF/
com/fullsix/...
app-web/
WEB-INF/

I point orion at app/ (via server.xml), and in the application.xml, instead
of referencing
a .jar, I reference app-ejb/ like this:
application
...
 module
  ejbapp-ejb/ejb
 /module
...
/application

As long as orion finds the META-INF for the ejbs, it does not make
a difference wether it's a jar or not.
it will deploy the app into $ORION_HOME/application-deployments/ as usual.

 - Renaud

- Original Message -
From: Marc Rabil [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Wednesday, January 09, 2002 2:48 PM
Subject: RE: deploying ejb without jar'ing


 I'm pretty sure you can not.

 Marc

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Morten Wilken
 Sent: Wednesday, January 09, 2002 4:10 AM
 To: Orion-Interest
 Subject: deploying ejb without jar'ing


 im sure ive come across this... can i deploy ejb's directly from a
 filestructure instead fo jarring them first? and if so how?

 sincerely
 Morten Wilken









Simple question re caching/pooling of BMP Entity Beans

2002-01-09 Thread Geoff Soutter

Hi there,

I'm teaching myself how to use Orion and I've got a simple question
about caching/pooling of BMP Entity Bean instances.

I've created a simple app which lets me read a BMP Entity Bean through a
Session Bean. I would expect that when I call findByPrimaryKey on my
Entity Bean's home interface, Orion caches the instance it creates so
that next time I call findByPrimaryKey for the same key, it just returns
the instance it already has rather than creating a new one. However, it
appears that it goes to the database (i.e. calls ejbFindByPrimaryKey in
the Entity Bean's implementation) for every call to findByPrimaryKey,
regardless of whether it has previously read the instance with the
specified key before. 

I checked the list archive and it appears that someone has reported a
similar problem a while back but there were no replies
(http://www.mail-archive.com/orion-interest@orionserver.com/msg17359.htm
l). 

I also checked the documentation and for orion-ejb-jar.xml it states
that exclusive-write-access is true by default, and since I am not
setting it I presume it's defaulting to true which should allow Orion to
cache the entity beans.

So, can anyone shed any light on how whether/how I can get Orion to
cache BMP entity beans?

Cheers

Geoff







App server debugging -- HELP

2002-01-09 Thread Aaron Tavistock


I've got a very large web application (about 300 objects and about 1000
pages) which uses mostly straight JSP.  This gets a reasonable number of
hits with approximately 200 concurrant sessions operating.  

Recently, we introduced something thats causing something resembling a
thread deadlock.  Some unknown event occurs, then things start grinding to
halt as threads get backed up.  When this happens they only way to get out
is to hard kill the server (e.g. - orions shutdown doesn't work, and kill
-TERM doesn't work).

This only really occurs under load, and we cannot reproduce it in a
development environment (even with loading tools).  We've crawled through
every line of code carefully and have found some obscure race-conditions we
hadn't considered (race conditions we never actually had occur).  But so far
nothing that has would fix our real problem, so I'm fairly convinced that
I'm not going to find it easily by looking at java code.

Now I've tried jdb and of course I can only see suspended threads (which is
not too useful) and I've tried jprobe but that only shows the parent threads
state.  I even tried strace/truss but thats too lowlevel to make out whats
happening.  I'm starting to use 'kill -3' but that again only shows the
parent thread.  

Does anyone have an suggestions on doing runtime debug on the thread level?
I'd really just like to see whats actually happening in the locked threads.
Anyone?

 




does orionsupport startup and shut down classes

2002-01-09 Thread meera krishnaraja bhat
hai

Does ORION support startup and shutdown classes? Here is the scenario, in order to have access to the system resources (file system, legacy applications) from an EJB, it is the violation of EJB spec. However, one can write a java class that accesses system resources and deployed this class in the EJB Server. thanks
meeraMSN Photos is the easiest way to share and print your photos: Click Here



RE: How to get target page on the loginError page...

2002-01-09 Thread peter_saurugger

Alex, look at the ATM example - the login.jsp page is used as loginError
page, also, and if the user succeeds on that page, s/he gets automatically
forwarded to the page the user was going to in the first place - no back
button needed. I think this is the behaviour you would like to implement?

The ATM example doesn't add conditional code which tells the user that s/he
has made an error before, but that is trivial to add.

--peter

-Original Message-
From: Alex Paransky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 1:30 PM
To: Orion-Interest
Subject: How to get target page on the loginError page...


After the user has entered improper login information, I want the loginError
page to contain a link to the page that the user was going to along with all
the necessary parameters.  Is there a way to get this target information
from the errorPage and generate a link?

I am trying to avoid having the user to press the back button to attempt
re-login again.

Thanks.
-AP_