Re: admin -restart does not work correctly

2001-09-27 Thread Markus Holmberg

You are (which certainly is recommended) running Orion as a non-root
process. Non-root processes are not allowed to rebind (unfortunately I
can't explain closer, because I don't have the details). The answer is:
it's normal. If you necessarily need to use restart, run as root (there
might be some other way).

Markus

On Thu, Sep 27, 2001 at 09:43:30AM +0200, Michael Simons wrote:
> On my Linux box (kernel 2.4) the command
> 
> $ java -jar /opt/orion/admin.jar ormi://localhost/  admin  -restart
> 
> doesn't work. The following messages are written to the console where orion server 
>is running:
> 
> Error starting RMI-Server: IO Error: Address already in use
> Error starting HTTP-Server: Address already in use
> 
> A shutdown after issuing the restart command doesn't work either.
> Any hints what I'm missing would be highly appreciated.
> 
> michael
> 
> -- 
> Dipl.-Math. (fh) Michael Simons
> UNIOPT AG // unique logistic optimization
> Maximilianstr. 29; D-93047 Regensburg
> phone: ++49(0)941/59578-0
> http://www.uniopt.net/
> 

-- 

Markus Holmberg
[EMAIL PROTECTED]




Resource Adapter (Connector API) -> JNDI?

2001-08-29 Thread Markus Holmberg

How (if possible), can a Resource Adapter (through the Connector API)
be mapped into JNDI, in Orion?

I might have overlooked something, in that case, bear with me.

Markus

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: [EJB][1.5.1] ShowStopper on CMP deploying

2001-06-18 Thread Markus Holmberg

An option is to add "order" to the list of reserved keywords in your
orion/config/database-schemas/dbtype.xml file. Then Orion will make the
table name "Order_".

Markus

On Mon, Jun 18, 2001 at 10:24:04AM +0200, Steffen Stundzig wrote:
> Hi,
> 
> I've a bean called 'Order' and on deploying this bean orion said:
> 
> >8---
> Auto-creating table: create table Order (id BIGINT not null primary key,
> deliveryDate char(255), plannedInvoiceDate char(255), actualInvoiceDate
> char(255), ordersInvoiceId char(255), ordersSalesProcessId char(255),
> stateOrderStatusId char(255))
> Warning: Error creating table: Unexpected token: ORDER in statement [create
> table Order (id BIGINT not null primary key, deliveryDate char(255),
> plannedInvoiceDate char(255), actualInvoiceDate char(255), ordersInvoiceId
> char(255), ordersSalesProcessId char(255), stateOrderStatusId char(255))]
> done.
> 8<---
> 
> This error occured because 'Order' is a reserved word in SQL. One feasible
> solution could be to rename the bean or to specify an alternative column name.
> But I think it would be better to put the table names and the column names in
> 'quotas'.
> 
> Or I've overlooked something? 
> 
> I'm using Hypersonic 1.4.
> 
> Regards
>   Steffen... 
> 
> -- 
> __
> Steffen Stundzigmailto:[EMAIL PROTECTED]
> SMB GmbHhttp://www.smb-tec.com
> 
> 
> 

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: Writing System Properties - java.protocol.handler.pkgs

2001-05-30 Thread Markus Holmberg

On Tue, May 29, 2001 at 08:10:51PM -0600, Farrell, Sarah wrote:
> I'm having a serious problem that will keep us from shipping our application
> on Orion if I can't figure it out.
> 
> I need to be able to set the system property "java.protocol.handler.pkgs" in
> an EJB to "com.sun.net.ssl.internal.www.protocol".  The EJB is
> C:\orion\applications\SystemAccess\SystemEJB.java

You shouldn't be setting the property that way. Remove your property
modifying code from your EJB, and try this instead:

Create a file named "orion.properties" in your Orion directory, and put
the following inside it:

java.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol

Then launch Orion using "java -jar orion.jar -p orion.properties".

Markus

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: Counter gives naming exception

2001-05-29 Thread Markus Holmberg

On Tue, May 29, 2001 at 03:15:07PM +0100, Koster, K.J. wrote:
> Ah, a fellow FreeBSD user. :-) Just curious, what are your experiences with
> Orion on FreeBSD? What JDK do you use?

Yes :). My experiences (out of developing J2EE applications on
FreeBSD + Orion, for quite some time now) are that FreeBSD is a
satisfactory platform for running Orion.

