Re: userThreads + calling EJBs from outside orion.

2000-10-17 Thread cuenot jerome



hello Greg,
for used the -userThreads flag you must started orion with this command:
java -jar orion.jar -userThreads true
Jerome.
Greg Matthews wrote:

dear
all,i've started orion
1.40 as follows:java
-jar orion.jar -userThreadsand
then tried to get a reference to the InitialContext, and receivedthis
stack trace.f:\dev\script>java
-classpath f:\orion\orion.jar;f:\jdk1.3\jre\lib\rt.jar;f:\classes test.OrionTest
javax.naming.NamingException: Not
in an application scope - start Orion with the
-userThreads switch if using
user-created threads

at com.evermind.server.g6.bi(JAX)

at com.evermind.naming.j_.lookup(JAX)

at javax.naming.InitialContext.lookup(InitialContext.java:350)

at test.OrionTest.init>(OrionTest.java:18)

at test.OrionTest.main(OrionTest.java:31)i'm
trying to create a dos shell program that i can use to test EJB'srunning
inside orion.1. am
i starting orion correctly to allow this with the userThreads flag?2.
what values should i use to initialise the InitialContext? is the following
correct?Hashtable
env = new Hashtable();
env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,
"com.evermind.server.ApplicationInitialContextFactory");
env.put(javax.naming.Context.URL_PKG_PREFIXES,
"com.evermind.server");
Context ctx = new InitialContext(env);i
know i shouldn't need to if my classpath is set up correctly but i'd like
to know what valuesshould
be used anyway.thanks,greg




begin:vcard 
n:Cuenot;Jerome
tel;fax:+33 (0)4.37.41.82.01
tel;work:+33 (0)4.37.41.82.63
x-mozilla-html:FALSE
url:http://www.stellarx.com
org:StellarX;R  D
adr:;;56 Avenue du 11 Novembre 1918;Lyon Tassin Le Bourg;Rhone-Alpes;69160;France
version:2.1
email;internet:[EMAIL PROTECTED]
title:Ingénieur Développeur
note:http://www.stellarx.com
fn:Jerome Cuenot
end:vcard



Re: EJB-lookup problems with moved Product ejb example

2000-10-17 Thread Shailesh Joshi

Hi Vivek.

I think, the error you got in the fifth step is because you have changed
from  ejbsamples domain to pricing. So you have to specify it in the
URL.
You can use following lines while running the client.

Properties p = new Properties();


p.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.ApplicationClient
InitialContextFactory");
  p.put(Context.PROVIDER_URL,"ormi://IPAddress/pricing");
  p.put(Context.SECURITY_PRINCIPAL,"username");
  p.put(Context.SECURITY_CREDENTIALS,"password");

  Context context = new InitialContext(p);
.context.lookup(..)  etc.

Shailesh Joshi
Java Programmer
Versaware (India) Ltd.

- Original Message -
From: Vivek Iyer [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Tuesday, October 17, 2000 8:40 AM
Subject: EJB-lookup problems with moved "Product" ejb example




 Hello all,

 I'm getting a frustrating problem trying to bring up the "Product" entity
bean
 inside Orion 1.4.0 (after latest autoupdate - though I had the problem
with
 1.3.4 as well). It only happens _after_ I move the location of the class
files
 from d:\orion\demo\ejb\product to d:\vivek\pricing\ejb\product.

 The error I get is (ultimately):

 D:\vivek\pricing\ejb\productjava ProductClient
 Communication error: Error reading application-client descriptor: No
 location specified and no suitable instance of the type 'Product' found
 for the ejb-ref MyProduct

 Is this an obvious problem? I can't believe this is just happening because
I
 change the location of the class files and meta-inf files. I noticed
someone
 else got this error some time ago, but no solution was posted.  Here's the
gory
 story, steps 1 through 7:

 System: WinNT4 SP6
 JDK: 1.2.2
 CLASSPATH: .;
 d:\orion\orion.jar;d:\orion\jndi.jar;d:\orion\servlet.jar;d:\orion\ejb.jar

 1. INITIALIZED ORION, deployed the ejbsamples, and the "ProductClient"
 successfully ran, out-of-the-box. All classes are located in
 d:\orion\demo\ejb\product\

 2. COPIED the jndi.properties, ProductEJB, ProductHome and Product (remote
 interface) and ProductClient to d:\vivek\pricing\ejb\product\ and all the
 meta-inf files (application-client.xml, ejb-jar.xml,
 orion-application-client.xml) _without change_, recompiled all the files.
Added
 an application.xml file into d:\vivek\pricing\ejb\meta-inf\application.xml
with
 the following lines -

 application
  display-namePricing/display-name
  module
   ejbproduct/ejb
  /module
 /application

 3. COMMENTED out the "ejbsamples" part of orion's server.xml. Deleted that
 application's deployment files. Added the following application to
server.xml:

 application name="pricing" path="d:\\vivek\\pricing\\ejb" /

 4. RESTARTED Orion. Observed that

 Auto-deploying pricing (New server version detected)...
 Auto-deploying product (No previous deployment found)... done.
 Orion/1.4.0 initialized

 5. RAN ProductClient, and got this message -

 D:\vivek\pricing\ejb\productjava ProductClient
 Exception in thread "main" java.lang.SecurityException: No such
domain/applicati
 on: ejbsamples
 at com.evermind.server.rmi.bd.gk(JAX)
 at com.evermind.server.rmi.bd.gk(JAX)
 at com.evermind.server.rmi.bd.f3(JAX)
 at com.evermind.server.rmi.RMIServer.f3(JAX, Compiled Code)
 at com.evermind.server.rmi.RMIContext.lookup(JAX)
 at com.evermind.server.administration.LazyResourceFinder.f3(JAX)
 at
com.evermind.server.administration.LazyResourceFinder.getEJBHome(JAX)

 at com.evermind.server.Application.aqo(JAX, Compiled Code)
 at
com.evermind.server.ApplicationClientInitialContextFactory.getInitial
 Context(JAX, Compiled Code)
 at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
 72)
 at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250
 )
 at javax.naming.InitialContext.init(InitialContext.java:226)
 at javax.naming.InitialContext.init(InitialContext.java:182)
 at ProductClient.main(ProductClient.java:18)

 6. ALTERED the second line of jndi.properies:
 OLD: java.naming.provider.url=ormi://localhost/ejbsamples
 NEW: java.naming.provider.url=ormi://localhost/
 (What's up with this, anyway??)

 7. RE-RAN ProductClient, and now get the final message -

 D:\vivek\pricing\ejb\productjava ProductClient
 Communication error: Error reading application-client descriptor: No
location sp
 ecified and no suitable instance of the type 'Product' found for the
ejb-ref MyP
 roduct

 Any assistance would be appreciated. I'm sure I had this working in a much
older
  version
 of Orion, and it seems to have broken, dont know why.

 Thanks,

 Vivek







JBuilder + Orion

2000-10-17 Thread Aniket V U

hi folks,

could somebody help me out in integrating Orion with JBuilder for 
debugging. I've seen plenty of mails on this list that say it can be done 
but none detailing it. would really appreciate it if somebody could give me 
the details

Regards
Aniket






RE: startup / monitor script?

2000-10-17 Thread Frank Eggink

Hi,

I'm by far not a UNIX sysadm expert, but as far I my memory goes I think 
that by looking at the init(8) documentation you'll find good directions 
how to implement this in a UNIX fashion. The 'init' process is designed to 
take care of things like automagically restarting processes and logging the 
time they died in something like /va/r/log/wtmp.

If I'm wrong let me know. In a month or so I'll have to set up a server as 
well.

Frank

On Monday, October 16, 2000 4:28 AM, Mike Cannon-Brookes 
[SMTP:[EMAIL PROTECTED]] wrote:
 Robert,

 Fantastic - exactly what I was looking for!

 I've just downloaded an HTTP monitoring tool called "PagePoke" (perl) 
from
 Freshmeat, will see how it goes. It's GPL so you could easily change to 
an
 XML file format if wnated. Alternatively if you feel like hacking a 
little,
 you could grab JMeter from java.apache.org and wrap a daemon around that?
 (It's a very good multithreaded load tester)

 Thanks,
 Mike

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Robert 
Krueger
  Sent: Sunday, October 15, 2000 8:43 PM
  To: Orion-Interest
  Subject: Re: startup / monitor script?
 
 
  At 20:22 15.10.00 , you wrote:
  Klaus - thanks I'll try that.
  
  On my other point, has anyone written a shell or perl script to do the
  following on Linux/Unix:
  
  1) Start Orion
  2) Monitor that the Java process Orion is running in is running
  3) If Orion stops (ie JVM crashes) - restart Orion
  4) Log the starts / stops?
  
  I'm not a scripting guru at all, but if noone has one I'll start
  trying to
  hack one together. Always easier to start from something working 
though -
  has anyone seen something like this elsewhere I could look at?
  
  Mike
 
 
  this is exactly what supervise (comes with daemontools by the auther of
  qmail, d.j. bernstein) does. we've used it in production systems for 
the
  exact same task you're describing and are very satisfied with it.
  the only
  problem it doesn't deal with is when the entire application
  hangs. however,
  we haven't had this kind of problem in a long time. at the moment we 
use
  jdk1.3 by sun, which crashes occasionally and is restarted by 
supervise.
 
  try that, it's a good robust tool (like everything by that
  pedantic maniac
  bernstein ;-).
 
  btw does anyone know a working http monitoring tool preferably java 
based
  with an xml based config syntax? we use netsaint and the config
  syntax is a
  pain. we need something very simple and if we don't find anything we'll
  probably hack something ourselves.
 
  robert
 
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Klaus 
Thiele
Sent: Saturday, October 14, 2000 5:17 PM
To: Orion-Interest
Subject: Re: Deployment platforms
   
   
Mike Cannon-Brookes wrote:

[...]
   6. What has been your experience (stability, performance,
managability,
   etc) - mainly of the underlying platform, not orion.
 Perfect, we've never had any problems with the OS or the DB 
(Sybase
 11.0.3.3). Our only problem now is twofold:
 1) Finding a way for Orion effectively to run as something
other than root.
   
some time ago there was a nice tip from a guy on this list:
   
Linux kernel configuration:
  Networking options  ---
[*] IP: firewalling
[*] IP: transparent proxy support
   
and then a small startup-script:
   [...]
   start)
   echo -n "Redirect port 80"
   /sbin/ipchains -A input -p tcp -s 0/0 -d 0/0 80 -j
  REDIRECT 8000
this should also work (https):
   /sbin/ipchains -A input -p tcp -s 0/0 -d 0/0 443 -j
  REDIRECT 8443
   [...]
   
then you can run orion as any user you want.
   
hope that helps
  klaus
   
--
Klaus Thiele - Personal  Informatik AG
mailto:[EMAIL PROTECTED]
   
 "There's got to be more to life than compile-and-go."
   
   
  
 
  (-) Robert Kruger
  (-) SIGNAL 7 Gesellschaft fur Informationstechnologie mbH
  (-) Bruder-Knau?-Str. 79 - 64285 Darmstadt,
  (-) Tel: 06151 665401, Fax: 06151 665373
  (-) [EMAIL PROTECTED], www.signal7.de
 
 

 




JSP cannot find Bean Class

2000-10-17 Thread Hauke Zühl

Hello folks,

I have a strange problem:
I wrote an BMP Enterprise Java bean (Mystuff.java, MystuffEJB.java and
MystuffHome.java), compiled it and put it into a jar-file (which I later put
into a .ear file).

Later I wrote the component file MystuffBean.java and included the compiled
file with useBean class="MystuffBean" into my JSP file, and finally put that
stuff into a .war-file.

After deploying the .ear file and calling the JSP with a browser, the JSP
tells me that "Bean type 'MystuffBean' not found".

So what might be wrong there?

Regards,
Hauke




JSP cannot find bean class

2000-10-17 Thread Hauke Zühl

Hello folks,

I have a strange problem:
I wrote an BMP Enterprise Java bean (Mystuff.java, MystuffEJB.java and
MystuffHome.java), compiled it and put it into a jar-file (which I later put
into a .ear file).

Later I wrote the component file MystuffBean.java and included the compiled
file with useBean class="MystuffBean" into my JSP file, and finally put that
stuff into a .war-file.

After deploying the .ear file and calling the JSP with a browser, the JSP
tells me that "Bean type 'MystuffBean' not found".

So what might be wrong there?

Regards,
Hauke




custom user management

2000-10-17 Thread Christian Sell

Hi there,

I want to customize orions authentication mechanism to use an existing user
database. So far, I understand that I have to create my own UserManager
class and register it in orion-application.xml. What I dont understand is:

- how do I access the user manager at runtime (e.g., to create users)
- how do I perform programmatical login (bypassing the login-config from
web.xml, e.g. from a home page with a login field)

any hints, URLs?

TIA,
Christian





Re: JSP cannot find Bean Class

2000-10-17 Thread Santosh Kumar

If this is using orion, then i have my own doubts as to where the .ear file
is located in coz
the jsp-engine is unable to locate the bean. Becoz the orion jsp-engine
finds the beans (just javabeans not EJB)
when i keep it under WEB-INF/classes folder. So try placing the bean there
and check

Santosh


- Original Message -
From: Hauke Zühl [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Tuesday, October 17, 2000 2:51 PM
Subject: JSP cannot find Bean Class


 Hello folks,

 I have a strange problem:
 I wrote an BMP Enterprise Java bean (Mystuff.java, MystuffEJB.java and
 MystuffHome.java), compiled it and put it into a jar-file (which I later
put
 into a .ear file).

 Later I wrote the component file MystuffBean.java and included the
compiled
 file with useBean class="MystuffBean" into my JSP file, and finally put
that
 stuff into a .war-file.

 After deploying the .ear file and calling the JSP with a browser, the JSP
 tells me that "Bean type 'MystuffBean' not found".

 So what might be wrong there?

 Regards,
 Hauke






Re[2]: URL Pathing

2000-10-17 Thread Frank Carver


Monday, October 16, 2000, 11:45:58 PM, you wrote:


CS b) do something like this:
CS  if(servletConfig.getServletContext().getServerInfo().startsWith("Orion"))
CS  ...
CS else
CS ...

Yuck.  Anyone intersted in writing a "ServerHawk" ?

-- 
Frank CarverEfficacy Solutions Limitedwww.efsol.com






Re: custom user management

2000-10-17 Thread Chris Miller

There should be a tutorial arriving for this 'shortly', however in the
meantime this should be enough to get you going:

Implement the UserManager, User, and Group classes. (for example,
MyUserManager, MyUser, MyGroup).

The UserManager probably just needs to look like this for now:

public class MyUserManager extends AbstractUserManager {
public User getUser(String userName) {
if (userName == null)
return null;
return new MyUser(userName);
}

public Group getGroup(String groupName) {
if (groupName == null)
return null;
return new MyGroup(groupName);
}
}

You may need to implement some of the other methods too depending on your
requirements, but that should be a good start.


For the MyUser class, just implementing the constructor, authenticate() and
isMemberOf() should be enough for starters:

public class MyUser implements User {


  private String username;

  public MyUser(String username) {
this.username = username;
  }

