load-on-startup doesn't work
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: Software Software foo.bar.Software 1 application-directory applications/software What could be the problem? Any suggestions how to debug this? I don't have any clues...
Starting thread when Orion starts
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
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?
Restricting access by IP
How to restrict access to Orion server to some IP-pattern? It could be also per wep-app.
Extending application deployment with own code
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?
"Routing" a request to default web app to other web app
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.
Vs: Shutting orion from a different machine
>Does anyone know how i can shut down orion from a different > machine..say i have orion started on machine 1 now i want to shutdown > orion from machine 2 how do i use > the java -jar admin.jar ormi://localhost admin 123 -shutdown from machine2 > to shutdown machine 1 java -jar \machine1\orion\admin.jar ormi://machine1/ admin 123 -shutdown Works for me, at least. (Win98 -> NT) I've also noticed that it is polite to inform the user of the other machine...
Restricting servlet access
In my current setup of Orion it is possible to invoke unmapped servlets by calling them with their full packet name (like /servlet/org.comics.FunnyServlet) as long as they reside in the classpath. How to disallow this?
Orion+MySQL crashes at night
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:
A very interesting problem with JSP's and Finland
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
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. test Testlet test /*.tst 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
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