I mainly use linux-sun-jdk-1.3.0 (classic vm), but have also used
freebsd-sun-jdk-1.2.2 (beta) and linux-sun-jdk-1.2.2, without any
trouble. Used Tya for JIT on freebsd-sun-jdk-1.2.2.

Markus

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: Counter gives naming exception

2001-05-28 Thread Markus Holmberg

On Mon, May 28, 2001 at 06:34:49PM +0100, Koster, K.J. wrote:
> I deployed the counter.jar (yes it's in the ear, it even autocreates the
> table it needs, but never uses). I have included the relevant bits into
> web.xml (from $ORION/applications/myapp/webthingy/WEB-INF/web.xml):
> 
>   
> ejb/Counter
> Entity
> com.evermind.ejb.CounterHome
> com.evermind.ejb.Counter
>   
> 
> Yet when I use that thing inside the ejbCreate of another bean I get a
> NameNotFound Exception. Replacing the Counterutils.getnextid() with (new
> Date()).getTime() works without generating the errors.

You will probably want to move the ejb-ref from web.xml to ejb-jar.xml
(into the entity/session element for the bean in whose ejbCreate method
you try to lookup CounterHome).

> How can I view the contents of the JNDI directory that Orion has? It would
> be sooo helpful in debugging.

java -jar orionconsole.jar might be to some help, otherwise there are
methods in javax.naming.Context to discover bound objects, for example:

javax.naming.Context:
NamingEnumeration list(String name)

Markus

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: SSL Question: Possibly Offtopic

2001-05-21 Thread Markus Holmberg

AFAIK, it is not possible. The certificate needs to be sent out before
the web server has had a chance to decide which certificate is
appropriate (based on the HTTP Host header, which comes in after the
encryption already has started).

Markus


On Mon, May 21, 2001 at 08:56:50AM -0500, John McGowan wrote:
> Is it possible to set up two different sites using Orion with only 1 IP
> address, and set up SSL for each of them.  I didn't have any problems
> setting up the two non-secure virtual hosts, but when I tried to setup
> up SSL virtual hosts, I couldn't get the server to send the right
> Certificates.
> 
> Is this even possible?
> 
> Is there some SSL limitation that only allows 1 Certificate per IP
> address?
> 
> /John

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: Database column creation order when using compound keys

2001-05-15 Thread Markus Holmberg

If you specify the column names (and order) in your insert statement it
won't matter in which order Orion created the columns.

Markus

On Mon, May 14, 2001 at 03:41:03PM +, Erwin Teseling wrote:
> Hello everybody,
> 
> I am having some problems regarding the order in which Orion creates the 
> database columns for compound keys for an entity bean when using CMP. 
> 
> I have an entity bean that models a many-to-many relationship, which has 
> a compound key (subscriptionID & userID). Now when creating the database 
> tables Orion seems to be inconsistent on the order in which these two are 
> mapped on the database table. On one machine subscriptionID is mapped on 
> the first column and on another machine (or at another time) userID is 
> mapped on the first column (and subscriptionID on the second). 
> 
> Now when I fill my database with a very simple SQL script sometimes my 
> data gets mixed up because it fills the wrong column with the wrong data. 
> Offcourse I can fixs this in the script, but is there a way to tell Orion 
> which field should mapp to which column in the columns to be created in 
> the database??
> 
> Thanks!
> 
> Regards,
> Erwin Teseling

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: 1.4.8

2001-04-26 Thread Markus Holmberg

Try java -jar autoupdate.jar in your Orion directory.

Markus

On Wed, Apr 25, 2001 at 12:19:53PM -0700, Charlie Ma wrote:
> It seems that everyone on this list is using at least 1.4.7, whereas I
> cannot find anything more recent than 1.4.5 on www.orionserver.com.  Where
> are you guys getting these more updated versions??
> 
> -charlie
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Hubbach
> Sent: Wednesday, April 25, 2001 9:11 AM
> To: Orion-Interest
> Subject: 1.4.8
> 
> 
> Did anyone else notice that 1.4.8 was on the website for a day, then
> taken back down?
> 
> Jeff.
> 
> --
> Jeff Hubbach
> Internet Developer
> New Media Designs, Inc.
> www.nmd.com
> 
> 
> 
> 
> 

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: remote shutdown of orion 1.4.8

2001-04-26 Thread Markus Holmberg

The reference to principals.xml ()
moved from server.xml to application.xml in  1.4.8. Be sure you didn't
miss to update your configuration accordingly.