  public boolean authenticate(String password) {
if (username == null)
  return false;
// Lookup the user 'username', and compare the password supplied
// with their real password (possibly using a password hashing
function).
// ...
return ((password != null)  (password.equals(realPassword)));
  }

  public boolean isMemberOf(Group group) {
if (username == null)
  return false;
  // Do whatever you need to do to see if the user is in the group,
  // and return true or false accordingly. Eg, find the username and
  // the groupname as a matching pair in a user-group mapping table.
  }
}


The Group class can be very simple, for example as a minimum you can get
away with:

public class MyGroup implements Group {
  String groupname;

  public MyGroup(String groupname) {
this.groupname = groupname;
  }

  public String getName() {
return groupName;
  }
}


Now you need to set up your orion-application.xml and web.xml files as per
the orion/docs/orion-application-xml.html and orion/docs/web-xml.html
files.

Eg, add to orion-application.xml your role-group mappings, eg:
security-role-mapping name="sr_editor"
group name="editor" /
/security-role-mapping

and the the UserManager class, eg:
user-manager class="com.mycompany.security.MyUserManager"
/user-manager

In web.xml, add your security-constraint tags, the login-config, and
your security-role tags. There are examples of these tags that come with
orion I think, plus there's the docs, so you should be able to figure this
out easily enough. As a tip, start with BASIC authentication, and change it
to form based or whatever once that is working properly.

That's about it (well, as far as I can remember, there could be a couple of
other minor steps?).
Anyway, orion will now see that a protected resource has been asked for
(because of the security-constraint tags), and know to create an instance
of your UserManager class (thanks to the user-manager tag). It will use
this to get a User and a Group, and will attempt to authenticate that the
user falls into the correct group (which in turn maps to the correct role).

Apologies for any typo's/errors in the above, I've bashed it out pretty
quickly, but it should definitely point you in the right direction. Good
luck!


- Original Message -
From: "Christian Sell" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Tuesday, October 17, 2000 10:54 AM
Subject: custom user management


 Hi there,

 I want to customize orions authentication mechanism to use an existing
user
 database. So far, I understand that I have to create my own UserManager
 class and register it in orion-application.xml. What I dont understand is:

 - how do I access the user manager at runtime (e.g., to create users)
 - how do I perform programmatical login (bypassing the login-config from
 web.xml, e.g. from a home page with a login field)

 any hints, URLs?

 TIA,
 Christian








RE: displaying xml

2000-10-17 Thread Joseph B. Ottinger

Or, of course, orionsupport.com, which I know at least two other people
might be working on, and I'm considering reviving it myself. 

Although, honestly, the lack of self-starters here is rather
annoying... "Why doesn't somebody ELSE do it" is a crappy way to go about
development.


On Mon, 16 Oct 2000, Hani Suleiman wrote:

 Or how about a faq-o-matic? Seems ideal for this kind of thing.
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Porfiriev Sergey
 Sent: Monday, October 16, 2000 8:33 PM
 To: Orion-Interest
 Subject: Re: displaying xml
 
 
 
 To Magnus  Karl Avedal:
  
 it will be good idea to open "users contribution" topic at
 www.OrionServer.com http://www.OrionServer.com 
 ( like orionsupport was). and as result traffic in orion-interest will be
 decreased :)
  
 - Original Message - 
 
 From: Derek Akers mailto:[EMAIL PROTECTED]  
 To: Orion-Interest mailto:[EMAIL PROTECTED]  
 Sent: Monday, October 16, 2000 6:44 PM
 Subject: Re: displaying xml
 
 
 Hi Troy, thanks, but I've already tried.  the pre /pre tags do preserve
 the indentation of the XML, but do not allow for the displaying of tags for
 some reason.
 
  
 1) use xmp /xmp tags - pre can;'t help.  
  
 2) use this xsl for XML parsing - ( i use it with Salaman's Saxon XSLT
 engine, but it will work under Orion default XSLT (xerces)) 
 it will display your XML as HTML with XML reformating and coloring
  
  
  
  
 xsl:stylesheet xmlns:xsl="  http://www.w3.org/1999/XSL/Transform
 http://www.w3.org/1999/XSL/Transform" version="1.0"
 xsl:output method="html" encoding="windows-1251" indent="yes"/
  
 !-- Generic stylesheet for viewing XML --
 !-- This stylesheet has been modified to use modes instead of nested
 templates. --
 !-- Last Updated by Parf: moved to lotus xsl, main tag fix --
  
   xsl:template match="/"
HTML
 xsl:apply-templates/   
/HTML
   /xsl:template
  
   xsl:template match="node()"
xsl:if test="name()!='xml-stylesheet'"
 bbigxsl:textlt;/xsl:textxsl:value-of
 select="name()"/xsl:textgt;/xsl:text/big/bbr/
 DIV DEFANGED_STYLE="font-family:Courier; font-size:10pt; margin-bottom:0em"
   xsl:apply-templates mode="inside"/
 /DIV
 bbigxsl:textlt;//xsl:textxsl:value-of
 select="name()"/xsl:textgt;/xsl:text/big/b
/xsl:if
   /xsl:template
  
   xsl:template match="*" mode="inside"
 DIV DEFANGED_STYLE="margin-left:1em"
   SPAN DEFANGED_STYLE="color:blue"
 xsl:textlt;/xsl:text
 bxsl:value-of select="name()"//b
 xsl:for-each select="@*"
   xsl:call-template name="attribute"/
 /xsl:for-each
 xsl:choose
   xsl:when test="self::node()"
 xsl:textgt;/xsl:text
 xsl:apply-templates mode="inside"/
 xsl:textlt;//xsl:text
 xsl:value-of select="name()"/
 xsl:textgt;/xsl:text
   /xsl:when
   xsl:otherwise
 xsl:text/gt;/xsl:text
   /xsl:otherwise
 /xsl:choose  
   /SPAN
 /DIV
   /xsl:template
  
   xsl:template name="attribute"
 SPAN DEFANGED_STYLE="color:navy"
   xsl:text /xsl:text
   xsl:value-of select="name()"/
   xsl:text="/xsl:text
   SPAN DEFANGED_STYLE="color:black"
 xsl:value-of select="."/
   /SPAN
   xsl:text"/xsl:text
 /SPAN
   /xsl:template
  
   xsl:template match="comment()" mode="inside"
 SPAN DEFANGED_STYLE="color:orange"
   xsl:textlt;!--/xsl:textxsl:value-of
 select="."/xsl:text--gt;/xsl:text
 /SPAN
   /xsl:template
  
   xsl:template match="processing-instruction()" mode="inside"
 DIV DEFANGED_STYLE="margin-left:1em; color:maroon"
   xsl:textlt;?/xsl:text
   xsl:value-of select="name"/
   xsl:text /xsl:text
   xsl:value-of select="."/
   xsl:text?gt;/xsl:text
 /DIV
   /xsl:template
  
   xsl:template match="text()" mode="inside"
 SPAN DEFANGED_STYLE="color:green"
   xsl:value-of select="."/
 /SPAN
   /xsl:template
  
 /xsl:stylesheet
 
  
 
 - Original Message - 
 From: Troy E.  mailto:[EMAIL PROTECTED] Echols 
 To: Orion-Interest mailto:[EMAIL PROTECTED]  
 Sent: Monday, October 16, 2000 5:09 PM
 Subject: Re: displaying xml
 
 Perhaps enclosing the xml in pre /pre will work. 
 
 Troy Echols 
 
 
 Derek Akers wrote: 
 
 
  Hi all...  I am trying to display the contents of an XML file to the
 screen, embedded inside a JSP page.  That is, I want to include a header and
 footer on the page (for navigation purposes), with the XML in the middle.  I
 want the text to be viewable literally (tags  all), but I have been unable
 to find a solution... I thought maybe the contentType attribute of the %@
 page % directive might do it, but it seems not. Does anyone know of a way
 to do this?  Derek Akers Internet Application Developer 
 Eldan Software, Toronto 
 (416) 341-0070 
 www.eldan.com http://www.eldan.com 
 
 


Re: JSP cannot find bean class

2000-10-17 Thread Daniel C. DiCesare

Have you defined your web module in the application.xml file? Also, did
you bean get deployed? It should be in you WAR file.

Hope this helps,
-Danno
- Original Message -
From: "Hauke Zühl" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Tuesday, October 17, 2000 10:36 AM
Subject: JSP cannot find bean class


 Hello folks,

 I have a strange problem:
 I wrote an BMP Enterprise Java bean (Mystuff.java, MystuffEJB.java and
 MystuffHome.java), compiled it and put it into a jar-file (which I later
put
 into a .ear file).

 Later I wrote the component file MystuffBean.java and included the
compiled
 file with useBean class="MystuffBean" into my JSP file, and finally put
that
 stuff into a .war-file.

 After deploying the .ear file and calling the JSP with a browser, the JSP
 tells me that "Bean type 'MystuffBean' not found".

 So what might be wrong there?

 Regards,
 Hauke






Filters for static content

2000-10-17 Thread Bovet Laurent

Is it possible to configure Orion 1.3.8 to make it apply filters when
serving static files (.html, .pdf, ...)?

Laurent Bovet




getServletPath() in included JSP

2000-10-17 Thread Bovet Laurent

With Orion 1.3.8

I have a servlet (ListServlet) that includes a JSP page (view.jsp). In this
page, I get the servlet path of the request using:

pageContext.getRequest().getServletPath()

It returns "view.jsp" although I would expect "ListServlet". According to
the specifications, it appears to me that the include processing should not
modify the  original servlet path of the request but only the attribute
'javax.servlet.include.servlet_path'.

Is it a known issue, or a misunderstanding about the specs ?

Laurent Bovet




RE: JSP cannot find bean class

2000-10-17 Thread Hauke Zühl

Hi folks,

okay, it seems I made a typical newbie-error: I did not include
WEB-INF/classes in my .war-file.

Thanks for your answers, they helped me anyway :)

Regards,
Hauke




Connection Pool hanging??

2000-10-17 Thread Mike Fontenot

Hi all,

Has anyone seen this behavior: Inside your EJB you go to aquire a pooled
collection from one of your connection pools defined in data-sources.xml,
and the orion server hangs for sometime before either:
1. delivering a connection
2. timing out.

I have a helper class to get/close connections for a named connection pool.
I can see in my code when going to get the connection, orion is hung. At
other times it works fine. I've found no rhyme or reason for the delays in
delivering a connection. Shouldn't the pool be already connected to the
database!? My system is not under high load and this still occurs.

Any ideas/suggestions/workarounds are appreciated.
Mike


Mike Fontenot - Object Systems Architect
BrandMatrix, Ltd.
Golden, Colorado






Re: calling EJBs from outside orion

2000-10-17 Thread KirkYarina

Take a look at the product and cart demos in  $ORION\demo\ejb - making sure 
that your jndi.properties file is in your classpath.

We have command line test programs for all our entity and session beans, 
and run them with the following .bat file:



set what=testname here
if not "%1"=="" set what=%1

set STCP=c:/java/testsuite/sbdtest  // app directory
set STCP=%STCP%;c:/java/orion/orion.jar
set STCP=%STCP%;c:/java/orion/ejb.jar
set STCP=%STCP%;c:/java/orion/jndi.jar

rem java -Xmx32M -Djava.compiler=NONE -classpath %STCP% 
sbd.sd.ejb.%what%.%what%
Test

java -Xmx32M -classpath %STCP% sbd.sd.ejb.%what%.%what%Test


At 01:20 AM 10/17/00 -0400, you wrote:
Hi Greg...

You won't find this messsage too helpfull, except that I can tell you it 
can be done. I tried it and got it to work. I did so be searching the archives.

I no longer have the code I slapped together, or else I would sent it to 
you. Bu the answer is in the mail list archive.

Good luck.

Jim


--On Tuesday, October 17, 2000 2:52 PM +1000 Greg Matthews 
[EMAIL PROTECTED] wrote:


dear all,

is it possible to call EJBs running in orion from a java program started
at the DOS command line, i.e from outside orion?

i guess i might have to generate the client stubs (?). has anyone done
this?

this would be useful when building the ejb components to be used by the
web developers.

thanks,
greg






Kirk Yarina
[EMAIL PROTECTED]





RE: Filters for static content

2000-10-17 Thread Magnus Rydin
Title: RE: Filters for static content





Yes


 -Original Message-
 From: Bovet Laurent [mailto:[EMAIL PROTECTED]]
 Sent: den 17 oktober 2000 15:13
 To: Orion-Interest
 Subject: Filters for static content
 
 
 Is it possible to configure Orion 1.3.8 to make it apply filters when
 serving static files (.html, .pdf, ...)?
 
 Laurent Bovet
 





RE: displaying xml

2000-10-17 Thread Jim Archer

The lack of self starters? Here? You have GOT to be kidding!

--On Tuesday, October 17, 2000 8:11 AM -0400 "Joseph B. Ottinger" 
[EMAIL PROTECTED] wrote:

 Or, of course, orionsupport.com, which I know at least two other people
 might be working on, and I'm considering reviving it myself.

 Although, honestly, the lack of self-starters here is rather
 annoying... "Why doesn't somebody ELSE do it" is a crappy way to go about
 development.


 On Mon, 16 Oct 2000, Hani Suleiman wrote:

 Or how about a faq-o-matic? Seems ideal for this kind of thing.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Porfiriev
 Sergey Sent: Monday, October 16, 2000 8:33 PM
 To: Orion-Interest
 Subject: Re: displaying xml



 To Magnus  Karl Avedal:

 it will be good idea to open "users contribution" topic at
 www.OrionServer.com http://www.OrionServer.com
 ( like orionsupport was). and as result traffic in orion-interest will be
 decreased :)

 - Original Message -

 From: Derek Akers mailto:[EMAIL PROTECTED]
 To: Orion-Interest mailto:[EMAIL PROTECTED]
 Sent: Monday, October 16, 2000 6:44 PM
 Subject: Re: displaying xml


 Hi Troy, thanks, but I've already tried.  the pre /pre tags do
 preserve the indentation of the XML, but do not allow for the displaying
 of tags for some reason.


 1) use xmp /xmp tags - pre can;'t help.

 2) use this xsl for XML parsing - ( i use it with Salaman's Saxon XSLT
 engine, but it will work under Orion default XSLT (xerces))
 it will display your XML as HTML with XML reformating and coloring




 xsl:stylesheet xmlns:xsl="  http://www.w3.org/1999/XSL/Transform
 http://www.w3.org/1999/XSL/Transform" version="1.0"
 xsl:output method="html" encoding="windows-1251" indent="yes"/

 !-- Generic stylesheet for viewing XML --
 !-- This stylesheet has been modified to use modes instead of nested
 templates. --
 !-- Last Updated by Parf: moved to lotus xsl, main tag fix --

   xsl:template match="/"
HTML
 xsl:apply-templates/
/HTML
   /xsl:template

   xsl:template match="node()"
xsl:if test="name()!='xml-stylesheet'"
 bbigxsl:textlt;/xsl:textxsl:value-of
 select="name()"/xsl:textgt;/xsl:text/big/bbr/
 DIV DEFANGED_STYLE="font-family:Courier; font-size:10pt;
 margin-bottom:0em" xsl:apply-templates mode="inside"/
 /DIV
 bbigxsl:textlt;//xsl:textxsl:value-of
 select="name()"/xsl:textgt;/xsl:text/big/b
