load-on-startup doesn't work

2000-11-06 Thread Aleksi Kallio

I have a servlet that starts up my application when Orion (1.0.3 - yes, a very old 
one) is started. The problem is that nothing happens - init(ServletContext) doesn't 
get called. I have this in global-web-application.xml:

servlet
servlet-nameSoftware/servlet-name
display-nameSoftware/display-name
servlet-classfoo.bar.Software/servlet-class
load-on-startup1/load-on-startup
init-param
param-nameapplication-directory/param-name
param-valueapplications/software/param-value
/init-param
/servlet   

What could be the problem? Any suggestions how to debug this? I don't have any clues...






Starting thread when Orion starts

2000-10-25 Thread Aleksi Kallio

I have a thread that needs to be running when Orion is up. How to implement it so that 
it automatically starts when Orion is started (ie. how Orion informs its bootup)?






Problem using JavaMail with Orion

2000-10-24 Thread Aleksi Kallio

500 Internal Server Error java.lang.NoClassDefFoundError: javax/activation/DataHandler

This class comes with Orion and also is located in the Orion library path. What's 
wrong?






Routing a request to default web app to other web app

2000-09-12 Thread Aleksi Kallio

I have a standard web application, accessible from localhost/myapp. Is it possible to 
configure it to be usable from localhost/, so that the application itself remains in a 
separate directory in ../applications/ and can be distributed as an .ear-file.






Extending application deployment with own code

2000-09-12 Thread Aleksi Kallio

I've been trying to figure out how to add some functionality to Orion's web-app 
deployment (such as creating required databasestructures and setting up application 
specific stuff). Instead of sending a multitude of little questions I just ask: how to 
do it right?

It should configurable from application.xml (through init-params), so I need to get 
application context. It should be invoked automatically, which is done somehow with 
manifests, I suppose? 

Any references? Your experiences? 






Orion+MySQL crashes at night

2000-08-18 Thread Aleksi Kallio

We have Orion 1.1.37 with MySQL (mm.mysql driver). MySQL is used as a non-pooled 
data-source. Everything works fine, but when server is left running for the night, at 
the morning the DB connection has "crashed":

java.sql.SQLException: Lost connection to server during query
at org.gjt.mm.mysql.Connection.execSQL(Connection.java)
at org.gjt.mm.mysql.Connection.execSQL(Connection.java)
at org.gjt.mm.mysql.Statement.execute(Statement.java)
at org.gjt.mm.mysql.jdbc2.Statement.execute(Statement.java:114)


This happens in both Win NT and Linux. 

Have you had similar problems? Is this a bug in the driver (as it would seem) or in 
Orion, or a configuration issue? 

Here's my datasource config:

data-sources
 data-source 
  name="Project data-source" 
  class="com.evermind.sql.ConnectionDataSource" 
  location="jdbc/ProjectDS" 
  inactivity-timeout="0" 
  max-connections="100" 
  pooled-location="jdbc/ProjectPooledDS" 
  xa-location="jdbc/xa/NProjectXADS" 
  ejb-location="jdbc/ProjectEJBDS" 
  url="jdbc:mysql://info02.infomates.net:3306/project" 
  connection-driver="org.gjt.mm.mysql.Driver" 
 /
/data-sources





A very interesting problem with JSP's and Finland

2000-08-10 Thread Aleksi Kallio

There is a very funny bug in Orion. I think it is in JSPservlet, because it appears 
only when compiling jsp pages. I have the package fi.infomates in import clause, which 
leads to the following error:

Ambigious name:
fi is both a class and a package

After a long search I succeeded to locate the problem to orion.jar, to 
com/server/ejb/administeration/fi.class.

Is it that we Finnish developers aren't allowed to use JSP? :)






Registering and using own file/mime types

2000-07-18 Thread Aleksi Kallio

I need to set up Orion to recognise my own file extension .tst (for test) 
and dispatch requests for that type to a specified servlet (Testlet). Just 
like jsp's etc... work now.

I've tried a bunch of things. I made alias test for Testlet and made a 
servlet mapping for it. Also added "application/test tst" to mime.types.

web-app
 servlet
 servlet-nametest/servlet-name
 servlet-classTestlet/servlet-class
 /servlet

 !-- . --

 servlet-mapping
 servlet-nametest/servlet-name
 url-pattern/*.tst/url-pattern
 /servlet-mapping
/web-app

But I always end up with "404 Not Found".

Is there any documentation for this?
Can Orion be configured to dispatch requests to servlet even if the file 
doesn't exist? (thus creating "a virtual file system")





No Subject

2000-07-10 Thread Aleksi Kallio

I have a shared partition for Java source and class files (directory is a shared Samba 
directory, which is mapped to a partition under NT). Compiling and running Java 
programs with JDK (javac and java) works fine. But Orionserver has problems running 
Java classes which reside on that shared partition. 

Error report from JSP-page compilation:

Syntax error in source
__jspPage2_project_project_jsp.java:7: Ambiguous name: fi is both a class and a 
package. 
import fi.infomates.project.*; 

If I copy the contents of that shared partition to a local drive everything works just 
fine.

Does Orion access disk resources somehow differently? It's the only program having 
difficulties with that mapped partition.


Aleksi Kallio
Infomates Software Technologies