Markus

On Wed, Apr 25, 2001 at 08:46:02AM -0600, [EMAIL PROTECTED] wrote:
> Folks,
> 
> The following remote shutdown command does not work anymore in 1.4.8 (it
> works fine in 1.4.7), any ideas? bug?
> 
> java -jar admin.jar ormi://localhost admin password -shutdown
> 
> P.S.
> already verified the password is correct in
> [orion-home]/config/principals.xml
> 
> Thanks in advance!
> 
> Chris

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




orion.properties not read?

2001-04-25 Thread Markus Holmberg

>From "http://www.orionsupport.com/articles/properties.html":

"By default, Orion reads a file called orion.properties in the $ORION
directory."

This does not seem to work (with Orion 1.4.8). A file trace shows that
no file named "orion.properties" is even accessed.

Anyone got this working?

(Using "-p orion.properties" works though.)

Markus

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: W3C Log Format

2001-04-14 Thread Markus Holmberg

On Fri, Apr 13, 2001 at 04:31:42PM -0400, Hani Suleiman wrote:
> > > does orion support W3C Extended Format (like IIS)?
> > > http://www.w3.org/TR/WD-logfile.html
> > > 
> > > if not, what can I do to change it?
> > 
> > Submit a RFE (Request For Enhancement) to
> > http://www.orionserver.com/bugzilla/.
> > 
> Err, why, if Orion already supports it?

The question was what he could do if Orion did not support it.

Markus

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: W3C Log Format

2001-04-13 Thread Markus Holmberg

On Thu, Apr 12, 2001 at 05:40:56PM -0700, Hitesh Patel wrote:
> does orion support W3C Extended Format (like IIS)?
> http://www.w3.org/TR/WD-logfile.html
> 
> if not, what can I do to change it?

Submit a RFE (Request For Enhancement) to
http://www.orionserver.com/bugzilla/.

Markus

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: Where is the log file?

2001-04-07 Thread Markus Holmberg

To the best of my knowledge, there is no such logging. You either need
to turn on logging in Your database or write a JDBC wrapper.

Markus

On Fri, Apr 06, 2001 at 07:39:24PM -0700, Andrew Chau wrote:
> How about the log for EntityBean container to the SQL database?
> Is there any log containing the SQL statement that orion container
> sends to teh database?

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: Where is the log file?

2001-04-06 Thread Markus Holmberg

In "orion/application-deployments/yourapp/application.log".

Regards, Markus.

On Thu, Apr 05, 2001 at 06:33:21PM +0200, Muly Oved wrote:
> Hi
> 
> My Servlet raise an exception during the init() where can I find the log
> file containing the call stack? do I need to turn on some parameter?

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: How to upgrade Xalan / Xerces?

2001-04-03 Thread Markus Holmberg

Yes.

Markus

On Tue, Apr 03, 2001 at 03:44:32PM +0300, Peter Peltonen wrote:
> 
> I want to upgrade Xalan and Xerces to newer versions that comes with JAXP
> found at 
> http://java.sun.com/xml? Do I just overwrite the .jar files?
> 
> 
> Regards,
> Peter

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: autoupdate

2001-04-02 Thread Markus Holmberg

A bug report has been filed:

http://bugzilla.orionserver.com/bugzilla/show_bug.cgi?id=383

Markus


On Sun, Apr 01, 2001 at 07:02:39PM -0300, Ramiro Diaz Trepat wrote:
> Hi,
>   Everytime I run autoupdate, it updates many packages to version 1.4.7 
> (which was already installed).
>   That did not happen before, autoupdate used to realize when my system was
> already up to date.
>   Thank you.
> 
> 
> -- 
> Ramiro Díaz Trepat

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: findByXXX() with an ORDER BY parameter for Container-managed bean ?

2001-04-01 Thread Markus Holmberg

You are relying on an implementation detail of your container.

Documentation for java.util.Collection#iterator:

"Returns an iterator over the elements in this collection. There are
no guarantees concerning the order in which the elements are returned
(unless this collection is an instance of some class that provides a
guarantee)."

The reason it has worked for you so far is because your container has
used an instance of java.util.ArrayList/LinkedList, which indeed does
guarantee order. But CMP Entity EJB's finder methods do not return
java.util.List's! They return java.util.Collection. Your functionality
will break when the container changes it's implementation.

Markus