/xsl:if
   /xsl:template

   xsl:template match="*" mode="inside"
 DIV DEFANGED_STYLE="margin-left:1em"
   SPAN DEFANGED_STYLE="color:blue"
 xsl:textlt;/xsl:text
 bxsl:value-of select="name()"//b
 xsl:for-each select="@*"
   xsl:call-template name="attribute"/
 /xsl:for-each
 xsl:choose
   xsl:when test="self::node()"
 xsl:textgt;/xsl:text
 xsl:apply-templates mode="inside"/
 xsl:textlt;//xsl:text
 xsl:value-of select="name()"/
 xsl:textgt;/xsl:text
   /xsl:when
   xsl:otherwise
 xsl:text/gt;/xsl:text
   /xsl:otherwise
 /xsl:choose
   /SPAN
 /DIV
   /xsl:template

   xsl:template name="attribute"
 SPAN DEFANGED_STYLE="color:navy"
   xsl:text /xsl:text
   xsl:value-of select="name()"/
   xsl:text="/xsl:text
   SPAN DEFANGED_STYLE="color:black"
 xsl:value-of select="."/
   /SPAN
   xsl:text"/xsl:text
 /SPAN
   /xsl:template

   xsl:template match="comment()" mode="inside"
 SPAN DEFANGED_STYLE="color:orange"
   xsl:textlt;!--/xsl:textxsl:value-of
 select="."/xsl:text--gt;/xsl:text
 /SPAN
   /xsl:template

   xsl:template match="processing-instruction()" mode="inside"
 DIV DEFANGED_STYLE="margin-left:1em; color:maroon"
   xsl:textlt;?/xsl:text
   xsl:value-of select="name"/
   xsl:text /xsl:text
   xsl:value-of select="."/
   xsl:text?gt;/xsl:text
 /DIV
   /xsl:template

   xsl:template match="text()" mode="inside"
 SPAN DEFANGED_STYLE="color:green"
   xsl:value-of select="."/
 /SPAN
   /xsl:template

 /xsl:stylesheet



 - Original Message -
 From: Troy E.  mailto:[EMAIL PROTECTED] Echols
 To: Orion-Interest mailto:[EMAIL PROTECTED]
 Sent: Monday, October 16, 2000 5:09 PM
 Subject: Re: displaying xml

 Perhaps enclosing the xml in pre /pre will work.

 Troy Echols


 Derek Akers wrote:


  Hi all...  I am trying to display the contents of an XML file to the
 screen, embedded inside a JSP page.  That is, I want to include a header
 and footer on the page (for navigation purposes), with the XML in the
 middle.  I want the text to be viewable literally (tags  all), but I
 have been unable to find a solution... I thought maybe the contentType
 attribute of the %@ page % directive might do it, but it seems not.
 Does anyone know of a way to do this?  Derek Akers Internet Application
 Developer
 Eldan Software, Toronto
 (416) 341-0070
 

Re: custom user management

2000-10-17 Thread Christian Sell

Chris,

thanks a lot for your extensive explanation! However, one of my problems
seems to remain (unless I missed something in your mail). As I mentioned, I
want to programmatically perform the login from my main portal page and
prevent orion from bringing up the login form (or login popup for BASIC
auth). I do want to keep the security-constraints and have orion perform
automatic authentication in case a user directly accesses any of the
protected pages.

This means that after programmatical login I need to enter some information
into the session object (or anywhere else) to notify orion that login has
already been performed. JRun, for example, keeps an AuthenticatedPrincipal
in the session (although it is undocumented under what attribute name).

Hints? Am I missing something?

thanks, Christian

-Original Message-
From: Chris Miller [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Date: Dienstag, 17. Oktober 2000 16:44
Subject: Re: custom user management


There should be a tutorial arriving for this 'shortly', however in the
meantime this should be enough to get you going:

Implement the UserManager, User, and Group classes. (for example,
MyUserManager, MyUser, MyGroup).

The UserManager probably just needs to look like this for now:

public class MyUserManager extends AbstractUserManager {
public User getUser(String userName) {
if (userName == null)
return null;
return new MyUser(userName);
}

public Group getGroup(String groupName) {
if (groupName == null)
return null;
return new MyGroup(groupName);
}
}

You may need to implement some of the other methods too depending on your
requirements, but that should be a good start.


For the MyUser class, just implementing the constructor, authenticate() and
isMemberOf() should be enough for starters:

public class MyUser implements User {


  private String username;

  public MyUser(String username) {
this.username = username;
  }

  public boolean authenticate(String password) {
if (username == null)
  return false;
// Lookup the user 'username', and compare the password supplied
// with their real password (possibly using a password hashing
function).
// ...
return ((password != null)  (password.equals(realPassword)));
  }

  public boolean isMemberOf(Group group) {
if (username == null)
  return false;
  // Do whatever you need to do to see if the user is in the group,
  // and return true or false accordingly. Eg, find the username and
  // the groupname as a matching pair in a user-group mapping table.
  }
}


The Group class can be very simple, for example as a minimum you can get
away with:

public class MyGroup implements Group {
  String groupname;

  public MyGroup(String groupname) {
this.groupname = groupname;
  }

  public String getName() {
return groupName;
  }
}


Now you need to set up your orion-application.xml and web.xml files as per
the orion/docs/orion-application-xml.html and orion/docs/web-xml.html
files.

Eg, add to orion-application.xml your role-group mappings, eg:
security-role-mapping name="sr_editor"
group name="editor" /
/security-role-mapping

and the the UserManager class, eg:
user-manager class="com.mycompany.security.MyUserManager"
/user-manager

In web.xml, add your security-constraint tags, the login-config, and
your security-role tags. There are examples of these tags that come with
orion I think, plus there's the docs, so you should be able to figure this
out easily enough. As a tip, start with BASIC authentication, and change it
to form based or whatever once that is working properly.

That's about it (well, as far as I can remember, there could be a couple of
other minor steps?).
Anyway, orion will now see that a protected resource has been asked for
(because of the security-constraint tags), and know to create an instance
of your UserManager class (thanks to the user-manager tag). It will use
this to get a User and a Group, and will attempt to authenticate that the
user falls into the correct group (which in turn maps to the correct role).

Apologies for any typo's/errors in the above, I've bashed it out pretty
quickly, but it should definitely point you in the right direction. Good
luck!


- Original Message -
From: "Christian Sell" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Tuesday, October 17, 2000 10:54 AM
Subject: custom user management


 Hi there,

 I want to customize orions authentication mechanism to use an existing
user
 database. So far, I understand that I have to create my own UserManager
 class and register it in orion-application.xml. What I dont understand
is:

 - how do I access the user manager at runtime (e.g., to create users)
 - how do I perform programmatical login (bypassing the login-config from
 web.xml, e.g. from a home page with a login field)

 any hints, URLs?

 TIA,
 Christian










FAQ-o-matic and OrionSupport (was Re: displaying xml)

2000-10-17 Thread Jason Rimmer

That's an excellent idea!  If Evermind doesn't do this I'm game to set
it up and host it.  Perhaps the gentleman who ran OrionSupport would be
interested in making this part of his "new" site.
On a similar topic: I'm interested in helping OrionSupport.  While I may
not have all the time to contribute content I'm more than willing to host
the site and keep it updated.  Interested?

--
Jason Rimmer
[EMAIL PROTECTED]


- Original Message -
From: "Hani Suleiman" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Monday, October 16, 2000 8:57 PM
Subject: RE: displaying xml


 Or how about a faq-o-matic? Seems ideal for this kind of thing.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Porfiriev Sergey
 Sent: Monday, October 16, 2000 8:33 PM
 To: Orion-Interest
 Subject: Re: displaying xml



 To Magnus  Karl Avedal:

 it will be good idea to open "users contribution" topic at
 www.OrionServer.com http://www.OrionServer.com
 ( like orionsupport was). and as result traffic in orion-interest will be
 decreased :)

 - Original Message -

 From: Derek Akers mailto:[EMAIL PROTECTED]
 To: Orion-Interest mailto:[EMAIL PROTECTED]
 Sent: Monday, October 16, 2000 6:44 PM
 Subject: Re: displaying xml


 Hi Troy, thanks, but I've already tried.  the pre /pre tags do
preserve
 the indentation of the XML, but do not allow for the displaying of tags
for
 some reason.


 1) use xmp /xmp tags - pre can;'t help.

 2) use this xsl for XML parsing - ( i use it with Salaman's Saxon XSLT
 engine, but it will work under Orion default XSLT (xerces))
 it will display your XML as HTML with XML reformating and coloring




 xsl:stylesheet xmlns:xsl="  http://www.w3.org/1999/XSL/Transform
 http://www.w3.org/1999/XSL/Transform" version="1.0"
 xsl:output method="html" encoding="windows-1251" indent="yes"/

 !-- Generic stylesheet for viewing XML --
 !-- This stylesheet has been modified to use modes instead of nested
 templates. --
 !-- Last Updated by Parf: moved to lotus xsl, main tag fix --

   xsl:template match="/"
HTML
 xsl:apply-templates/
/HTML
   /xsl:template

   xsl:template match="node()"
xsl:if test="name()!='xml-stylesheet'"
 bbigxsl:textlt;/xsl:textxsl:value-of
 select="name()"/xsl:textgt;/xsl:text/big/bbr/
 DIV STYLE="font-family:Courier; font-size:10pt; margin-bottom:0em"
   xsl:apply-templates mode="inside"/
 /DIV
 bbigxsl:textlt;//xsl:textxsl:value-of
 select="name()"/xsl:textgt;/xsl:text/big/b
/xsl:if
   /xsl:template

   xsl:template match="*" mode="inside"
 DIV STYLE="margin-left:1em"
   SPAN STYLE="color:blue"
 xsl:textlt;/xsl:text
 bxsl:value-of select="name()"//b
 xsl:for-each select="@*"
   xsl:call-template name="attribute"/
 /xsl:for-each
 xsl:choose
   xsl:when test="self::node()"
 xsl:textgt;/xsl:text
 xsl:apply-templates mode="inside"/
 xsl:textlt;//xsl:text
 xsl:value-of select="name()"/
 xsl:textgt;/xsl:text
   /xsl:when
   xsl:otherwise
 xsl:text/gt;/xsl:text
   /xsl:otherwise
 /xsl:choose
   /SPAN
 /DIV
   /xsl:template

   xsl:template name="attribute"
 SPAN STYLE="color:navy"
   xsl:text /xsl:text
   xsl:value-of select="name()"/
   xsl:text="/xsl:text
   SPAN STYLE="color:black"
 xsl:value-of select="."/
   /SPAN
   xsl:text"/xsl:text
 /SPAN
   /xsl:template

   xsl:template match="comment()" mode="inside"
 SPAN STYLE="color:orange"
   xsl:textlt;!--/xsl:textxsl:value-of
 select="."/xsl:text--gt;/xsl:text
 /SPAN
   /xsl:template

   xsl:template match="processing-instruction()" mode="inside"
 DIV STYLE="margin-left:1em; color:maroon"
   xsl:textlt;?/xsl:text
   xsl:value-of select="name"/
   xsl:text /xsl:text
   xsl:value-of select="."/
   xsl:text?gt;/xsl:text
 /DIV
   /xsl:template

   xsl:template match="text()" mode="inside"
 SPAN STYLE="color:green"
   xsl:value-of select="."/
 /SPAN
   /xsl:template

 /xsl:stylesheet



 - Original Message -
 From: Troy E.  mailto:[EMAIL PROTECTED] Echols
 To: Orion-Interest mailto:[EMAIL PROTECTED]
 Sent: Monday, October 16, 2000 5:09 PM
 Subject: Re: displaying xml

 Perhaps enclosing the xml in pre /pre will work.

 Troy Echols


 Derek Akers wrote:


  Hi all...  I am trying to display the contents of an XML file to the
 screen, embedded inside a JSP page.  That is, I want to include a header
and
 footer on the page (for navigation purposes), with the XML in the middle.
I
 want the text to be viewable literally (tags  all), but I have been
unable
 to find a solution... I thought maybe the contentType attribute of the %@
 page % directive might do it, but it seems not. Does anyone know of a way
 to do this?  Derek Akers Internet Application Developer
 Eldan 

RE: JBuilder + Orion

2000-10-17 Thread John D'Ausilio

Can't say for sure if Jbuilder debugging works, but I've had good luck (and
just slight flakiness) using Forte and JPDA to debug .. I used the NetBeans
notes in the FAQ to set it up, and had no major problems

jd

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Aniket V U
 Sent: Tuesday, October 17, 2000 3:20 AM
 To: Orion-Interest
 Subject: JBuilder + Orion


 hi folks,

 could somebody help me out in integrating Orion with JBuilder for
 debugging. I've seen plenty of mails on this list that say it can be done
 but none detailing it. would really appreciate it if somebody
 could give me
 the details

 Regards
 Aniket







I'll help with the FAQ and OrionSupport

2000-10-17 Thread Jason Rimmer

I sent a message to the list but didn't see it so I'm reposting.  If it
did appear and this is a duplicate my apologies for your wasted bandwidth.
I'm interested in helping, both on the OrionSupport front as well as
with the faq-o-matic, which I think is a fantastic idea.  While my content
contribution's may be limited I'm at the least able to offer to host and
work on the OrionSupport site as well as hosting and maintaining the
faq-o-matic.
So Mr. OrionSupport, interested?

--
Jason Rimmer
[EMAIL PROTECTED]







Log Analyzers and files

2000-10-17 Thread Kemp Randy-W18971

Please forgive the Newbee question, but when you hook up a log analyzer package, such 
as WebAnalyzer or http-analyze, where in Orion is the log file found and what is the 
qualified log file name?  I'm setting up Orion under Solaris. 




RE: custom user management

2000-10-17 Thread Arved Sandstrom

If you use the login() method, available through the user manager, Orion
will already know that login happened. The username that you logged in with
will have the correct security role, for example.

Arved Sandstrom

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Christian Sell
Sent: Tuesday, October 17, 2000 12:22 PM
To: Orion-Interest
Subject: Re: custom user management


Chris,

thanks a lot for your extensive explanation! However, one of my problems
seems to remain (unless I missed something in your mail). As I mentioned, I
want to programmatically perform the login from my main portal page and
prevent orion from bringing up the login form (or login popup for BASIC
auth). I do want to keep the security-constraints and have orion perform
automatic authentication in case a user directly accesses any of the
protected pages.

This means that after programmatical login I need to enter some information
into the session object (or anywhere else) to notify orion that login has
already been performed. JRun, for example, keeps an AuthenticatedPrincipal
in the session (although it is undocumented under what attribute name).

Hints? Am I missing something?

thanks, Christian

