Re: How do you shut down orion after it's initialized

2001-12-18 Thread Chris Callaghan

Sounds like you're missing admin.jar...

You can get rid of your transaction-log error by creating a persistence 
directory under the orion directory. Orion will then happily use that... 
I think some zip implementations have a thing about creating empty 
directories...

James Beeson wrote:


 I did not have the admin user deactivated (althought that was a good 
 tip- thanks!)

 When I use the command:

 java -jar admin.jar ormi://localhost:8080/ admin pswd -shutdown

 I get:

 Exception in thread main java.util.zip.ZipException: The system 
 cannot find the file specified
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.init(Unknown Source)
at java.util.jar.JarFile.init(Unknown Source)
at java.util.jar.JarFile.init(Unknown Source)

 And then Orion is left running. Could that be related to the error it 
 prints out when Orion starts (here it is):

 Warning: Error reading transaction-log file 
 (/C:/orion/persistence/transaction.state) for recovery: premature end 
 of file Forced or abrubt (crash etc) server shutdown detected, 
 starting recovery process
 ...
 Recovery completed, 0 connections committed and 0 rolled back...
 Orion/1.5.2 initialized

 But then the app runs fine. I currently don't have a transaction.state 
 file.

 Why won't it let me shut down Orion?
 Thanks




 _
 MSN Photos is the easiest way to share and print your photos: 
 http://photos.msn.com/support/worldwide.aspx








Re: How do you shut down orion after it's initialized

2001-12-18 Thread Chris Callaghan

Wrong port dude, try 23791 (default unless you change it in 
orion/config/rmi.xml).

James Beeson wrote:

 This is what I get when I start Orion:
 
 C:\orionjava -jar orion.jar
 Warning: Error reading transaction-log file
 (/C:/orion/persistence/transaction.state) for recovery: premature end of
 file
 Forced or abrubt (crash etc) server shutdown detected, starting recovery
 process
 ...
 Recovery completed, 0 connections committed and 0 rolled back...
 Orion/1.5.2 initialized
 
 I immediately opened a new DOS window and did this:
 
 C:\WINDOWS\Profiles\James\Desktopcd c:\orion
 
 C:\orionjava -jar admin.jar ormi://localhost:8080 admin pswd -shutdown
 Error: javax.naming.NamingException: Lookup error: java.io.EOFException:
 Disconnected; nested exception is:
java.io.EOFException: Disconnected
 
 C:\orion
 
 
 
 
 From: Setlur, Atul (MED) [EMAIL PROTECTED]
 Reply-To: Orion-Interest [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Subject: RE: How do you shut down orion after it's initialized
 Date: Tue, 18 Dec 2001 11:16:11 -0600
 
 Are you sure you are running this from the directory where orion is
 installed. Verify admin.jar is in the directory that you are running
 this script. Alternatively, cd to the orion directory and run it from
 there.
 
 -Atul
 
 -Original Message-
 From: James Beeson [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 18, 2001 9:41 AM
 To: Orion-Interest
 Subject: Re: How do you shut down orion after it's initialized
 
 
 
 I did not have the admin user deactivated (althought that was a good
 tip-
 thanks!)
 
 When I use the command:
 
 java -jar admin.jar ormi://localhost:8080/ admin pswd -shutdown
 
 I get:
 
 Exception in thread main java.util.zip.ZipException: The system cannot
 
 find the file specified
 at java.util.zip.ZipFile.open(Native Method)
 at java.util.zip.ZipFile.init(Unknown Source)
 at java.util.jar.JarFile.init(Unknown Source)
 at java.util.jar.JarFile.init(Unknown Source)
 
 And then Orion is left running. Could that be related to the error it
 prints
 out when Orion starts (here it is):
 
 Warning: Error reading transaction-log file
 (/C:/orion/persistence/transaction.state) for recovery: premature end of
 
 file Forced or abrubt (crash etc) server shutdown detected, starting
 recovery process
 ...
 Recovery completed, 0 connections committed and 0 rolled back...
 Orion/1.5.2 initialized
 
 But then the app runs fine. I currently don't have a transaction.state
 file.
 
 Why won't it let me shut down Orion?
 Thanks
 
 
 
 
 _
 MSN Photos is the easiest way to share and print your photos:
 http://photos.msn.com/support/worldwide.aspx
 
 
 
 
 _
 Join the world's largest e-mail service with MSN Hotmail.
 http://www.hotmail.com
 
 







Re: How do you shut down orion after it's initialized

2001-12-17 Thread Chris Callaghan

Make sure you have removed deactivated=true from the admin user in 
config/principals.xml, then use:
java -jar admin.jar ormi://localhost:23791/ admin 123 -shutdown

James Beeson wrote:


 How do you shut down orion after it's initialized?
 I've tried several commands, but I can't get any to work.


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








Re: How to use mySQL DB as Datasource?

2001-09-27 Thread Chris Callaghan

Download the JDBC driver from http://mmmysql.sourceforge.net/ and put 
that into your orion/lib directory, then edit 
orion/config/data-sources.xml to add in the data-source.

Docs on the data-sources.xml can be found here: 
http://www.orionserver.com/docs/data-sources.xml.html

You will need to use connection-driver=org.gjt.mm.mysql.Driver and 
url=jdbc:mysql://[hostname][:port]/dbname[?param1=value1][param2=value2] 
.

If you want to use CMP then you'll have to setup the database-schema.xml 
(http://www.orionserver.com/docs/database-schema.xml.html) as well.

Have fun!
Chris

Michael Simons wrote:

 I'm aware that's a really newbie question but that's what I am ...

 Any docs or anything else on this?

 thanks in advance, michael







Re: OrionRemoteException: Error (de-)serializing object:

2001-09-27 Thread Chris Callaghan

Make sure you are closing your all of your ResultSets after you've 
finished with them (same for Statement and Connection objects).

Chris

Andres Garcia Hourcade wrote:

I have an application (jsp  ejb) running with version 1.4.0, i am trying to
upgrade the same EAR in 1.5.2 version, but i get this error.

What i am doing wrong ?

com.evermind.server.rmi.OrionRemoteException: Error (de-)serializing object:
org.gjt.mm.mysql.jdbc2.ResultSet; nested exception is:
java.io.NotSerializableException: org.gjt.mm.mysql.jdbc2.ResultSet

Many thanks









Re: Does anyone know how to get working Netbeans 3.2 with orion 1.5.2 to debug JSP's?

2001-08-29 Thread Chris Callaghan

Hi Dmitriy

You need to start Orion with:
java -Xdebug -Xnoagent 
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -jar orion.jar

then in NetBeans, go to Debug menu  Attach,
change the Debugger Type to Default debugger (JPDA),
Connector to SocketAttach,
Host to the hostname of the machine running Orion (localhost if its yours)
and Port to 8000 (or whatever you specify in the address argument in 
-Xrenjdwp when starting Orion)

Dmitriy Serebryakov wrote:

Hi, Everyone

Might be it is simple, but I have tried, no luck, no use of FAQ from
orionserver.com neither docs for both orion and Netbeans. I could not find
clear explanation what to do to get JSP's debugged.
Any suggestions about best (or better) way to do that, may be another IDE?

Running JDK 1.3 SE on Win2K Pro on Intel Pentium, Orionserver 1.5.2,
NetBeans 3.2.1

Thanks,
D.S.









Re: Too Many Open Files?

2001-08-08 Thread Chris Callaghan

Yep running out of file descriptors. You have a max of 1024 per process, 
but as just about everything in Linux (and Unix) uses a file descriptor 
(like the tcp sockets java uses), you can easily use this up.

www.jlinux.org has instructions on what you need to change before you 
recompile your kernel.

You may also want to change to native threads as well as this will give 
you better performance for server side apps.

Chris

Richard Taylor wrote:

 OS: RedHat7.1

 ORION: 1.5.2

 JAVA: Blackdown 1.3.1 FCS (-green -Xmx400M)

  

 ERROR:

 java.io.FileNotFoundException: filename (Too many open files)

  

 Hi,

  

 I am receiving the above error in the global-application.log a number 
 of times a day.

  

 Is this related to the problem on linux where you can only have 1024 
 file handles open?

  

 Has anyone resolved this / has documentation on how to do it?

  

 What are the implications of this error to the user - I have not 
 experienced any problems on the client side.

  

 Thanks,

  

 Richard.







Re: To many open files ???

2001-07-22 Thread Chris Callaghan

The linux kernel imposes a limit (of 1024) on the number of file 
descriptors per process. Of course tcp/ip sockets also appear as files 
and require file descriptors.

You need to recompile your kernel and change some environment settings.

Check out http://www.jlinux.org/server.html for a description of the 
problem and how to fix it.

Chris

Eddie wrote:

 I just noticed that the site www.orionserver.com 
 http://www.orionserver.com was unreachable and it give the error To 
 many open files

 I have the same problem sometimes. How do you solve that or how do you 
 monitor which causes this (without buying tons of memory) ?  I am 
 running Linux BTW.

  

 Eddie







pathInfo in a custom tag

2001-07-19 Thread Chris Callaghan

Hi all,

I'm trying to get the request path for a page from inside a custom tag. 
The tag itself extends TagSupport.

I'm getting the ServletRequest object from the pageContext.getRequest() 
- this object is an instanceof HttpServletObject, but when I ask it for 
pathInfo() I get null...

HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();
String path = request.getPathInfo(); // aways null?

Is there a way to do this inside the tag, or will I have to pass the 
path in from the JSP?

Cheers
Chris





Re: pathInfo in a custom tag

2001-07-19 Thread Chris Callaghan

Haha, got it...

The url I had was http://localhost/myApp/logon.jsp,
so getPathInfo() is null, but getServletPath() was logon.jsp

Kinda obvious really :)
Cheers
Chris

Jeff Hubbach wrote:

Chris,

I just wanted to make sure you're checking for the right thing in your
code, and if you are I apologize. 
For the following example URL:
http://www.foo.com/FooServlet/testme?hey=you

Assume that FooServlet and FooServlet* are both mapped to FooServlet.

Here are the results of the following calls:
HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();
String servletPath = request.getServletPath();
// here servletPath = /FooServlet, same as cgi.SCRIPT_NAME
String pathInfo = request.getPathInfo();
// here pathInfo = /testme, same as cgi.PATH_INFO
String queryString = request.getQueryString();
// here queryString = hey=you, same as cgi.QUERY_STRING

If you want some very helpful documentation on CGI variables and their
definitions, check out this URL:
http://cgi-spec.golux.com/draft-coar-cgi-v11-03.html

Jeff Hubbach.

On Fri, 20 Jul 2001 10:36:40 +1200
Chris Callaghan [EMAIL PROTECTED] wrote:

Hi all,

I'm trying to get the request path for a page from inside a custom tag. 
The tag itself extends TagSupport.

I'm getting the ServletRequest object from the pageContext.getRequest() 
- this object is an instanceof HttpServletObject, but when I ask it for 
pathInfo() I get null...

HttpServletRequest request = (HttpServletRequest)

pageContext.getRequest();

String path = request.getPathInfo(); // aways null?

Is there a way to do this inside the tag, or will I have to pass the 
path in from the JSP?

Cheers
Chris










Re: Support for MySQL

2001-06-20 Thread Chris Callaghan

The latest releases (as of 3.23.34a) of MySQL support transactions by 
using Berkley DB.

I'm using MySQL at the moment. The main anoyance I've got is that it 
doesn't have sub-selects, apart from that, works great.

I haven't tried using transactions though as my data is read only.

Ray Harrison wrote:

Mysql doesn't support transactions (or the last time I checked it didn't) - so it can 
be limited -
but yes, orion interacts with the database just fine. I would suggest another 
database to try
would be SAP DB (www.sapdb.org) which is an open source database delivered by SAP AG 
- I love it.
There is a sap database schema in the orion download. 



--- Nicolai P Guba [EMAIL PROTECTED] wrote:

Hmmm, I've found that PostgreSQL is supported.  Has anybody got any
success stories with mySQL? (still evaluating).

-- 
  Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com
mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
GSM: +44 (0)7909 960 751   DDI: +44 (0)20 7368 9708



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