java.io.StreamCorruptedException

2001-02-18 Thread Nils Frohberg

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




EJB arrays as CMP fields

2001-01-15 Thread Nils Frohberg

Hi, i'vi been trying to insert an array of EJBs into a CMP field:


/**
 * Links of the article
 *
 * @remote-method
 * @cmp-field
 */
public abstract Link[] getLink();
/**
 * Links of the article
 *
 * @remote-method
 * @cmp-field
 */
public abstract void setLink(Link[] value);


(using EJBDoclet :)
Link is a CMP. When deploying the jar, i get the following error:


ArticleHome_EntityHomeWrapper44.java:603: Undefined variable: context
 ORList __theList = new Link_ORList45(context);
  ^
1 error


or is it better to save the EJBs in Colletcions or Enumerations (public abstract 
Collection getLink();)?

Thanks,
--nils




Re: orion on unix

2001-01-07 Thread Nils Frohberg

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
> 




Problem deploying EJBs using a MySQL data-source

2000-10-14 Thread Nils Frohberg

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:


My database-schema:

http://www.orionserver.com/dtds/database-schemas.dtd">



















any hints?
thanks,
--nils


-- 
**
* Your mouse has moved. Windows must be restarted for the change to take effect. *
**
*  Nils Frohberg *
*http://www.tako.de/ *
**




Re: Problems with EJB and JNDI-context

2000-10-14 Thread Nils Frohberg

Hi,

my problem was a mistake in the  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/ *
**




Problems with EJB and JNDI-context

2000-10-12 Thread Nils Frohberg

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" %>



test


test



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  looks like this:

 
  ejb/user
  Session
  de.tako.userHome
  de.tako.user
 

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/ *
**




Re: java.lang.NullPointerException in

2000-08-11 Thread Nils Frohberg

hi,

here's a small update: i downgraded from Orion/1.1.37 to Orion/1.0.3. now 
jsp:forward works fine.

any hints?
--nils

>Date: Thu, 10 Aug 2000 21:27:48 +0200 (MEST)
>From: Nils Frohberg <[EMAIL PROTECTED]>
>Subject: java.lang.NullPointerException in 
>To: Orion-Interest <[EMAIL PROTECTED]>
>MIME-Version: 1.0
>Content-MD5: B2aJ5KBpekiv/5RWJJfBNA==
>Content-Transfer-Encoding: 7bit
>
>hi,
>
>i have a very strange problem with my orion server. whenever i try to use 
> or 
>getServletConfig().getServletContext().getRequestDispatcher(string).forward(req
u
>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
>





java.lang.NullPointerException in

2000-08-10 Thread Nils Frohberg

hi,

i have a very strange problem with my orion server. whenever i try to use 
 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