-Original Message-
From: Chris Miller [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Date: Dienstag, 17. Oktober 2000 16:44
Subject: Re: custom user management


There should be a tutorial arriving for this 'shortly', however in the
meantime this should be enough to get you going:

Implement the UserManager, User, and Group classes. (for example,
MyUserManager, MyUser, MyGroup).

The UserManager probably just needs to look like this for now:

public class MyUserManager extends AbstractUserManager {
public User getUser(String userName) {
if (userName == null)
return null;
return new MyUser(userName);
}

public Group getGroup(String groupName) {
if (groupName == null)
return null;
return new MyGroup(groupName);
}
}

You may need to implement some of the other methods too depending on your
requirements, but that should be a good start.


For the MyUser class, just implementing the constructor, authenticate() and
isMemberOf() should be enough for starters:

public class MyUser implements User {


  private String username;

  public MyUser(String username) {
this.username = username;
  }

  public boolean authenticate(String password) {
if (username == null)
  return false;
// Lookup the user 'username', and compare the password supplied
// with their real password (possibly using a password hashing
function).
// ...
return ((password != null)  (password.equals(realPassword)));
  }

  public boolean isMemberOf(Group group) {
if (username == null)
  return false;
  // Do whatever you need to do to see if the user is in the group,
  // and return true or false accordingly. Eg, find the username and
  // the groupname as a matching pair in a user-group mapping table.
  }
}


The Group class can be very simple, for example as a minimum you can get
away with:

public class MyGroup implements Group {
  String groupname;

  public MyGroup(String groupname) {
this.groupname = groupname;
  }

  public String getName() {
return groupName;
  }
}


Now you need to set up your orion-application.xml and web.xml files as per
the orion/docs/orion-application-xml.html and orion/docs/web-xml.html
files.

Eg, add to orion-application.xml your role-group mappings, eg:
security-role-mapping name="sr_editor"
group name="editor" /
/security-role-mapping

and the the UserManager class, eg:
user-manager class="com.mycompany.security.MyUserManager"
/user-manager

In web.xml, add your security-constraint tags, the login-config, and
your security-role tags. There are examples of these tags that come with
orion I think, plus there's the docs, so you should be able to figure this
out easily enough. As a tip, start with BASIC authentication, and change it
to form based or whatever once that is working properly.

That's about it (well, as far as I can remember, there could be a couple of
other minor steps?).
Anyway, orion will now see that a protected resource has been asked for
(because of the security-constraint tags), and know to create an instance
of your UserManager class (thanks to the user-manager tag). It will use
this to get a User and a Group, and will attempt to authenticate that the
user falls into the correct group (which in turn maps to the correct role).

Apologies for any typo's/errors in the above, I've bashed it out pretty
quickly, but it should definitely point you in the right direction. Good
luck!


- Original Message -
From: "Christian Sell" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Tuesday, October 17, 2000 10:54 AM
Subject: custom user management


 Hi there,

 I want to customize orions authentication mechanism to use an 

Serializable problems

2000-10-17 Thread Juan Lorandi (Chile)

I have this class:
---FileDT.java--
package net.amtec.content;

public class FileDT implements java.io.Serializable
{
public FileDT()
{
FileType = "";
Description = "no description";
URLFile = "";
NameFile = "";
OriginalName = "";
Size = 0;
}
public String Description;
public long Size;
public String FileType;
public String OriginalName;
public String NameFile;
public String URLFile;

}

And I have an Object field in one of my Entity Beans

Whenever I try to unserialize this, the following results

com.evermind.server.rmi.OrionRemoteException: Transaction was rolled back:
Error activating instance: java.io.EOFException

at
EElementHome_EntityHomeWrapper20.findByContent(EElementHome_EntityHomeWrappe
r20.java:781)

at /editelements.jsp._jspService(/editelements.jsp.java:51) (JSP
page line 9)

at com.evermind.server.http.EvermindHttpJspPage.service(JAX)

at com.evermind.server.http.HttpApplication.wa(JAX)

at com.evermind.server.http.JSPServlet.service(JAX)

at com.evermind.server.http.du.rr(JAX)

at com.evermind.server.http.du.include(JAX)

at com.evermind.server.http.eh.include(JAX)

at com.evermind.server.http.EvermindPageContext.include(JAX)

at /edit.jsp._jspService(/edit.jsp.java:186)

at com.evermind.server.http.EvermindHttpJspPage.service(JAX)

at com.evermind.server.http.HttpApplication.wa(JAX)

at com.evermind.server.http.JSPServlet.service(JAX)

at com.evermind.server.http.du.rr(JAX)

at com.evermind.server.http.du.forward(JAX)

at com.evermind.server.http.d5.rx(JAX)

at com.evermind.server.http.d5.rw(JAX)

at com.evermind.util.f.run(JAX)

Nested exception is:

java.io.EOFException

at
java.io.DataInputStream.readUnsignedShort(DataInputStream.java:293)

at
java.io.ObjectInputStream.readUnsignedShort(ObjectInputStream.java:1949)

at java.io.ObjectInputStream.readUTF(ObjectInputStream.java:2106)

at net.amtec.content.FileDT.readObject(FileDT.java:52)

at java.lang.reflect.Method.invoke(Native Method)

at
java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:2213)

at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1410)

at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)

at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)

at com.evermind.server.ejb.EntityEJBObject.deSerialize(JAX)

at
EElementHome_EntityHomeWrapper20.findByContent(EElementHome_EntityHomeWrappe
r20.java:698)

at /editelements.jsp._jspService(/editelements.jsp.java:51) (JSP
page line 9)

at com.evermind.server.http.EvermindHttpJspPage.service(JAX)

at com.evermind.server.http.HttpApplication.wa(JAX)

at com.evermind.server.http.JSPServlet.service(JAX)

at com.evermind.server.http.du.rr(JAX)

at com.evermind.server.http.du.include(JAX)

at com.evermind.server.http.eh.include(JAX)

at com.evermind.server.http.EvermindPageContext.include(JAX)

at /edit.jsp._jspService(/edit.jsp.java:186)

at com.evermind.server.http.EvermindHttpJspPage.service(JAX)

at com.evermind.server.http.HttpApplication.wa(JAX)

at com.evermind.server.http.JSPServlet.service(JAX)

at com.evermind.server.http.du.rr(JAX)

at com.evermind.server.http.du.forward(JAX)

at com.evermind.server.http.d5.rx(JAX)

at com.evermind.server.http.d5.rw(JAX)

at com.evermind.util.f.run(JAX)

at this point, I've added this code to serialize the object, but, still the
same

//Serialization of BeanObject is to be done here.//
private void writeObject(java.io.ObjectOutputStream out)
throws java.io.IOException
{
//write non-serializable attributes here

//out.defaultWriteObject();
out.writeUTF(Description);
out.writeUTF(FileType);
out.writeUTF(URLFile);
out.writeUTF(NameFile);
out.writeUTF(OriginalName);
out.writeLong(Size);
}

private void readObject(java.io.ObjectInputStream in)
throws java.io.IOException, ClassNotFoundException
{
//read non-serializable attributes here
Description = in.readUTF();
FileType = in.readUTF();
URLFile = in.readUTF();
NameFile = in.readUTF();
OriginalName = in.readUTF();
Size = in.readLong();
}
// serialization done //

any hints?

TIA,

JP




Re: custom user management

2000-10-17 Thread Chris Miller

Ah sorry, now I see what your problem is. I assume you're trying to
automatically log someone in if they have cookies?

I've never tried it, but I can't see why you couldn't submit the form
parameters yourself for form-based authentication.
i.e. when the form-login-page is called, it is actually a JSP page or
servlet that reads the cookie values and posts the j_username/j_password
automatically rather than returning to the client for the values. Sounds
like it might work? If you try this I'd be interested in knowing the
outcome!

Hope this helps.

- Original Message -
From: "Christian Sell" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Tuesday, October 17, 2000 4:22 PM
Subject: Re: custom user management


 Chris,

 thanks a lot for your extensive explanation! However, one of my problems
 seems to remain (unless I missed something in your mail). As I mentioned,
I
 want to programmatically perform the login from my main portal page and
 prevent orion from bringing up the login form (or login popup for BASIC
 auth). I do want to keep the security-constraints and have orion perform
 automatic authentication in case a user directly accesses any of the
 protected pages.

 This means that after programmatical login I need to enter some
information
 into the session object (or anywhere else) to notify orion that login has
 already been performed. JRun, for example, keeps an AuthenticatedPrincipal
 in the session (although it is undocumented under what attribute name).

 Hints? Am I missing something?

 thanks, Christian

 -Original Message-
 From: Chris Miller [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Date: Dienstag, 17. Oktober 2000 16:44
 Subject: Re: custom user management


 There should be a tutorial arriving for this 'shortly', however in the
 meantime this should be enough to get you going:
 
 Implement the UserManager, User, and Group classes. (for example,
 MyUserManager, MyUser, MyGroup).
 
 The UserManager probably just needs to look like this for now:
 
 public class MyUserManager extends AbstractUserManager {
 public User getUser(String userName) {
 if (userName == null)
 return null;
 return new MyUser(userName);
 }
 
 public Group getGroup(String groupName) {
 if (groupName == null)
 return null;
 return new MyGroup(groupName);
 }
 }
 
 You may need to implement some of the other methods too depending on your
 requirements, but that should be a good start.
 
 
 For the MyUser class, just implementing the constructor, authenticate()
and
 isMemberOf() should be enough for starters:
 
 public class MyUser implements User {
 
 
   private String username;
 
   public MyUser(String username) {
 this.username = username;
   }
 
   public boolean authenticate(String password) {
 if (username == null)
   return false;
 // Lookup the user 'username', and compare the password supplied
 // with their real password (possibly using a password hashing
 function).
 // ...
 return ((password != null)  (password.equals(realPassword)));
   }
 
   public boolean isMemberOf(Group group) {
 if (username == null)
   return false;
   // Do whatever you need to do to see if the user is in the group,
   // and return true or false accordingly. Eg, find the username and
   // the groupname as a matching pair in a user-group mapping table.
   }
 }
 
 
 The Group class can be very simple, for example as a minimum you can get
 away with:
 
 public class MyGroup implements Group {
   String groupname;
 
   public MyGroup(String groupname) {
 this.groupname = groupname;
   }
 
   public String getName() {
 return groupName;
   }
 }
 
 
 Now you need to set up your orion-application.xml and web.xml files as
per
 the orion/docs/orion-application-xml.html and orion/docs/web-xml.html
 files.
 
 Eg, add to orion-application.xml your role-group mappings, eg:
 security-role-mapping name="sr_editor"
 group name="editor" /
 /security-role-mapping
 
 and the the UserManager class, eg:
 user-manager class="com.mycompany.security.MyUserManager"
 /user-manager
 
 In web.xml, add your security-constraint tags, the login-config, and
 your security-role tags. There are examples of these tags that come
with
 orion I think, plus there's the docs, so you should be able to figure
this
 out easily enough. As a tip, start with BASIC authentication, and change
it
 to form based or whatever once that is working properly.
 
 That's about it (well, as far as I can remember, there could be a couple
of
 other minor steps?).
 Anyway, orion will now see that a protected resource has been asked for
 (because of the security-constraint tags), and know to create an
instance
 of your UserManager class (thanks to the user-manager tag). It will use
 this to get a User and a Group, and will attempt to authenticate that the
 user falls into the correct group (which in turn 

Re: FAQ-o-matic and OrionSupport

2000-10-17 Thread Joe

Jason,

Thanks for your support... we already have a new site which we are planning
on launching in the next few days which is a group effort by a number of
people.

Really, the best way you can support the site, is simply to use it.

Stay tuned.

-Joe Walnes


- Original Message -
From: "Jason Rimmer" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Tuesday, October 17, 2000 4:22 PM
Subject: FAQ-o-matic and OrionSupport (was Re: displaying xml)


 That's an excellent idea!  If Evermind doesn't do this I'm game to set
 it up and host it.  Perhaps the gentleman who ran OrionSupport would be
 interested in making this part of his "new" site.
 On a similar topic: I'm interested in helping OrionSupport.  While I
may
 not have all the time to contribute content I'm more than willing to host
 the site and keep it updated.  Interested?

 --
 Jason Rimmer
 [EMAIL PROTECTED]


 - Original Message -
 From: "Hani Suleiman" [EMAIL PROTECTED]
 To: "Orion-Interest" [EMAIL PROTECTED]
 Sent: Monday, October 16, 2000 8:57 PM
 Subject: RE: displaying xml


  Or how about a faq-o-matic? Seems ideal for this kind of thing.
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Porfiriev
Sergey
  Sent: Monday, October 16, 2000 8:33 PM
  To: Orion-Interest
  Subject: Re: displaying xml
 
 
 
  To Magnus  Karl Avedal:
 
  it will be good idea to open "users contribution" topic at
  www.OrionServer.com http://www.OrionServer.com
  ( like orionsupport was). and as result traffic in orion-interest will
be
  decreased :)
 
  - Original Message -
 
  From: Derek Akers mailto:[EMAIL PROTECTED]
  To: Orion-Interest mailto:[EMAIL PROTECTED]
  Sent: Monday, October 16, 2000 6:44 PM
  Subject: Re: displaying xml
 
 
  Hi Troy, thanks, but I've already tried.  the pre /pre tags do
 preserve
  the indentation of the XML, but do not allow for the displaying of tags
 for
  some reason.
 
 
  1) use xmp /xmp tags - pre can;'t help.
 
  2) use this xsl for XML parsing - ( i use it with Salaman's Saxon XSLT
  engine, but it will work under Orion default XSLT (xerces))
  it will display your XML as HTML with XML reformating and coloring
 
 
 
 
  xsl:stylesheet xmlns:xsl="  http://www.w3.org/1999/XSL/Transform
  http://www.w3.org/1999/XSL/Transform" version="1.0"
  xsl:output method="html" encoding="windows-1251" indent="yes"/
 
  !-- Generic stylesheet for viewing XML --
  !-- This stylesheet has been modified to use modes instead of nested
  templates. --
  !-- Last Updated by Parf: moved to lotus xsl, main tag fix --
 
xsl:template match="/"
 HTML
  xsl:apply-templates/
 /HTML
/xsl:template
 
xsl:template match="node()"
 xsl:if test="name()!='xml-stylesheet'"
  bbigxsl:textlt;/xsl:textxsl:value-of
  select="name()"/xsl:textgt;/xsl:text/big/bbr/
  DIV STYLE="font-family:Courier; font-size:10pt; margin-bottom:0em"
xsl:apply-templates mode="inside"/
  /DIV
  bbigxsl:textlt;//xsl:textxsl:value-of
  select="name()"/xsl:textgt;/xsl:text/big/b
 /xsl:if
/xsl:template
 
xsl:template match="*" mode="inside"
  DIV STYLE="margin-left:1em"
SPAN STYLE="color:blue"
  xsl:textlt;/xsl:text
  bxsl:value-of select="name()"//b
  xsl:for-each select="@*"
xsl:call-template name="attribute"/
  /xsl:for-each
  xsl:choose
xsl:when test="self::node()"
  xsl:textgt;/xsl:text
  xsl:apply-templates mode="inside"/
  xsl:textlt;//xsl:text
  xsl:value-of select="name()"/
  xsl:textgt;/xsl:text
/xsl:when
xsl:otherwise
  xsl:text/gt;/xsl:text
/xsl:otherwise
  /xsl:choose
/SPAN
  /DIV
/xsl:template
 
xsl:template name="attribute"
  SPAN STYLE="color:navy"