On Fri, Mar 30, 2001 at 05:46:10PM +0100, Robert Hargreaves wrote:
> I have to disagree. We've been using ORDER BY statements in finder method
> queries since day 1 and they work fine.
> As an example we have a findAll for an Employee entity bean configured as:
> 
>   
>   
>   
>   Employee
>   findAll
>   
>   
>   
>   
> 
> and when we run the following we get a list of surnames in alphabetical
> order.
> 
>   EmployeeHome empHome = (EmployeeHome)initCtx.lookup("Employee");
>   ArrayList al = (ArrayList)empHome.findAll();
>   Iterator iter = al.iterator();
>
>   while(iter.hasNext()){
>   Employee emp = (Employee)iter.next();
> System.out.println(emp.getSurname());
>   }
> 
> If we take the "ORDER BY $surname ASC" statement out, the list ain't in
> alphabetical order.
> 
> Hope this helps.
> 
> Robert Hargreaves.
> 
> > -Original Message-
> > From: Markus Holmberg [mailto:[EMAIL PROTECTED]]
> > Sent: 30 March 2001 16:47
> > To: Orion-Interest
> > Cc: Magnus Rydin (E-mail)
> > Subject: Re: findByXXX() with an ORDER BY parameter for
> > Container-managed bean ?
> > 
> > 
> > Having ORDER BY in finder method queries is futile. Iterators of
> > java.util.Collection are not required to return objects in any kind of
> > order.
> > 

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: findByXXX() with an ORDER BY parameter for Container-managed bean ?

2001-03-30 Thread Markus Holmberg

Having ORDER BY in finder method queries is futile. Iterators of
java.util.Collection are not required to return objects in any kind of
order.

Regards, Markus Holmberg.

On Fri, Mar 30, 2001 at 09:35:20PM +0700, Meo Van Le wrote:
> Dear all,
>   Could you tell me how to pass an ORDER BY parameter ( ASC or DESC )
> for a finder-method of Container-Managed bean?
>   
>   For example:
>   I have an Entity Bean was deployed as a Container-Managed
> bean. The following lines were extracted from my orion-ejb-jar.xml:
>   
>table="Rws_Group" data-source="jdbc/RWS_EJB_DS">
>   
>persistence-name="rws_group_id" />
>   
>persistence-name="rws_group_name" />
>   
>   
>   
>   
> psv.rws.ejbs.RwsGroup
>   
> findByGroupNameAsc
>   
>   
> java.lang.String
>   
>   
>   
>   
>   
>   
> psv.rws.ejbs.RwsGroup
>   
> findByGroupNameDesc
>   
>   
> java.lang.String
>   
>   
>   
>   
> 
>   I have to write 2 finder methods for an normal finder method with
> ascending order and descending order: findByGroupNameAsc and
> findByGroupNameDesc.
>   
>   Are there any way to combine them become a finder method?
> 
> Thanks in advance!
> 
> --
> * Le Van Meo
> * Senior Developer 
> * Tel: 8 251 250
> * Mobil: 091 64 26 36
> * [EMAIL PROTECTED]
> 
> 
> 

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: Is combining Orion and PostgreSQL a good choice

2001-01-18 Thread Markus Holmberg

On Wed, Jan 17, 2001 at 11:50:44PM +1100, Mike Cannon-Brookes wrote:
> I use the default schema (the latest one from Orion has a lot of fixes
> contributed by myself and others, the original was horrible). Let me know if
> there are any problems with the latest schema.

Here's an addition of disallowed field names (as specified in the
PostgreSQL docs):



 
 



 




 
 


 
 
 



 



Regards, Markus.

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: Problem with CMP - persisting a Multi-dimensional array!

2001-01-18 Thread Markus Holmberg

Multidimensinal arrays don't seem to work with Orion CMP. Try emulating
your multidimensional array with a singledimensional array in your Java
code.

Regards, Markus.

