Servlet error: Attempted to write longer than Content-Length (197/180)
I have sent this request to the mailing list earlier, but noone responded. Do the Orion team have anybody who can respond to this email? If I am the only one who has ever had this error, I want to know that to. It appears that the content length is set too low. Is there anywhere in the properties this can be set? ERROR DESCRIPTION FOLLOWS: I have installed v.0.9.1b. I have an application where I am using JSP, servlets, XML/XSL, etc. I am trying to get my app running on the Orion Server, and it compiles 3 of my JSP fine, but it stops on one of them, and the following message is printed to the log. Any ideas? The app runs fine in JRun. 04.02.00 11:04 defaultWebApp: Servlet error java.lang.IllegalArgumentException: Attempted to write longer than Content-Length (197/180) at dh.write(JAX) at com.evermind.server.http.EvermindJSPWriter.ow(JAX) at com.evermind.server.http.EvermindJSPWriter.flush(JAX) at com.evermind.server.http.EvermindJSPWriter.close(JAX) at __jspPage1._jspService(__jspPage1.java:151) at com.evermind.server.http.EvermindHttpJspPage.service(JAX) at com.evermind.server.http.HttpApplication.oc(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at cv.kt(JAX) at cv.forward(JAX) at c4.mu(Compiled Code) at c.run(Compiled Code) Vennlig hilsen Pål Høye Systemutvikler Merkantildata Applikasjon AS Direkte tlf: 55 59 56 03 Fax: 55 59 55 90
JMS Support for QueueConnectionFactory
Is there an official statement from the orion team? How can I configure jndi locations for QueueConnectionFactorys? Thanks in advance, Gal Shachor
Orion9.1c Cart example
Hi all - I got the EJB Cart example working this morning after downloading Orion0.9.1c.zip, and the orion.jar (0.9.1h build), and of course tweeking a few files. This is what I did: 1. Changed lookup to: Object homeObject = context.lookup("MyCart"); 2. I removed the .jar file from the cart directory. 3. I removed all references to usermanager and product in the META-INF/application.xml and orion-application.xml (Just because I only wanted the Cart deployed) 4. Restarted the server and executed the Cart example like it said in the "install.txt", and it worked. The CartClient also works for me by just typing "java CartClient" too. I don't know how much of the above is valid, but that's everything I did until it worked. hope this helps, Dan __ Get Your Private, Free Email at http://www.hotmail.com
Wrong content-type for JSP
Hello, I have found some sort of bug with the content-type of JSPs in Orion 0.9.1b. When I reloaded a JSP-generated page a few times in Netscape I was suddenly prompted with a "save file" dialog. I checked with telnet to port 80 on the server machine, and it turned out that Orion _sometimes_ sends "application/jsp" instead of "text/html" as the content-type for JSP pages. In the file config/mime.types the line - application/jsp jsp - appears. I guess this is somehow related to the problem... /Anders A n d e r s B e n g t s s o n [EMAIL PROTECTED] http://www.natakademin.se/
Re: Wrong content-type for JSP
I have found some sort of bug with the content-type of JSPs in Orion 0.9.1b. When I reloaded a JSP-generated page a few times in Netscape I was suddenly prompted with a "save file" dialog. I checked with telnet to port 80 on the server machine, and it turned out that Orion _sometimes_ sends "application/jsp" instead of "text/html" as the content-type for JSP pages. I have a similar problem involving XML files (both static and dynamic) that have been passed through the XSL servlet. The wrong content-type seems to be returned about 4 out of 5 times (it's the 1 in 5 times that it works that bugs me). Anyone else had this problem? Try the examples in the examples/xsl directory and reloading them a few times. Using 0.9.1g -Joe Walnes
war archives
I am trying to use war files for a web site. I packed the entire default-web-app directory in a default-web-app.war and modified the application.xml file web-module id=defaultWebApp path=../../default-web-app.war / I have to use ../../ It seems that there is a bug an expanding the path, since orion tries to find config/application.xml/path then at the first start, ORION unpack the war archive in the directory default-web-app :well Next ORION display a message like this : Error starting HttpServer: error initializing site ... unable to read WEB-INF/web.xml ??? In other cases (i don't remember) I gotjava.lang.ArrayIndexOutOfBoundsException at com.evermind.util.aa.bn(JAX) at com.evermind.util.aa.bn(JAX) at com.evermind.server.http.HttpApplication.oa(JAX) at com.evermind.server.http.HttpApplication.ny(JAX) at com.evermind.server.http.HttpApplication.mn(JAX) at com.evermind.server.http.c4.m3(JAX) at com.evermind.util.c.run(JAX) Note: I run on windows/Java 1.3, but the target platform will be LINUX.
Library shadow problem
I have installed the latest version (0.9.1), but have been unable to run it on Windows 98. I encounter the message indicating there is library shadowing detected and telling me to remove any old libraries from the classpath. The only classpath definition I have is to jdk 1.2.2 which I am running. I didn't think this should cause any problem. Am I wrong about this? Could anyone provide assistance as to what additionally I might do to overcome this problem. Thanks, Lou
Application deployment compiling / NullPointerException
Hi all, I am trying to deploy the atm application example and getting some errors. Originally I noticed orion complaining about not being able to find javac and to copy the tools.jar file into the orion directory. I have the following line in config\server.xml: compiler executable="javac" classpath="%CLASSPATH%" / Originally I tried using jikes which worked fine for jsp's, but had some problems with ejb's, so I configured it to use javac instead, which again worked for jsp's but not for ejb's The only way to cure the error was to actually copy the tools.jar into the orion directory (which I would like to avoid in the future if possible). I believe the line above should work for compiling jsp's as well as ejb's but I am probably wrong. After getting the data-sources.xml file configured properly and getting the application to deploy without errors, I receive the following (endlessly) : Orion/0.9.1g initialized java.lang.NullPointerException at com.evermind.server.ApplicationServer.mr(JAX) at com.evermind.server.fc.run(JAX) at com.evermind.util.d.run(JAX) java.lang.NullPointerException: at com.evermind.server.ApplicationServer.mr(JAX) at com.evermind.server.fc.run(JAX) at com.evermind.util.d.run(JAX) at com.evermind.util.c.run(JAX) . . . This is my first attempt at deploying an application, and i followed the instructions on the website (configured server.xml and default-site.xml). I feel like I am close. I have also written a small application that I would like to attempt to deploy but I want to make sure I am actually able to configure the server so that if i fail on this other application, i know the trouble is with my code, not with the server config. One other question, Is there an easy way to create .war and .ear other than the deploytool that comes with the j2ee from sun? Thanks for the help (and keep up the great work orion guys) :) Jeff