xsl:text /xsl:text
xsl:value-of select="name()"/
xsl:text="/xsl:text
SPAN STYLE="color:black"
  xsl:value-of select="."/
/SPAN
xsl:text"/xsl:text
  /SPAN
/xsl:template
 
xsl:template match="comment()" mode="inside"
  SPAN STYLE="color:orange"
xsl:textlt;!--/xsl:textxsl:value-of
  select="."/xsl:text--gt;/xsl:text
  /SPAN
/xsl:template
 
xsl:template match="processing-instruction()" mode="inside"
  DIV STYLE="margin-left:1em; color:maroon"
xsl:textlt;?/xsl:text
xsl:value-of select="name"/
xsl:text /xsl:text
xsl:value-of select="."/
xsl:text?gt;/xsl:text
  /DIV
/xsl:template
 
xsl:template match="text()" mode="inside"
  SPAN STYLE="color:green"
xsl:value-of select="."/
  /SPAN
/xsl:template
 
  /xsl:stylesheet
 
 
 
  - Original Message -
  From: Troy E.  mailto:[EMAIL PROTECTED] Echols
  To: Orion-Interest mailto:[EMAIL PROTECTED]
  Sent: Monday, October 16, 2000 5:09 PM
  Subject: 

CMP Primer related question..

2000-10-17 Thread Kevin Duffey
Title: RE: Deleting cookies with Orion



Hi all,

I got the CMP Orion Primer, but it leaves me in the 
dark on a couple of things (as does the Orion Primer..which shows EJB). It 
appears EJB isn't all that hard, but the primers, and other articles I have been 
looking at, don't clearly state how you can test and develop EJB without having 
to keep on repackaging it into a jar file, deploying it, etc. I can't imagine 
every time you make a change to an entity bean or session bean that you have to 
repackage the thing and redeploy it. Isn't there any way you can develop EJBs as 
you do servlets, javabeans and jsp pages..an "open" dir structure. I guess worse 
case scenario if this can't be done, a good script that you run each time you 
make a change that compiles, packages and deploys it would be handy..is one 
available?

Also, about Orion..when using CMP, does Orion 
automatically do connection pooling for you (for database connections)? I see 
there is the ability to use a PooledConnection in servlets, but I am unclear if 
when using CMP Orion (and other J2EE app servers for that matter) use an 
internal connection pool that you can set the size of somehow.

Lastly, on our site we currently use our own 
home-brewn persistence layer. It does the job, but a query of 600 station 
objects appears to use about 400MB of memory. I assume our code is very bad..I 
didn't write it..but it doesn't make much since to me as to why a query with 
only 400 objects being created would require so much memory. None the less, alot 
of our queries use joins with other tables. I read somewhere that complex O/R 
mapping wont be available until EJB 2.0, so does that mean I can't do a query of 
an object that requires joins? I am unclear as to how exactly when using CMP you 
would get joins to work. For example, a one to many relationship of a particular 
table...say a user with many transactions. Also, what if each transaction had 
many "sub transactions". Thus, the first table would be many users. Each user 
can have many transactions, and each transaction could have many 
sub-transactions. Is this possible now with CMP, Orion and O/R?

thanks.



Re: displaying xml

2000-10-17 Thread Christian Sell

I really think this should be officially maintained by orion. Having
multiple semi- or unofficial sites floating around is confusing IMHO and
thus keeps people from contributing

-Original Message-
From: Joseph B. Ottinger [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Date: Dienstag, 17. Oktober 2000 17:12
Subject: RE: displaying xml


Or, of course, orionsupport.com, which I know at least two other people
might be working on, and I'm considering reviving it myself.

Although, honestly, the lack of self-starters here is rather
annoying... "Why doesn't somebody ELSE do it" is a crappy way to go about
development.


On Mon, 16 Oct 2000, Hani Suleiman wrote:

 Or how about a faq-o-matic? Seems ideal for this kind of thing.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Porfiriev
Sergey
 Sent: Monday, October 16, 2000 8:33 PM
 To: Orion-Interest
 Subject: Re: displaying xml



 To Magnus  Karl Avedal:

 it will be good idea to open "users contribution" topic at
 www.OrionServer.com http://www.OrionServer.com
 ( like orionsupport was). and as result traffic in orion-interest will be
 decreased :)

 - Original Message -

 From: Derek Akers mailto:[EMAIL PROTECTED]
 To: Orion-Interest mailto:[EMAIL PROTECTED]
 Sent: Monday, October 16, 2000 6:44 PM
 Subject: Re: displaying xml


 Hi Troy, thanks, but I've already tried.  the pre /pre tags do
preserve
 the indentation of the XML, but do not allow for the displaying of tags
for
 some reason.


 1) use xmp /xmp tags - pre can;'t help.

 2) use this xsl for XML parsing - ( i use it with Salaman's Saxon XSLT
 engine, but it will work under Orion default XSLT (xerces))
 it will display your XML as HTML with XML reformating and coloring




 xsl:stylesheet xmlns:xsl="  http://www.w3.org/1999/XSL/Transform
 http://www.w3.org/1999/XSL/Transform" version="1.0"
 xsl:output method="html" encoding="windows-1251" indent="yes"/

 !-- Generic stylesheet for viewing XML --
 !-- This stylesheet has been modified to use modes instead of nested
 templates. --
 !-- Last Updated by Parf: moved to lotus xsl, main tag fix --

   xsl:template match="/"
HTML
 xsl:apply-templates/
/HTML
   /xsl:template

   xsl:template match="node()"
xsl:if test="name()!='xml-stylesheet'"
 bbigxsl:textlt;/xsl:textxsl:value-of
 select="name()"/xsl:textgt;/xsl:text/big/bbr/
 DIV DEFANGED_STYLE="font-family:Courier; font-size:10pt;
margin-bottom:0em"
   xsl:apply-templates mode="inside"/
 /DIV
 bbigxsl:textlt;//xsl:textxsl:value-of
 select="name()"/xsl:textgt;/xsl:text/big/b
/xsl:if
   /xsl:template

   xsl:template match="*" mode="inside"
 DIV DEFANGED_STYLE="margin-left:1em"
   SPAN DEFANGED_STYLE="color:blue"
 xsl:textlt;/xsl:text
 bxsl:value-of select="name()"//b
 xsl:for-each select="@*"
   xsl:call-template name="attribute"/
 /xsl:for-each
 xsl:choose
   xsl:when test="self::node()"
 xsl:textgt;/xsl:text
 xsl:apply-templates mode="inside"/
 xsl:textlt;//xsl:text
 xsl:value-of select="name()"/
 xsl:textgt;/xsl:text
   /xsl:when
   xsl:otherwise
 xsl:text/gt;/xsl:text
   /xsl:otherwise
 /xsl:choose
   /SPAN
 /DIV
   /xsl:template

   xsl:template name="attribute"
 SPAN DEFANGED_STYLE="color:navy"
   xsl:text /xsl:text
   xsl:value-of select="name()"/
   xsl:text="/xsl:text
   SPAN DEFANGED_STYLE="color:black"
 xsl:value-of select="."/
   /SPAN
   xsl:text"/xsl:text
 /SPAN
   /xsl:template

   xsl:template match="comment()" mode="inside"
 SPAN DEFANGED_STYLE="color:orange"
   xsl:textlt;!--/xsl:textxsl:value-of
 select="."/xsl:text--gt;/xsl:text
 /SPAN
   /xsl:template

   xsl:template match="processing-instruction()" mode="inside"
 DIV DEFANGED_STYLE="margin-left:1em; color:maroon"
   xsl:textlt;?/xsl:text
   xsl:value-of select="name"/
   xsl:text /xsl:text
   xsl:value-of select="."/
   xsl:text?gt;/xsl:text
 /DIV
   /xsl:template

   xsl:template match="text()" mode="inside"
 SPAN DEFANGED_STYLE="color:green"
   xsl:value-of select="."/
 /SPAN
   /xsl:template

 /xsl:stylesheet



 - Original Message -
 From: Troy E.  mailto:[EMAIL PROTECTED] Echols
 To: Orion-Interest mailto:[EMAIL PROTECTED]
 Sent: Monday, October 16, 2000 5:09 PM
 Subject: Re: displaying xml

 Perhaps enclosing the xml in pre /pre will work.

 Troy Echols


 Derek Akers wrote:


  Hi all...  I am trying to display the contents of an XML file to the
 screen, embedded inside a JSP page.  That is, I want to include a header
and
 footer on the page (for navigation purposes), with the XML in the middle.
I
 want the text to be viewable literally (tags  all), but I have been
unable
 to find a solution... I thought maybe the contentType attribute of 

Installing Orion

2000-10-17 Thread Kemp Randy-W18971

Orion experts:  
 Here is another dumb Newbee question, for you experts out there.  After you got your 
machine set up (Windows or Unix), have a WWW. name, and are ready to install Orion, 
did you:
1.  Follow the directions in the readme file under the Orion directory (which says to 
issue command java -jar orion.jar - install and follow the directions).
2.  Follow the directions in the Orion Doc under Install.html
3.  If you did option two, did you set up Orion to process the www site by using the 
Orion Doc module adding a site.html
4.  None of the above and I am entirely off base.
   I have Orion running under my Windows 2000 machine in a development mode and now I 
am really for the real world. I would appreciate a simple answer in a sentence or two. 
 Thank you in advance.
Randy 






RE: Log Analyzers and files

2000-10-17 Thread Rick Bos

The log files are in $ORION_HOME/log:

default-web-access.log
global-application.log
rmi.log
server.log

 -Original Message-
 From: Kemp Randy-W18971 [SMTP:[EMAIL PROTECTED]]
 Sent: October 17, 2000 11:56 AM
 To:   Orion-Interest
 Subject:  Log Analyzers and files
 
 Please forgive the Newbee question, but when you hook up a log analyzer
 package, such as WebAnalyzer or http-analyze, where in Orion is the log
 file found and what is the qualified log file name?  I'm setting up Orion
 under Solaris. 




Re: JBuilder + Orion

2000-10-17 Thread Chris Miller

JBuilder debugging - basically you need to go into project properties and
set:

Run-Application-Main class = com.evermind.server.ApplicationServer

and VM parameters to:
-classic -Duser.dir=c:\orion

You'll have to include a few jars in the required libraries, eg orion.jar,
ejb.jar, maybe some others.
You'll also want to point orion at an expanded version of the ear file
you're developing (a source-directory setting in orion-web.xml I think) and
probably play around a bit with the target dir that JBuilder compiles to.
Can't remember offhand, but it should be easy enough to figure this bit out.

Good luck and have fun!

- Original Message -
From: "John D'Ausilio" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Tuesday, October 17, 2000 4:23 PM
Subject: RE: JBuilder + Orion


 Can't say for sure if Jbuilder debugging works, but I've had good luck
(and
 just slight flakiness) using Forte and JPDA to debug .. I used the
NetBeans
 notes in the FAQ to set it up, and had no major problems

 jd

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Aniket V U
  Sent: Tuesday, October 17, 2000 3:20 AM
  To: Orion-Interest
  Subject: JBuilder + Orion
 
 
  hi folks,
 
  could somebody help me out in integrating Orion with JBuilder for
  debugging. I've seen plenty of mails on this list that say it can be
done
  but none detailing it. would really appreciate it if somebody
  could give me
  the details
 
  Regards
  Aniket
 
 








Re: displaying xml

2000-10-17 Thread Derek Akers

--On Tuesday, October 17, 2000 8:11 AM -0400 "Joseph B. Ottinger"
[EMAIL PROTECTED] wrote:

 Although, honestly, the lack of self-starters here is rather
 annoying... "Why doesn't somebody ELSE do it" is a crappy way to go about
 development.


Dude, honestly, thanks for your other (slightly more useful) suggestion,
however, might I suggest that you jack it down a little bit?  Perhaps we
should include in our judgement the possibility that one HAS tried something
already?  That one HAS looked around, read around and asked around?  That
is, of course, what this forum is for, yes?  I am not in the habit of asking
without trying first, thanks.

My apologies to everyone else, I am aware of the inappropriateness of this
reply in this forum.







RE: userThreads + calling EJBs from outside orion.

2000-10-17 Thread Jeff Schnitzer

Why not test from within Orion?
 
You might want to look at http://www.infohazard.org/junitee
http://www.infohazard.org/junitee  for a testrunner, servlet, and
tutorial for using JUnit with Orion.
 
If you have any trouble with the site, let me know and I'll mail you a
copy of the zipfile.
 
Jeff Schnitzer
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 

-Original Message-
From: Greg Matthews [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 16, 2000 11:11 PM
To: Orion-Interest
Subject: userThreads + calling EJBs from outside orion.


i'm trying to create a dos shell program that i can use to test EJB's
running inside orion.
 

 





2 many messages - News Server needed.

2000-10-17 Thread Miles Daffin



Hi Folks,

I have not picked up my email for 2 days and have 
just downloaded 108 Orion-Interest messages. Imagine what would 
have happened if I had left this job until Friday.

I think it is time to turn this thing into a news 
group. It would also make it easier to see,follow, save  
contribute to separate threads. In fact I cannot see a reason not to do 
this.

Maybe you can.
--Miles DaffinJava 
DeveloperHOT Company BV Mathernesserlaan 171 3014 HA 
Rotterdam

Land: +31 (0) 10 476 2500Fax: +31 (0) 10 476 
5762Mobile: +31 (0) 2959 1423http://www.hotobjects.nl


Re: displaying xml

2000-10-17 Thread Joseph B. Ottinger

No, I don't think it should be maintained by Orion. A FAQ should be
maintained by Orion, and it'd be nice to have something official (note
that there IS a faq by Orion!) but a user-driven support site shoudl be
independent, because otherwise you never know what's NOT being said. I
wasn't afraid to criticize Orion, although what I needed was usually
solved before I had a chance to write it up - but an Orion site would
obviously be working at cross-purposes this way.

I say, bring ON the user sites! Let's have MORE, for that matter, and have
them cross-reference each other.

On Tue, 17 Oct 2000, Christian Sell wrote:

 I really think this should be officially maintained by orion. Having
 multiple semi- or unofficial sites floating around is confusing IMHO and
 thus keeps people from contributing
 
 -Original Message-
 From: Joseph B. Ottinger [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Date: Dienstag, 17. Oktober 2000 17:12
 Subject: RE: displaying xml
 
 
 Or, of course, orionsupport.com, which I know at least two other people
 might be working on, and I'm considering reviving it myself.
 
 Although, honestly, the lack of self-starters here is rather
 annoying... "Why doesn't somebody ELSE do it" is a crappy way to go about
 development.
 
 
 On Mon, 16 Oct 2000, Hani Suleiman wrote:
 
  Or how about a faq-o-matic? Seems ideal for this kind of thing.
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Porfiriev
 Sergey
  Sent: Monday, October 16, 2000 8:33 PM
  To: Orion-Interest
  Subject: Re: displaying xml
 
 
 
  To Magnus  Karl Avedal:
 
  it will be good idea to open "users contribution" topic at
  www.OrionServer.com http://www.OrionServer.com
  ( like orionsupport was). and as result traffic in orion-interest will be
  decreased :)
 
  - Original Message -
 
  From: Derek Akers mailto:[EMAIL PROTECTED]
  To: Orion-Interest mailto:[EMAIL PROTECTED]
  Sent: Monday, October 16, 2000 6:44 PM
  Subject: Re: displaying xml
 
 
  Hi Troy, thanks, but I've already tried.  the pre /pre tags do
 preserve
  the indentation of the XML, but do not allow for the displaying of tags
 for
  some reason.
 
 
  1) use xmp /xmp tags - pre can;'t help.
 
  2) use this xsl for XML parsing - ( i use it with Salaman's Saxon XSLT
  engine, but it will work under Orion default XSLT (xerces))
  it will display your XML as HTML with XML reformating and coloring
 
 
 
 
  xsl:stylesheet xmlns:xsl="  http://www.w3.org/1999/XSL/Transform
  http://www.w3.org/1999/XSL/Transform" version="1.0"
  xsl:output method="html" encoding="windows-1251" indent="yes"/
 
  !-- Generic stylesheet for viewing XML --
  !-- This stylesheet has been modified to use modes instead of nested
  templates. --
  !-- Last Updated by Parf: moved to lotus xsl, main tag fix --
 