On Wed, Jan 17, 2001 at 11:53:13AM -, Bernard wrote:
> Hello everyone.
> 
> I am having problems trying to persist the following multi-dimensional array
> with an Entity Bean using CMP and Orion:
>   String[][] table
> 
> Here is the entry in ejb-jar.xml
>   table
> 
> When I deploy the application, I get the following error:
> "
> Error compiling file:/C:/0/build/assemble/np3/widget-ejb.jar: Dependent OR
> class [Ljava.lang.String;
>  cannot be abstract unless the ejb-jar.xml has a  tag for it
> Orion/1.3.8 initialized
> "
> 
> Note: when i try to deploy this as a single dimension array, it deploys
> without a problem.  Has anyone got a resolution to this problem, within the
> context of still using CMP?
> 
> Regards
> Bernard
> 

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: large field bug ??

2001-01-12 Thread Markus Holmberg

On Thu, Jan 11, 2001 at 08:20:58AM +0700, Agus K. Pranantoseno wrote:
> I have manage to put my String stored as blob working using cmp but if
> the size is more than 1k it's go wrong... (the blob does not stored to the
> db and the next time i restart the orion those entity even failed to
> load)
> i am used orion 1.3.8 with oracle 8.1.6 both on linux machine
> is there any limitation in bean size ?? this is orion bug or oracle jdbc bug
> ???
> i only done simply cmp mapping

To use LOB's with Oracle through JDBC, the OCI-based JDBC driver is
required. Thin JDBC (= all Java) won't do it (see the documentation).

LOB's will work, but *unreliably*, with Thin JDBC. Symptoms are sluggish
performance, "broken pipe" SQLException's etc.

AFAIK, there is no OCI JDBC driver for Linux. (I might be wrong though.)

Markus

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: Complex O/R and EJB 2.0 CMP

2001-01-12 Thread Markus Holmberg

On Tue, Jan 09, 2001 at 10:11:41AM -0500, Peter Pontbriand wrote:
> Speaking of Lists, has anyone at all managed to get an Orion list-mapping -
> whether declared in a EAR-contained orion-ejb-jar.xml or in a EJB2.0-style
> ejb-jar.xml - to actually preserve the element order?

With orion-ejb-jar.xml, no. Haven't tried EJB2.0-style.

> We've resorted to using an extra field in the DO to indicate its index in
> the list, and doing the sorting programmatically in the parent EJB's List
> field accessor method. Having to drop the auto-created table and use our own
> DDL is somewhat less onerous a work-around, but it really shouldn't be
> necessary IMO.

Using an extra field here too.

> Is there some secret incantation we're not aware of (one of many I'm sure)
> or is Orion's list-mapping really just a buggy collection-mapping by another
> name?

Collection-mapping by another name. Makes one wonder why they ever put
the list-mapping element in the orion-ejb-jar.xml dtd at all. (I have asked,
without any answer).

Regards, Markus.

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: How to use EJBUserManager?

2000-12-05 Thread Markus Holmberg

IIRC, you shouldn't extend EJBUserHome, just specify all method
signatures (with findByPrimaryKey returning Account) in your AccountHome
interface.

Regards, Markus.

On Mon, Dec 04, 2000 at 07:15:46PM +0100, Alexander Sparkowsky wrote:
> Hi,
> 
> I want to use the EJBUserManager to lookup the accounts and created an
> extended version of the EJBUser because I need more infos for the account to
> hold. I created Account which extends the EJBUser and an AccountHome which
> extends EJBUserHome so I'm not able to overwrite the findByPrimaryKey Method
> to return Account insteat of EJBUserHome. When starting the orion it gives
> me an error that findByPrimaryKey() should return Account insteat of
> EJBUserHome.
> 
> Can anybody help?
> 
> Alexander Sparkowsky
> LambdaLogic Informationssysteme GmbH, Berlin, Germany
> Tel: +49-30-2936385-0, Fax: +49-30-2936385-0
> E-Mail: [EMAIL PROTECTED]
> 

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Resetting of ServletResponse before error page?

2000-11-03 Thread Markus Holmberg

Hi..

Shouldn't the servlet container reset the response object before
handing over control to an error page (JSP)? 

In a servlet:

request.getRequestDispatcher("include.jsp").include(request, response);
if (!ok) {
throw new ServletException("not ok");
}

But when this exception is thrown and control is handled over to the
configured error page, the contents of include.jsp are getting written
out to the client before the error pages output.

I have made sure that the response hasn't been committed before the
control is handed over to the error page, which should make it possible
to reset the response object and handle it gracefully.

Markus

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: Variable for defining finder query?

2000-10-30 Thread Markus Holmberg

On Mon, Oct 30, 2000 at 11:56:45AM +0100, Anders Bengtsson wrote:
> Hello,
> I just found an example on orionsupport.com about an alternative to
> orion-ejb-jar.xml for specifying finder queries:
> 
> public static final String findByOwner_query="full: select "+
> "Page.key, Page.document, Page.title, Page.description, Page.author,
> "+
> "Page.stylesheet, Page.hits, Page.url, Page.content from Page "+
> "where Page_Children.document=$1 and Page_Children.key=$2 "+
> "order by Page.hits desc, Page.title desc";
> 
> This variable is supposed to be in the bean implementation class.

