Re: Performance for static files

2000-09-08 Thread Christof Baumgaertner

Looks to me like if Orionserver tries to do HTTP/1.1 Keep-Alive without setting
the Content-length accordingly. Can anybody confirm?

Dale Bronk wrote:

 Right now until I am proved otherwise, I disagree.  I posted a message a day
 or so ago and have no reply yet.  Now I do believe that it is probably some
 setting I have (although I am using the default settings from Orion), but my
 web pages are not served very fast at all.  I am on a PIII 256M using
 Windows Server 2000 and tested the same static pages with Apache and IIS and
 they really popup quickly.  With Orion, the pages seem to completely display
 but the browser keeps going for up to 10-15 seconds before it stops.

 I am not saying I disagree with the benchmarks, what I am saying is I agree
 with them with the correct set of configurations as I have used the same
 static pages on the same machine with Apache, IIS, and Orion.  I did not use
 any benchmarking tools other than my eye but it was very obvious (clearing
 browser cache between each request) that as soon as the pages "appeared" to
 be fully display (very small graphics, if any) using Apache and IIS, the
 browser (both IE and NS) stopped.  With Orion, the browsers just kept going
 (not sure doing what) for another 10-15 seconds.

 Like I said, I am sure it is some configuration but I wish someone would
 tell me what the setting is.  I also tried browsing from several different
 machines to make sure that it was not simply my browser.

 Dale

 - Original Message -
 From: [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Sent: Thursday, September 07, 2000 3:51 AM
 Subject: SV: Performance for static files

  Look at the benchmark page...
 
  Against Apache and IIS its got no problems at all beating them into the
  bushes. The url is enclosed, have fun...
 
  Klaus Myrseth
 
  -Opprinnelig melding-
  Fra: Christof Baumgaertner [mailto:[EMAIL PROTECTED]]
  Sendt: 7. september 2000 08:40
  Til: Orion-Interest
  Emne: Performance for static files
 
 
  We have a webbased client/server application which in addition to its
  dynamic elements has to serve a huge amount of small files (HTML, GIF,
  JS). I understand that Orionserver's performance for J2EE based
  applications is pretty good. How about serving static files from the
  file system? Can it compete with high performance servers like AOL
  Server, Stronghold Apache or others in this area?
 
  Thanks,
  Christof
 
 
 


begin:vcard 
n:Baumgärtner;Christof
tel;pager:[EMAIL PROTECTED]
tel;cell:+49 171 8169911
tel;fax:+49 89 6797 
tel;work:+49 89 6797 2220
x-mozilla-html:TRUE
url:www.websentric.com
org:WebSentric AG
adr:;;Raiffeisenallee 5;Oberhaching;;82041;Germany
version:2.1
email;internet:[EMAIL PROTECTED]
title:Vice President CTO
x-mozilla-cpt:;-4208
fn:Christof Baumgärtner
end:vcard



IllegalArgumentException

2000-09-08 Thread Tom Klaasen

I'm sorry to disturb you guys again, but I just keep hitting the wall in
trying to deploy my application.

The error I see this time is

E:\orionjava -jar orion.jar
Copying default deployment descriptor from archive at
E:\orion\applications\isho
p\ishop-ejb/orion/orion-ejb-jar.xml to deployment directory
E:\orion\application
-deployments\ishop\ishop-ejb...
Auto-deploying ishop-ejb (No previous deployment found)...
java.lang.IllegalArgu
mentException: Cannot convert from class java.lang.String to class
com.netitbe.i
shop.business.item2.ejb.ItemPk
at com.evermind.zip.a.t(JAX)
at com.evermind.server.ejb.compilation.fm.aew(JAX)
at com.evermind.server.ejb.compilation.fk.ru(JAX)
at com.evermind.server.ejb.compilation.fo.ad_(JAX)
at com.evermind.server.ejb.compilation.fx.agd(JAX)
at com.evermind.server.ejb.compilation.fo.ru(JAX)
at com.evermind.server.ejb.compilation.fq.ru(JAX)
at com.evermind.server.ejb.compilation.fw.ru(JAX)
at com.evermind.server.ejb.EJBContainer.bx(JAX)
at com.evermind.server.Application.bx(JAX)
at com.evermind.server.Application.f7(JAX)
at com.evermind.server.ApplicationServer.qu(JAX)
at com.evermind.server.ApplicationServer.an6(JAX)
at com.evermind.server.ApplicationServer.f7(JAX)
at com.evermind.server.gz.run(JAX)
at java.lang.Thread.run(Unknown Source)
at com.evermind.util.f.run(JAX)

E:\orion

This is similar to what I got a few days ago, and I thought I could solve
this by creating an orion-ejb-jar.xml (which costed me a lot of headache,
also).
My orion-ejb-jar.xml looks like this (it's not complete, but I want to solve
this error and then move on):
?xml version="1.0" encoding="UTF-8"?
orion-ejb-jar
enterprise-beans
entity-deployment 
data-source="jdbc/questEJBDS" 
location="com.netitbe.ishop.business.item2.ejb.ItemHome"
name="Item2"
table="item2"

primkey-mapping
cmp-field-mapping name="itemid" persistence-name="itemid"
persistence-type="varchar(255)"/
cmp-field-mapping name="version" persistence-name="version"
persistence-type="varchar(255)"/
cmp-field-mapping name="supplier"
persistence-name="supplier" persistence-type="varchar(255)"/
/primkey-mapping
finder-method 
partial="true" 
query="$1.supplier=$supplier and $1.itemid=$itemid and
$1.version=$version"

method
descriptionFind an item by its primary
key./description
ejb-nameItem2/ejb-name
method-intfHome/method-intf
method-namefindByPrimaryKey/method-name
method-params
 
method-paramcom.netitbe.ishop.business.item2.ejb.ItemPk/method-param
/method-params
/method
/finder-method
/entity-deployment
/enterprise-beans
/orion-ejb-jar

I presume the ejb-name is referring to the ejb-jar.xml, so this is the
relevant part:
entity
descriptionItem Bean2./description
ejb-nameItem2/ejb-name

homecom.netitbe.ishop.business.item2.ejb.ItemHome/home

remotecom.netitbe.ishop.business.item2.ejb.ItemEJB/remote

ejb-classcom.netitbe.ishop.business.item2.ejb.ItemImpl/ejb-class
persistence-typeContainer/persistence-type

prim-key-classcom.netitbe.ishop.business.item2.ejb.ItemPk/prim-key-class
reentrantFalse/reentrant
cmp-field
field-nameitemid/field-name
/cmp-field
cmp-field
field-nameversion/field-name
/cmp-field
cmp-field
field-namesupplier/field-name
/cmp-field
cmp-field
field-namedescription/field-name
/cmp-field
cmp-field
field-namepricevalue/field-name
/cmp-field
cmp-field
field-namepricecurrency/field-name
/cmp-field
cmp-field
field-nameshopid/field-name
/cmp-field
cmp-field
field-namedisplayname/field-name
/cmp-field
cmp-field
field-nameicon/field-name
/cmp-field
cmp-field
field-nameimage/field-name
/cmp-field

Re: XSL example

2000-09-08 Thread jbirchfield


I ran into this with IE yesterday too.  Since IE hit the page the first
time, and displayed raw xml, it is probably cached.  At least it was in my
case.  After getting the content-type right(the same way you did), I
cleared my cache, and all went fine.


James Birchfield

Ironmax
a better way to buy, sell and rent construction equipment
5 Corporate Center
9960 Corporate Campus Drive,
Suite 2000
Louisville, KY 40223


|+
||  KirkYarina|
||  Kirk.Yarina@securebydesig|
||  n.com|
||  Sent by:  |
||  owner-orion-interest@orion|
||  server.com|
|||
|||
||  09/07/00 02:55 PM |
||  Please respond to |
||  Orion-Interest|
|||
|+
  
-|
  |
 |
  |   To: Orion-Interest [EMAIL PROTECTED]  
 |
  |   cc: [EMAIL PROTECTED] 
 |
  |   Subject: Re: XSL example 
 |
  
-|



I don't know if this is a bug, a feature, or if I've just screwed up my
copy of MSIE, but I can't get a formatted web page out of the xsl example
using 1.3.3.

The example doc.jsp links to doc.xsl, which has a output method of xml -
which IE 5.5 displays as xml source.  No problem here...

I tried changing the output method to html,  ( xsl:output method="html"
indent="yes"/ ) but it still displays as xml rather than a formatted page
(which it does when saved in a file).  I captured the headers,  which show
a Content-type of text/xml:

HTTP/1.1 200 OKsl/doc.jsp HTTP/1.0
Date: Thu, 07 Sep 2000 18:29:40 GMT
Server: Orion/1.3.3
Content-Length: 1485
Set-Cookie: JSESSIONID=MBFNAOHFKDLA; Path=/
Cache-Control: private
Connection: Close
Content-Type: text/xml


I changed the media type to text/xml
( xsl:output method="html" media-type="text/html" indent="yes"/ )
This time I got the expected content-type, but IE still displays the raw
html.

HTTP/1.1 200 OKsl/doc.jsp HTML/1.0
Date: Thu, 07 Sep 2000 18:33:21 GMT
Server: Orion/1.3.3
Content-Length: 1485
Set-Cookie: JSESSIONID=ACDCCOHFKDLA; Path=/
Cache-Control: private
Connection: Close
Content-Type: text/html

FWIW, Michael Kay's "XLST Programmer's Reference" (from Wrox) says
text/html is the default for output method="html" (I didn't look at the
spec, though).  However, the second time  the content looks good, and I
don't know why IE doesn't display it as a rendered page.

Thanks in advance for any help

Kirk Yarina


At 05:24 PM 9/7/00 -0400, you wrote:
It's fixed in 1.3.3; thanks!

At 05:06 PM 9/5/00 -0400, you wrote:
How do I run the xsl example in default-web-app/examples/xsl?  when using
http://hostname/examples/xsl/doc.jsp I get an error:

Source XML Error: External entity not found:
"/local/java/orion/default-web-app/examples/xsl/doc.dtd".

doc.dtd is in that directory...

TIA


Kirk Yarina
[EMAIL PROTECTED]










Re: XSL example

2000-09-08 Thread Ishpal

Hi,

I got XSL working.
Now, it seems that there is some other problem ..
When I try to access an XML page I get an error like

Source XML Error: Value must be quoted. 

What does this mean..???
Is there something wrong with the xml file I'm generating..???
I've tried putting values with and without quotes.. but nothing seem to
work...

Please help...
Thanks,
Ishpal.




Problem with welcom-file list

2000-09-08 Thread jbirchfield


I am running into a problem with the welcome file list.

I have mapped an extension to be ran through a particular servlet like
this:

  servlet-mapping
servlet-namedispatch/servlet-name
url-pattern*.ojsp/url-pattern
  /servlet-mapping

and defined 'dispatch' with all necessary parameters.

I have defined the welcom-file list like this:

 welcome-file-list
  welcome-fileindex.ojsp/welcome-file
 /welcome-file-list

When accessing http://localhost/portal, I get a 403 error, directory
browsing not allowed.

If I access http://localhost/portal/index.ojsp, it works fine.  Can you add
a mapped extension as a default page?

James Birchfield

Ironmax
a better way to buy, sell and rent construction equipment
5 Corporate Center
9960 Corporate Campus Drive,
Suite 2000
Louisville, KY 40223





RE: cmt-datasource/ejb-datasource

2000-09-08 Thread Tom Klaasen

Jeps, that works, thank you very much.
I wonder why this isn't documented. (I wonder why the documentation is so
bad anyway. We were planning on deploying orion, but with this kind of
documentation it is to doubt if it is safe to deploy orion on a public
server.)

Thanks again,