xsl:template match="/"
 HTML
  xsl:apply-templates/
 /HTML
/xsl:template
 
xsl:template match="node()"
 xsl:if test="name()!='xml-stylesheet'"
  bbigxsl:textlt;/xsl:textxsl:value-of
  select="name()"/xsl:textgt;/xsl:text/big/bbr/
  DIV DEFANGED_STYLE="font-family:Courier; font-size:10pt;
 margin-bottom:0em"
xsl:apply-templates mode="inside"/
  /DIV
  bbigxsl:textlt;//xsl:textxsl:value-of
  select="name()"/xsl:textgt;/xsl:text/big/b
 /xsl:if
/xsl:template
 
xsl:template match="*" mode="inside"
  DIV DEFANGED_STYLE="margin-left:1em"
SPAN DEFANGED_STYLE="color:blue"
  xsl:textlt;/xsl:text
  bxsl:value-of select="name()"//b
  xsl:for-each select="@*"
xsl:call-template name="attribute"/
  /xsl:for-each
  xsl:choose
xsl:when test="self::node()"
  xsl:textgt;/xsl:text
  xsl:apply-templates mode="inside"/
  xsl:textlt;//xsl:text
  xsl:value-of select="name()"/
  xsl:textgt;/xsl:text
/xsl:when
xsl:otherwise
  xsl:text/gt;/xsl:text
/xsl:otherwise
  /xsl:choose
/SPAN
  /DIV
/xsl:template
 
xsl:template name="attribute"
  SPAN DEFANGED_STYLE="color:navy"
xsl:text /xsl:text
xsl:value-of select="name()"/
xsl:text="/xsl:text
SPAN DEFANGED_STYLE="color:black"
  xsl:value-of select="."/
/SPAN
xsl:text"/xsl:text
  /SPAN
/xsl:template
 
xsl:template match="comment()" mode="inside"
  SPAN DEFANGED_STYLE="color:orange"
xsl:textlt;!--/xsl:textxsl:value-of
  select="."/xsl:text--gt;/xsl:text
  /SPAN
/xsl:template
 
xsl:template match="processing-instruction()" mode="inside"
  DIV DEFANGED_STYLE="margin-left:1em; color:maroon"
xsl:textlt;?/xsl:text
xsl:value-of select="name"/
xsl:text /xsl:text
xsl:value-of select="."/
xsl:text?gt;/xsl:text
  /DIV
/xsl:template
 
xsl:template match="text()" mode="inside"
 

RE: Please help! I get null pointer exception after calling create onan EB with EJB 2.0 CMP Orion 1.3.8...

2000-10-17 Thread Jeff Schnitzer

I have had no problems creating CMP entity beans from session beans with
EJB2.0.  Seems to work as advertsied :-)

I suggest posting your code and descriptors; I'll take a look, and the
more examples of EJB2.0 beans floating around the better :-)

Jeff

 -Original Message-
 From: Jim Archer [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 16, 2000 4:18 PM
 To: Orion-Interest
 Subject: Please help! I get null pointer exception after 
 calling create
 onan EB with EJB 2.0 CMP Orion 1.3.8...
 
 
 
 Hi All...
 
 Please help me out wityh this if you can. I'm really stuck 
 and already 
 behind schedual, so any ideas would be appreciated...
 
 I'm using Orion 1.3.8 and EJB 2.0 for CMP.
 
 I have written a fairley simple stateless session bean that's 
 job is to 
 just create a particular entity bean and populate it. This 
 session bean is 
 called from a servlet.
 
 When the session bean calls create on the home interface 
 object of the 
 entity bean it wants to create, the create method seems to 
 execute properly 
 and returns null. This seems true reguardless of which of two 
 create() 
 methods I call.
 
 After the create() method returns but before the next line of code is 
 executed, Orion throws the following exception:
 
 java.lang.NullPointerException
 at 
 CrHome_EntityHomeWrapper7.hashCode(CrHome_EntityHomeWrapper7.java:127
 )
 at com.evermind.util.ExternalHashSet.get(JAX)
 at 
 CrHome_EntityHomeWrapper7.create(CrHome_EntityHomeWrapper7.java:335)
 at 
 com.regtek.slsb.CreateNewCRBean.makeNew(CreateNewCRBean.java:41)
 at 
 CreateNewCR_StatelessSessionBeanWrapper2.makeNew(CreateNewCR_Stateles
 sSessionBeanWrapper2.java:54)
 at com.regtek.protocol_servlets.MakeCR.doPost(MakeCR.java:92)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at com.evermind.server.http.d1.si(JAX)
 at com.evermind.server.http.d1.forward(JAX)
 at com.evermind.server.http.ed.sp(JAX)
 at com.evermind.server.http.ed.so(JAX)
 at com.evermind.util.f.run(JAX)
 
 Of course, I have a pile of code and descriptors, but didn't 
 want to post 
 all that. If it is necessary, I will do so. Its not that I 
 didn't want to, 
 but I'm not sure which of it is relevant to this problem and 
 posting all of 
 it would make for a very long message.
 
 If someone could give me an idea of how to solve this I would 
 appreciate 
 it. I went through the archives and saw one other posting 
 from Sep 22 from 
 someone who was having this exact problem, but I could find 
 no reply. I 
 sent that guy a note, and he wrote back telling me he gave up on it.
 
 I would post a bug in Bugzilla, but I'm not sure this is a 
 bug. It seems 
 too fundamental a problem to be a bug in Orion.
 
 Thanks very much.
 
 Jim
 
 
 
 




Re: Log Analyzers and files

2000-10-17 Thread Jochen Strunk

Hi,

the location is configured in the web-site.xml config file. For use with a 
log analyzer you also might want to change the format settings (look at the 
documentation for web-site.xml,
http://www.orionserver.com/docs/web-site.xml.html ).

regards,
jochen strunk


At 10:56 17.10.2000 -0500, you wrote:
Please forgive the Newbee question, but when you hook up a log analyzer 
package, such as WebAnalyzer or http-analyze, where in Orion is the log 
file found and what is the qualified log file name?  I'm setting up Orion 
under Solaris.




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





Re: displaying xml

2000-10-17 Thread Joseph B. Ottinger

On Tue, 17 Oct 2000, Derek Akers wrote:

 --On Tuesday, October 17, 2000 8:11 AM -0400 "Joseph B. Ottinger"
 [EMAIL PROTECTED] wrote:
 
  Although, honestly, the lack of self-starters here is rather
  annoying... "Why doesn't somebody ELSE do it" is a crappy way to go about
  development.
 
 
 Dude, honestly, thanks for your other (slightly more useful) suggestion,
 however, might I suggest that you jack it down a little bit?  Perhaps we
 should include in our judgement the possibility that one HAS tried something
 already?  That one HAS looked around, read around and asked around?  That
 is, of course, what this forum is for, yes?  I am not in the habit of asking
 without trying first, thanks.
 

Reread what I was saying; I wasn't saying "You shouldn't ask here," but I
was commenting on the "why doesn't someone else start a faq-o-matic",
despite such things being easy to set up. Maybe I'm biased; it took me
about a day or so of concentrated effort to get orionsupport up
originally, and I really didn't know much (and still don't, really.) I
figure, if I'm not that bright and I can get something up like that in
relatively short time, surely others can do the same... yet what MOST
people are settling for is "Why doesn't someone else do it?"

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





Re: Orion 1.3.8 and Servlets

2000-10-17 Thread Miles Daffin
Title: RE: Orion 1.3.8 and Servlets



Are core classes reloaded too? I have found that if 
I change  recompile utility classes used by a Servlet or JSP these are not 
updatedif they are already loaded. Servlets and JSPs are (development 
="true"). What do you mean by a 'core class'?


  - Original Message - 
  From: 
  Duffey, 
  Kevin 
  To: Orion-Interest 
  Sent: Monday, October 16, 2000 6:59 
  PM
  Subject: RE: Orion 1.3.8 and 
  Servlets
  
  Actually, in orion-web.xml (located in 
  /orion/application-deployments/app_name/web_app_name/orion-web.xml) there is a 
  setting for development..which you said. But also there is another option, 
  called source-directory="/path/dir" and when development="true" every time you 
  save the file, Orion will auto-reload your web-app for you (and I don't think 
  it shows you this in its output window..but maybe it does). I have not been 
  able to see this work, mostly because if ANY of your HttpSession objects do 
  not implement Serializable, it wont' work for some reason. Our code is jacked 
  up enough where we do not do it right. Anyways, Orion and Resin are the only 
  two servlet engines (Orion being a full J2EE app server too) that auto-reload 
  your entire app, even if you change code in a "core" class. Most app servers 
  and servlet engines reload only servlets and/or JSPs/javabeans, not core 
  classes, and so on. Just make sure when you deploy to production your turn 
  development off ("false"). In the /docs folder, look at 
  orion-web.xml.html..it will explain this to you.
  
  
-Original Message-From: Hani Suleiman 
[mailto:[EMAIL PROTECTED]]Sent: Monday, October 16, 2000 7:16 
AMTo: Orion-InterestSubject: RE: Orion 1.3.8 and 
Servlets
If you 'touch' any of the configuration files for your 
application (eg, web.xml), then Orion will reload that app. I use an ant 
build script which after installing the app, uses the touch task to force 
Orion to reload. 
-Original Message- From: 
[EMAIL PROTECTED] To: 
Orion-Interest Sent: 10/16/2000 9:48 AM 
Subject: Orion 1.3.8 and Servlets 
Guys, 
I have this small problem with my servlets.. 
whenever I make changes to them and recompile them, I have 
to restart my orion for the changes to take effect.. 
I know there is a development mode which auto 
compiles the files but I suppose that only applies 
to JSP's ? 
so what I would like to know is whether it is possible to 
compile servlets and have the changes take effect 
immediately without having to restart, kinda like 
installing a new .ear or .war file. 
sincerely, 
Arjan Wijnveen MarketXS B.V. 



Re: orionsupport.com

2000-10-17 Thread Miles Daffin

 I think better sources of information then the standard documentation is
great and very helpful for people
 using Orion. I have sometimes great difficulties getting things sorted out
to the extend I'm wondering whether
 I'm on the right track. Assuming I'm not the only one in that situation, I
guess more documentation and more
 easy to understand examples is something a lot of (potential) Orion users
will be happy with (I wish the guys
 of Orion lots of licence sales to be able to spend more resources on
better documentation).

Hear hear! Great server - pity they have so far not gone that Xtra mile.







Cookie info in access log?

2000-10-17 Thread Hani Suleiman
Title: Cookie info in access log?





Is it at all possible to have cookie info show up in access logfiles? This would help our weblogs do their magic. I've looked over the docs and don't see anything that lets me specify the cookie name I'd like logged (I know Apache provides this functionality though!)




Orion slower than it could be [WAS: Compressing the output stream]

2000-10-17 Thread Kirby, Nathaniel

We tried using Orion to host 2 servlets, one using compression one not - the
one using compression was much faster than the one without it.  I assume
this means that orion's JSP are not compressed.  

Please repsond if this is an inaccurate statement

Thanks
Nate

 -Original Message-
 From: Kirby, Nathaniel [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 16, 2000 1:30 PM
 To: Orion-Interest
 Subject: Compressing the output stream
 
 
 On jsp-interest
 [http://archives.java.sun.com/cgi-bin/wa?A2=ind9912L=jsp-inte
 restP=R11079
 ] I read
 
 ***
 
 Date: Mon, 6 Dec 1999 12:29:14 +0100
 Reply-To: Volker Turau [EMAIL PROTECTED]
 Sender:   A mailing list about Java Server Pages specification and
   reference [EMAIL PROTECTED]
 From: Volker Turau [EMAIL PROTECTED]
 /cgi-bin/wa?A2=ind9912L=jsp-interestD=0P=64939
 Subject:  Re: How to compress JSP pages using Content Encoding
 Comments: To: Kayser William [EMAIL PROTECTED]
 In-Reply-To:  [EMAIL PROTECTED]
 Content-Type: TEXT/PLAIN; charset=US-ASCII
 
 
 You can do content encoding in jsp, I did it. Just make sure 
 that the page
 does not access the implicit variable out at all (e.g do not 
 have blanks
 outside scripts).
 
 
 But I think that jsp is not the right tool to do that. The 
 JSP-Container
 should do that for you.
 
 
 The code is roughly:
 
 
 %@page .%
 response.setHeader("Content-Encoding", "gzip");
 GZIPOutputStream gos = new
 GZIPOutputStream(response.getOutputStream());
 byte[] b = "html bla bla .../html".getBytes();
 gos.write(b);
 gos.close();
 %
 
 
 volker turau
 FH Wiesbaden Fachbereich Informatik
 Tel.: +49-611-9495-205 FAX +49-611-9495-210
 http://www.informatik.fh-wiesbaden.de/~turau
 
 
  
 ==
 
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
 JSP-INTEREST".
 FAQs on JSP can be found at:
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
 
 ***
 
 Does orion do this automatically ? caus eit doesn't seem to 
 allow me to in a
 JSp (I can't assign out to a different stream).  Do I have to 
 do it in a
 servlet ?
 
 Anyone out there know ???
 
 TIA,
 Nate
 
 




Re: displaying xml

2000-10-17 Thread Miles Daffin



How about something like-a-this as well: http://www.c2.com/cgi/wiki?WikiWikiWeb

  - Original Message - 
  From: 
  Hani 
  Suleiman 
  To: Orion-Interest 
  Sent: Tuesday, October 17, 2000 2:57 
  AM
  Subject: RE: displaying xml
  
  Or 
  how about a faq-o-matic? Seems ideal for this kind of 
  thing.
  
-Original Message-From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On 
Behalf Of Porfiriev SergeySent: Monday, October 16, 2000 8:33 
PMTo: Orion-InterestSubject: Re: displaying 
xml

To Magnus  Karl Avedal:

it will be good idea to open "users contribution" topic at www.OrionServer.com
( like orionsupport was). and as result traffic 
in orion-interest will be decreased :)

- Original Message - 

  From: 
  Derek Akers 
  
  To: Orion-Interest 
  Sent: Monday, October 16, 2000 6:44 
  PM
  Subject: Re: displaying xml
  
  Hi Troy, thanks, but I've already tried. the 
  pre /pre tags do preserve the indentation of the XML, but 
  do not allow for the displaying of tags for some 
reason.


1) use xmp /xmp tags - pre 
can;'t help. 

2) use this xsl for XML parsing - ( i use it 
with Salaman's Saxon XSLT engine, but it will work under Orion default XSLT 
(xerces)) 
 it will display your XML as HTML with XML 