It's supposed to be in the Home interface (the natural location, since
CMP EJB's have no finder method implementations in the actual bean
implementation).

> My question: Is this in any way documented anywhere, and is there anyone
> who has actually tried it?

Works here.

Regards, Markus.

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Request parameters not getting passed through in form based authentication?

2000-10-30 Thread Markus Holmberg

Has anyone successfully requested a protected resource with request
parameters and had them getting passed through to the protected page
with the login form intervening?

Markus

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Transaction not rolled back if exception thrown from ejbCreate method

2000-10-26 Thread Markus Holmberg

Heya..

Throwing an system exception from an ejbCreate method with a "Required"
transaction-attribute should result in the container rolling back the
transaction. However, this doesn't seem to be the case with
Orion 1.4.0.

Is Orion doing the right thing (not rolling back) or not? My
interpretation of the EJB 1.1 spec is that it *should* rollback the
transaction automatically.

Markus

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




What is the default transaction-attribute?

2000-10-26 Thread Markus Holmberg

Hi..

If a transaction-attribute is not specified, which the default?

The EJB spec doesn't seem to mention one, so I assume it is container
specific?

Markus

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Disallowed table names for Orion table auto-creation

2000-10-25 Thread Markus Holmberg

Hi..

Is there a way to specify table names that should be avoided by Orion
when auto-creating tables for CMP EJB's?

(Specifying the disallowed table names with disallowed-field elements in
the database schema does not work. Which is as expected, since those
specify disallowed *field* names).

Markus

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Tag handler design issues concerning instance reusage

2000-10-18 Thread Markus Holmberg

What steps might a tag handler developer need to take to avoid getting 
unexpected results because the container reuses tag handlers? (For 
example an old value for an optional attribute might still be around 
when the tag handler is invoked for another tag.)

Should one initialize all optional attribute values somewhere? (In what 
method would that be?)

Or should one reset all values after the tag handler is finished to give
the next invocation a clean one? (This seems to imply a performance hit, 
small, but still there..)

Best Regards,

Markus

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: JMS debugging

2000-10-03 Thread Markus Holmberg

I have yet to hear from someone who successfully managed to get a
message delivered to a MessageDrivenBean listening on a Queue. (I know
one or two others in addition to myself who haven't got it working with
Queues, Topics work fine though).

Markus

On Tue, Oct 03, 2000 at 11:57:58AM -0400, John D'Ausilio wrote:
> Is there any way to look 'inside' of a Queue in orion? I've got a
> message-driven bean listening on a queue, and a client that stuffs a message
> into that queue. The client runs fine with no exceptions, but the bean never
> seems to receive the message.
> 
> Can anyone give me some clues?
> 
> john d

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: Serializable + Orion 1.3.8 + Postgres 7.0.0 not working

2000-10-03 Thread Markus Holmberg

Support for InputStreams as parameters has not been implemented
in the Postgres JDBC drivers. It's open source, so anyone can
give it a try..

But it's possible in 95% of all cases to make it without serializing the
objects, since Orion has very good OR-mapping capabilities (List, Set,
Map, bean etc).

Markus


On Tue, Oct 03, 2000 at 06:24:13PM +0300, Vlad Petric wrote:
> 
>I simply coudln't persist a Serializable with Orion 1.3.8 + Postgres
> 7.0.0. The table is created properly, postgresql.xml maps Serializable
> to oid, but I always get a CreationException:
> 
> [root@vlad base]# java com/coltronix/cfgvar/ConfigurationClient
> javax.ejb.CreateException: Error creating EntityBean: InputStream as
> parameter not supported
> at com.evermind.server.rmi.bb.invokeMethod(JAX)
> at com.evermind.server.rmi.a2.invoke(JAX)
> at com.evermind.server.rmi.a3.invoke(JAX)
> at __Proxy3.create(Unknown Source)
> at
> com.coltronix.cfgvar.ConfigurationClient.main(ConfigurationClient.java:17)
> 
> The table:
> 
> +--+--+---+
> 
> |  Field   |  Type|
> Length|
> +--+--+---+
> 
> | key  | int8 not null
> | 8 |
> | section  | varchar()
> |   255 |
> | entry| varchar()
> |   255 |
> | value| oid
> | 4 |
> +--+--+---+
> 
> The persistent fields:
> 
>  public long key;
>  public String section;
>  public String entry;
>  public Serializable value;
> 

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: Orion Server and Ports...