Tom Klaasen

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Chris Miller
 Sent: donderdag 7 september 2000 19:24
 To: Orion-Interest
 Subject: Re: cmt-datasource/ejb-datasource
 
 
 Try using the EJB JDBC url (ie 'ejb-location' from your 
 data-sources.xml)
 rather than the standard 'location'. At least, this worked 
 for me (I think
 I've got other problems related to my JDBC setup, but that's 
 another story).
 
 - Original Message -
 From: "Tom Klaasen" [EMAIL PROTECTED]
 To: "Orion-Interest" [EMAIL PROTECTED]
 Sent: Thursday, September 07, 2000 5:12 PM
 Subject: cmt-datasource/ejb-datasource
 
 
  Hi,
 
  I'm porting an ejb application that has already been deployed on
  SilverStream, to Orion.
  I've already solved a lot of problems, but this one seems to be very
  undocumented (I've searched the archive of this list, and at least 5
 persons
  have already asked this question, but it was never answered.)
 
  This is the error message I get:
 
  E:\orion\orionjava -jar orion.jar
  Copying default deployment descriptor from archive at
  E:\orion\orion\application
  s\ishop\ishop-ejb/orion/orion-ejb-jar.xml to deployment directory
  E:\orion\orion
  \application-deployments\ishop\ishop-ejb...
  Auto-deploying ishop-ejb... Error compiling
  file:/E:/orion/orion/applications/is
  hop/ishop-ejb/: jdbc/questDS did not contain a
 cmt-dataSource/ejb-datasource
  Orion/1.0.3 initialized
 
  The platform is
  Win NT 4.0
  Sybase Anywhere SQL 7.0
  latest orion
 
  Anybody any ideas/pointers as how to tackle this problem?
 
  Thanks,
 
  ~
 Tom Klaasen
 Software Engineer
 The E-corporation
 http://www.the-ecorp.com
 +32 (0)9 272 22 00
  ~
 
 
 
 
 




Device dependent xsl translation recommendation

2000-09-08 Thread jbirchfield


As our organization continues to move forward with XML and XSL, it would be
great if Orion provided a built in feature to allow for device dependent
XSL translation, similar to Cocoon.
This email lays out one possible approach.  Forgive me if Orion already has
something planned.

My suggestion would be as follows.  Allow a new set of tags in one of the
config files, probably default-web-site.xml.  The tags could look similar
to this:

xsl-mappings
 xsl-mapping
  nameexplorer/name
  useragentMSIE/useragent
 /xsl:mapping
 xsl-mapping
  namepocketexplorer/name
  useragentMSPIE/useragent
 /xsl:mapping
 xsl-mapping
  namehandweb/name
  useragentHandHTTP/useragent
 /xsl:mapping
 xsl-mapping
  nameavantgo/name
  useragentAvantGo/useragent
 /xsl:mapping
 xsl-mapping
  nameimode/name
  useragentDoCoMo/useragent
 /xsl:mapping
 xsl-mapping
  nameopera/name
  useragentOpera/useragent
 /xsl:mapping
 xsl-mapping
  namelynx/name
  useragentLynx/useragent
 /xsl:mapping
 xsl-mapping
  namejava/name
  useragentJava/useragent
 /xsl:mapping
 xsl-mapping
  namewap/name
  useragentNokia/useragent
 /xsl:mapping
 xsl-mapping
  namemozilla5/name
  useragentNetscape6/useragent
 /xsl:mapping
 xsl-mapping
  namenetscape/name
  useragentMozilla/useragent
 /xsl:mapping
/xsl:mappings

The 'name' is how you refer to the stylesheet in the appropriate JSP or XML
file(See below).
The 'useragent' is a substring of the request header 'User-Agent'(Could be
exteded to be a regular expression).

While in a JSP page, or an XML document, the following stylesheet tags
could be used:

?xml-stylesheet href="explorer.xsl" type="text/xsl" media="explorer"?
?xml-stylesheet href="avantgo.xsl" type="text/xsl" media="avantgo"?
?xml-stylesheet href="wml.xsl" type="text/xsl" media="wap"?
?xml-stylesheet href="pocketexplorer.xsl" type="text/xsl" media
="pocketexplorer"?


James Birchfield

Ironmax
a better way to buy, sell and rent construction equipment
5 Corporate Center
9960 Corporate Campus Drive,
Suite 2000
Louisville, KY 40223





Re: XSL example

2000-09-08 Thread Ishpal

Hi,
 
May be I should have included my files..
 
Why do i get the following error while the examples run fine...

Source XML Error: Value must be quoted.  

I have tried putting quotes in the xml file, but nothing seems to work.
Pls Help,
Thanks in advance..
Ishpal 

--
1) XML file is...
 
?xml version="1.0"?
!DOCTYPE doc SYSTEM "http://www.testdomain.cmx/hello/xsl/XML1.dtd"
?xml-stylesheet href="http://www.testdomain.cmx/hello/xsl/XML1.xsl"
type="text/xsl"?
 
top
record
key
id1/id
/key
info
nameish1cview/name
age1/age
/info
contact-info
addressg21/3 rajouri garden/address
phonephone1/phone
email[EMAIL PROTECTED]/email
/contact-info
/record
/top

2) DTD file is.
 