reformating and coloring




xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"xsl:output 
method="html" encoding="windows-1251" indent="yes"/

!-- Generic stylesheet for viewing 
XML --!-- This stylesheet has been modified to use modes instead 
of nested templates. --!-- Last Updated by Parf: moved to lotus 
xsl, main tag fix --

 xsl:template 
match="/" HTML 
xsl:apply-templates/  
/HTML /xsl:template

 xsl:template 
match="node()" xsl:if 
test="name()!='xml-stylesheet'" 
bbigxsl:textlt;/xsl:textxsl:value-of 
select="name()"/xsl:textgt;/xsl:text/big/bbr/ 
DIV STYLE="font-family:Courier; font-size:10pt; 
margin-bottom:0em" 
xsl:apply-templates mode="inside"/ 
/DIV 
bbigxsl:textlt;//xsl:textxsl:value-of 
select="name()"/xsl:textgt;/xsl:text/big/b 
/xsl:if /xsl:template

 xsl:template match="*" 
mode="inside" DIV 
STYLE="margin-left:1em" SPAN 
STYLE="color:blue" 
xsl:textlt;/xsl:text 
bxsl:value-of 
select="name()"//b 
xsl:for-each 
select="@*" 
xsl:call-template 
name="attribute"/ 
/xsl:for-each 
xsl:choose 
xsl:when 
test="self::node()" 
xsl:textgt;/xsl:text 
xsl:apply-templates 
mode="inside"/ 
xsl:textlt;//xsl:text 
xsl:value-of 
select="name()"/ 
xsl:textgt;/xsl:text 
/xsl:when 
xsl:otherwise 
xsl:text/gt;/xsl:text 
/xsl:otherwise 
/xsl:choose  
/SPAN /DIV 
/xsl:template

 xsl:template 
name="attribute" SPAN 
STYLE="color:navy" xsl:text 
/xsl:text 
xsl:value-of select="name()"/ 
xsl:text="/xsl:text 
SPAN 
STYLE="color:black" 
xsl:value-of select="."/ 
/SPAN 
xsl:text"/xsl:text 
/SPAN /xsl:template

 xsl:template 
match="comment()" mode="inside" SPAN 
STYLE="color:orange" 
xsl:textlt;!--/xsl:textxsl:value-of 
select="."/xsl:text--gt;/xsl:text 
/SPAN /xsl:template

 xsl:template 
match="processing-instruction()" mode="inside" 
DIV STYLE="margin-left:1em; 
color:maroon" 
xsl:textlt;?/xsl:text 
xsl:value-of select="name"/ 
xsl:text /xsl:text 
xsl:value-of select="."/ 
xsl:text?gt;/xsl:text 
/DIV /xsl:template

 xsl:template match="text()" 
mode="inside" SPAN 
STYLE="color:green" xsl:value-of 
select="."/ /SPAN 
/xsl:template

/xsl:stylesheet


  
- Original Message - 
From: 
Troy E. 
Echols 
To: Orion-Interest 
Sent: Monday, October 16, 2000 5:09 
PM
Subject: Re: displaying xml
Perhaps enclosing the xml in pre /pre 
will work. 
Troy Echols 
Derek Akers wrote: 

  
  Hi all... I am trying to display the 
  contents of an XML file to the screen, embedded inside a JSP 
  page. That is, I want to include a header and footer on the page 
  (for navigation purposes), with the XML in the middle. I want 
  the text to be viewable literally (tags  all), but I have been 
  unable to find a solution...I thought maybe 
  the contentType attribute of the %@ page % directive might do 
  it, but it seems not.Does anyone know of a 
  way to do this?Derek 
  AkersInternet Application Developer 
  Eldan Software, Toronto (416) 341-0070 www.eldan.com


RE: displaying xml

2000-10-17 Thread Hani Suleiman
Title: RE: displaying xml





I'd happily, gladly, and eagerly spend a day (or however long it takes) setting up Jyve (or any other J2EE compatible faq-o-matic module), if someone were willing to donate server space for it. Jyve sounds pretty decent as it's from java.apache.org (although I haven't used it at all, I'm just going by their reputation and the blurb about it on there)

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Joseph B.
 Ottinger
 Sent: Tuesday, October 17, 2000 2:50 PM
 To: Orion-Interest
 Subject: Re: displaying xml
 
 
 On Tue, 17 Oct 2000, Derek Akers wrote:
 
  --On Tuesday, October 17, 2000 8:11 AM -0400 Joseph B. Ottinger
  [EMAIL PROTECTED] wrote:
  
   Although, honestly, the lack of self-starters here is rather
   annoying... Why doesn't somebody ELSE do it is a crappy 
 way to go about
   development.
  
  
  Dude, honestly, thanks for your other (slightly more 
 useful) suggestion,
  however, might I suggest that you jack it down a little 
 bit? Perhaps we
  should include in our judgement the possibility that one 
 HAS tried something
  already? That one HAS looked around, read around and asked 
 around? That
  is, of course, what this forum is for, yes? I am not in 
 the habit of asking
  without trying first, thanks.
  
 
 Reread what I was saying; I wasn't saying You shouldn't ask 
 here, but I
 was commenting on the why doesn't someone else start a faq-o-matic,
 despite such things being easy to set up. Maybe I'm biased; it took me
 about a day or so of concentrated effort to get orionsupport up
 originally, and I really didn't know much (and still don't, really.) I
 figure, if I'm not that bright and I can get something up like that in
 relatively short time, surely others can do the same... yet what MOST
 people are settling for is Why doesn't someone else do it?
 
 ---
 Joseph B. Ottinger [EMAIL PROTECTED]
 http://cupid.suninternet.com/~joeo HOMES.COM Developer
 
 





RE: The New Java Pet Store

2000-10-17 Thread Luis M Bernardo


it's -Djsp.reuse.tags=false
maybe that's what you meant

On Mon, 16 Oct 2000, Ray Harrison wrote:

 I thought so too, but -Djsp.tags.reuse=false produces the same error.
 
 --- Mike Cannon-Brookes [EMAIL PROTECTED] wrote:
  I'm thinking it's probably the same bug as in the first pet store,
  concerning tag reuse?
  
  Search the archives, something like -Djsp.tags.reuse=false
  
  Mike
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]On Behalf Of Ray Harrison
   Sent: Monday, October 16, 2000 5:51 AM
   To: Orion-Interest
   Subject: RE: The New Java Pet Store
  
  
   They've done a bit of re-architecting. They've broken out the EJB
   jars into:
   mailerEjb.jar
   shoppingcartEjb.jar
   petstoreEjb.jar
   customerEjb.jar
   inventoryEjb.jar
  
   as examples. They've added an admin piece to it as well. Anyway -
   I've started looking at the
   error below, but haven't gotten very far. If anyone has seen this
   sort of behaviour before - let
   me know and I will focus on that area.
  
   Cheers
   Ray Harrison
  
  
  
   --- Robert Nicholson [EMAIL PROTECTED] wrote:
What new about it?
   
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Ray Harrison
 Sent: Sunday, October 15, 2000 8:20 AM
 To: Orion-Interest
 Subject: The New Java Pet Store


 Hi -
 Has anyone investigated the new java pet store (came out on
 October 11th, I believe)? I just did a
 straight deploy - here's the message I receive on "Enter the Store"...
 --
 ---
 java.lang.NullPointerException
 at
 com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.getT
 agValue(ScreenFlowXmlDAO.java:332)
 at
 com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.getS
 creens(ScreenFlowXmlDAO.java:155)
 at
 com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.load
 ScreenDefinitions(ScreenFlowXmlDAO.java:97)
 at
 com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowManager.ini
 t(ScreenFlowManager.java:52)
 at
 com.sun.j2ee.blueprints.petstore.control.web.MainServlet.getScreen
 FlowManager(MainServlet.java:96)
 at
 com.sun.j2ee.blueprints.petstore.control.web.MainServlet.init(Main
 Servlet.java:37)
 at javax.servlet.GenericServlet.init(GenericServlet.java)
 at com.evermind.server.http.HttpApplication.wt(JAX)
 at com.evermind.server.http.HttpApplication.wb(JAX)
 at com.evermind.server.http.HttpApplication.um(JAX)
 at com.evermind.server.http.ef.su(JAX)
 at com.evermind.server.http.ef.dn(JAX)
 at com.evermind.util.f.run(JAX)

 --
 ---
 Orion Version 1.4.0
 Cloudscape data source
 AND
 MS Sql Server data source (the results are the same - the sources
 have worked before
 and continue to work on the previous pet store release (1.0.1)...


 Any clues as to where to start looking? I am not THAT interested
 in getting it to work, but I am a
 bit curious

 Cheers
 Ray Harrison

 __
 Do You Yahoo!?
 Yahoo! Messenger - Talk while you surf!  It's FREE.
 http://im.yahoo.com/

   
  
  
   __
   Do You Yahoo!?
   Yahoo! Messenger - Talk while you surf!  It's FREE.
   http://im.yahoo.com/
  
  
  
  
 
 
 __
 Do You Yahoo!?
 Yahoo! Messenger - Talk while you surf!  It's FREE.
 http://im.yahoo.com/
 
 





Re: displaying xml

2000-10-17 Thread Miles Daffin

If Orion included documentation that was half as decent as their most
excellent server then perhaps the volume of confused, didn't read the
readme.txt file, newbie questions would decrease.

Where are the bird's-eye view diagrams - server architecture, topology,
relationships between xml files etc? Not that hard for a good developer to
knock up, and clearer by far than pages of liner descriptions.



 The lack of self starters? Here? You have GOT to be kidding!

 --On Tuesday, October 17, 2000 8:11 AM -0400 "Joseph B. Ottinger"
 [EMAIL PROTECTED] wrote:

  Or, of course, orionsupport.com, which I know at least two other people
  might be working on, and I'm considering reviving it myself.
 
  Although, honestly, the lack of self-starters here is rather
  annoying... "Why doesn't somebody ELSE do it" is a crappy way to go
about
  development.
 
 
  On Mon, 16 Oct 2000, Hani Suleiman wrote:
 
  Or how about a faq-o-matic? Seems ideal for this kind of thing.
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Porfiriev
  Sergey Sent: Monday, October 16, 2000 8:33 PM
  To: Orion-Interest
  Subject: Re: displaying xml
 
 
 
  To Magnus  Karl Avedal:
 
  it will be good idea to open "users contribution" topic at
  www.OrionServer.com http://www.OrionServer.com
  ( like orionsupport was). and as result traffic in orion-interest will
be
  decreased :)
 
  - Original Message -
 
  From: Derek Akers mailto:[EMAIL PROTECTED]
  To: Orion-Interest mailto:[EMAIL PROTECTED]
  Sent: Monday, October 16, 2000 6:44 PM
  Subject: Re: displaying xml
 
 
  Hi Troy, thanks, but I've already tried.  the pre /pre tags do
  preserve the indentation of the XML, but do not allow for the
displaying
  of tags for some reason.
 
 
  1) use xmp /xmp tags - pre can;'t help.
 
  2) use this xsl for XML parsing - ( i use it with Salaman's Saxon XSLT
  engine, but it will work under Orion default XSLT (xerces))
  it will display your XML as HTML with XML reformating and coloring
 
 
 
 
  xsl:stylesheet xmlns:xsl="  http://www.w3.org/1999/XSL/Transform
  http://www.w3.org/1999/XSL/Transform" version="1.0"
  xsl:output method="html" encoding="windows-1251" indent="yes"/
 
  !-- Generic stylesheet for viewing XML --
  !-- This stylesheet has been modified to use modes instead of nested
  templates. --
  !-- Last Updated by Parf: moved to lotus xsl, main tag fix --
 
xsl:template match="/"
 HTML
  xsl:apply-templates/
 /HTML
/xsl:template
 
xsl:template match="node()"
 xsl:if test="name()!='xml-stylesheet'"
  bbigxsl:textlt;/xsl:textxsl:value-of
  select="name()"/xsl:textgt;/xsl:text/big/bbr/
  DIV DEFANGED_STYLE="font-family:Courier; font-size:10pt;
  margin-bottom:0em" xsl:apply-templates mode="inside"/
  /DIV
  bbigxsl:textlt;//xsl:textxsl:value-of
  select="name()"/xsl:textgt;/xsl:text/big/b
 /xsl:if
/xsl:template
 
xsl:template match="*" mode="inside"
  DIV DEFANGED_STYLE="margin-left:1em"
SPAN DEFANGED_STYLE="color:blue"
  xsl:textlt;/xsl:text
  bxsl:value-of select="name()"//b
  xsl:for-each select="@*"
xsl:call-template name="attribute"/
  /xsl:for-each
  xsl:choose
xsl:when test="self::node()"
  xsl:textgt;/xsl:text
  xsl:apply-templates mode="inside"/
  xsl:textlt;//xsl:text
  xsl:value-of select="name()"/
  xsl:textgt;/xsl:text
/xsl:when
xsl:otherwise
  xsl:text/gt;/xsl:text
/xsl:otherwise
  /xsl:choose
/SPAN
  /DIV
/xsl:template
 
xsl:template name="attribute"
  SPAN DEFANGED_STYLE="color:navy"
xsl:text /xsl:text
xsl:value-of select="name()"/
xsl:text="/xsl:text
SPAN DEFANGED_STYLE="color:black"
  xsl:value-of select="."/
/SPAN
xsl:text"/xsl:text
  /SPAN
/xsl:template
 
xsl:template match="comment()" mode="inside"
  SPAN DEFANGED_STYLE="color:orange"
xsl:textlt;!--/xsl:textxsl:value-of
  select="."/xsl:text--gt;/xsl:text
  /SPAN
/xsl:template
 
xsl:template match="processing-instruction()" mode="inside"
  DIV DEFANGED_STYLE="margin-left:1em; color:maroon"
xsl:textlt;?/xsl:text
xsl:value-of select="name"/
xsl:text /xsl:text
xsl:value-of select="."/
xsl:text?gt;/xsl:text
  /DIV
/xsl:template
 
xsl:template match="text()" mode="inside"
  SPAN DEFANGED_STYLE="color:green"
xsl:value-of select="."/
  /SPAN
/xsl:template
 
  /xsl:stylesheet
 
 
 
  - Original Message -
  From: Troy E.  mailto:[EMAIL PROTECTED] Echols
  To: Orion-Interest mailto:[EMAIL PROTECTED]
  Sent: Monday, October 16, 2000 5:09 PM
  Subject: Re: displaying xml
 
  Perhaps enclosing the xml in pre /pre will work.
 
  Troy Echols
 
 
  Derek Akers wrote:
 
 
   Hi 

Re: EJB-EJB relationship example

2000-10-17 Thread Luis M Bernardo