2000-10-03 Thread Markus Holmberg

On Mon, Oct 02, 2000 at 12:27:22PM -0700, Duffey, Kevin wrote:
> The 23791 port is for multi-casting I believe. Its used for clustering, but
> I am not sure why its opening. I would say look in /config/server.xml and
> see if you have a  tag in that file. Also, in
> orion-web.xml, see if you have  and lastly, see if you
> have in web.xml a  tag.

It's Orion's RMI-server listening listening on port 23791.
Disable by commenting out the rmi-config element from config/server.xml.

Markus

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: Orion on Linux NOT as root

2000-09-28 Thread Markus Holmberg

If you're OS has support for it you can set up packet filtering (aka
firewalling) rules that forward packets going to the privileged port
80 to some unprivileged port, for example 8000. Then just make Orion
listen on that unprivileged port.

Works like a charm for me.

In Linux's case I guess ipchains would be used. I can only provide
instructions for FreeBSD.

Markus


On Thu, Sep 28, 2000 at 04:38:12PM -0400, Jim Archer wrote:
> Hi All...
> 
> We have been developing under Orion on Windows machines, but the time came 
> last night to start testing on Linux, our intended server platform. We 
> installed 1.3.8 on Debian Linux and quickly discovered that it wants to run 
> as root. We really can't allow this.
> 
> I went through the list archive and saw a discussion about this issue from 
> last April, but didn't see what the resolution was (if any).
> 
> Is there now a way to run Orion on Linux not as root (ideally as user 
> nobody) and, if so, is there any doc on this?
> 
> Thanks...
> 
> Jim
> 

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: CMP java.util.Date property on Postgres

2000-09-19 Thread Markus Holmberg

On Mon, Sep 18, 2000 at 07:31:56PM +, [EMAIL PROTECTED] wrote:
> I have an entity bean that contains a java.util.Date property.  Creating
> works fine, but when I using a finder method, I get the following error:
> 
> com.evermind.server.rmi.OrionRemoteException: Database error: Bad Timestamp
> Format at 19 in 2000-09-18 14:08:47.86-04; nested exception is:
> Bad Timestamp Format at 19 in 2000-09-18 14:08:47.86-04
> 
> Has anyone seen this before using java.util.Date, CMP, orion and Postgres?

The problem is that a java.util.Date and a Date in Postgres is not the
same. A java.util.Date represents a moment in time (millisecond
precision), while a Date in Postgres represents a specific day (year,
month, day).

Use the Postgres type Timestamp instead and it will work. The
database-schema for Postgres distributed with Orion has java.util.Date
mapped to Date which isn't correct.



http://www.postgresql.org/users-lounge/docs/7.0/postgres/datatype1134.htm

Beware of that setting a column to new Date(0) will render it unreadable
for Java since Postgres will return the string 'epoch' for this which the
Java date parser won't recognize.

Regards, Markus.

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: Run Orion on port80 without being root?

2000-09-12 Thread Markus Holmberg

On Mon, Sep 11, 2000 at 11:11:57AM -0700, Sach Jobb wrote:
> Has anyone found a way of running Orion on port80 without being root?
> 
> I'm getting ready to launch a finance based site and i'm quite concerned
> about security. I've seen messages like this posted before but i have yet
> to see any kind of resolution.  Any ideas?

Changing Orion's uid using JNI:

http://www.orionsupport.com/users.html

Markus

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: Restricting servlet access

2000-08-22 Thread Markus Holmberg

When I brought up this issue with one of the authors of Orion I was
recommended to set the servlet-webdir attribute of orion-web-app (in
orion-web.xml or global-web-application.xml) to "[NONE]".

Not sure if this actually disables the feature, or if its just
meant to obfuscate the path to something unusable.

It would be preferable if this feature would be disabled by default in
Orion. (The servlet-webdir attribute in global-web-application.xml does
not seem to be used as a default value when auto-deploying, which
requires manual adjustment of this each time.. Orion 1.2.0)

Markus


On Tue, Aug 08, 2000 at 12:46:03PM +0300, Aleksi Kallio wrote:
> 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?
> 
> 

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/