!ELEMENT top (record)
!ELEMENT record (key, info, contact-info)
!ELEMENT key (id)
!ELEMENT info (name, age)
!ELEMENT contact-info (address,phone,email)
!ELEMENT id (#PCDATA)*
!ELEMENT name (#PCDATA)*
!ELEMENT age (#PCDATA)*
!ELEMENT phone (#PCDATA)*
!ELEMENT email (#PCDATA)*
!ELEMENT address (#PCDATA)*
 
3) XSL file is .
 
xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
vrsion="1.0"
xsl:strip-space elements="top record key info contact-info"/
xsl:output method="xml" int="yes"/
 
xsl:output media-type="text/html" /
xsl:template match="top"
html
head
TITLExsl:value-of select="title"//TITLE
/head
body bgcolor="white"center
xsl:apply-templates/
hr/
/center 
/body
/html
/xsl:template
 
 
xsl:template match="record"
hr/
table cellspacing=5 cellpadding=4
xsl:apply-templates/
/table
/xsl:template
 
xsl:template match="key"
tr
xsl:apply-templates/
/tr
/xsl:template
 
 
xsl:template match="info"
tr
xsl:apply-templates/
/tr
/xsl:template
 
xsl:template match="contact-info"
trtd colspan=4
xsl:apply-templates/
/td/tr
/xsl:template
 
xsl:template match="id"
td bgcolor=c0c0c0UserId/tdtd colspan=3
xsl:apply-templates/
/td
/xsl:template
 
xsl:template match="name"
td bgcolor=c0c0c0User Name/tdtd
xsl:apply-templates/
/td
/xsl:template
 
xsl:template match="age"
td bgcolor=c0c0c0Age/tdtd
xsl:apply-templates/
/td
/xsl:template
 
 
xsl:template match="address"
trtd bgcolor=c0c0c0Address/tdtd colspan=3
xsl:apply-templates/
/td/tr
/xsl:template
 
 
xsl:template match="phone"
trtd bgcolor=c0c0c0Phone/tdtd colspan=3
xsl:apply-templates/
/td/tr
/xsl:template

xsl:template match="email"
trtd bgcolor=c0c0c0E-mail/tdtd
xsl:apply-templates/
/td/tr
/xsl:template
 
/xsl:stylesheet




RE: XSL example

2000-09-08 Thread Arved Sandstrom

I think we would have to see the XML. It appears that an attribute value is
unquoted, though.

Arved Sandstrom

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ishpal
Sent: Friday, September 08, 2000 7:58 AM
To: Orion-Interest
Subject: Re: XSL example


Hi,

I got XSL working.
Now, it seems that there is some other problem ..
When I try to access an XML page I get an error like

Source XML Error: Value must be quoted.

What does this mean..???
Is there something wrong with the xml file I'm generating..???
I've tried putting values with and without quotes.. but nothing seem to
work...

Please help...
Thanks,
Ishpal.






RE: XSL example

2000-09-08 Thread Kev Palfreyman

The problem is in your XSL file.  You have many table elements with unquoted
attribute values.

Kev

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Ishpal
 Sent: 08 September 2000 12:37
 To: Orion-Interest
 Subject: Re: XSL example


 Hi,

 May be I should have included my files..

 Why do i get the following error while the examples run fine...

 Source XML Error: Value must be quoted.

 I have tried putting quotes in the xml file, but nothing seems to work.
 Pls Help,
 Thanks in advance..
 Ishpal

 --
 1) XML file is...

 ?xml version="1.0"?
 !DOCTYPE doc SYSTEM "http://www.testdomain.cmx/hello/xsl/XML1.dtd"
 ?xml-stylesheet href="http://www.testdomain.cmx/hello/xsl/XML1.xsl"
 type="text/xsl"?

 top
 record
 key
 id1/id
 /key
 info
 nameish1cview/name
 age1/age
 /info
 contact-info
 addressg21/3 rajouri garden/address
 phonephone1/phone
 email[EMAIL PROTECTED]/email
 /contact-info
 /record
 /top

 2) DTD file is.

 !ELEMENT top (record)
 !ELEMENT record (key, info, contact-info)
 !ELEMENT key (id)
 !ELEMENT info (name, age)
 !ELEMENT contact-info (address,phone,email)
 !ELEMENT id (#PCDATA)*
 !ELEMENT name (#PCDATA)*
 !ELEMENT age (#PCDATA)*
 !ELEMENT phone (#PCDATA)*
 !ELEMENT email (#PCDATA)*
 !ELEMENT address (#PCDATA)*

 3) XSL file is .

 xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 vrsion="1.0"
 xsl:strip-space elements="top record key info contact-info"/
 xsl:output method="xml" int="yes"/

 xsl:output media-type="text/html" /
 xsl:template match="top"
 html
 head
 TITLExsl:value-of select="title"//TITLE
 /head
 body bgcolor="white"center
 xsl:apply-templates/
 hr/
 /center
 /body
 /html
 /xsl:template


 xsl:template match="record"
 hr/
 table cellspacing=5 cellpadding=4
 xsl:apply-templates/
 /table
 /xsl:template

 xsl:template match="key"
 tr
 xsl:apply-templates/
 /tr
 /xsl:template


 xsl:template match="info"
 tr
 xsl:apply-templates/
 /tr
 /xsl:template

 xsl:template match="contact-info"
 trtd colspan=4
 xsl:apply-templates/
 /td/tr
 /xsl:template

 xsl:template match="id"
 td bgcolor=c0c0c0UserId/tdtd colspan=3
 xsl:apply-templates/
 /td
 /xsl:template

 xsl:template match="name"
 td bgcolor=c0c0c0User Name/tdtd
 xsl:apply-templates/
 /td
 /xsl:template

 xsl:template match="age"
 td bgcolor=c0c0c0Age/tdtd
 xsl:apply-templates/
 /td
 /xsl:template


 xsl:template match="address"
 trtd bgcolor=c0c0c0Address/tdtd colspan=3
 xsl:apply-templates/
 /td/tr
 /xsl:template


 xsl:template match="phone"
 trtd bgcolor=c0c0c0Phone/tdtd colspan=3
 xsl:apply-templates/
 /td/tr
 /xsl:template

 xsl:template match="email"
 trtd bgcolor=c0c0c0E-mail/tdtd
 xsl:apply-templates/
 /td/tr
 /xsl:template

 /xsl:stylesheet






Re: Performance for static files

2000-09-08 Thread Dale Bronk


just did a test and it seemed to make a big difference.  In IE advanced
options I had Use HTTP1.1 turned off.  I turned it back on and it made a big
difference.  As a matter of fact, I don't see the problem anymore as of yet.
(after clearing cache).

Dale

- Original Message -
From: Christof Baumgaertner [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Friday, September 08, 2000 3:00 AM
Subject: Re: Performance for static files


 Looks to me like if Orionserver tries to do HTTP/1.1 Keep-Alive without
setting
 the Content-length accordingly. Can anybody confirm?

 Dale Bronk wrote:

  Right now until I am proved otherwise, I disagree.  I posted a message a
day
  or so ago and have no reply yet.  Now I do believe that it is probably
some
  setting I have (although I am using the default settings from Orion),
but my
  web pages are not served very fast at all.  I am on a PIII 256M using
  Windows Server 2000 and tested the same static pages with Apache and IIS
and
  they really popup quickly.  With Orion, the pages seem to completely
display
  but the browser keeps going for up to 10-15 seconds before it stops.
 
  I am not saying I disagree with the benchmarks, what I am saying is I
agree
  with them with the correct set of configurations as I have used the same
  static pages on the same machine with Apache, IIS, and Orion.  I did not
use
  any benchmarking tools other than my eye but it was very obvious
(clearing
  browser cache between each request) that as soon as the pages "appeared"
to
  be fully display (very small graphics, if any) using Apache and IIS, the
  browser (both IE and NS) stopped.  With Orion, the browsers just kept
going
  (not sure doing what) for another 10-15 seconds.
 
  Like I said, I am sure it is some configuration but I wish someone would
  tell me what the setting is.  I also tried browsing from several
different
  machines to make sure that it was not simply my browser.
 
  Dale
 
  - Original Message -
  From: [EMAIL PROTECTED]
  To: Orion-Interest [EMAIL PROTECTED]
  Sent: Thursday, September 07, 2000 3:51 AM
  Subject: SV: Performance for static files
 
   Look at the benchmark page...
  
   Against Apache and IIS its got no problems at all beating them into
the
   bushes. The url is enclosed, have fun...
  
   Klaus Myrseth
  
   -Opprinnelig melding-
   Fra: Christof Baumgaertner [mailto:[EMAIL PROTECTED]]
   Sendt: 7. september 2000 08:40
   Til: Orion-Interest
   Emne: Performance for static files
  
  
   We have a webbased client/server application which in addition to its
   dynamic elements has to serve a huge amount of small files (HTML, GIF,
   JS). I understand that Orionserver's performance for J2EE based
   applications is pretty good. How about serving static files from the
   file system? Can it compete with high performance servers like AOL
   Server, Stronghold Apache or others in this area?
  
   Thanks,
   Christof
  
  
  







Re: XSL example

2000-09-08 Thread Ishpal

Thanks Kev,

You are right.
Stupid kinda mistakes...
But it worked with Resin, so didnt think about them.

Thanks again,
Bye,
Ishpal.

Kev Palfreyman wrote:
 
 The problem is in your XSL file.  You have many table elements with unquoted
 attribute values.
 
 Kev
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Ishpal
  Sent: 08 September 2000 12:37
  To: Orion-Interest
  Subject: Re: XSL example
 
 
  Hi,
 
  May be I should have included my files..
 
  Why do i get the following error while the examples run fine...
 
  Source XML Error: Value must be quoted.
 
  I have tried putting quotes in the xml file, but nothing seems to work.
  Pls Help,
  Thanks in advance..
  Ishpal
 
  --
  1) XML file is...
 
  ?xml version="1.0"?
  !DOCTYPE doc SYSTEM "http://www.testdomain.cmx/hello/xsl/XML1.dtd"
  ?xml-stylesheet href="http://www.testdomain.cmx/hello/xsl/XML1.xsl"
  type="text/xsl"?
 
  top
  record
  key
  id1/id
  /key
  info
  nameish1cview/name
  age1/age
  /info
  contact-info
  addressg21/3 rajouri garden/address
  phonephone1/phone
  email[EMAIL PROTECTED]/email
  /contact-info
  /record
  /top
 
  2) DTD file is.
 
  !ELEMENT top (record)
  !ELEMENT record (key, info, contact-info)
  !ELEMENT key (id)
  !ELEMENT info (name, age)
  !ELEMENT contact-info (address,phone,email)
  !ELEMENT id (#PCDATA)*
  !ELEMENT name (#PCDATA)*
  !ELEMENT age (#PCDATA)*
  !ELEMENT phone (#PCDATA)*
  !ELEMENT email (#PCDATA)*
  !ELEMENT address (#PCDATA)*
 
  3) XSL file is .
 
  xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  vrsion="1.0"
  xsl:strip-space elements="top record key info contact-info"/
  xsl:output method="xml" int="yes"/
 
  xsl:output media-type="text/html" /
  xsl:template match="top"
  html
  head
  TITLExsl:value-of select="title"//TITLE
  /head
  body bgcolor="white"center
  xsl:apply-templates/
  hr/
  /center
  /body
  /html
  /xsl:template
 
 
  xsl:template match="record"
  hr/
  table cellspacing=5 cellpadding=4
  xsl:apply-templates/
  /table
  /xsl:template
 
  xsl:template match="key"
  tr
  xsl:apply-templates/
  /tr
  /xsl:template
 
 
  xsl:template match="info"
  tr
  xsl:apply-templates/
  /tr
  /xsl:template
 
  xsl:template match="contact-info"
  trtd colspan=4
  xsl:apply-templates/
  /td/tr
  /xsl:template
 
  xsl:template match="id"
  td bgcolor=c0c0c0UserId/tdtd colspan=3
  xsl:apply-templates/
  /td
  /xsl:template
 
  xsl:template match="name"
  td bgcolor=c0c0c0User Name/tdtd
  xsl:apply-templates/
  /td
  /xsl:template
 
  xsl:template match="age"
  td bgcolor=c0c0c0Age/tdtd
  xsl:apply-templates/
  /td
  /xsl:template
 
 
  xsl:template match="address"
  trtd bgcolor=c0c0c0Address/tdtd colspan=3
  xsl:apply-templates/
  /td/tr
  /xsl:template
 
 
  xsl:template match="phone"
  trtd bgcolor=c0c0c0Phone/tdtd colspan=3
  xsl:apply-templates/
  /td/tr
  /xsl:template
 
  xsl:template match="email"
  trtd bgcolor=c0c0c0E-mail/tdtd
  xsl:apply-templates/
  /td/tr
  /xsl:template
 
  /xsl:stylesheet
 




Re: Performance for static files

2000-09-08 Thread Robert Krueger

At 08:47 08.09.00 , you wrote:

just did a test and it seemed to make a big difference.  In IE advanced
options I had Use HTTP1.1 turned off.  I turned it back on and it made a big
difference.  As a matter of fact, I don't see the problem anymore as of yet.
(after clearing cache).

Dale

then please post it in bugzilla and have them decide if it's a bug in their 
http1.1 implementation. I think there's enough information in this thread 
for them.

Robert
(-) Robert Krüger
(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de





RE: CMP deployment problem

2000-09-08 Thread Christophe Hartwig

Hi !

I used to get such exceptions too... I had just read about BMPs and CMPs,
and tried to implement/specify too many methods in CMP beans. Your problem
is probably similar.

Your home interface should only have finders in it, findByPrimaryKey and
others (and create if appropriate)
Your interface should only have business methods
Your bean should implement only business methods, setEntityContext and
unsetEntityContext, and ejbActivate, ejbPassivate, ejbRemove, ejbStore,
ejbLoad which most of the time are empty. No ejbFind !

Remove ejbFind, ... and the exceptions disapear

Good luck, and I hope I didn't say anything wrong...
Christophe

PS: I now use only CMP... no BMP beans.

-Original Message-
From: Damian Guy [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 08, 2000 2:42 PM
To: Orion-Interest
Subject: CMP deployment problem


Hi,

I have successfully deployed BMP beans and I am now trying to deploy CMP
beans. I keep running into the follwing error during the deployment
process:

Auto-deploying supplier.jar... java.lang.ArrayIndexOutOfBoundsException:
0
at com.evermind.server.ejb.compilation.ey.aam(JAX)
at com.evermind.server.ejb.compilation.ew.o6(JAX)
at com.evermind.server.ejb.compilation.e_.zq(JAX)
at com.evermind.server.ejb.compilation.e7.aby(JAX)
at com.evermind.server.ejb.compilation.e_.o6(JAX)
at com.evermind.server.ejb.compilation.e1.o6(JAX)
at com.evermind.server.ejb.compilation.e6.o6(JAX)
at com.evermind.server.ejb.EJBContainer.lj(JAX)
at com.evermind.server.Application.lj(JAX)
at com.evermind.server.Application.e7(JAX)
at com.evermind.server.ApplicationServer.od(JAX)
at com.evermind.server.ApplicationServer.ai5(JAX)
at com.evermind.server.ApplicationServer.e7(JAX)
at com.evermind.server.gc.run(JAX)
at java.lang.Thread.run(Thread.java:479)
at com.evermind.util.e.run(JAX)

It doesn't mean much to me! Any ideas??

TIA,

Damian.




Help with OR-Mapping

2000-09-08 Thread Sridhar Manickam

Folks,

Does anyone know how to map a CMP field with type byte [] to a column in
Oracle 8i DB. Particulary what would the tag for this type look like in
the oracle.xml file under database-schemas directory. I see that a byte
type maps to number(10,0) as shown below.

type-mapping type="byte" name="number(10,0)" /.

but what would a byte array map to is the question. Your response would
be highly appreciated.

Thanks,
-Sridhar




Re: Performance for static files

2000-09-08 Thread Joel Shellman

Dale Bronk wrote:
 
 That may be true as I was including the time to server the file all the way
 to the point of the "little e" stopped spinning.  Have you had the following
 problems with framesets...
 
 In Apache/IIS with JRun 2.3.3 the frameset and each individual jsp/html
 files popup quickly.  In Orion, one frame will be visible and then do the
 wait for 10-15 seconds, then the next frame and wait, then the next.
 
 It doesn't seem to matter if I use only static html or jsp...  The "problem"
 exists on both.
 
 Dale

I noticed in changes.txt there is a new option to turn off keep-alives.
You might try your test again with keep-alives turned off in Orion. I'd
be interested to know the results.

-- 
Joel Shellman
Chief Software Architect
The virally-driven B2B marketplace for outsourcing projects
http://www.ants.com/90589781




User Authentication Under Orion

2000-09-08 Thread Michael Azzi

Hi,

I have a question regarding the failure case of user authentication using
Orion security managers. I noticed that the User.authenticate()
method returns a boolean, and does not throw any exceptions at all. This
works
great for many situations. But now consider the case when someone would
like to relay some additional information to the user as to why their login
failed. Something that's over and above the boolean value returned from the 
authenticate() method. Under such a scenario, what would be the mechanism 
if any, under Orion right now to pass this kind of information to the user?

A related question: what was the rationale behind not having
the authenticate() method throw any type of checked exceptions? It just
seems to me that an exception there might provide a decent way of supporting
the scenario that I just described.
Any thoughts on that would be greatly appreciated.

Thanks,
Mike  

 winmail.dat


Re: Device dependent xsl translation recommendation

2000-09-08 Thread KirkYarina

Language dependant translation, using Accept-Language, might be worth 
considering also.

At 07:27 AM 9/8/00 -0400, James Birchfield wrote:

As our organization continues to move forward with XML and XSL, it would be
great if Orion provided a built in feature to allow for device dependent
XSL translation, similar to Cocoon.
This email lays out one possible approach.  Forgive me if Orion already has
something planned.

My suggestion would be as follows.  Allow a new set of tags in one of the
config files, probably default-web-site.xml.  The tags could look similar
to this:

xsl-mappings
  xsl-mapping
   nameexplorer/name
   useragentMSIE/useragent
  /xsl:mapping
  xsl-mapping
   namepocketexplorer/name
   useragentMSPIE/useragent
  /xsl:mapping

snip

Kirk Yarina
[EMAIL PROTECTED]





Re: RE: CMP deployment problem

2000-09-08 Thread [EMAIL PROTECTED]

Thanks for the reply!

You were on the right track, the problem was that i hadn't updated
the ejb-jar.xml file to use the CMP version of my beans.

Cheers,

Damian Guy.
At Fri, 8 Sep 2000 16:14:22 +0200 , you wrote:
Hi !

I used to get such exceptions too... I had just read about BMPs and
CMPs,
and tried to implement/specify too many methods in CMP beans. Your
problem
is probably similar.

Your home interface should only have finders in it, findByPrimaryKey
and
others (and create if appropriate)
Your interface should only have business methods
Your bean should implement only business methods, setEntityContext
and
unsetEntityContext, and ejbActivate, ejbPassivate, ejbRemove,
ejbStore,
ejbLoad which most of the time are empty. No ejbFind !

Remove ejbFind, ... and the exceptions disapear

Good luck, and I hope I didn't say anything wrong...
Christophe

PS: I now use only CMP... no BMP beans.

-Original Message-
From: Damian Guy [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 08, 2000 2:42 PM
To: Orion-Interest
Subject: CMP deployment problem


Hi,

I have successfully deployed BMP beans and I am now trying to deploy
CMP
beans. I keep running into the follwing error during the deployment
process:

Auto-deploying supplier.jar...
java.lang.ArrayIndexOutOfBoundsException:
0
at com.evermind.server.ejb.compilation.ey.aam(JAX)
at com.evermind.server.ejb.compilation.ew.o6(JAX)
at com.evermind.server.ejb.compilation.e_.zq(JAX)
at com.evermind.server.ejb.compilation.e7.aby(JAX)
at com.evermind.server.ejb.compilation.e_.o6(JAX)
at com.evermind.server.ejb.compilation.e1.o6(JAX)
at com.evermind.server.ejb.compilation.e6.o6(JAX)
at com.evermind.server.ejb.EJBContainer.lj(JAX)
at com.evermind.server.Application.lj(JAX)
at com.evermind.server.Application.e7(JAX)
at com.evermind.server.ApplicationServer.od(JAX)
at com.evermind.server.ApplicationServer.ai5(JAX)
at com.evermind.server.ApplicationServer.e7(JAX)
at com.evermind.server.gc.run(JAX)
at java.lang.Thread.run(Thread.java:479)
at com.evermind.util.e.run(JAX)

It doesn't mean much to me! Any ideas??

TIA,

Damian.





RE: SQL Server DB Pooling

2000-09-08 Thread Saari, Amy


Excuse me for cutting in, but it seems to me I had that same
error message - so I did an explicit cast and it worked fine:

try {
  Context ctx = new InitialContext();
  ds = (DataSource) ctx.lookup(poolName);
} catch ( NamingException e) {
  throw(e);
}


Amy
www.redoakcreek.com


-Original Message-
From: Norman Jefferies [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 07, 2000 8:22 PM
To: Orion-Interest
Subject: Re: SQL Server DB Pooling


Since I'm not using your exact driver, I've used Webogic for SQL Sever7, and
others for Sybase and Informix, I'm assuming that the driver is JDBC 2.0
compliant, since that's a requirement for connection pooling to be
available. The pooling has worked fine for me with all of the above
databases. Hummm, what am I missing.

-Original Message-
From: dan moy [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Date: Thursday, September 07, 2000 6:08 PM
Subject: Re: SQL Server DB Pooling


Norm, I tried using a simpler name but I am still having problems. Here is
the error message:

500 Internal Server Error
java.lang.ClassCastException: com.evermind.sql.OrionPooledDataSource
 at
/examples/jsp/jdbctest/jdbctest.jsp._jspService(/examples/jsp/jdbctest/jdbc
test.jsp.java:49)
 (JSP page line 24)
 at com.evermind.server.http.EvermindHttpJspPage.service(JAX)
 at com.evermind.server.http.HttpApplication.t8(JAX)
 at com.evermind.server.http.JSPServlet.service(JAX)
 at com.evermind.server.http.di.pz(JAX)
 at com.evermind.server.http.di.forward(JAX)
 at com.evermind.server.http.dr.p4(JAX)
 at com.evermind.server.http.dr.p3(JAX)
 at com.evermind.util.f.run(JAX)

I'm not sure where to go from here.

Thanks,
Dan
On Thu, 7 Sep 2000 15:15:21 -0700, Orion-Interest wrote:

  Did you try a simpler name?0

  I just use jdbc/MyNamdPooledDS for the JNDI in the datasource and for
the
  context reference?
  I'm wondering if the /pool/ is causing a location problem within JNDI?

  Norm

  -Original Message-
  From: dan moy [EMAIL PROTECTED]
  To: Orion-Interest [EMAIL PROTECTED]
  Date: Thursday, September 07, 2000 2:51 PM
  Subject: Re: SQL Server DB Pooling


  Norman,
  Thanks for your response, but I did try all of the other JNDI locations
as
  specified by my data-sources.xml but there was only one I could get to
  work;
  the default location "jdbc/MyCoreDS".  All other when tried return a
class
  cast exception error.
  
  Any other ideas?
  Thanks,
  Dan
  
  On Thu, 7 Sep 2000 12:32:12 -0700, Orion-Interest wrote:
  
Orion already pools the connection for you. Just reference the
pooled
datasouce:
  
Context ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup( "jdbc/pooled/MypooledDS" );
Connection conn = ds.getConnection();
  
This will get you a connection from the pool, and return it when you
  close
the connection.
  
-Original Message-
From: dan moy [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Date: Thursday, September 07, 2000 12:20 PM
Subject: SQL Server DB Pooling
  
  
Hello,
I am interested in setting up database pooling using INet's Opta
driver
  for
SQL server, but I am having trouble with the configuration.

I can get the driver manager for single connections to work, but if
I
  try
any of the pooled conections I am getting a Cast exception.

Any help would be appreciated!  Thanks,
Dan

Here is my configuration:


data-source
 class="com.evermind.sql.ConnectionDataSource"
 location="jdbc/MyCoreDS"
 pooled-location="jdbc/pooled/MypooledDS"
 xa-location="jdbc/xa/MyXADS"
 ejb-location="jdbc/MyDS"
 name="My data-source"
 url="jdbc:inetdae:SQLSERVERA:1433"
 connection-driver="com.inet.tds.TdsDriver"
 username="sa"
 password=""
/

Here is the code I am using to test this connection:


 PooledConnection pcon = null;
 Connection con = null;
 int i=0;

 System.out.println("Starting");
 try {
Context ctx = new InitialContext();

/*
  DataSource ds = (DataSource)ctx.lookup("jdbc/MyCoreDS");
  con = ds.getConnection();
*/
ConnectionPoolDataSource ds =
(ConnectionPoolDataSource)ctx.lookup("jdbc/MyDS");
pcon = ds.getPooledConnection();
con = pcon.getConnection();

Statement s = con.createStatement();
ResultSet rs = s.executeQuery("select * from sysmessages");

while (rs.next()) {
%
tr
 td%= i++ %/td
 td%= rs.getString(4) %/td
/tr
%
}

rs.close();
s.close();
 }

 catch (NamingException e)
  
 System.out.println(e.toString());
 }
 catch (SQLException e) {
 System.out.println(e.toString());
 }
 finally
  
 if (pcon != null)
 try {
 pcon.close();
 }
 catch(Exception e) {
 

Re: Help - SSL Usage in Production - is it really possbile?

2000-09-08 Thread Paul Knepper



Karl,

Its been a couple of 
weeks since there was any activity on this thread.

I am now ready to 
get my beta site ready for deployment and need to get 128-bit SSL working with 
Orion. Is this possible?

Thanks,
Paul 
Knepper




Re: Help - SSL Usage in Production - is it really possbile?



  From: Karl Avedal 
  Subject: Re: Help - SSL Usage in Production - is it really possbile? 
  Date: Wed, 23 Aug 2000 10:47:01 -0700 

Hello Mike,

We're currently making sure that Thawte will have an Orion option for the purchase
to make it easier to get a cert (and we'll work with Verisign too).

We are also creating a guide to show how you can get a 128 bit or 40 bit production
license.

Regards,
Karl Avedal

Mike Clark wrote:

 Unfortunately, that cert is no longer available from Thawte.  We're still out of
 business with Orion using a production SSL certificate.

 What gives?

 Mike

 Mattias Arbin wrote:

  I have Orion running with a "real" 40-bit cert from Thawte.
  I guess it does not matter which web-server you say you have. Probably it is
  for statistics. (I chose Java Webserver).
  You will be able to choose from a number of different formats when you
  download the cert.
  Here I chose "PKCS #7 Certificate Chain". Make sure that you save it in a
  file that ends with a new line before importing it to the keystore.
  Good luck.
  /Mattias
 
  - Original Message -
  From: "Mike Fontenot" [EMAIL PROTECTED]
  To: "Orion-Interest" [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Friday, August 18, 2000 10:50 PM
  Subject: Help - SSL Usage in Production - is it really possbile?
 
   orion users,
  
   I've been using the test certificate from Thawte, as both the orion docs.
   and the OrionSupport suggested. That has been working fine. However, I am
   now ready to move to production with our e-commerce system and I have run
   into some major snags that leads me to think NO one is using Orion in a
   production SSL environment.
  
   After going through the Thawte process for getting a server cert, the
  'pick
   your web server' does not list Orion. After talking with Thawte support
  they
   suggested picking 'Apache SSL' as a choice. Ok, that seems fine to me.
   However, they also said I would need to pick the certificate type: x509v3.
  
   Since I've been using the 'SSL Chained CA Cert' for development, I wanted
  to
   try this out with a development cert to be sure it would work. I tried
  this
   using a X509v3 development cert but it will not work. Again, after getting
   back in touch with Thawte support regarding X509v3 not working, I said I
   will need to just use the 'SSL Chained CA Cert'.  They then informed me
  that
   they no longer sell this type of certificate, and that I must go to
  Verisign
   to obtain this type of certificate. Well, my first question to Thawte was
   'If you dont sell this type of certificate, why is it available on your
   developers cert pages?' Answer from Thawte: 'Yeah, I've been meaning to
  talk
   to our developers to take that off the website.'.
  
   Guess how much hair I've lost so far!?  Now I am in the 'process' of
  getting
   a certificate from Verisign. Of course they do not have 'Orion Server'
   listed in their pick list of valid webservers. Since I just started this
   process today I really dont know if they can/cannot support the type of
  SSL
   certificate I will need to work with Orion.
  
   I'll be the first to admit I'm not real familiar with the Java 1.3
  keytool,
   and different certificate meanings. But, if anyone has really obtained a
   valid production level SSL certificate, from any Certificate Authority,
  and
   successfully integrated this with Orion, please let me/us know how this
  was
   accomplished. The only docs I've see are related to development certs, and
   as I stated earlier, I've got this working fine. I now need to graduate to
   real e-commerce transactions. Please dont make me go back to Apache/JRun,
  I
   feel Orion is so much better but this is a real show-stopper. I have
  looked
   through the orion mail archives and it seems all discussions are related
  to
   trying to get the developer certs to work, not production certs.
  
   Thanks in advance,
   Mike
  
   
   Mike Fontenot - Object Systems Architect
   BrandMatrix, Ltd.
   Golden, Colorado
   
  

 --
 //
 //
 //  Mike Clark
 //
 //  Clarkware Consulting
 //  Enterprise Java Architecture, Design, Development
 //
 //  http://www.clarkware.com
 //  [EMAIL PROTECTED]
 //  +1.720.851.2014
 //



Re: Clustering problems.

2000-09-08 Thread Dylan Parker

Thursday, September 07, 2000, 9:29:42 PM, you wrote:

 Hi all. I am having some trouble getting clustering working on a fairly simple 
setup. I am hoping someone can give me some hints as to what I am doing wrong. I have 
two machines each running Orion
 1.2.9 with JDK 1.3.0RC on Solaris. One is Intel and the other is Sparc. Both of 
these machines have two ethernet interfaces, one for the public Internet and one for 
the private network (which is

[Clustering Woes Snipped]

 Also, do I really need to add cluster-config / to my orion-web.xml files? Isn't 
there a place I can say "make all apps clusterable by default"? I currently have 
about 20 apps installed and this
 makes it kinda annoying :)
 Anyway, thanks for the help. I have been beating my head against this for a few 
days. 

I know exactly where you are coming from. Myself and a few others are exactly at
the stage you are right now... the banging head on wall stage... and are
desperate for some documentation on clustering (and other areas) from Orion.

We've been promised docs a few times... First a document would be out soon...
then it would take longer but a 'condensed' clustering document would be out in
a few days (almost 2 weeks ago now)... now the 'condensed' document is
forgotten... and the original promised doc is delayed again to include
load-balancing info... who knows when we will actually see something.

Lack of documentation is killing my opinion of this company.
Not complete lack. Just lack.

And it isn't like it isn't a known problem. Almost every review of Orion I have
seen points out this glaring fact. And this mailing list is seething with people
patiently waiting for something that should be already written.

How about the whole orion team just STOPS coding for a week... (I don't
care about 1.2.10!!!)... and fill in the gaps in the documentation. I think it
would be a very productive move.

Yes, I know the "price is right"... but come *ON*... inexpensive means nothing if
the features you need are available but undocumented.

Dylan Parker






Re: Device dependent xsl translation recommendation

2000-09-08 Thread jbirchfield


After posting the original message this morning, I went to work putting
together a custom tag to do what I suggested this morning.
A zip file containing all the source, and instructions is attached to this
email. Please feel free to use it.  If you run into any problems, let me
know.

(See attached file: xsltags.zip)

James Birchfield

Ironmax
a better way to buy, sell and rent construction equipment
5 Corporate Center
9960 Corporate Campus Drive,
Suite 2000
Louisville, KY 40223
 .ZIP File


JSP classpath setup

2000-09-08 Thread Jitendra Kothari

Hi Folks,

I am importing java classes that I wrote in JSP pages using @page import...
tag.  However, Orion is not able to find my classes in import.  I have
included my directores in the system classpath.  Looks like Orion does not
use system classpath.  Is there a Orion specific classpath that I should set
in order for JSP pages to recognize my imports. Please let me know. TIA.

-Ben





RMI-IIOP

2000-09-08 Thread Cory Adams

Has anybody implemented RMI-IIOP to interoperate from an EJB to a different
system?  If so how is it supported within ORION or does it totally depend
upon the JDK's support for RMI-IIOP?  

Also how to you implement RMI-IIOP usage in an EJB?  Can the container pool
those connections.

Thanks,

Cory




Re: Deployment confusions

2000-09-08 Thread Karl Avedal

Hello Richard,

Try the Management Console (java -jar orionconsole.jar or java -jar orion.jar
-console)
or try admin.jar (java -jar admin.jar).

These tools let you do those things via a graphical tool or via a command line
interface.

For more info on how to deploy using the command like, see this entry in the
FAQ:

How do I deploy an application on a remote machine (without ftp or telnet
access)? (http://www.orionserver.com/faq/#-855510329).

Regards,
Karl Avedal

Richard Landon wrote:

 I am probably stupid, but

 I still very confused about deployment using Orion. My understanding from
 the documentation is that
 I must edit the server.xml and add the code. No problem for me as a
 developer. But when it comes
 to migrating our application into pre-production or production, whoa-nellie,
 that ain't going to cut
 it. So, here's they same question I posted here repeatedly since yesterday.

 I need a command-line method to deploy the ear file once it gets built into
 the Orion server.
 I need a command-line method to acquire the client support files from the
 Orion server.
 I need a command-line method to invoke a EJB client(s).

 I guess I spend the rest of the day trying to figure it out, and then take
 this server off our list.





Re: Deployment confusions

2000-09-08 Thread Matt Brunner

Richard Landon wrote:

 I need a command-line method to deploy the ear file once it gets built into
 the Orion server.

for this you just put the ear file in the applications directory and put one
line for each ear into server.xml.
example:  application name="ip" path="../applications/ip-app.ear" /


 I need a command-line method to acquire the client support files from the
 Orion server.

from what I gathered off your email yesterday you are used to getting a
client.jar file from Sun's J2EE RI.  I haven't found orion to do this for me so
I just create my own client jars by myself.
example structure:
   my-application-client.jar
  J2EEClient.class
  META-INF
MANIFEST.MF
application-client.xml

 I need a command-line method to invoke a EJB client(s).

to invoke ejb clients I write a shell script that sets any needed classpath for
the client program(this must include orion.jar from what I remember) and then
have the script execute my java program(ejb client) with the inline classpath
argument and a system property for the initial context factory.

example:
CLASSPATH=orion.jar:my-entity-ejb.jar:my-session-ejb.jar:my-application-client.jar

java  -classpath $CLASSPATH
-Djava.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory
my.package.MyProgramName



Also there is orionsupport web page at www.orionsupport.com site where you may
get more information.
It seems to me that you're assuming questions posted to the list must be
answered and answered correctly, however, the nature of this mailing list is a
community list where people exchange questions and answers out of the goodness
of their hearts(like give a penny take a penny).  There is no guaranteed
support on this type of mailing list.

Hopefully my answers are helpful -

Matt





debugging help needed

2000-09-08 Thread Jesse Schoch

I wrote a little method to parse out set() metadata out of a mysql database,
it works fine inside of a .jsp but when i call my class it gives me the
following error, how might i get more meaningfull debuging data.  i am a
java newbie and come from a perl background so please be verbose if this is
a stupid question:

java.lang.NullPointerException
at /pscms/options.jsp._jspService(/pscms/options.jsp.java:38) (JSP page line
20)
at com.evermind.server.http.EvermindHttpJspPage.service(Compiled Code)
at com.evermind.server.http.HttpApplication.t8(Compiled Code)
at com.evermind.server.http.JSPServlet.service(Compiled Code)
at com.evermind.server.http.di.pz(Compiled Code)
at com.evermind.server.http.di.forward(Compiled Code)
at com.evermind.server.http.dr.p4(Compiled Code)
at com.evermind.server.http.dr.p3(Compiled Code)
at com.evermind.util.f.run(Compiled Code)

///Below is the .jsp

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"

html
head
titleUntitled/title
/head

body
%@
 page
import="java.util.*,java.sql.*,javax.sql.*,javax.naming.*,pscms.HtmlOptionLi
st"
%
HI

%

HtmlOptionList hol = new HtmlOptionList("pscms.pscms_users");
Vector foo =  new Vector();
foo = hol.getHtmlOptionList("pscms.pscms_users");
out.println(foo.size());
out.println("pick your Group Id" + foo.get(1)+"brpick your
Region"+foo.get(1));

%
/body/html

and here is the HtmlOptionList.java

//generate option list from db
package pscms;
import java.sql.*;
import javax.sql.*;
import java.util.*;
import javax.naming.*;

public class HtmlOptionList
{

private String table;
private String htmlPrintString = "";
private String htmlPrintS;
private Vector v;
public HtmlOptionList(String table)
{
this.table = table;
}
public Vector getHtmlOptionList(String table)
{
try
{


Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("jdbc/mysql");
Connection con = ds.getConnection();


DatabaseMetaData meta = con.getMetaData();
String productName = meta.getDatabaseProductName();
//HtmlOptionList hol = new HtmlOptionList();
//hol.getHtmlOptionList(con,"pscms_users");
//out.println(htmlPrintString);
String htmlPrintS = "";
String htmlPrints = "";


Vector v = new Vector();
Statement show_columns_st = con.createStatement();
String show_columns_q = "show columns from " + table;
ResultSet show_columns_rs = 
show_columns_st.executeQuery(show_columns_q);
ResultSetMetaData show_columns_rsmd = 
show_columns_rs.getMetaData();
int i = 1;
while (show_columns_rs.next())
{
// print the values for the current row.
String htmlPrintString = new String();
String string = "";
String bla = show_columns_rs.getString(2);
i++;
int c = 0;
int d =0;
StringTokenizer st = new StringTokenizer(bla,"','");
for (c = 0;st.hasMoreTokens();c++){String token = 
st.nextToken();}
StringTokenizer st1 = new StringTokenizer(bla,"','");
for (int b = 0;st1.hasMoreTokens();b++)
{
String token = st1.nextToken();
if(b == 0 )
{
if(token.equals("set("))
{
d = 1;
}
}
if(d ==1)
{
if(b == 1)
{
htmlPrintString=new 
String("SELECT id='north_east' name='gid'
title='Group ID'OPTION selected value='"+token+"'"+token);
}
if(b==0|| b == (c-1)||b==c||b==c-2)
{
}
else
{
  

I nee help Please Please

2000-09-08 Thread michel_climber

I'm getting mad because I don't know how to generate .ear and .jar(ejb). I
have generated using deploytool from Sun, but I got an error from Orion with
I generate a .jar and try to add it to .ear.
Please Could someone tell me how could I generate ejb.jar and .ear (step by
step)files very weel generated and without error.

I have used Orion gui tool unsuccessfully

Thank you very much for your help

Michel








___
Say Bye to Slow Internet!
http://www.home.com/xinbox/signup.html





RE: SQL Server DB Pooling

2000-09-08 Thread dan moy

Amy,
If you look at my test code you will see that I did try as you suggested,
but thanks for the suggestion.

Dan
On Fri, 8 Sep 2000 11:30:20 -0500 , Orion-Interest wrote:

  
  Excuse me for cutting in, but it seems to me I had that same
  error message - so I did an explicit cast and it worked fine:
  
  try {
Context ctx = new InitialContext();
ds = (DataSource) ctx.lookup(poolName);
  } catch ( NamingException e) {
throw(e);
  }
  
  
  Amy
  www.redoakcreek.com
  
  
  -Original Message-
  From: Norman Jefferies [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 07, 2000 8:22 PM
  To: Orion-Interest
  Subject: Re: SQL Server DB Pooling
  
  
  Since I'm not using your exact driver, I've used Webogic for SQL Sever7,
and
  others for Sybase and Informix, I'm assuming that the driver is JDBC 2.0
  compliant, since that's a requirement for connection pooling to be
  available. The pooling has worked fine for me with all of the above
  databases. Hummm, what am I missing.
  
  -Original Message-
  From: dan moy [EMAIL PROTECTED]
  To: Orion-Interest [EMAIL PROTECTED]
  Date: Thursday, September 07, 2000 6:08 PM
  Subject: Re: SQL Server DB Pooling
  
  
  Norm, I tried using a simpler name but I am still having problems. Here
is
  the error message:
  
  500 Internal Server Error
  java.lang.ClassCastException: com.evermind.sql.OrionPooledDataSource
   at
 
/examples/jsp/jdbctest/jdbctest.jsp._jspService(/examples/jsp/jdbctest/jdbc
  test.jsp.java:49)
   (JSP page line 24)
   at com.evermind.server.http.EvermindHttpJspPage.service(JAX)
   at com.evermind.server.http.HttpApplication.t8(JAX)
   at com.evermind.server.http.JSPServlet.service(JAX)
   at com.evermind.server.http.di.pz(JAX)
   at com.evermind.server.http.di.forward(JAX)
   at com.evermind.server.http.dr.p4(JAX)
   at com.evermind.server.http.dr.p3(JAX)
   at com.evermind.util.f.run(JAX)
  
  I'm not sure where to go from here.
  
  Thanks,
  Dan
  On Thu, 7 Sep 2000 15:15:21 -0700, Orion-Interest wrote:
  
Did you try a simpler name?0
  
I just use jdbc/MyNamdPooledDS for the JNDI in the datasource and for
  the
context reference?
I'm wondering if the /pool/ is causing a location problem within
JNDI?
  
Norm
  
-Original Message-
From: dan moy [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Date: Thursday, September 07, 2000 2:51 PM
Subject: Re: SQL Server DB Pooling
  
  
Norman,
Thanks for your response, but I did try all of the other JNDI
locations
  as
specified by my data-sources.xml but there was only one I could get
to
work;
the default location "jdbc/MyCoreDS".  All other when tried return a
  class
cast exception error.

Any other ideas?
Thanks,
Dan

On Thu, 7 Sep 2000 12:32:12 -0700, Orion-Interest wrote:

  Orion already pools the connection for you. Just reference the
  pooled
  datasouce:

  Context ctx = new InitialContext();
  DataSource ds = (DataSource)ctx.lookup( "jdbc/pooled/MypooledDS"
);
  Connection conn = ds.getConnection();

  This will get you a connection from the pool, and return it when
you
close
  the connection.

  -Original Message-
  From: dan moy [EMAIL PROTECTED]
  To: Orion-Interest [EMAIL PROTECTED]
  Date: Thursday, September 07, 2000 12:20 PM
  Subject: SQL Server DB Pooling


  Hello,
  I am interested in setting up database pooling using INet's Opta
  driver
for
  SQL server, but I am having trouble with the configuration.
  
  I can get the driver manager for single connections to work, but
if
  I
try
  any of the pooled conections I am getting a Cast exception.
  
  Any help would be appreciated!  Thanks,
  Dan
  
  Here is my configuration:
  
  
  data-source
   class="com.evermind.sql.ConnectionDataSource"
   location="jdbc/MyCoreDS"
   pooled-location="jdbc/pooled/MypooledDS"
   xa-location="jdbc/xa/MyXADS"
   ejb-location="jdbc/MyDS"
   name="My data-source"
   url="jdbc:inetdae:SQLSERVERA:1433"
   connection-driver="com.inet.tds.TdsDriver"
   username="sa"
   password=""
  /
  
  Here is the code I am using to test this connection:
  
  
   PooledConnection pcon = null;
   Connection con = null;
   int i=0;
  
   System.out.println("Starting");
   try {
  Context ctx = new InitialContext();
  
  /*
DataSource ds = (DataSource)ctx.lookup("jdbc/MyCoreDS");
con = ds.getConnection();
  */
  ConnectionPoolDataSource ds =
  (ConnectionPoolDataSource)ctx.lookup("jdbc/MyDS");
  pcon = ds.getPooledConnection();
  con = pcon.getConnection();
  
  Statement s = con.createStatement();
  ResultSet rs = 

Orion Difficulities....

2000-09-08 Thread Richard Landon
Title: Orion RMI Security problem



I am 
have some major problems with the learning curve with this server. I have 
previously used (succesfully)
(1) 
J2EE RI
(2) 
Web Logic 5.1
(3) 
IAS
(4) 
Silverstream
(5) 
Gemstone/J


I 
start the server as follows:
[C:/orion] java -jar orion.jarOrion/1.2.9 
initialized

I take 
this to mean the server is running.

I then 
do a http://blazer.youbet.com:8080 
and see the web page.
(I 
modified the port since I'm already running Apache on port 
80).

For 
example, according to the documentation, to shutdown the 
server:

[C:/orion] java -jar admin.jar 
ormi://blazer.youbet.com:8080 admin root -shutdownError: 
javax.naming.NamingException: Lookup error: java.io.StreamCorruptedException: 
Caught EOFException while reading the stream header; nested exception 
is: 
java.io.StreamCorruptedException: Caught EOFException while reading the stream 
header
So 
after two-days, it is not possible to figure out how to shutdown the 
server.
I'll 
try a little bit long, then remove this server from our vendor 
list.









RE: Orion Difficulities....

2000-09-08 Thread Richard Landon
Title: Orion RMI Security problem





  -Original Message-From: Richard Landon 
  Sent: Friday, September 08, 2000 2:59 PMTo: 
  'Orion-Interest'Subject: Orion 
  Difficulities
  I am 
  have some major problems with the learning curve with this server. I have 
  previously used (succesfully)
  (1) 
  J2EE RI
  (2) 
  Web Logic 5.1
  (3) 
  IAS
  (4) 
  Silverstream
  (5) 
  Gemstone/J
  
  
  I 
  start the server as follows:
  [C:/orion] java -jar orion.jarOrion/1.2.9 
  initialized
  
  I 
  take this to mean the server is running.
  
  I 
  then do a http://blazer.youbet.com:8080 and see 
  the web page.
  (I 
  modified the port since I'm already running Apache on port 
  80).
  
  For 
  example, according to the documentation, to shutdown the 
  server:
  
  [C:/orion] java -jar admin.jar 
  ormi://blazer.youbet.com:8080 admin root -shutdownError: 
  javax.naming.NamingException: Lookup error: java.io.StreamCorruptedException: 
  Caught EOFException while reading the stream header; nested exception 
  is: 
  java.io.StreamCorruptedException: Caught EOFException while reading the stream 
  header
  So 
  after two-days, it is not possible to figure out how to shutdown the 
  server.
  I'll 
  try a little bit long, then remove this server from our vendor 
  list.
  
  
  
  
  
  
  


RE: Deployment confusions

2000-09-08 Thread Will Glozer

The FAQ http://www.orionserver.com/faq/ describes how to use the
admin.jar tool to deploy to a remote server.

There is no "command-line method to acquire the client support files
 from the Orion server."  I'm not even sure what you mean by this,
but if you question is about RMI stubs etc those are all transparently
generated by the server.

I don't know what "a command-line method to invoke a EJB client(s)."
is either.  If you are making a client.jar then it is up to you to
make it an executable jar via the manifest Main-Class: attribute.

You are welcome to "take this server off our list", but I have a
feeling that you will have a very hard time finding a better server,
or one that somehow does everything for you.  I sympathize with your
troubles learning J2EE and application servers that support the
standard.  It is big and complex as enterprise tools tend to be, so
you will need a bit of patience.

Regards,
Will

-Original Message-
From: Richard Landon [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 08, 2000 1:16 PM
To: Orion-Interest
Subject: Deployment confusions


I am probably stupid, but

I still very confused about deployment using Orion. My understanding from
the documentation is that
I must edit the server.xml and add the code. No problem for me as a
developer. But when it comes
to migrating our application into pre-production or production, whoa-nellie,
that ain't going to cut
it. So, here's they same question I posted here repeatedly since yesterday.

I need a command-line method to deploy the ear file once it gets built into
the Orion server.
I need a command-line method to acquire the client support files from the
Orion server.
I need a command-line method to invoke a EJB client(s).

I guess I spend the rest of the day trying to figure it out, and then take
this server off our list.






Re: Clustering and load balancing Howto

2000-09-08 Thread Jason von Nieda

First question! Oo! Oo!
Anyways, you say:
--
If you want to add clustering for the whole website (for all
web-applications), edit the orion-web.xml of the default web-application
(NOTE: it will not be applied to all web-applications previous to Orion
1.3.6). This file is normally located in
orion/application-deployments/default/defaultWebApp/orion-web.xml.
--
Do you perhaps mean global-web-application.xml in orion/config?
My set up doesn't even reference defaultWebApp because I have no use for it.
Or am I missing something here?
Thanks!
P.S. Great doc by the way. Figured most of this out today while
interrogating Magnus, but
it's good to have it all in one place!

- Original Message -
From: "Karl Avedal" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Friday, September 08, 2000 3:57 PM
Subject: Clustering and load balancing Howto


 Hello,

 Finally, the first version of the "Orion Clustering and Load
 Distribution" document is up. You can read it at
 http://www.orionserver.com/howtos/orion-clustering.html

 We will not link it from the site until tomorrow since we want to do
 some more testing on it before we have everyone waste their time trying
 it, just to run into a simple stumbling block. However, you are free to
 read it and try it now, but no guarantees on it being 100 % correct
 until tomorrow (ok, 100% can be hard to guarantee at any time...).

 Suggestions for improvements are happily accepted to
 [EMAIL PROTECTED]

 Regards,
 Karl Avedal







RE: I nee help Please Please

2000-09-08 Thread Kurt Hoyt

http://www.orionserver.com/docs/application-creation-howto.html

Kurt in Atlanta

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 08, 2000 4:48 PM
To: Orion-Interest
Subject: I nee help Please Please


I'm getting mad because I don't know how to generate .ear and 
.jar(ejb). I
have generated using deploytool from Sun, but I got an error 
from Orion with
I generate a .jar and try to add it to .ear.
Please Could someone tell me how could I generate ejb.jar and 
.ear (step by
step)files very weel generated and without error.

I have used Orion gui tool unsuccessfully

Thank you very much for your help

Michel








___
Say Bye to Slow Internet!
http://www.home.com/xinbox/signup.html






Re: Orion Difficulities....

2000-09-08 Thread Jason von Nieda
Title: Orion RMI Security problem



Remove the port (8080) from your ormi URL. The admin port is 
different from the web port and is configured
in orion/config/rmi.xml

  - Original Message - 
  From: 
  Richard 
  Landon 
  To: Orion-Interest 
  Sent: Friday, September 08, 2000 4:51 
  PM
  Subject: Orion Difficulities
  
  I am 
  have some major problems with the learning curve with this server. I have 
  previously used (succesfully)
  (1) 
  J2EE RI
  (2) 
  Web Logic 5.1
  (3) 
  IAS
  (4) 
  Silverstream
  (5) 
  Gemstone/J
  
  
  I 
  start the server as follows:
  [C:/orion] java -jar orion.jarOrion/1.2.9 
  initialized
  
  I 
  take this to mean the server is running.
  
  I 
  then do a http://blazer.youbet.com:8080 and see 
  the web page.
  (I 
  modified the port since I'm already running Apache on port 
  80).
  
  For 
  example, according to the documentation, to shutdown the 
  server:
  
  [C:/orion] java -jar admin.jar 
  ormi://blazer.youbet.com:8080 admin root -shutdownError: 
  javax.naming.NamingException: Lookup error: java.io.StreamCorruptedException: 
  Caught EOFException while reading the stream header; nested exception 
  is: 
  java.io.StreamCorruptedException: Caught EOFException while reading the stream 
  header
  So 
  after two-days, it is not possible to figure out how to shutdown the 
  server.
  I'll 
  try a little bit long, then remove this server from our vendor 
  list.
  
  
  
  
  
  
  


Re: Help - SSL Usage in Production - is it really possbile?

2000-09-08 Thread Karl Avedal

Hello Paul,

It's possible to use 128 bit SSL with Orion. Just about now it will be
possible to use 128 bit globally and not just in the US. I know a few
customers are using it today, but we are still working on making an easy
way to get a production cert with Orion. We are in contact with Thawte
(Owned by Verisign these days) about adding an Orion option on their
website and that will be done. For now, I think it's best to get a
"Netscape cert chain format" or a "PKCS#7 cert chain format".

Regards,
Karl Avedal

Paul Knepper wrote:

 Karl,Its been a couple of weeks since there was any activity on this
 thread.I am now ready to get my beta site ready for deployment and
 need to get 128-bit SSL working with Orion.  Is this
 possible?Thanks,Paul Knepper





Re: Clustering problems.

2000-09-08 Thread Karl Avedal

Hello Dylan,

 (... about lack of documentation)

 And it isn't like it isn't a known problem. Almost every review of Orion I have
 seen points out this glaring fact. And this mailing list is seething with people
 patiently waiting for something that should be already written.

Absolutely, documentation is our biggest and most important task (as I've pointed out 
many times on this list)


 How about the whole orion team just STOPS coding for a week... (I don't
 care about 1.2.10!!!)... and fill in the gaps in the documentation. I think it
 would be a very productive move.

Well, even though you might not care about getting new versions every day (of course 
noone cares for every update) there are many people who are running Orion on their 
production sites serving thousands
of people, or are in the process of going live, and if they find a bug we try to help 
them with it. We get an enormous amount of reports and requests for enhancements and 
new features and if we stopped
developing for a whole week we would get far behind on helping our customers, and 
believe me, a week of documentation isn't enough to improve documentation in that many 
areas that it makes it worth to
stop responding to everyone.

All I can say is that we are working on documentation (when we're not working on 
explaining that we are working on documentation ;) ) and that we are aware of the 
amounts of documentation that you need
to work with a product of this complexity. A big problem is also that things are 
moving so fast. We make something available as a preview (like EJB 2.0) and of course 
people want documentation and
examples the day after (understandable), but it's a tough task to work that fast.


 Yes, I know the "price is right"... but come *ON*... inexpensive means nothing if
 the features you need are available but undocumented.

Of course. We are working like this: When we have a new feature we start out by giving 
a little documentation on it so that everything is at least documented (although very 
briefly) and then we follow
up with more complete documentation, but those usually take a fair bit longer to 
produce. Examples are SSL, Clustering and user management that have had very sparse 
documentation so far (but Clustering
was improved today), and we are working on providing complete tutorials and how-to's 
about these subjects.

We understand that you need complete and good documentation to work with our product, 
and if you can not live with the state of the current documentation, you should of 
course look at other products
that fit your needs better. We are doing our best to make sure that Orion is the best 
J2EE server and we certainly are working on making sure that everyone can use it, and 
I think we've taken big steps
in this direction lately, with a few noticable additions like the Bugzilla, the 
improvements to the Changelog and the new documentation that's starting to pop up, 
like the clustering doc, The start to
the GUI tools tutorial, the start to the Filter tutorial, The CMP Primer (not on the 
site yet, but available at www.jollem.com/orion-cmp-primer/ (yeah, Ernst is writing 
some documentation for Orion
"officially" now)) and a few other docs that are in the later stages of production.

Eventually we will get there.

Regards,
Karl Avedal





Re: I nee help Please Please

2000-09-08 Thread Mike Clark

The Orion Primer has step-by-step instructions for packaging and deploying a
J2EE application...

http://www.znerd.demon.nl/orion-primer/

Mike

[EMAIL PROTECTED] wrote:

 I'm getting mad because I don't know how to generate .ear and .jar(ejb). I
 have generated using deploytool from Sun, but I got an error from Orion with
 I generate a .jar and try to add it to .ear.
 Please Could someone tell me how could I generate ejb.jar and .ear (step by
 step)files very weel generated and without error.

 I have used Orion gui tool unsuccessfully

 Thank you very much for your help

 Michel

 ___
 Say Bye to Slow Internet!
 http://www.home.com/xinbox/signup.html

--
//
//
//  Mike Clark
//
//  Clarkware Consulting
//  Enterprise Java Architecture, Design, Development
//
//  http://www.clarkware.com
//  [EMAIL PROTECTED]
//  +1.720.851.2014
//






Re: Clustering and load balancing Howto

2000-09-08 Thread Dylan Parker

Second Question! Woo! Hoo! =)

Hello, karl,

Excellent! Awesome! Great!

I burned through your document and have a functional setup.

A few questions :

Where ideally should loadbalancer.jar be executed? Obviously if it is running on
one of the machines in the cluster it isn't so good.. sort of defeats the
fail-safe purposes... So should it have it's own machine? Or am I just missing
something.


The current setup I tried is this :

2 machines in the cluster. A third machine has a mapped drive to one of the
machines and is the loadbalancer.

I start the loadbalancer in debug mode. It says it is initialized. I start the
two backend servers in debug mode (as outlined in the HOWTO)... they start
yakking away apparently over multicast... things like :

=
HTTP-clustering service started...
Created cluster-listener for 230.0.0.1/230.0.0.1:9128 as 1249865300...
Adding clustering service 'defaultWebApp'...
HTTP-Clustering service initializing...
Received cluster-message: defaultWebApp...
HTTP-Clustering sent "I want sessions" request...
Received cluster-message: defaultWebApp...
Receiving HTTP-cluster send-sessions goahead from 597745668...
Received cluster-message: defaultWebApp...
Receiving HTTP-cluster sessions...
Received cluster-message: defaultWebApp...
Receiving HTTP-cluster send-sessions request...
Received cluster-message: defaultWebApp...
Receiving HTTP-cluster session value update...
Created cluster-listener for 230.0.0.2/230.0.0.2:27512 as 1...
Adding clustering service 'islands'...
Orion/1.3.3 initialized
=

The second "cluster-listener" is created when the LoadBalancer 'discovers' that
machine. Is it alright that two listeners are created?

ALright... then both machines are up... I go to the servlet/SessionServlet and
LoadBalancer binds the session and chooses a server for me.. so far so good... I
get the counter up a bit (and watch the machine send the other counter
updates)... then I kill that server (kill the process through Task Manager).. I
click refresh in the browser and lo and behold... the LoadBalancer re-routes the
connection and I'm now on the other machine with the correct data.

Excellent! BUT. when I start up the dead server again... it gets detected by
the loadbalancer... starts receiving updates from the other server... so I kill
of Server #2 it dies... and the counter returns to 1 even though the
counter value DID get passed (listed in the debug messages)... for some reason
it creates a new session. Any ideas here?

In fact after the first successful fail-over ... I can't get it to do it again
without stopping the loadbalancer... and then both servers... then starting the
load balancer... then both the servers again. It seems to only work once... then
not anymore... even though it LOOKS like it should work.

Any help is greatly appreciated!

I am using Orion 1.3.3 since that's what the autoupdate gave me... the HOWTO
DOES say to use 1.3.5+ but I don't know where that is.

Thanks,
Dylan


 Hello,

 Finally, the first version of the "Orion Clustering and Load
 Distribution" document is up. You can read it at
 http://www.orionserver.com/howtos/orion-clustering.html

 We will not link it from the site until tomorrow since we want to do
 some more testing on it before we have everyone waste their time trying
 it, just to run into a simple stumbling block. However, you are free to
 read it and try it now, but no guarantees on it being 100 % correct
 until tomorrow (ok, 100% can be hard to guarantee at any time...).

 Suggestions for improvements are happily accepted to
 [EMAIL PROTECTED]

 Regards,
 Karl Avedal






RE: Device dependent xsl translation recommendation

2000-09-08 Thread Joe Stewart

How about putting up a link instead of attaching a file for those of us on
dial-up connections?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Friday, September 08, 2000 10:04 AM
To: Orion-Interest
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Device dependent xsl translation recommendation



After posting the original message this morning, I went to work putting
together a custom tag to do what I suggested this morning.
A zip file containing all the source, and instructions is attached to this
email. Please feel free to use it.  If you run into any problems, let me
know.

(See attached file: xsltags.zip)

James Birchfield

Ironmax
a better way to buy, sell and rent construction equipment
5 Corporate Center
9960 Corporate Campus Drive,
Suite 2000
Louisville, KY 40223





Re: Deployment confusions

2000-09-08 Thread Karl Avedal

Hello Will,

 I don't know what "a command-line method to invoke a EJB client(s)."
 is either.  If you are making a client.jar then it is up to you to
 make it an executable jar via the manifest Main-Class: attribute.


Just to add, there's also the "applicationlauncher.jar" that allows you to run
an application-client that's located on a remote server.

Regards,
Karl Avedal





RE: Deployment confusions

2000-09-08 Thread Richard Landon

I appreciate the responses. 

-Original Message-
From: Matt Brunner [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 08, 2000 1:54 PM
To: Orion-Interest
Subject: Re: Deployment confusions


Richard Landon wrote:

 I need a command-line method to deploy the ear file once it gets built
into
 the Orion server.

for this you just put the ear file in the applications directory and put one
line for each ear into server.xml.
example:  application name="ip" path="../applications/ip-app.ear"
/


 I need a command-line method to acquire the client support files from the
 Orion server.

from what I gathered off your email yesterday you are used to getting a
client.jar file from Sun's J2EE RI.  I haven't found orion to do this for me
so
I just create my own client jars by myself.
example structure:
   my-application-client.jar
  J2EEClient.class
  META-INF
MANIFEST.MF
application-client.xml

 I need a command-line method to invoke a EJB client(s).

to invoke ejb clients I write a shell script that sets any needed classpath
for
the client program(this must include orion.jar from what I remember) and
then
have the script execute my java program(ejb client) with the inline
classpath
argument and a system property for the initial context factory.

example:
CLASSPATH=orion.jar:my-entity-ejb.jar:my-session-ejb.jar:my-application-clie
nt.jar

java  -classpath $CLASSPATH
-Djava.naming.factory.initial=com.evermind.server.ApplicationClientInitialCo
ntextFactory
my.package.MyProgramName



Also there is orionsupport web page at www.orionsupport.com site where you
may
get more information.
It seems to me that you're assuming questions posted to the list must be
answered and answered correctly, however, the nature of this mailing list is
a
community list where people exchange questions and answers out of the
goodness
of their hearts(like give a penny take a penny).  There is no guaranteed
support on this type of mailing list.

Hopefully my answers are helpful -

Matt





Re: Device dependent xsl translation recommendation

2000-09-08 Thread Karl Avedal

Hello James,

Sounds cool, and probably many people would be interested in this. Do you mind if we
make it linked from an FAQ entry and give you the credits for it? (you can answer in
private rather than to the list).

Regards,
Karl Avedal

[EMAIL PROTECTED] wrote:

 After posting the original message this morning, I went to work putting
 together a custom tag to do what I suggested this morning.
 A zip file containing all the source, and instructions is attached to this
 email. Please feel free to use it.  If you run into any problems, let me
 know.

 (See attached file: xsltags.zip)

 James Birchfield

 Ironmax
 a better way to buy, sell and rent construction equipment
 5 Corporate Center
 9960 Corporate Campus Drive,
 Suite 2000
 Louisville, KY 40223





RE: Deployment confusions

2000-09-08 Thread Richard Landon

Thanks for the response. I am curious about your response as relates to:

I sympathize with your
troubles learning J2EE and application servers that support the
standard. 

do I take to this mean the J2EE RI does not adhere to the standard?
Or that Enhydra, IAS, WebLogic 5.1, Gemstone/J also don't?

For example, by a client JAR I mean a java program with a main that 
is called via an invocation like

java EJBClient,

where EJBClient class implements the main method and acquires the home
interface for some bean using the JDNI, and then invokes create method
on the home interface to get the remote interface, and then invokes
the remote interface methods to cause the bean instance to do something.

At this point, I have pretty much went thru the procedures step by step
from the URL http://www.znerd.demon.nl/orion-primer/
step-by-step, deployed the application. When I run the URL to launch the
application
servlet, I get a 404 error. Orion logs nothing useful. And this is
apparently (and I maybe
wrong) a supported application since I got at it via the Orion home page, or
link there from).

I have managed to deploy my smoke test (a few session and/or entity beans)
on the following
products:

(1) J2EE RI
(2) Enhydra
(3) IAS
(4) Web-Logic 5.1
(5) Gemstone/J 

I had to learn certain things about these servers, but at least when I
followed the documentations
thing eventually worked. It took at most one day to figure out the vendor
idiosyncracies. Two
days into the Orion server, it's not even clear how to perform a structured
shutdown of the server!

java C:/orion] java -jar admin.jar ormi://blazer.youbet.com:8080 admin root
-shutdown
error: javax.naming.NamingException: Lookup error:
java.io.StreamCorruptedException: Caught EOFExcept
e stream header; nested exception is:
   java.io.StreamCorruptedException: Caught EOFException while reading
the stream header

So perhaps I put in a little more effort, but it doesn't look good at this
point.



-Original Message-
From: Will Glozer [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 08, 2000 3:03 PM
To: Orion-Interest
Subject: RE: Deployment confusions


The FAQ http://www.orionserver.com/faq/ describes how to use the
admin.jar tool to deploy to a remote server.

There is no "command-line method to acquire the client support files
 from the Orion server."  I'm not even sure what you mean by this,
but if you question is about RMI stubs etc those are all transparently
generated by the server.

I don't know what "a command-line method to invoke a EJB client(s)."
is either.  If you are making a client.jar then it is up to you to
make it an executable jar via the manifest Main-Class: attribute.

You are welcome to "take this server off our list", but I have a
feeling that you will have a very hard time finding a better server,
or one that somehow does everything for you.  I sympathize with your
troubles learning J2EE and application servers that support the
standard.  It is big and complex as enterprise tools tend to be, so
you will need a bit of patience.

Regards,
Will

-Original Message-
From: Richard Landon [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 08, 2000 1:16 PM
To: Orion-Interest
Subject: Deployment confusions


I am probably stupid, but

I still very confused about deployment using Orion. My understanding from
the documentation is that
I must edit the server.xml and add the code. No problem for me as a
developer. But when it comes
to migrating our application into pre-production or production, whoa-nellie,
that ain't going to cut
it. So, here's they same question I posted here repeatedly since yesterday.

I need a command-line method to deploy the ear file once it gets built into
the Orion server.
I need a command-line method to acquire the client support files from the
Orion server.
I need a command-line method to invoke a EJB client(s).

I guess I spend the rest of the day trying to figure it out, and then take
this server off our list.






RE: Orion Difficulities....

2000-09-08 Thread Richard Landon
Title: Orion RMI Security problem



Wow, 
thanks. Perhaps, I'm lame, but that was not obvious in the 
documentation?


  -Original Message-From: Jason von Nieda 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, September 08, 2000 4:09 
  PMTo: Orion-InterestSubject: Re: Orion 
  Difficulities
  Remove the port (8080) from your ormi URL. The admin port is 
  different from the web port and is configured
  in orion/config/rmi.xml
  
- Original Message - 
From: 
Richard 
Landon 
To: Orion-Interest 
Sent: Friday, September 08, 2000 4:51 
PM
Subject: Orion Difficulities

I 
am have some major problems with the learning curve with this server. I have 
previously used (succesfully)
(1) J2EE RI
(2) Web Logic 5.1
(3) IAS
(4) Silverstream
(5) Gemstone/J


I 
start the server as follows:
[C:/orion] java -jar orion.jarOrion/1.2.9 
initialized

I 
take this to mean the server is running.

I 
then do a http://blazer.youbet.com:8080 and 
see the web page.
(I 
modified the port since I'm already running Apache on port 
80).

For example, according to the documentation, to 
shutdown the server:

[C:/orion] java -jar admin.jar 
ormi://blazer.youbet.com:8080 admin root -shutdownError: 
javax.naming.NamingException: Lookup error: 
java.io.StreamCorruptedException: Caught EOFException while reading the 
stream header; nested exception 
is: 
java.io.StreamCorruptedException: Caught EOFException while reading the 
stream header
So 
after two-days, it is not possible to figure out how to shutdown the 
server.
I'll try a little bit long, then remove this server 
from our vendor list.









RE: Clustering problems.

2000-09-08 Thread Kevin Duffey

Come on guys, give the team a break. I too am waiting patiently for docs,
but let me tell you all something (I am sure many of you know this), while
Orion may not be as robust as WebLogic, WebSphere and some others, I have
thus far not seen any app server as complete (hell..over complete if you
include ejb 2.0 and servlet 2.3 pre-implementation), as Orion. I have not
been able to touch the ease of setting up Orion (with a little help
sometimes) compared to WebLogic, OAS, WebSphere, IAS and others. I have not
seen the speed from any app server, let alone the full J2EE spec implemented
in any app server out there. Nor have I seen any app server as affordable
that can do 1/2 as much as Orion. Orion is one of the only app servers that
is free to user for everything except production, and it doesn't lock you
out if you don't have a concurrent license servlet or some other security
lock that prevents full use of it.

I think for all of you complaining about the docs taking so long..you need
to understand that these guys have done an amazing job with the product
already, and are on top of bugs, latest specs, and more. They are also a
fairly new company and have already beat the competition by a large margin
as much as I can tell. Sure..this may be my opinion, but I have thus far
only seen one person stop using it, while most have continued to
complain...but still use it.

I started a little documentation initiative a few weeks ago and got no
responses back (ok..maybe one from the guy that runs the orionsupport.com
site). I don't have much time either, but for what the Orion team gives you,
how about helping out a little. If you have problems, ask, someone will most
likely help you out..then try writing up a little doc on it. Maybe with all
of us contributing we can help them along. Who knows..if you contribute
maybe you'll get a free license or two to use for your own use. :)

Go Orion!

P.S. Can I get an X-Large t-shirt...that medium makes me look like I am
trying to show off what muscles I pretend to have. ;)




 -Original Message-
 From: Karl Avedal [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 08, 2000 4:31 PM
 To: Orion-Interest
 Subject: Re: Clustering problems.


 Hello Dylan,

  (... about lack of documentation)

  And it isn't like it isn't a known problem. Almost every
 review of Orion I have
  seen points out this glaring fact. And this mailing list is
 seething with people
  patiently waiting for something that should be already written.

 Absolutely, documentation is our biggest and most important
 task (as I've pointed out many times on this list)

 
  How about the whole orion team just STOPS coding for a
 week... (I don't
  care about 1.2.10!!!)... and fill in the gaps in the
 documentation. I think it
  would be a very productive move.

 Well, even though you might not care about getting new
 versions every day (of course noone cares for every update)
 there are many people who are running Orion on their
 production sites serving thousands
 of people, or are in the process of going live, and if they
 find a bug we try to help them with it. We get an enormous
 amount of reports and requests for enhancements and new
 features and if we stopped
 developing for a whole week we would get far behind on
 helping our customers, and believe me, a week of
 documentation isn't enough to improve documentation in that
 many areas that it makes it worth to
 stop responding to everyone.

 All I can say is that we are working on documentation (when
 we're not working on explaining that we are working on
 documentation ;) ) and that we are aware of the amounts of
 documentation that you need
 to work with a product of this complexity. A big problem is
 also that things are moving so fast. We make something
 available as a preview (like EJB 2.0) and of course people
 want documentation and
 examples the day after (understandable), but it's a tough
 task to work that fast.

 
  Yes, I know the "price is right"... but come *ON*...
 inexpensive means nothing if
  the features you need are available but undocumented.

 Of course. We are working like this: When we have a new
 feature we start out by giving a little documentation on it
 so that everything is at least documented (although very
 briefly) and then we follow
 up with more complete documentation, but those usually take a
 fair bit longer to produce. Examples are SSL, Clustering and
 user management that have had very sparse documentation so
 far (but Clustering
 was improved today), and we are working on providing complete
 tutorials and how-to's about these subjects.

 We understand that you need complete and good documentation
 to work with our product, and if you can not live with the
 state of the current documentation, you should of course look
 at other products
 that fit your needs better. We are doing our best to make
 sure that Orion is the best J2EE server and we certainly are
 working on making sure that everyone can use it, and I 

SSL and non SSL within the same instance of the web application

2000-09-08 Thread Terence Kwan



Hello, we can setup 
SSL on the application without problem. However, can we setup SSL enable part of 
the web application? For example, I just want to setup SSL enable on the member 
area of the web site but not the whole web application. Or do we need to setup 2 
applications - one for SSL enable and one for non SSL 
enable.

Thanks

TK


Re: Device dependent xsl translation recommendation

2000-09-08 Thread Joseph B. Ottinger

On Sat, 9 Sep 2000, Karl Avedal wrote:

Incidentally, orionsupport.com had this referenced on the resources page
about ten minutes after I unzipped it and looked inside. I win! (It WAS a
race, right?)

 Hello James,
 
 Sounds cool, and probably many people would be interested in this. Do you mind if we
 make it linked from an FAQ entry and give you the credits for it? (you can answer in
 private rather than to the list).
 
 Regards,
 Karl Avedal
 
 [EMAIL PROTECTED] wrote:
 
  After posting the original message this morning, I went to work putting
  together a custom tag to do what I suggested this morning.
  A zip file containing all the source, and instructions is attached to this
  email. Please feel free to use it.  If you run into any problems, let me
  know.
 
  (See attached file: xsltags.zip)
 
  James Birchfield
 
  Ironmax
  a better way to buy, sell and rent construction equipment
  5 Corporate Center
  9960 Corporate Campus Drive,
  Suite 2000
  Louisville, KY 40223
 
 
 

---
Joseph B. Ottinger   [EMAIL PROTECTED]
http://cupid.suninternet.com/~joeo  HOMES.COM Developer





3rd post, no answer

2000-09-08 Thread Dale Bronk





Sorry to keep posting this, but I really need an 
answer.

I have a problem that I hope isn't not normal behavior and 
something I have configured incorrectly.

Snip of my sever.xml:
global-application name="MyDomain" 
path="c:\webapps\mydomain-web-app\config\mydomain-application.xml" 
/--application name="Client1Domain" 
path="c:\webapps\Client1Domain-web-app\config\Client1Domain-application.xml" 
/application name="Client2Domain" 
path="c:\webapps\Client2Domain-web-app\config\Client2Domain-application.xml" 
/application name="Client3Domain" 
path="c:\webapps\Client3Domain-web-app\config\Client3Domain-application.xml" 
/application name="Client4Domain" 
path="c:\webapps\Client4Domain-web-app\config\Client4Domain-application.xml" 
/application name="Client5Domain" 
path="c:\webapps\Client5Domain-web-app\config\Client5Domain-application.xml" 
/

In mydomain-application.xml, I have: (note that this is my 
global application)
 mail-session location="mail/MailSession" 
smtp-host="mail.mydomain.com" property 
name="mail.transport.protocol" value="smtp" 
/ property name="mail.smtp.from" value="[EMAIL PROTECTED]" 
/ property name="mail.from" value="[EMAIL PROTECTED]" 
/ /mail-session

Now I want to also place the same mail session entries in each 
of my clients application.xml files except specifying their domain:
 mail-session location="mail/MailSession" 
smtp-host="mail.Client1Domain.com" 
property name="mail.transport.protocol" value="smtp" 
/ property name="mail.smtp.from" value="[EMAIL PROTECTED]" 
/ property name="mail.from" value="[EMAIL PROTECTED]" 
/ /mail-session

I have a FormMailServlet that I install on all my clients 
web.xml files which uses mail.jar classes send the email. My problem is it 
doesn't matter which one I go to, Orion always uses my mail-session entries from 
the global application. It doesn't seem to get over written for each other 
application. I also tried to explicitly set the mail server in my 
FormMailServet to what is passed in. I pass in mail.Client1Domain.com and 
inside my class I do the following:
 properties.put( 
"mail.smtp.host", "mail.Client1Domain.com"); 
properties.put( "smtp-host", "mail.Client1Domain.com"); // Not 
needed as far as I know

I also turn verbose on so I can see what is happening. 
It always uses mail.mydomain.com! If I comment out the mail-session 
entries from my global application xml then it works fine as long as I pass in 
the value and explicitly set the mail.smtp.host as above. In other words, 
it seems to ignore the mail-session in the Clientxxx-application.xml files as I 
pointed the smtp-host entry in one of the application.xml files to an existing 
server, but a different one. When I explicitly set the entries it uses the 
entries I set, not the mail-session entries.

Seems to only use the mail-session entries only if in the 
global application xml file and no where else. When in the global 
application xml file, it seems you can only use that one even if I explicitly 
set it to a different one.

What gives? Sorry for the long email, but I wanted to be 
sure to give all the data.

Dale Bronk
Dale Bronk[EMAIL PROTECTED]Windscape 
Consulting, Inc.http://www.windscape.com


RE: Orion Difficulities....

2000-09-08 Thread Kevin Duffey
Title: Orion RMI Security problem



For 
the original poster..

I 
think you were a bit harsh to say you would remove them from your vendor list. I 
would hope that you don't give up on all tasks that require a little more time. 
Funny thing is, I can't get WebLogic 5.1 to get my site going. I have done a 
number of different things, including a WebLogic tech guy who can't get my 
"easy" J2EE .war formatted web site to run. I finally got JSP pages to compile, 
but then it couldn't find any of my classes. I thought I read that anything in 
the WEB-INF/classes and WEB-INF/lib file is supposed to be automatically in your 
classpath by the app server. So, if for example you call upon a class 
com.mycompany.package.Class, and its in the 
/classes/com/mycompany/package/Class.class, you should be able to access it 
without having to do anything special in the environment of the OS your in, or 
adding classpath information when starting WebLogic. Apparently this isn't so, 
and its been a bitch to set up.

I'll 
give you that Orion has not much in the documentation department, but for the 
most part I was able to easily set it up inside of 10 minutes. It is the only 
app server to fully support J2EE completely, even over WebLogic 5.1. It also now 
supports EJB 2.0 and Servlet 2.3. Yes..they are early, based on the not yet 
finalized specs, but still..

Anyways, its too bad so many people give up so easily 
without realizing what a great product Orion really is. Every product has their 
bugs. The good thing is, the Orion team does a darn good job on fixing bugs 
quickly, within a few days at most.



  -Original Message-From: Richard Landon 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, September 08, 2000 5:49 
  PMTo: Orion-InterestSubject: RE: Orion 
  Difficulities
  Wow, 
  thanks. Perhaps, I'm lame, but that was not obvious in the 
  documentation?
  
  
-Original Message-From: Jason von Nieda 
[mailto:[EMAIL PROTECTED]]Sent: Friday, September 08, 2000 4:09 
PMTo: Orion-InterestSubject: Re: Orion 
Difficulities
Remove the port (8080) from your ormi URL. The admin port 
is different from the web port and is configured
in orion/config/rmi.xml

  - Original Message - 
  From: 
  Richard 
  Landon 
  To: Orion-Interest 
  Sent: Friday, September 08, 2000 4:51 
  PM
  Subject: Orion 
Difficulities
  
  I am have some major problems with the learning 
  curve with this server. I have previously used 
  (succesfully)
  (1) J2EE RI
  (2) Web Logic 5.1
  (3) IAS
  (4) Silverstream
  (5) Gemstone/J
  
  
  I start the server as 
follows:
  [C:/orion] java -jar orion.jarOrion/1.2.9 
  initialized
  
  I take this to mean the server is 
  running.
  
  I then do a http://blazer.youbet.com:8080 and 
  see the web page.
  (I modified the port since I'm already running 
  Apache on port 80).
  
  For example, according to the documentation, to 
  shutdown the server:
  
  [C:/orion] java -jar admin.jar 
  ormi://blazer.youbet.com:8080 admin root -shutdownError: 
  javax.naming.NamingException: Lookup error: 
  java.io.StreamCorruptedException: Caught EOFException while reading 
  the stream header; nested exception 
  is: 
  java.io.StreamCorruptedException: Caught EOFException while reading the 
  stream header
  So after two-days, it is not possible to figure 
  out how to shutdown the server.
  I'll try a little bit long, then remove this 
  server from our vendor list.