I don't remember whether the atm example uses jms but orion comes with
jms. comment out the jms entry in the server.xml file.

On Mon, 16 Oct 2000, Truong Di Ly wrote:

 Hi,
 has someone a short example with EJB2 which use EJB-EJB relationship.
 The atm example doesn't run because i don't have a JMS server installed.
 Thanks, Di
 
 





Re: 2 many messages - News Server needed. - Or we could split thelist

2000-10-17 Thread Jim Archer

Actually, I think the mail list is fine. I use a filter to move these 
messages into their own folder.

However, I do feel that some improvement is possible. I recomend splitting 
the list into a few other lists. Probably the most obvious split is between 
developers using Orion and administers trying to maintain, configure and 
install it.

Jim


--On Tuesday, October 17, 2000 7:58 PM +0200 Miles Daffin 
[EMAIL PROTECTED] wrote:


 Hi Folks,

 I have not picked up my email for 2 days and have just downloaded 108
 Orion-Interest messages. Imagine what would have happened if I had left
 this job until Friday.

 I think it is time to turn this thing into a news group. It would also
 make it easier to see, follow, save   contribute to separate threads. In
 fact I cannot see a reason not to do this.

 Maybe you can.

 --
 Miles Daffin
 Java Developer

 HOT Company BV
 Mathernesserlaan 171
 3014 HA Rotterdam

 Land: +31 (0) 10 476 2500
 Fax: +31 (0) 10 476 5762
 Mobile: +31 (0) 2959 1423
 http://www.hotobjects.nl








unicode parameters[2]

2000-10-17 Thread Savotchkin Egor


Hi all!
I have problem handling unicode strings in the form of %u (from javascript's 
escape function).
Say url is: http://localhost/foo/foo.jsp?param=%u0455p=%0020
in the jsp we have:
QueryString=param=%u0455p=%0020
so far so good, but getParameterValues returns:
name=p; value=20
name=param; value=455
Which is not correct.Could Orion handle %u unicode strings? Seems its an 
getParameterValues implementation error!
Help!!
 
Egor Savotchkin






Orion under Solaris

2000-10-17 Thread Kemp Randy-W18971

Can the Orion server processes be run as someone other then root (under Solaris) and 
how?




Orion Success

2000-10-17 Thread David Kenzik

I posted a question related to this yesterday. I might not have been vague
enough to trigger a response, so I'll rephrase:

Is anyone succesfulling using the Tunnel servlet in an application
configuration to retrieve content from another source? 

Thanks for the time.

-- 
David S. Kenzik
[EMAIL PROTECTED] - http://kenzik.com
Original Music - http://mp3.com/text




Re: EJB-EJB relationship example

2000-10-17 Thread Jim Archer

FYI, the Orion EJB 2.0 ATM example does use JMS. It uses a MessageDriven 
bean to implement loogging.

--On Tuesday, October 17, 2000 12:24 PM -0700 Luis M Bernardo 
[EMAIL PROTECTED] wrote:



 I don't remember whether the atm example uses jms but orion comes with
 jms. comment out the jms entry in the server.xml file.

 On Mon, 16 Oct 2000, Truong Di Ly wrote:

 Hi,
 has someone a short example with EJB2 which use EJB-EJB relationship.
 The atm example doesn't run because i don't have a JMS server installed.
 Thanks, Di











RE: Please help! I get null pointer exception after calling createonan EB with EJB 2.0 CMP Orion 1.3.8...

2000-10-17 Thread Jim Archer

OK, here is the code and deployment descriptor. I apologize that there is a 
lot here, but I have included one entity bean, a session bean that creates 
this entity bean, and the deployment descriptor.

Eventually I am planning to move all the address information into a 
dependant object, but heck, I have to get create working first ;-)

Thanks VERY much!

Jim


// CrHome.java

package com.regtek.eb20;

import java.rmi.RemoteException;
import java.util.*;
import javax.ejb.CreateException;
import javax.ejb.EJBHome;
import javax.ejb.FinderException;

import com.regtek.types.RegnetCR;
import com.regtek.types.RegnetTag;

public interface CrHome extends EJBHome {
Cr create()
   throws CreateException, RemoteException;

Cr create(RegnetCR cr)
   throws CreateException, RemoteException;

Cr findByPrimaryKey(RegnetTag primaryKey)
   throws FinderException, RemoteException;

Collection findByLastname(String lastname)
   throws FinderException, RemoteException;

Collection findByFullName(String lastname, String firstname)
   throws FinderException, RemoteException;

Collection findByEmail(String email)
   throws FinderException, RemoteException;

Collection findByPhone(String phone)
   throws FinderException, RemoteException;

Collection findAll()
   throws FinderException, RemoteException;
}


//-
---

// CrEJB.java
// Cr EJB 2.0 Entity Bean

package com.regtek.eb20;

import java.rmi.RemoteException;

import java.sql.*;
import java.util.Enumeration;
import java.util.Vector;
import java.util.Date;

import javax.ejb.*;
import javax.naming.*;
import javax.sql.DataSource;
import javax.transaction.*;

import com.regtek.types.RegnetCR;
import com.regtek.types.RegnetTag;

public abstract class CrEJB implements EntityBean {

protected EntityContext ejbContext;

public void setEntityContext(EntityContext ctx) {
  ejbContext = ctx;
}

public void unsetEntityContext() {
   ejbContext = null;
}

public void ejbRemove() throws RemoveException {
}

public void ejbLoad() {
}

public void ejbStore() {
}

public void ejbPostCreate() throws CreateException {
}

//public void ejbPostCreate(RegnetTag tag) throws CreateException {
//}

public void ejbPostCreate(RegnetCR cr) throws CreateException {
}

// 
public RegnetTag ejbCreate() {
trace("ejbCreate() entered");

initToNull();

  trace("ejbCreate() entered");

  // In CMP, should return null.
  return null;
}

// 
public RegnetTag ejbCreate(RegnetCR cr)
   throws CreateException {

trace("ejbCreate(RegnetCR cr) entered");

initToNull();

if(cr == null)
return null;

  setTag(cr.getTag());

  setLastName(cr.getLastName());
  setFirstName(cr.getFirstName());
  setMiddleInitial(cr.getMiddleInitial());

  setAddr1(cr.getAddr1());
  setAddr2(cr.getAddr2());
  setAddr3(cr.getAddr3());
  setCity(cr.getCity());
  setState(cr.getState());
  setPostalCode(cr.getPostalCode());
  setCountryCode(cr.getCountryCode());
  setPhone(cr.getPhone());
  setFax(cr.getFax());
  setEmail(cr.getEmail());

  Date now = new Date();

  setDateAdded(now);
  setDateLastMod(now);

  trace("ejbCreate(RegnetCR cr) exiting");


  // In CMP, should return null.
  return null;
}

// 
public void ejbPassivate() {}
public void ejbActivate() {}

// 
private void initToNull()
{
trace("initToNull() entered");

setTag(null);
setFirstName(null);
setLastName(null);
setMiddleInitial(null);
setAddr1(null);
setAddr2(null);
setAddr3(null);
setCity(null);
setState(null);
setPostalCode(null);
setCountryCode(null);
setPhone(null);
setFax(null);
setEmail(null);
setDateAdded(null);
setDateLastMod(null);

trace("initToNull() exiting");
}

// -
private void trace(String text)
{
java.util.Date now = new java.util.Date();
System.out.println("EB CrEJB: " + now + 

RE: 2 many messages - News Server needed.

2000-10-17 Thread Colin Jacobs



Hear 
hear - I just signed on to the list, and while I am almost insatiably 
hungryfor information on this spiffy product, the list needs to be split, 
newsgrouped, or moved to a threaded discussion board to be more useful. Maybe 
orionsupport.com would be the place for this?

Colin

  -Original Message-From: Miles Daffin 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, October 17, 2000 10:58 
  AMTo: Orion-InterestCc: 
  [EMAIL PROTECTED]Subject: 2 many messages - News Server 
  needed.
  Hi Folks,
  
  I have not picked up my email for 2 days and have 
  just downloaded 108 Orion-Interest messages. Imagine what 
  would have happened if I had left this job until Friday.
  
  I think it is time to turn this thing into a news 
  group. It would also make it easier to see,follow, save  
  contribute to separate threads. In fact I cannot see a reason not to do 
  this.
  
  Maybe you can.
  --Miles DaffinJava 
  DeveloperHOT Company BV Mathernesserlaan 171 3014 
  HA Rotterdam
  
  Land: +31 (0) 10 476 2500Fax: +31 (0) 10 476 
  5762Mobile: +31 (0) 2959 1423http://www.hotobjects.nl


RE: Orion under Solaris

2000-10-17 Thread Rick Bos

We run orion under a user account where it was installed.

We unzipped the orion.zip as the user, then run it using
java -jar orion.jar.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kemp
Randy-W18971
Sent: Tuesday, October 17, 2000 4:43 PM
To: Orion-Interest
Subject: Orion under Solaris


Can the Orion server processes be run as someone other then root (under
Solaris) and how?





Re: Orion under Solaris

2000-10-17 Thread Joel Schneider

It should be possible, under Solaris, to run Orion on a non-privileged
port as someone other than root and redirect traffic from privileged ports
(80, 443) to Orion using ipfilter:

http://coombs.anu.edu.au/ipfilter/

On Tue, 17 Oct 2000, Kemp Randy-W18971 wrote:
 Can the Orion server processes be run as someone other then root (under
 Solaris) and how?





Tunnel Solution (was Re: Orion Success)

2000-10-17 Thread David Kenzik

I will respond to myself. 

After upgrading to JDK 1.3 from 1.2.2, the Tunnel servlet provided works
properly. Perhaps this requisite should be listed in a FAQ somewhere, as
this is a common configuration item for the new user.

I hope this information helps someone.

  David Kenzik said...

  Is anyone succesfulling using the Tunnel servlet in an application
  configuration to retrieve content from another source? 

-- 
David S. Kenzik
[EMAIL PROTECTED] - http://kenzik.com
Original Music - http://mp3.com/text




Re: Orion under Solaris

2000-10-17 Thread Sach Jobb

Yes, there was a huge discussion on this recently, please check the list
archives.

thanks,
sach


On Tue, 17 Oct 2000, Kemp Randy-W18971 wrote:

 Can the Orion server processes be run as someone other then root (under Solaris) and 
how?
 





RE: Orion under Solaris

2000-10-17 Thread Chris Woods

This does not permit it to run on any port  1024 on unix, though,
and the default for orion is 80, if I'm not mistaken.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Rick Bos
Sent: Tuesday, 17 October, 2000 18:20
To: Orion-Interest
Subject: RE: Orion under Solaris


We run orion under a user account where it was installed.

We unzipped the orion.zip as the user, then run it using
java -jar orion.jar.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kemp
Randy-W18971
Sent: Tuesday, October 17, 2000 4:43 PM
To: Orion-Interest
Subject: Orion under Solaris


Can the Orion server processes be run as someone other then root (under
Solaris) and how?







Re: Orion Success

2000-10-17 Thread Porfiriev Sergey

Yes, i've done old_application asp processing this way
All graphics/*.js/*.css keeped in Orion structure, and only asp works at
standalone server.

- Original Message -
From: "David Kenzik" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Tuesday, October 17, 2000 4:48 PM
Subject: Orion Success


 I posted a question related to this yesterday. I might not have been vague
 enough to trigger a response, so I'll rephrase:

 Is anyone succesfulling using the Tunnel servlet in an application
 configuration to retrieve content from another source?

 Thanks for the time.

 --
 David S. Kenzik
 [EMAIL PROTECTED] - http://kenzik.com
 Original Music - http://mp3.com/text





Re: Orion under Solaris

2000-10-17 Thread Al Fogleson

But that is just a matter of changing the configuration to a port above
1024. .

Al

- Original Message -
From: "Chris Woods" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Tuesday, October 17, 2000 10:11 PM
Subject: RE: Orion under Solaris


 This does not permit it to run on any port  1024 on unix, though,
 and the default for orion is 80, if I'm not mistaken.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Rick Bos
 Sent: Tuesday, 17 October, 2000 18:20
 To: Orion-Interest
 Subject: RE: Orion under Solaris


 We run orion under a user account where it was installed.

 We unzipped the orion.zip as the user, then run it using
 java -jar orion.jar.



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Kemp
 Randy-W18971
 Sent: Tuesday, October 17, 2000 4:43 PM
 To: Orion-Interest
 Subject: Orion under Solaris


 Can the Orion server processes be run as someone other then root (under
 Solaris) and how?









Re:Orion slower than...

2000-10-17 Thread Santosh Kumar

Hi Nate,
 Do you have some figures to look at?
I mean, How much was the improvement in speed? What is the size of the
content file?
Did you try out with various content sizes?

Santosh

- Original Message -
From: Kirby, Nathaniel [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Wednesday, October 18, 2000 12:32 AM
Subject: Orion slower than it could be [WAS: Compressing the output stream]


 We tried using Orion to host 2 servlets, one using compression one not -
the
 one using compression was much faster than the one without it.  I assume
 this means that orion's JSP are not compressed.

 Please repsond if this is an inaccurate statement

 Thanks
 Nate

  -Original Message-
  From: Kirby, Nathaniel [mailto:[EMAIL PROTECTED]]
  Sent: Monday, October 16, 2000 1:30 PM
  To: Orion-Interest
  Subject: Compressing the output stream
 
 
  On jsp-interest
  [http://archives.java.sun.com/cgi-bin/wa?A2=ind9912L=jsp-inte
  restP=R11079
  ] I read
 
  ***
 
  Date: Mon, 6 Dec 1999 12:29:14 +0100
  Reply-To: Volker Turau [EMAIL PROTECTED]
  Sender:   A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
  From: Volker Turau [EMAIL PROTECTED]
  /cgi-bin/wa?A2=ind9912L=jsp-interestD=0P=64939
  Subject:  Re: How to compress JSP pages using Content Encoding
  Comments: To: Kayser William [EMAIL PROTECTED]
  In-Reply-To:  [EMAIL PROTECTED]
  Content-Type: TEXT/PLAIN; charset=US-ASCII
 
 
  You can do content encoding in jsp, I did it. Just make sure
  that the page
  does not access the implicit variable out at all (e.g do not
  have blanks
  outside scripts).
 
 
  But I think that jsp is not the right tool to do that. The
  JSP-Container
  should do that for you.
 
 
  The code is roughly:
 
 
  %@page .%
  response.setHeader("Content-Encoding", "gzip");
  GZIPOutputStream gos = new
  GZIPOutputStream(response.getOutputStream());
  byte[] b = "html bla bla .../html".getBytes();
  gos.write(b);
  gos.close();
  %
 
 
  volker turau
  FH Wiesbaden Fachbereich Informatik
  Tel.: +49-611-9495-205 FAX +49-611-9495-210
  http://www.informatik.fh-wiesbaden.de/~turau
 
 
 
  ==
  
  To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
  JSP-INTEREST".
  FAQs on JSP can be found at:
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.html
 
  ***
 
  Does orion do this automatically ? caus eit doesn't seem to
  allow me to in a
  JSp (I can't assign out to a different stream).  Do I have to
  do it in a
  servlet ?
 
  Anyone out there know ???
 
  TIA,
  Nate