java.io.StreamCorruptedException
Hi, since i have update to 1.4.7 i found this message in the log files: Error restoring application state: java.io.StreamCorruptedException (InputStream does not contain a serialized object) it occurs only from time to time (e.g. everytime orion is started and the first request comes along). i haven't noticed any problems occuring due to this, but i'm just curious. --nils
Re: orion on unix
Yes, but sudo will still run orion with UID 0. This will not improve security. Then you might as well make a group called 'orion', and put all the users that need access to orion into this group. Change the dir/file perms so that it is read/writable for these users. If you try to get orion to run non-root because of security, follow the example on orionsupport. --nils Scott M. Stirling([EMAIL PROTECTED])@Sun, Jan 07, 2001 at 01:49:15PM -0500: I think there is a better solution than using ipchains (which I'm not sure is supported anywhere but on Linux, and is bound to incurr some overhead, though I'm not sure if it would be significant), or at least an alternative. Install sudo if you haven't already. You have to configure sudo with the names/groups of users and their permissions. What sudo does is allow non-root users to execute super user commands and temporarily attain super user privileges for the purpose of executing commands. You can have users enter a password to use sudo, or you can configure sudo to allow users/groups to use it without a password. In any case, make sure the actual root password and the sudo password are different, that way no one needs to know the root password except root. To use sudo, once installed, you just prefix sudo to any command in order to use it: sudo reboot sudo java -jar orion.jar etc. http://www.courtesan.com/sudo/ On 07 Jan 2001 16:54:01 +0800, Heng Chee, Lee - SG wrote: Hi, I used to run orion on NT machine and now I have to deploy it on a Sun Sparc Solaris machine. Honestly, my knowledge on unix system admin is very limited. Ok, now I have this problem: I have untar the orion archieve to a folder called orion, this folder and all the files and subfolders under it are belongs to a user name 'orion', the group access permission for this folder (and all it's files) are also called 'orion'. When I log in to unix as user 'orion' and try to start up the app server by typing java -jar orion.jar, I get a message "Error starting HTTP-Server : Permission denied". I can only startup orion if I log in as root user. This is not acceptable because I can't let everyone to have root access just for starting up the orion server.(Our project still in the development phase so we need to start and stop the server quite often) I am puzzle with this error because I have already set the owner of all the files under orion folder to be 'orion', and orion app server is using it's own http-server internally so it shouldn't has any permission problem. I think that orion app server might try to access some of the unix system file which must have root access, if this is the case can someone tell me which file it it? Or is there any alternative work around for this problem? Thanks and best regards Lee -- Scott Stirling West Newton, MA
Re: Problems with EJB and JNDI-context
Hi, my problem was a mistake in the ejb-ref in web.xml. (i am also using "java:comp/env/ejb/user" now) --nils -- ** * Your mouse has moved. Windows must be restarted for the change to take effect. * ** * Nils Frohberg * *http://www.tako.de/ * **
Problem deploying EJBs using a MySQL data-source
Hi, up to now i always connected to the Hypersonic database. Since i have a mysql database running on another box, i tried to connect to it, using Shailesh Joshi's data-sources.xml and database-schemas/mysql.xml (cf. msg# 05137 Re: Orion and MySQL). This is the errormessage i get when orion tries to deploy my EJBs: Auto-deploying myEJB.jar (No previous deployment found)... Error compiling file:/home/wuzzah/myEJB/myEJB.jar: Error finding a suitable DataSource: jdbc/DefaultCoreDS did not contain a cmt-dataSource/ejb-datasource My data-source: data-source name="MySQL" class="com.evermind.sql.ConnectionDataSource" location="jdbc/DefaultDS" pooled-location="jdbc/DefaultPooledDS" xa-location="jdbc/xa/DefaultXADS" ejb-location="jdbc/DefaultEJBDS" url="jdbc:mysql://hostname/myEJBdatabase" connection-driver="org.gjt.mm.mysql.Driver" username="user" password="passwd" inactivity-timeout="30" schema="database-schemas/mysql.xml" / My database-schema: ?xml version="1.0"? !DOCTYPE database-schema PUBLIC "-//Evermind//- Database schema" "http://www.orionserver.com/dtds/database-schemas.dtd" database-schema name="Mysql" not-null="not null" null="" primary-key="primary key" type-mapping type="java.lang.String" name="varchar(255)" / type-mapping type="int" name="integer" / type-mapping type="float" name="float" / type-mapping type="double" name="double" / type-mapping type="byte" name="smallint" / type-mapping type="char" name="char(1)" / type-mapping type="short" name="integer" / type-mapping type="boolean" name="bit" / type-mapping type="java.util.Date" name="datetime" / disallowed-field name="password" / disallowed-field name="username" / disallowed-field name="date" / disallowed-field name="text" / /database-schema any hints? thanks, --nils -- ** * Your mouse has moved. Windows must be restarted for the change to take effect. * ** * Nils Frohberg * *http://www.tako.de/ * **
Problems with EJB and JNDI-context
Hi, I am facing a problem with my EJBs that i cannot solve. I try to access a EJB via a JSP page: %-- Setting up an error page --% %@ page errorPage="/errorpage.jsp" % %-- Taglibs --% %@ taglib uri="ejbtags" prefix="ejb" % ejb:useHome id="user" type="de.tako.userHome" location="java:comp/env/ejb/user" / html head titletest/title /head body test /body /html This is the result i get (thru errorpage.jsp): javax.servlet.jsp.JspException: NamingException: Error instantiating web-app JNDI-context: No location specified and no suitable instance of the type 'de.tako.user' found for the ejb-ref ejb/user at com.evermind.ejb.taglib.UseHomeTag.doStartTag(Compiled Code) at __jspPage0_index_jsp._jspService(Compiled Code) at com.orionserver.http.OrionHttpJspPage.service(Compiled Code) at com.evermind.server.http.HttpApplication.xa(Compiled Code) at com.evermind.server.http.JSPServlet.service(Compiled Code) at com.evermind.server.http.d3.so(Compiled Code) at com.evermind.server.http.d3.sm(Compiled Code) at com.evermind.server.http.ef.su(Compiled Code) at com.evermind.server.http.ef.dn(JAX) at com.evermind.util.f.run(Compiled Code) My ejb-ref looks like this: ejb-ref ejb-ref-nameejb/user/ejb-ref-name ejb-ref-typeSession/ejb-ref-type homede.tako.userHome/home remotede.tako.user/remote /ejb-ref Is there any aspect i am missing? I could not find any clues on the list, nor in the web. Maybe someone can give me a hint? :) thanks, --nils -- ** * Your mouse has moved. Windows must be restarted for the change to take effect. * ** * Nils Frohberg * *http://www.tako.de/ * **
java.lang.NullPointerException in jsp:forward /
hi, i have a very strange problem with my orion server. whenever i try to use jsp:forward / or getServletConfig().getServletContext().getRequestDispatcher(string).forward(requ est, response) i get a java.lang.NullPointerException: 500 Internal Server Error java.lang.NullPointerException at com.evermind.server.http.du.rt(Compiled Code) at com.evermind.server.http.HttpApplication.getRequestDispatcher(Compiled Code) at com.evermind.server.http.EvermindPageContext.handlePageException(Compiled Code) at /ServiceFC.jsp._jspService(Compiled Code) at com.evermind.server.http.EvermindHttpJspPage.service(Compiled Code) at com.evermind.server.http.HttpApplication.t5(Compiled Code) at com.evermind.server.http.JSPServlet.service(Compiled Code) at com.evermind.server.http.di.pw(Compiled Code) at com.evermind.server.http.di.forward(Compiled Code) at com.evermind.server.http.dr.p1(Compiled Code) at com.evermind.server.http.dr.p0(JAX) at com.evermind.util.f.run(Compiled Code) this is on a solaris 8 x86 box running java version "1.2.1" Solaris VM (build Solaris_JDK_1.2.1_04c, native threads, sunwjit) on other boxes it works as expected. any hints? thanks, --nils