How do i get off this list?

2002-04-29 Thread Mark Porter

I've tried the form at orionserver.com to no avail ...


mark

__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com




Re: how to shutdown orion app server?

2002-04-29 Thread Mark Kettner

Hi Liu,

Did you run

orion -install

when you installed orion (or changed admin password in principals.xml)?
This username/password should correspond with the username/password from
the jndi.properties file of the client application

Mark

On Sun, 2002-04-28 at 13:02, Liu Bin wrote:
> Hi,
> I writed one EJB and deployed it successful on Orion 1.5.4. But i get
the Exception when i test it used one client application:
> javax.naming.AuthenticationException: Invalid username/password for
default (admin)
> at com.evermind._dn._mu(.:2173)
> at com.evermind._dn._mu(.:2009)
> at com.evermind._dn._es(.:1590)
> at com.evermind._bp._es(.:357)
> at com.evermind.server.rmi.RMIContext.lookup(.:106)
> at javax.naming.InitialContext.lookup(InitialContext.java:347)
> at ejbtest.Test1.main(Test1.java:24)
> code:
> Properties p = new Properties();
>   p.put(Context.INITIAL_CONTEXT_FACTORY,
"com.evermind.server.rmi.RMIInitialContextFactory");
>   p.put(Context.PROVIDER_URL, "ormi://211.167.71.60:23791");
>   p.put(Context.SECURITY_PRINCIPAL, "admin");
>   p.put(Context.SECURITY_CREDENTIALS, "123");
>   
>   try {
>Context ctx = new InitialContext(p);
>OrganizationsHome home =
(OrganizationsHome)ctx.lookup("ejb/OrgOrganizations");
>Organizations remote = (Organizations)home.create();
>   } catch (Exception ex) {
>ex.printStackTrace();
>   }
> help me!

-- 
--o-o--
Mark Kettner
http://www.fredhopper.com
Amsterdam, The Netherlands
Phone:  +31 20 3206203 Mobile: +31 620 609 817
fax:+31 20 8848747
E-mail: [EMAIL PROTECTED], [EMAIL PROTECTED]






global servlet initialization parameters?

2002-02-18 Thread Mark Weaver



is there any way to specify inititialization 
parameters in orion so that 2-3 different related web applications can all 
access them with ServletConfig.getInitParameter() or 
ServletContext.getInitParamter()? tomcat appears to allow this through the use 
of a default context, but i can't make orion do it. or is it just a bad, 
non-portable idea in the first place?
-mw


Re: SMTP Services for Orion?

2002-01-25 Thread Mark A. Richman



To answer my own question, and ask yet 
another
 
I got James (http://jakarta.apache.org/james/) 
installed and working. Is there any way to host James from within Orion? It 
would be nice to have all this functionality in a single JVM.
 
- Mark
 

  - Original Message - 
  From: 
  Mark A. 
  Richman 
  To: Orion-Interest 
  Sent: Friday, January 25, 2002 10:42 
  AM
  Subject: SMTP Services for Orion?
  
  Is there any way to add SMTP services to Orion? I 
  am hosting a site, and I need the ability to route incoming email. For 
  example, for all incoming email to *@mysite.com, forward to [EMAIL PROTECTED].
   
  Thanks,
  Mark
   


SMTP Services for Orion?

2002-01-25 Thread Mark A. Richman



Is there any way to add SMTP services to Orion? I 
am hosting a site, and I need the ability to route incoming email. For example, 
for all incoming email to *@mysite.com, 
forward to [EMAIL PROTECTED].
 
Thanks,
Mark
 


MQSeries MDB Sample

2002-01-16 Thread Kaseman, Mark T

I wanted to write an MVS Batch COBOL program that updates an MVS
(OS/390) MQSeries queue and have it trigger a MDB on an Orion server. To do
this, my MVS MQSeries has a remote queue definition pointing to an NT Server
running MQSeries and Orion 1.5.2.

Next I followed the Resource Providers documentation on
www.orionserver.com and used the ContextScanningResourceProvider without any
changes to be my MQSeries resource provider. I compiled this class and
created a jar file, which I added to Orion/Lib, along with the various IBM
MQSeries jars and the Sun JNDI File System provider jars.

I then made the necessary Orion xml file updates and to my amazement
it works. I can update an MVS MQSeries queue and have it trigger a Orion MDB
on an NT server.

The zip file contains all source code.


 <> 

Below is the sample output from the Orion DOS prompt. I tried
writting to the MDB queue via a jsp => servlet => SLSB  and from an MVS
Batch COBOL program.



Auto-unpacking C:\TEMP\orion\applications\mdb-orion.ear... done.
Auto-unpacking C:\TEMP\orion\applications\mdb-orion\mdb-orion-web.war...
done.
Auto-deploying mdb-orion-web (Assembly had been updated)...
Auto-deploying mdb-orion-ejb.jar (ejb-jar.xml had been touched since the
previou
s deployment)... done.
Orion/1.5.2 initialized
Auto-deploying ejb - servlet mdb test (Assembly had been updated)...
SampleBeanSLSB: message => msg via jsp to servlet
InitialDirContext ctx done: javax.naming.InitialContext@470b0d
ctx QCF done: com.ibm.mq.jms.MQQueueConnectionFactory@bd614064
queueFactory.createQueueConnection() done:
com.ibm.mq.jms.MQQueueConnection@3ef361
queueConnection.createQueueSession() done:
(Queue)ctx.lookup() done:
queueSession.createSender(queue) done:
queueSession.createTextMessage() done:
message.setText(msg) done:
queueSender.send(queue, message) done:
Bean got message: msg via jsp to servlet
queueConnection.close() done:
Bean got message: TEST MVS-TO-NT TALKING




mdb_orion_jms.ZIP
Description: Binary data


Name-based Virtual Hosts

2002-01-10 Thread Mark A. Richman








How can I configure name-based virtual hosts (vhosts) in
Orion? I have one IP address that I need to host multiple domains on.

 

Thanks,

Mark A. Richman

http://www.markrichman.com

 








JNDI problems

2002-01-03 Thread Angus Mark

Dear all,

I have just tried deploying a new application-client inside an ear. The
app-client has one env-entry inside application-client.xml, like so:


http://java.sun.com/j2ee/dtds/application-client_1_2.dtd";>


portNumber
java.lang.Integer
2020



The application is included in the ear as a module like so:

http://java.sun.com/j2ee/dtds/application_1_2.dtd";>


   games

games-ejb.jar


appclients.jar

 

and I have added to
orion-application.xml. 
The manifest in the client jar specifies the Main-Class.

I also have jndi.properties in the application client jar with this in it:
java.naming.factory.initial=com.evermind.server.ApplicationClientInitialCont
extFactory
java.naming.provider.url=ormi://localhost/games
java.naming.security.principal=admin
java.naming.security.credentials=123abc

All this works and I see the following message in the console:
Auto-starting appclients.jar...
Listening on
ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=2020]

The problem is that when I try and retrieve the env-entry from the
initialcontext
like so 
InitialContext jndiContext = new InitialContext();
Integer portNumber = (Integer)
jndiContext.lookup("java:comp/env/portNumber");
I get the following message:
javax.naming.NotContextException: comp is not a subcontext
at tyrex.naming.EnvContext.internalLookup(EnvContext.java, Compiled
Code)
at tyrex.naming.EnvContext.lookup(EnvContext.java:212)
at tyrex.naming.java.JavaContext.lookup(JavaContext.java:147)
at javax.naming.InitialContext.lookup(InitialContext.java:354)
at afm.utils.socket.SocketServer.main(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind._fn.run(., Compiled Code)
at com.evermind._bs.run(., Compiled Code)

I'm running orion 1.5.3 on Windows NT, with jdk 1.3.

Any ideas, observations, etc are really welcome!






RE: Message Driven Beans

2001-11-15 Thread Kaseman, Mark T

I have tried searching the mail archives on www.orionserver.com and at
www.atlassian.com for details on making mqseries work with orion, but I
can't seem to find any details.

-Original Message-
From: Scott Farquhar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 9:30 PM
To: Orion-Interest
Subject: Re: Message Driven Beans


Jeff,

You can setup Orion to use another JMS provider if you want to use 
another JMS provider such as Sonic MQ or MQ Series.

This allows you to have the speed and flexibility of Orion for EJB & Web 
(where it excels), and the reliability of a 3rd party JMS provider.

We have clients who have this setup, and are quite happy with it.

Cheers,
Scott

-- 
Scott Farquhar :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
  Supporting YOUR J2EE World


El Jeffo wrote:

> I must have totally missed it, does orion or will orion support 
> message driven beans soon?  If so, could you provide a few details
> to just point me in the right direction?
> 
> If orion won't support this in the next month, would you recommend
> another server which might do the job well? 
> 
> I like orion for its simplicity, but sometimes I need more 
> bleeding edge stuff too.
> 
> Jeff
> 
> 
> 






Re: starting orion application server

2001-10-09 Thread Mark Bernardinis

i actually spelled mine "persistence" and it worked. i had the same problem
when i first installed on a win32 system and i just created the directory
and it worked upon loading up the second time. the file that is called
transaction.state does not need to be created (in my instance). i am using
jdk1.3 from sun on a windows 98 machine. just give it a try and create the
directory with that spelling i gave you and see how it goes (it can't hurt
:-) hope all goes well.

mark

- Original Message -
From: "yilmaz" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Tuesday, October 09, 2001 4:46 PM
Subject: Re: starting orion application server


> though in my last email i misspelled it , the directory name i created is
> correct (persistance, right?)
> cheers...
> - Original Message -
> From: "Mark Bernardinis" <[EMAIL PROTECTED]>
> To: "Orion-Interest" <[EMAIL PROTECTED]>
> Sent: Tuesday, October 09, 2001 7:02 AM
> Subject: Re: starting orion application server
>
>
> > have you spelled persistance right???
> >
> > > hi E.W!
> > > thanks for your reply, but it seems you didn't receive my last
> > > message. i am on win 2000, and i used winzip to unpack orion package.
> > > tools.jar is already in c:\orion directory and i already created a
> > > persistence directory, but everysthing is still same. What can be
> > > wrong, where am i mistaken? Can you help me with this?
> > > thank you very much for taking time and for your concern.
> > > best regards :)
> > > - Original Message -
> > > From: "The elephantwalker" <[EMAIL PROTECTED]>
> > > To: "Orion-Interest" <[EMAIL PROTECTED]>
> > > Sent: Monday, October 08, 2001 12:14 PM
> > > Subject: RE: starting orion application server
> > >
> > >
> > >> Dear Yilmaz,
> > >>
> > >> I have seen this problem before in linux. If you used jar to unzip
> > >> the
> > > Orion distribution, the directories created did not have the bit set
> > > for each orion directory. This prevents Orion from creating files in
> > > these directories. You need to do a chmod +d to all of these
> > > directories, and their sub directories. Its a pain in the arse (excuse
> > > my old english), but so it goes.
> > >>
> > >> Regards,
> > >>
> > >> the elephantwalker
> > >> www.elephantwalker.com
> > >>
> > >> -Original Message-
> > >> From: [EMAIL PROTECTED]
> > >> [mailto:[EMAIL PROTECTED]]On Behalf Of yilmaz
> > >> Sent: Sunday, October 07, 2001 6:44 PM
> > >> To: Orion-Interest
> > >> Subject: Re: starting orion application server
> > >>
> > >>
> > >> hi Steve,
> > >> thanks for your kind reply.
> > >> I created the persistance directory, but the error is still
> > >> persisting :) ( i already copied the tools.jar into the orion home
> > >> directory, and i am using sun's jdk1.3.1 )
> > >> below is the log file i tried to start it up:
> > >>
> > >> 2001/10/8 ä¸Så^ 9:41 1.5.2 Started
> > >> 2001/10/8 ä¸Så^ 9:41 1.5.2 Stopped (JVM termination)
> > >>
> > >> i am having the same error message saying that
> > >> (persistance/transaction.state) doesn't exist.Obviously it can't find
> > >> the transaction.state file. How should i create it , or do you have a
> > >> sample
> > > one
> > >> so that i can configure according to my environment.Thanks in
> > >> advance. cheers :)
> > >> - Original Message -
> > >> From: "Stephen Davidson" <[EMAIL PROTECTED]>
> > >> To: "Orion-Interest" <[EMAIL PROTECTED]>
> > >> Sent: Saturday, October 06, 2001 11:05 PM
> > >> Subject: Re: Orion-Interest subscription notification
> > >>
> > >>
> > >> > Hi Yilmaz.
> > >> >
> > >> > You are obviously new here, or you would know that you do not need
> > >> > to threaten in order to get help.
> > >> >
> > >> > On the topic of the persitance directory, there is an issue where
> > >> > this directory is not created automatically under WinNT/Win2K.  So
> > >> > you have to create it manually yourself.  You do NOT need to put
> > >> > the orion directory i

Re: starting orion application server

2001-10-08 Thread Mark Bernardinis

have you spelled persistance right???

> hi E.W!
> thanks for your reply, but it seems you didn't receive my last
> message. i am on win 2000, and i used winzip to unpack orion package.
> tools.jar is already in c:\orion directory and i already created a
> persistence directory, but everysthing is still same. What can be
> wrong, where am i mistaken? Can you help me with this?
> thank you very much for taking time and for your concern.
> best regards :)
> - Original Message -
> From: "The elephantwalker" <[EMAIL PROTECTED]>
> To: "Orion-Interest" <[EMAIL PROTECTED]>
> Sent: Monday, October 08, 2001 12:14 PM
> Subject: RE: starting orion application server
> 
> 
>> Dear Yilmaz,
>>
>> I have seen this problem before in linux. If you used jar to unzip
>> the
> Orion distribution, the directories created did not have the bit set
> for each orion directory. This prevents Orion from creating files in
> these directories. You need to do a chmod +d to all of these
> directories, and their sub directories. Its a pain in the arse (excuse
> my old english), but so it goes.
>>
>> Regards,
>>
>> the elephantwalker
>> www.elephantwalker.com
>>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED]]On Behalf Of yilmaz
>> Sent: Sunday, October 07, 2001 6:44 PM
>> To: Orion-Interest
>> Subject: Re: starting orion application server
>>
>>
>> hi Steve,
>> thanks for your kind reply.
>> I created the persistance directory, but the error is still
>> persisting :) ( i already copied the tools.jar into the orion home
>> directory, and i am using sun's jdk1.3.1 )
>> below is the log file i tried to start it up:
>>
>> 2001/10/8 上午 9:41 1.5.2 Started
>> 2001/10/8 上午 9:41 1.5.2 Stopped (JVM termination)
>>
>> i am having the same error message saying that
>> (persistance/transaction.state) doesn't exist.Obviously it can't find
>> the transaction.state file. How should i create it , or do you have a
>> sample
> one
>> so that i can configure according to my environment.Thanks in
>> advance. cheers :)
>> - Original Message -
>> From: "Stephen Davidson" <[EMAIL PROTECTED]>
>> To: "Orion-Interest" <[EMAIL PROTECTED]>
>> Sent: Saturday, October 06, 2001 11:05 PM
>> Subject: Re: Orion-Interest subscription notification
>>
>>
>> > Hi Yilmaz.
>> >
>> > You are obviously new here, or you would know that you do not need
>> > to threaten in order to get help.
>> >
>> > On the topic of the persitance directory, there is an issue where
>> > this directory is not created automatically under WinNT/Win2K.  So
>> > you have to create it manually yourself.  You do NOT need to put
>> > the orion directory into your classpath.
>> >
>> > The following command issued in the orion directory should fix your
>> > issue with the transaction.state file.
>> >
>> > C:\orion>mkdir persistance
>> >
>> > I know about this because one of the developers on my team ran into
>> > this issue yesterday when setting up Orion on his Win2K box.
>> >
>> > If you have not done so already, you also need to copy the
>> > tools.jar file from your jdk directory into your c:\orion
>> > directory.
>> >
>> > FYI, our testing has indicated that orion works best on Bea's JDK,
>> > Sun's JDK, or IBM's Hotspot JDK.  On Microsoft's JVM, we sometimes
>> > get for no apparent reason some rather funky errors that go away
>> > when we switch JVM's.
>> >
>> > Regards,
>> > Steve
>> >
>> >
>> > yilmaz wrote:
>> > >
>> > > hi guys,
>> > > i am new to orion,
>> > > i already downloaded orion application server, and unzipped under
>> c:\orion
>> > > directory.
>> > > according to instructions i also put the tools.jar under c:\orion
>> > > Next on command window , i ran  java -jar orion.jar -install
>> > > which prompted me to enter a password, and it said installation
>> > > was
> done
>> > > though i was surprised to  finish so fast,  i tried running orion
>> > > by java -jar orion.jar
>> > > as i expected it didn't start , but gave me the following strange
> error:
>> > >
>> > > C:\orion>java -jar orion.jar
>> > > Fatal Error: Transaction log file
>> (/C:/orion/persistence/transaction.state)
>> > > did
>> > > not exist and was not possible to create, the most common reason
>> > > for
>> this is
>> > > an
>> > > invalid path or Orion lacking security to write to that path:
>> > > /C:/orion/persiste
>> > > nce/transaction.state
>> > > (系統æ?¾ä¸?å^°æ??å®sçs?è·¯å¾?ã?,) (the
> last
>> part
>> of the message
>> > > says
>> > > system couldn't find the path in chinese).
>> > > can someone help me please with this,
>> > > so far i have used tomacat3, tomcat 4, jsdk, etc..
>> > > i have never seen this kind of strange problem, and i don't have
>> > > any
>> idea
>> > > how to solve it
>> > > i tried several methods in vain.
>> > > i put c:\orion in my path, it didn't help
>> > > please give me some help, ( before i decide to switch to another
>> > > one) thanks for your concern
>> > > cheers :)
>> >
>> > --
>> > Stephen Da

Re: Orion-Interest subscription notification

2001-10-06 Thread Mark Bernardinis

you have to create that directory and then you can reattempt to start orion
again. this is just a simple little big that isn't too much trouble to
workaround.

mark

- Original Message -
From: "yilmaz" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Saturday, October 06, 2001 7:38 PM
Subject: Orion-Interest subscription notification


> hi guys,
> i am new to orion,
> i already downloaded orion application server, and unzipped under c:\orion
> directory.
> according to instructions i also put the tools.jar under c:\orion
> Next on command window , i ran  java -jar orion.jar -install
> which prompted me to enter a password, and it said installation was done
> though i was surprised to  finish so fast,  i tried running orion by
> java -jar orion.jar
> as i expected it didn't start , but gave me the following strange error:
>
> C:\orion>java -jar orion.jar
> Fatal Error: Transaction log file
(/C:/orion/persistence/transaction.state)
> did
> not exist and was not possible to create, the most common reason for this
is
> an
> invalid path or Orion lacking security to write to that path:
> /C:/orion/persiste
> nce/transaction.state (系統找不到指定的路徑。) (the last part of the 
>message
> says
> system couldn't find the path in chinese).
> can someone help me please with this,
> so far i have used tomacat3, tomcat 4, jsdk, etc..
> i have never seen this kind of strange problem, and i don't have any idea
> how to solve it
> i tried several methods in vain.
> i put c:\orion in my path, it didn't help
> please give me some help, ( before i decide to switch to another one)
> thanks for your concern
> cheers :)
>
>
>
>





UNSUSCRIBE

2001-09-11 Thread Mark Brennan


- Original Message -
From: "Vinay Khandelwal" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Saturday, September 08, 2001 5:46 AM
Subject: UNSUSCRIBE


>
>
>
> __
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo!
Messenger
> http://im.yahoo.com
>





xerces conflict (and a hack solution).

2001-07-03 Thread Mark Kettner

:Hello all,

In our web application we use an old version of xerces. We deploy the 
application with xerces.jar in the
WEB-INF/lib directory.
However, when the application is started we get the error:

java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
   at 
org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:118)
   at 
com.fredhopper.frob.question.QuestionManager.loadQuestions(QuestionManager.java:163)
   at 
com.fredhopper.frob.question.QuestionManager.loadQuestions(QuestionManager.java:78)
   at com.fredhopper.frob.FredEngine.init(FredEngine.java:373)
   at com.fredhopper.frob.FredEngine.startingUp(FredEngine.java:138)
   at 
com.fredhopper.jsp.Bridge$EngineInServletContainer.fredhopper(Bridge.java:837)
   at 
com.fredhopper.jsp.Bridge$EngineInServletContainer.run(Bridge.java:779)

A bit cryptic, because SAXParser is in fact available twice (once in our 
application and once in the
'global' orion space).

A solution is:
1) Move the following jars:
   crimson.jar
   jaxp.jar
   parser.jar
   xalan.jar
2) Move our own xerces.jar in orion home directory
2) Start orion as follows:
java -Xbootclasspath/a:xerces.jar -jar orion.jar

This is not a real solution, because we also had to remove the encoding 
attribute out of the application.xml and web.xml. And this should then 
be done for every application you deploy on the application server.

Shouldn't it be that when the application server looks for a class, it 
first looks in the classes directory of that web application, then in 
the lib directory of the web application and if it still can't resolve 
the class it looks in the global space (not a good idea, since this 
depends on which application server you use, but trade of to save memory 
usage)?
So is this a bug in orion, or are we doing something wrong here?

Mark

-- 
--o-o--
Mark Kettner
http://www.fredhopper.com
Amsterdam, The Netherlands
Phone:  +31 20 3206203 Mobile: +31 620 609 817
fax:+31 20 8848747
E-mail: [EMAIL PROTECTED], [EMAIL PROTECTED]





Orion hanging during autodeployment of ejb.jar

2001-06-28 Thread Angus Mark

I'm just trying to deploy the news (news.ear) application on a Solaris box
with jdk1.2

've had Orion running without any ejb-applications (ie: just with the
default web app) without any problems on the same box.

However, when I try and deploy any ears it fails when it gets to the
"auto-deploying XXX-ejb.jar (No complete previous deployment found) ..."

It never gets past this stage 

I've tried Orion 1.5.2 and Orion 1.4.7 

I've configured Orion to use the Jikes compiler version 1.12 (set in
server.xml and I've checked the path and the classpath) - however, what's
really weird is if I deliberately put in the wrong path to the Jikes
compiler and then do java - jar orion.jar it does not throw an IO error,
like it normally does.

I've got Orion running on 5 different boxes w'out problems - the only
difference is that these other boxes have jdk1.3 with hotspot, but how much
difference could that make? (Famous last words :-) )

Any help greatly appreciated

Angus F. Mark
Technical Architect
RTSe UK Ltd





Re: Cannot start orion using JDK1.4

2001-05-28 Thread Mark Kettner

Works fine for me. This is my configuration:

Linux Redhat 7.0
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
orion version 1.5.0

rosely kumoi wrote:

> just asking if someone out there has already successful in running
> orion with jdk1.4
> 
> java.lang.UnsatisfiedLinkError: c:\program
> files\javasoft\jre\1.4\bin\nio.dll
> ;
> ;
> ;
> ;
> ;
> ;
> 
> 
> 

-- 
--o-o--
Mark Kettner
http://www.fredhopper.com
Amsterdam, The Netherlands
Phone:  +31 20 3206203 Mobile: +31 620 609 817
fax:+31 20 8848747
E-mail: [EMAIL PROTECTED], [EMAIL PROTECTED]






Re: I require step by step install instructions for Pet Store 1.1.2 on Orion please?

2001-05-22 Thread Mark Kettner

I'll get you started, but I'm working on linux so perhaps I make an 
error somewhere

1) Download and install java SDK
2) Download and install java J2EE
3) SET JAVA_HOME=
4) SET J2EE_HOME=
9) Edit file orion\config\default-web-site.xml (below the line starting 
with 
10) start orion (in the orion directory type java -jar orion.jar). You 
should now see something with
   deploying petstore application, petstoreEjb, etc.
11) Open web browser and type http://localhost:80/petstore and you are 
in business.

Success
Ganasen Gounden wrote:

> Hello
> 
> I have installed Orion 1.4.5 on Windows NT successfully.
> I now need to install the Petstore 1.1.2 Application.

> 
> Could someone please provide me with a step by step guideline.
> The existing information is confusing or incomplete or refers to the older version.
> I am also new to Orion and J2ee.
> 
> My recommendation is that the Orion developers have a working version of the product 
>bundled into the download
> of Orion. It will help me and others save a lot of problems in trying to get a j2ee 
>sample application running quick and easily.
> Please realise that many of us do these downloads for evaluation and demonstration 
>to our management. It is very disappointing when we have to battle in doing this. 
> 
> I have had a bash at Jboss, Enhydra, In-q-my, Oracle 9ias, Jrun, and now Orion. They 
>all have similar challenges in getting Pet Store up and running.
> I
>   do not mean to be a nag but many thanks in advance if you can help.
> 
> Regards
> 
> Gan Gounden
> City of Cape Town
> Ph (021) 400-2174
> Fax (021) 425-1096
> Cell 083-63-59-268
> e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> **
> Any unauthorized use and interception of this e-mail is illegal.
> If this e-mail is not intended for you, you may not copy, 
> distribute or disclose the contents to anyone.  This e-mail 
> does not give rise to any binding legal obligations upon the
> City of Cape Town unless the City of Cape Town subsequently
> confirms the content in writing non-electronically.  This e-mail
> may be confidential, legally privileged or otherwise protected
> by law.  Unauthorised disclosure or copying of any or all of it
> may be unlawful. If you receive this e-mail in error please notify
> the sender and delete the message
> 
> **
> 
> 

-- 
--o-o--
Mark Kettner
http://www.fredhopper.com
Amsterdam, The Netherlands
Phone:  +31 20 3206203 Mobile: +31 620 609 817
fax:+31 20 8848747
E-mail: [EMAIL PROTECTED], [EMAIL PROTECTED]






Re: Orion 1.5.0? Where do you download it from?

2001-05-22 Thread Mark Kettner



Ganasen Gounden wrote:

> Where do you get Orion 1.5.0 from?
> When I do a download from Orionserver, I get 1.4.5zip for stable and latest binaries?

I had the same problem and somebody else on this list helped me. Perhaps 
it's a good idea to update the website, so you can download the latest 
version directly from the website?

The solution to your problem is to go to the irion directory and type
java -jar autoupdate.jar

and automagically you'll be updated to the latest version

> 
> 
> 
> 
> **
> Any unauthorized use and interception of this e-mail is illegal.
> If this e-mail is not intended for you, you may not copy, 
> distribute or disclose the contents to anyone.  This e-mail 
> does not give rise to any binding legal obligations upon the
> City of Cape Town unless the City of Cape Town subsequently
> confirms the content in writing non-electronically.  This e-mail
> may be confidential, legally privileged or otherwise protected
> by law.  Unauthorised disclosure or copying of any or all of it
> may be unlawful. If you receive this e-mail in error please notify
> the sender and delete the message
> 
> ******
> 
> 

-- 
--o-o--
Mark Kettner
http://www.fredhopper.com
Amsterdam, The Netherlands
Phone:  +31 20 3206203 Mobile: +31 620 609 817
fax:+31 20 8848747
E-mail: [EMAIL PROTECTED], [EMAIL PROTECTED]






Re: Orin cpu usage ??? ->>> HANGS ->> please some help!!

2001-05-22 Thread Mark Kettner

Hi Eddie,

Eddie wrote:

> Thanks,
> 
> If I replace it with the original wrapper, I get:
> --
> [orion@ojo Orion]# java -classic -jar ./orion.jar
> bash: /usr/local/java/bin/java: No such file or directory
> --

No need to download java 1.3.1. The message above means that the shell 
can't find your java.
It is not located in /usr/local/java/bin
Do a `which java' and the system will tell you where your java is located.
Add this directory to your path (without the last java).

> 
> However I just noticed that I am running 1.3.0, whereas someone else in the
> newsgroup got it working with 1.3.1 (I suppose on a Linux machine), so I am

yep, that's me, and indead I'm running linux (redhat 7.0)

> 
> now downloading 1.3.1. I hope this works.
> Only the downloading doesn't goes that fast ;(
> 
> Eddie

Mark





Re: Orin cpu usage ???

2001-05-21 Thread Mark Kettner


Eddie wrote:
[EMAIL PROTECTED]">Thanks peter,The javac is indeed linked to .java_wrapper, but to me it's not clear what Ishould change such that it works in classic mode. Neither do I find anythingabout that in the man pages. Doesn't anyone knows how to executejava -classic .. on a Linux box ??
  
yep.
  
java -classic -jar orion.jar
  
works fine for me. I'm using sun's java version 1.3.1.
  
  [EMAIL PROTECTED]">Eddie- Original Message -From: cybermaster <[EMAIL PROTECTED]>To: Orion-Interest <[EMAIL PROTECTED]>Sent: Friday, May 18, 2001 3:43 PMSubject: RE: Orin cpu usage ???
I am currently sitting on a w2k box, but I remember that under Unix many
  of
  these files are links to a wrapper for either hotspot or classic JVM. Youmay have to play around and change those.--peter-Original Message-From: [EMAIL PROTECTED][mailto:[EMAIL PROTECTED]]On Behalf Of EddieSent: Friday, May 18, 2001 2:27 AMTo: Orion-InterestSubject: Re: Orin cpu usage ???Thanks peter,I tried it as classic, but it doesn't work. It complains that it can't
find
the JIT, wheras it is able find it, as the below, any idea why this is (Ihaven't got much experience with running the jvm in different modes, anyidea where to find more info, as I can't find it in the man java ??) ??:---[orion@ojo Orion]# java -classic orion.jarWarning: JIT compiler "/usr/local/java/bin/javac" not found. Will useinterpreter.Exception in thread "main" java.lang.NoClassDefFoundError: orion/jar[orion@ojo Orion]# ls /usr/local/java/bin/jajar   java  javac javahjarsigner java-rmi.cgi  javadoc   javap[orion@ojo Orion]# ls /usr/local/java/bin/javac/usr/local/java/bin/javac[orion@ojo Or!
ion]#--Eddie- Original Message -From: cybermaster <[EMAIL PROTECTED]>To: Orion-Interest <[EMAIL PROTECTED]>Sent: Thursday, May 17, 2001 4:07 PMSubject: RE: Orin cpu usage ???I have seen other instances where profiling doesn't work with the
HotSpot
JVM - use the Classic, and it (may) work.--peter-Original Message-From: [EMAIL PROTECTED][mailto:[EMAIL PROTECTED]]On Behalf Of EddieSent: Thursday, May 17, 2001 6:04 AMTo: Orion-InterestSubject: Re: Orin cpu usage ???Thanks Marcel,Indeed I get more information when I start with -Xprof, however when I
use
the -Xrunhprof I get the following error (the total command is alsoincluded):Funny !!!,Eddie--## HotSpot Virtual Machine Error, Internal Error# Please report this error at# http://java.sun.com/cgi-bin/bugreport.cgi## Error ID: 4D555445583F4C494E55580E4350500104## Problematic Thread: prio=1 tid=0x804dcd8 nid=0x4c99 runnable#--Start command:---su -l program --command='/usr/local/java/bin/java -Xrunhprof -jar/opt/Orion/orion.jar -config /opt/Orion/config/server.xml >>/opt/Orion/log/out.log 2>&1 &- Original Message -From: Marcel Schutte <[EMAIL PROTECTED]>To: Orion-Interest <[EMAIL PROTECTED]>Sent: Thursday, May 17, 2001 11:48 AMSubject: RE: Orin cpu usage ???Hi Eddie,You could try to use the JVM profiler (startup arguments -Xprofand -Xrunhprof). This is ofcourse not orion specific, but you can giveitatry. You can also try leaving out parts of your application until youfindthe bit that's causing your problem.Marcel-Original Message-From: [EMAIL PROTECTED][mailto:[EMAIL PROTECTED]]On Behalf Of EddieSent: Thursday, May 17, 2001 10:11 AMTo: Orion-InterestSubject: Re: Orin cpu usage ???Can someone please answer this question !!!???The problem I am having is the Orion sometimes hangs, it usesa lot of cpuand I can't figure out why, so I need some advices on how Ican monitorthis.Please... ??Eddie- Original Message -From: Eddie <[EMAIL PROTECTED]>To: Orion-Interest <[EMAIL PROTECTED]>Sent: Wednesday, May 16, 2001 11:42 AMSubject: Orin cpu usage ???Can someone please tell me how to monitor the cpu usage ofOrion in detailper component/item/application ?When I use orionconsole I can only view the overall memoryusage of allapplication, but that's it. With "top" I see it is using alot of cputime:about 50 percent.But I want more information, how do I get that ??Eddie


-- 
--o-o--
Mark Kettner
http://www.fredhopper.com
Amsterdam, The Netherlands
Phone:  +31 20 3206203 Mobile: +31 620 609 817
fax:+31 20 8848747
E-mail: [EMAIL PROTECTED], [EMAIL PROTECTED]





multiple application NOT sharring JVM

2001-05-17 Thread Mark Abram

Is it possible to configure Orion web server
so each web application will run on separate
JVM ?

if so can someone point me to the examples.

thanks,
mark

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/




UN-SUBSCRIBE

2001-05-17 Thread Wencek, Mark
Title: UN-SUBSCRIBE





UN-SUBSCRIBE





Re: Auto-deployment

2001-05-14 Thread Mark Kettner



Chaya Ramanujam wrote:

> Can someone give me details on the auto-deployment feature in Orion?  

Add a the following line to the default-web-site.xml (config directory), 
under default-web-app line:



and the following line in the server.xml (config directory), under 
 line:



> How do you go about getting an app deployed automatically?  Is there a 
> way to turn this feature off using a tag in the orion config files?

Yes. There is an argument in the web-app line, load-on-startup, which 
you can set to true/false.

See http://www.orionserver.com/dtds/web-site.dtd for more details.

> 
> If this feature is on by default, is it possible to have an app 
> installed on the server, but not deployed?
> 
> Thanks for your help..
> 
> --CR.
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
> 
> 
> 
Good luck

-- 
--o-o--
Mark Kettner
http://www.fredhopper.com
Amsterdam, The Netherlands
Phone:  +31 20 3206203 Mobile: +31 620 209 817
fax:+31 20 8848747
E-mail: [EMAIL PROTECTED], [EMAIL PROTECTED]






Struts bug in 1.4.8

2001-05-09 Thread Mark Kettner

Hi guys,

Struts and orion don't seem to be good friends. After looking in the 
archive I found some links telling me
how to patch struts so it works with orion. The solution I use is simply 
unpack the jar file in the classes
directory (during the build fase).
However that doesn't solve the problem you get as soon as you define 
your own actions and forms. As soon
as you want to access one of your actions/forms, you get the following 
error in your application.log:

java.lang.ClassNotFoundException: 
com.fredhopper.admin.control.web.action.ItemsAction
   at com.evermind[Orion/1.4.8 (build 10374)]._ed.findClass(Unknown 
Source)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:120)
   at 
org.apache.struts.action.ActionServlet.processActionCreate(ActionServlet.java:1470)
   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1421)
   at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:463)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:195)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
   at com.evermind[Orion/1.4.8 (build 10374)]._iib._vfd(Unknown Source)
   at com.evermind[Orion/1.4.8 (build 10374)]._iib._qjc(Unknown Source)
   at com.evermind[Orion/1.4.8 (build 10374)]._kj._qbc(Unknown Source)
   at com.evermind[Orion/1.4.8 (build 10374)]._kj._oa(Unknown Source)
   at com.evermind[Orion/1.4.8 (build 10374)]._jw.run(Unknown Source)

The classloader can't find any of your defined actions/forms. However 
Orion/1.3.8 didn't have this
problem (and J2EE doesn't have it as well).
I created a small test application which can be downloaded from our website:

www.fredhopper.com/struts-example.tgz

To get it running:
1) unpack it
2) set the J2EE_HOME variable
3) go to the struts-test/src directory
3) run ./build.sh

This creates a test.ear which you can deploy on orion.
Does anyone have similar problems with struts and does somebody have a 
solution?
If there are any questions regarding the struts-example please don't 
hesitate to ask.


Mark

--o-o--
Mark Kettner
http://www.fredhopper.com
Amsterdam, The Netherlands
Phone:  +31 20 3206203 Mobile: +31 620 209 817
fax:+31 20 8848747
E-mail: [EMAIL PROTECTED], [EMAIL PROTECTED]





Updateing to 1.4.8

2001-05-07 Thread Mark Kettner

Hi All,

Sorry for this very stupid message: can somebody please tell me where to 
download the newer releases or aren't they public domain anymore.
Was looking at orionserver for an update for some time, but after 1.4.5 
I couldn't update anymore.
However, after looking at this mailinglist I saw that people were 
already using 1.4.8. I'm curious for a
new version, because struts library didn't work under 1.4.5.
Again, sorry to bother you all about this.

-- 
Mark

--o-o--
Mark Kettner
http://www.fredhopper.com
Amsterdam, The Netherlands
Phone:  +31 20 3206203 Mobile: +31 620 209 817
fax:+31 20 8848747
E-mail: [EMAIL PROTECTED], [EMAIL PROTECTED]





Re: MVC/XML Framework Comments please

2001-04-27 Thread mark kaseman
Title: MVC/XML Framework Comments please




I would be interested in reviewing a copy of your 
mvc/xml framework.
 
Thanks

  - Original Message - 
  From: 
  Duffey, 
  Kevin 
  To: Orion-Interest 
  Sent: Thursday, April 26, 2001 5:39 
  PM
  Subject: RE: MVC/XML Framework Comments 
  please
  
  I 
  use my own framework for a couple of sites, and have gotten feedback from 
  others using it as well. Its only 15K in size, full source, its free to use, 
  modify, etc. If your interested in it, send me an email. It supports xsl 
  transformations, and is very similar to Struts only that I found struts too 
  much for my needs, and some features it didn't do that I needed, so I went 
  that direction.
   
  
-Original Message-From: Vic Cekvenich 
[mailto:[EMAIL PROTECTED]]Sent: Thursday, April 26, 2001 11:53 
AMTo: Orion-InterestSubject: MVC/XML Framework 
Comments please
We are bout to pick a a framework, and I am looking for are 
comments or recommendation on a frameworks, other 
than Struts. (Don't want to be HTML/JSP centric) Any 
feedback on your experience with a framework, or do you know of web sites in production that are using a certain frame 
work, or do you know of friend or someone who has 
used one. 
I would like it to be XML centric, and MVC. For example, the 
V should apply the XSL to XML, to make it HTML. It 
should do standard session tracking. It should do 
standard data manager, so that Java Beans do the SQL (the M). A 
minor plus is form entry management and a bit of 
image/content management. It should be a single rich 
framework. Here are a few we are considering: 
http://www.jcorporate.com/html/products/productsfm.html 

http://jakarta.apache.org/jetspeed/site/index.html 

and all the ones under Jakarta. 
We need to pick one soon. Any comments and feedback welcome 
on frameworks/class libraries. 
Thanks, [EMAIL PROTECTED] 



SSL

2001-04-08 Thread Mark A. Richman



How can I create a test SSL 
certificate?
Regards,Mark A. RichmanEmpire Software, Inc.Expert 
Software Development & Consulting+ Internet/Intranet/Extranet+ 
E-Commerce & B2B+ Java, C/C++, Visual Basic+ XML, SOAP, and Web 
Services+ Linux & Open-Source Solutions+ Database Applications+ 
...and MUCH more!http://www.empsoft.com[EMAIL PROTECTED]Tel: 
954-234-9049  
 

BEGIN:VCARD
VERSION:2.1
N:Richman;Mark;A.;Mr.
FN:Mark A. Richman
NICKNAME:Mark
ORG:Empire Software, Inc.
TITLE:President
NOTE;ENCODING=QUOTED-PRINTABLE:Empire Software, Inc.=0D=0AExpert Software Development & Consulting=0D=0A=
=0D=0A+ Internet/Intranet/Extranet=0D=0A+ E-Commerce & B2B=0D=0A+ Java, C/C+=
+, Visual Basic=0D=0A+ XML, SOAP, and Web Services=0D=0A+ Linux & Open-Sourc=
e Solutions=0D=0A+ Database Applications=0D=0A+ ...and MUCH more!=0D=0A
ADR;WORK:;954-234-9049;9932 NW 57 Manor;Coral Springs;FL;33076;USA
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:954-234-9049=0D=0A9932 NW 57 Manor=0D=0ACoral Springs, FL 33076=0D=0AUSA
URL:
URL:http://www.empsoft.com
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20010228T000841Z
END:VCARD



Wrap OrionConsoleAdmin with Servlet?

2001-04-05 Thread Mark A. Richman



admin.jar is just a wrapper for 
com.evermind.client.orion.OrionConsoleAdmin. With that, can I invoke 
OrionConsoleAdmin from a servlet? I want to 
deploy the archive (war/ear) via HTTP 
upload? My goal is to create a web admin utility for 
Orion.
Regards,Mark A. RichmanEmpire Software, Inc.Expert 
Software Development & Consulting+ Internet/Intranet/Extranet+ 
E-Commerce & B2B+ Java, C/C++, Visual Basic+ XML, SOAP, and Web 
Services+ Linux & Open-Source Solutions+ Database Applications+ 
...and MUCH more!http://www.empsoft.com[EMAIL PROTECTED]Tel: 
954-234-9049  
 

BEGIN:VCARD
VERSION:2.1
N:Richman;Mark;A.;Mr.
FN:Mark A. Richman
NICKNAME:Mark
ORG:Empire Software, Inc.
TITLE:President
NOTE;ENCODING=QUOTED-PRINTABLE:Empire Software, Inc.=0D=0AExpert Software Development & Consulting=0D=0A=
=0D=0A+ Internet/Intranet/Extranet=0D=0A+ E-Commerce & B2B=0D=0A+ Java, C/C+=
+, Visual Basic=0D=0A+ XML, SOAP, and Web Services=0D=0A+ Linux & Open-Sourc=
e Solutions=0D=0A+ Database Applications=0D=0A+ ...and MUCH more!=0D=0A
ADR;WORK:;954-234-9049;9932 NW 57 Manor;Coral Springs;FL;33076;USA
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:954-234-9049=0D=0A9932 NW 57 Manor=0D=0ACoral Springs, FL 33076=0D=0AUSA
URL:
URL:http://www.empsoft.com
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20010228T000841Z
END:VCARD



RE: Deploy EAR/WAR via HTTP upload

2001-04-04 Thread Mark A. Richman
Title: 



First off, admin.jar is just a wrapper for 
com.evermind.client.orion.OrionConsoleAdmin. With that, can I invoke 
OrionConsoleAdmin from a servlet so I can deploy the archive? My goal is to 
create a web admin utility for Orion.Regards,Mark A. 
RichmanEmpire Software, Inc.Expert Software Development & 
Consulting+ Internet/Intranet/Extranet+ E-Commerce & B2B+ 
Java, C/C++, Visual Basic+ XML, SOAP, and Web Services+ Linux & 
Open-Source Solutions+ Database Applications+ ...and MUCH 
more!http://www.empsoft.com[EMAIL PROTECTED]Tel: 
954-234-9049 -Original Message-From: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On 
Behalf Of Magnus RydinSent: Wednesday, April 04, 2001 7:57 AMTo: 
Orion-InterestSubject: SV: Deploy EAR/WAR via HTTP uploadWrite a 
servlet that utilizes admin.jar ?WR-Ursprungligt 
meddelande-----Från: Mark A. Richman [mailto:[EMAIL PROTECTED]]Skickat: den 4 
april 2001 04:38Till: Orion-InterestÄmne: RE: Deploy EAR/WAR via HTTP 
uploadThanks, but I was thinking along the lines of an HTML form 
that I upload an EAR to. Then a JSP or Servlet would deploy the 
archive.Regards,Mark A. RichmanEmpire Software, Inc.Expert 
Software Development & Consulting+ Internet/Intranet/Extranet+ 
E-Commerce & B2B+ Java, C/C++, Visual Basic+ XML, SOAP, and Web 
Services+ Linux & Open-Source Solutions+ Database Applications+ 
...and MUCH more!http://www.empsoft.com[EMAIL PROTECTED]Tel: 
954-234-9049 -Original Message-From: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On 
Behalf Of Magnus RydinSent: Wednesday, April 04, 2001 1:40 AMTo: 
Orion-InterestSubject: SV: Deploy EAR/WAR via HTTP 
upload/orion/admin.jar commands :-deploy - (re)deploys an 
application. Sub-switches are:   -file - Enterprise Archive to 
deploy   -deploymentName - Name of the application 
deployment   -targetPath - The path on the remote OS to place the 
archive at. If not specified the applications directory is used-bindWebApp 
[application deployment name] [web-app name] [web-site name] [context root] - 
binds a web app to the specified site + root>Is it possible to deploy an 
EAR/WAR if uploaded via HTTP? If so, how?>Regards,>Mark A. 
Richman>Empire Software, Inc.>Expert Software Development & 
Consulting 

BEGIN:VCARD
VERSION:2.1
N:Richman;Mark;A.;Mr.
FN:Mark A. Richman
NICKNAME:Mark
ORG:Empire Software, Inc.
TITLE:President
NOTE;ENCODING=3DQUOTED-PRINTABLE:Empire Software, Inc.=3D0D=3D0AExpert =
Software Development & Consulting=3D0D=3D0A=3D
=3D0D=3D0A+ Internet/Intranet/Extranet=3D0D=3D0A+ E-Commerce & =
B2B=3D0D=3D0A+ Java, C/C+=3D
+, Visual Basic=3D0D=3D0A+ XML, SOAP, and Web Services=3D0D=3D0A+ Linux =
& Open-Sourc=3D
e Solutions=3D0D=3D0A+ Database Applications=3D0D=3D0A+ ...and MUCH =
more!=3D0D=3D0A
ADR;WORK:;954-234-9049;9932 NW 57 Manor;Coral Springs;FL;33076;USA
LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:954-234-9049=3D0D=3D0A9932 NW 57 =
Manor=3D0D=3D0ACoral Springs, FL 33076=3D0D=3D0AUSA
URL:
URL:http://www.empsoft.com
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20010228T000841Z
END:VCARD



Re: SV: Deploy EAR/WAR via HTTP upload

2001-04-04 Thread Mark Richman

Easier said than done on a system that isn't Open Source!

- Mark

> Write a servlet that utilizes admin.jar ?
> WR
> 
> -Ursprungligt meddelande-
> Från: Mark A. Richman [mailto:[EMAIL PROTECTED]]
> Skickat: den 4 april 2001 04:38
> Till: Orion-Interest
> Ämne: RE: Deploy EAR/WAR via HTTP upload
> 
> 
> Thanks, but I was thinking along the lines of an HTML form
that I 
> upload an
> EAR to. Then a JSP or Servlet would deploy the archive.
>  
> 
> Regards,
> Mark A. Richman
> Empire Software, Inc.
> Expert Software Development & Consulting
> 
> + Internet/Intranet/Extranet
> + E-Commerce & B2B
> + Java, C/C++, Visual Basic
> + XML, SOAP, and Web Services

> + Linux & Open-Source Solutions
> + Database Applications
> + ...and MUCH more!
> 
> http://www.empsoft.com <http://www.empsoft.com/> 
> [EMAIL PROTECTED]
> Tel: 954-234-9049
>   
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
Magnus Rydin
> Sent: Wednesday, April 04, 2001 1:40 AM
> To: Orion-Interest
> Subject: SV: Deploy EAR/WAR via HTTP upload
> 
> 
> 
> /orion/admin.jar commands : 
> 
> -deploy - (re)deploys an application. Sub-switches are: 
>-file - Enterprise Archive to deploy 
>-deploymentName - Name of the application deployment 
>-targetPath - The path on the remote OS to place the
archive at. If 
> not
> specified the applications directory is used 
> 
> -bindWebApp [application deployment name] [web-app name]
[web-site 
> name]
> [context root] - binds a web app to the specified site + root
> 
> >Is it possible to deploy an EAR/WAR if uploaded via HTTP?
If so, how? 
> >Regards, 
> >Mark A. Richman 
> >Empire Software, Inc. 
> >Expert Software Development & Consulting 
> 
> 


-- 
Mark A. Richman 
Empire Software, Inc.
Expert Software Development & Consulting 
  
+ Internet/Intranet/Extranet 
+ E-Commerce & B2B 
+ Java, C/C++, Visual Basic 
+ XML, SOAP, and Web Services 
+ Linux & Open-Source Solutions 
+ Database Applications 
+ ...and MUCH more! 

http://www.empsoft.com
[EMAIL PROTECTED]
954-234-9049 







RE: Deploy EAR/WAR via HTTP upload

2001-04-04 Thread Mark A. Richman
Title: SV: Deploy EAR/WAR via HTTP upload



Thanks, but I was 
thinking along the lines of an HTML form that I upload an EAR to. Then a JSP or 
Servlet would deploy the archive.
 
Regards,Mark A. RichmanEmpire Software, Inc.Expert 
Software Development & Consulting+ Internet/Intranet/Extranet+ 
E-Commerce & B2B+ Java, C/C++, Visual Basic+ XML, SOAP, and Web 
Services+ Linux & Open-Source Solutions+ Database Applications+ 
...and MUCH more!http://www.empsoft.com[EMAIL PROTECTED]Tel: 
954-234-9049  

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Magnus 
  RydinSent: Wednesday, April 04, 2001 1:40 AMTo: 
  Orion-InterestSubject: SV: Deploy EAR/WAR via HTTP 
  upload
  /orion/admin.jar commands : 
  -deploy - (re)deploys an application. Sub-switches are: 
     -file - Enterprise Archive to deploy 
     -deploymentName - Name of the application 
  deployment    -targetPath - The path on the 
  remote OS to place the archive at. If not specified the applications directory 
  is used 
  -bindWebApp [application deployment name] [web-app name] 
  [web-site name] [context root] - binds a web app to the specified site + 
  root
  >Is it possible to deploy an EAR/WAR if uploaded via HTTP? 
  If so, how? >Regards, >Mark A. Richman >Empire Software, 
  Inc. >Expert Software Development & 
  Consulting 

BEGIN:VCARD
VERSION:2.1
N:Richman;Mark;A.;Mr.
FN:Mark A. Richman
NICKNAME:Mark
ORG:Empire Software, Inc.
TITLE:President
NOTE;ENCODING=QUOTED-PRINTABLE:Empire Software, Inc.=0D=0AExpert Software Development & Consulting=0D=0A=
=0D=0A+ Internet/Intranet/Extranet=0D=0A+ E-Commerce & B2B=0D=0A+ Java, C/C+=
+, Visual Basic=0D=0A+ XML, SOAP, and Web Services=0D=0A+ Linux & Open-Sourc=
e Solutions=0D=0A+ Database Applications=0D=0A+ ...and MUCH more!=0D=0A
ADR;WORK:;954-234-9049;9932 NW 57 Manor;Coral Springs;FL;33076;USA
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:954-234-9049=0D=0A9932 NW 57 Manor=0D=0ACoral Springs, FL 33076=0D=0AUSA
URL:
URL:http://www.empsoft.com
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20010228T000841Z
END:VCARD



Deploy EAR/WAR via HTTP upload

2001-04-03 Thread Mark A. Richman



Is it possible to 
deploy an EAR/WAR if uploaded via HTTP? If so, how?
Regards,Mark A. RichmanEmpire Software, Inc.Expert 
Software Development & Consulting+ Internet/Intranet/Extranet+ 
E-Commerce & B2B+ Java, C/C++, Visual Basic+ XML, SOAP, and Web 
Services+ Linux & Open-Source Solutions+ Database Applications+ 
...and MUCH more!http://www.empsoft.com[EMAIL PROTECTED]Tel: 
954-234-9049  
 

BEGIN:VCARD
VERSION:2.1
N:Richman;Mark;A.;Mr.
FN:Mark A. Richman
NICKNAME:Mark
ORG:Empire Software, Inc.
TITLE:President
NOTE;ENCODING=QUOTED-PRINTABLE:Empire Software, Inc.=0D=0AExpert Software Development & Consulting=0D=0A=
=0D=0A+ Internet/Intranet/Extranet=0D=0A+ E-Commerce & B2B=0D=0A+ Java, C/C+=
+, Visual Basic=0D=0A+ XML, SOAP, and Web Services=0D=0A+ Linux & Open-Sourc=
e Solutions=0D=0A+ Database Applications=0D=0A+ ...and MUCH more!=0D=0A
ADR;WORK:;954-234-9049;9932 NW 57 Manor;Coral Springs;FL;33076;USA
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:954-234-9049=0D=0A9932 NW 57 Manor=0D=0ACoral Springs, FL 33076=0D=0AUSA
URL:
URL:http://www.empsoft.com
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20010228T000841Z
END:VCARD



Using jakarta-struts with orion1.4.5

2001-03-06 Thread Mark Kettner

I'm trying to use jakarta-struts with orion1.4.5. I've subclassed the 
ActionForm class to AttributeTypeForm, but after deployment I get the 
following error:

javax.servlet.jsp.JspException: Exception creating bean of class 
com.fred.fredadmin.control.web.AttributeTypeForm: 
java.lang.ClassNotFoundException: 
com.fred.fredadmin.control.web.AttributeTypeForm
   at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:527)
   at 
/editattributetype.jsp._jspService(/editattributetype.jsp.java:81) (JSP 
page line 15)
   at com.orionserver.http.OrionHttpJspPage.service(JAX)
   at com.evermind.server.http.HttpApplication.xj(JAX)
   at com.evermind.server.http.JSPServlet.service(JAX)
   at com.evermind.server.http.d3.sw(JAX)
   at com.evermind.server.http.d3.include(JAX)
   at com.fred.fredadmin.taglib.InsertTag.doEndTag(InsertTag.java:61)
   at /template.jsp._jspService(/template.jsp.java:48)
   at com.orionserver.http.OrionHttpJspPage.service(JAX)
   at com.evermind.server.http.HttpApplication.xj(JAX)
   at com.evermind.server.http.JSPServlet.service(JAX)
   at com.evermind.server.http.d3.sw(JAX)
   at com.evermind.server.http.d3.su(JAX)
   at com.evermind.server.http.d3.forward(JAX)
   at 
com.fred.fredadmin.control.web.MainServlet.doGet(MainServlet.java:63)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:190)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:302)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:329)
   at com.evermind.server.http.d3.sw(JAX)
   at com.evermind.server.http.d3.su(JAX)
   at com.evermind.server.http.ef.s1(JAX)
   at com.evermind.server.http.ef.do(JAX)
   at com.evermind.util.f.run(JAX)

The error message is a bit cryptic, becase when I create a jsp page that 
accesses the AttributeTypeForm bean directly works. Also deploying the 
application with struts on orion1.3.8 and J2EE works.
Has anyone experienced the same problem and/or solution?

Mark





RE: EJB Clustering -- ANYONE? [Urgent!]

2001-02-22 Thread Mark Bernardinis

I think that we also need an explanation of what goes in the field, not 
what are valid values that it accepts. Some fields I look at in the XML are 
totally a question to me and I don't know why you would put one value in 
when compared to another.

> I would like to see the documentation for the orion deployment
> descriptors fleshed out.  Right now it's sparse and choppy, with some
> sentences just cut off in the middle.  Verbose explanations with
> examples would be a major improvement.
> 
> More than anything else, though, I think Orion needs a FAQ-O-MATIC.
> 
> Jeff
> 
>>-Original Message-
>>From: Magnus Stenman [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, February 22, 2001 7:43 AM
>>To: Orion-Interest
>>Subject: Re: EJB Clustering -- ANYONE? [Urgent!]
>>
>>
>>Hello,
>>stay tune for a little while longer (if you want to and are 
>>able to). There will be a clustering-howto released in roughly 
>>a week or so (no promises though, just an estimate), and yes 
>>there's plenty of support (and more to come). The doc will be 
>>kind of an 'umbrella doc' to the already released 
>>http-clustering-howto covering the other tiers of an application.
>>
>>While on that note, what are the other especially wanted areas 
>>for improved/more elaborate documentation (howto's and 
>>similar)? Please be as specific as possible (ie the opposite 
>>of "improved overall documentation" :) and keep in mind that 
>>the security-primer is already in the pipe. Thanks in advance!
>>
>>/Magnus Stenman, the Orion team
>>
>>PS. Not getting a reply when asking where to send money do 
>>sound strange indeed. We're understaffed relative to the 
>>demand so we have a hard time getting back to sales queries 
>>etc, but actual ordering should not be any problem whatsoever. 
>>Can you please forward what you sent to [EMAIL PROTECTED] 
>>and to me as well and I'll try to see what has happened to it. Thanks!
>>
>>
>>- Original Message - 
>>From: "Dylan Parker" <[EMAIL PROTECTED]>
>>To: "Orion-Interest" <[EMAIL PROTECTED]>
>>Sent: Wednesday, February 21, 2001 7:33 PM
>>Subject: EJB Clustering -- ANYONE? [Urgent!]
>>
>>
>>> Hello, all.
>>> 
>>> My company is about to drop Orion.
>>> 
>>> The documentation issues, the dead website, the documentation issues,
>>> the absence of company responses, the documentation issues...
>>> 
>>> We've contacted them asking where to send our money. Nothing back.
>>> 
>>> In one last futile attempt to keep Orion afloat in my 
>>company a little
>>> longer, can anyone provide me with the following information?
>>> 
>>> How does one do EJB Clustering with Orion?
>>> Has anyone made this work?
>>> Can anyone give some background on the configuration steps?
>>> 
>>> If I don't hear anything... then JRun, here we come.
>>> 
>>> Thanks,
>>> Dylan Parker
>>> 
>>> 






Re: New Orion Primer (2nd try)

2001-02-22 Thread Mark Meuer

Thank you so much for writing this!  I'm quite new to J2EE and this
primer is exactly what I've been looking for.  Please know that your
efforts are appreciated.

-mark

At 02:59 AM 2/21/01 +0100, you wrote:
The new version of the Orion Primer
is in place again.

   *
http://www.jollem.com/orion-primer/

The old version is still available here:

   *
http://www.jollem.com/~ernst/orion-primer_old/

Besides adding the source files that were missing, I've made the
following
changes since the previous version of the new Orion Primer:

   * Rearranged the directory structure a bit, moving all XML
config files
 from "src/xml/" to
"etc/"
   * Added a link to the source XML document (tutorial.xml) and
to the
 stylesheet used to convert the document to
HTML
   * Made the HTML document HTML 4.01 compliant (was 4.0)
   * Added the targets for creating the src archives to the Ant
build file

Any comments would be appreciated. If I don't get any, then I 
assume
everything works as it should :)

--
Ernst



Mark Meuer
Software Engineer
Life Navigator, Inc.



RE: How can I use Application session?

2001-02-22 Thread Angus Mark

you can call getSession(boolean create) where create is false instead 

> -Original Message-
> From: Yves Bossel [SMTP:[EMAIL PROTECTED]]
> Sent: 21 February 2001 11:40
> To:   Orion-Interest
> Subject:  RE: How can I use Application session?
> 
> > I would add:
> > * how can I retrieve the session ID while I am inside an EJB 
> > method so I 
> 
> (from the docs)
> use from HttpServletRequest the method getSession(), then session.getId()
> Be careful because the spec says that getSession() creates a session if it
> does not exists.
> 
> 
> Yves Bossel - Programmer - Neoris.com




Re: Mixing secure & non-secure pages in the same application

2001-02-19 Thread Mark Bernardinis

That solution doesn't get around having multiple pages secure and some non
secure though. Ibelieve you need to use URL redirection within your servlets
and that should work. It would be good if we could do something similar to
Apache with the .htaccess files as that is how I have worked this solution
(only for static web site though).

Mark

> In ${orion_home}/default-web-app make an index.html that redirect to
> port 443 that should do it.
> 
> Matt
> 
> Thomas Pridham wrote:
> 
>> I have jumped through the Verisign hoops and have installed my
>> certificate. Here is my issue:
>>
>> How do you serve both secure and non-secure pages from the same
>> application
>>
>> Right now, my entire application is secure and served from port 443. 
>> If someone types in the URL, the server does not respond because I am
>> not running anything on port 80.  For a VERY temporary fix, I turned
>> on IIS on the same box, and do a redirect from IIS:80 to Orion:443.
>>
>> My goal is to have one application, serve the splash screen in
>> non-secure mode, and serve the rest of the screens in secure mode.
>>
>> I searched the documentation / mailing list, but did not find
>> anything.
>>
>> Thanks,
>> Tom Pridham
>> Software Engineer
>> Computer Management Consultants
>> 6951 Pistol Range Road
>> Tampa, FL  33536
>> 813-935-7332 ext. 165
>> 813-854-4538 - Fax
>> http://www.cmctpa.com
>> http://www.oakscape.com






Re: Sending a PDF via a servlet to IE 5

2001-02-19 Thread Mark Meuer

At 02:51 PM 2/19/01 -0500, you wrote:
Has anyone encountered an issue
with sending a PDF back to IE 5? 

Here's my situation. I generate a PDF dynamically then store it in 
a
database. I then retrieve the PDF from the DB via a servlet that sets
the
mime-type then outputs to the response stream. This works fine with
Netscape
and IE 5.5 but with  IE 5 it displays an (mostly) empty page with a
cube
icon on it (looks like an ActiveX icon). When you click on the icon it
pops
up a dialog saying "Error Locating Object Handler". If I
request a static
PDF IE 5 display that fine. So I'm assuming I'm not setting something on
the
response properly. Any one hae any ideas?
I don't know if this is exactly your problem, be we have encountered
errors in IE's handling of PDF files if the content length in not
correctly set in the header.

Try something like this:

   
// The technique of writing to a byte array output stream and then
setting the content length was
   
// taken from Paulo Soares (see the FAQ for the iText library).  If
the content length is not set then the PDF
   
// plugin for IE has problems with the file, especially if it is
small.

   
// CREATE AND SEND THE DOCUMENT.
   
response.setContentType( "application/pdf" );
   
ByteArrayOutputStream ba = new ByteArrayOutputStream();
   
createPdfDocument( ba ); // Stream the PDF file to ba
   
response.setContentLength( ba.size() );
   
ServletOutputStream out = response.getOutputStream();
   
ba.writeTo( out );
   
out.flush();


Good luck!

-mark



Mark Meuer
Software Engineer
Life Navigator, Inc.
(612) 333-8018
http://www.lifenavigator.com
[EMAIL PROTECTED]



Orion performance tuning

2001-02-18 Thread Mark Helms

We are investigating Orionserver to replace Apache Tomcat.  We could use any
input on performance tuning for servlets.  Has anyone seen a matrix or
formula for initial values that might help us out?  We have approximately
100 internal users that hit the server serving ~90 objects with
approximately 100 - 200  database connections open all the time. Our server
is a SUN E 10K with 8 GIG of ram. I can offer all of the specs if needed.

Your help is greatly appreciated.

thanks,
Mark





Re: project manager - Orion

2001-02-13 Thread Mark Bernardinis

I have been using Dynamo Application Server for over 6 months now and it is
quite a nice app server for a programmer with not much app server
experience. Although it is quite restricted when it comes to development.
You have to restart the app server with every change of a class file except
jsp of course. Orion on the other hand does not require this which will save
development time hugely. Also licensing issues are a pain in the butt. We
had problems with development licenses with Dynamo, Orion is absolutely no
problem.

Orion is an excellent server although does fall down with documentation.
This list is one of the best sources of information and most answers can be
found here. I have found that with Dynamo some small bugs exist with servlet
specifications and work arounds are required. (In other words, don't expect
a new release of Dynamo for these bugs as they won't happent). Orion on the
other hand will release updates frequently and are usually quite up to date
with the latest specs.

I have not had much experience with Weblogic.

My recommendation would be to look at Orion in more detail and see how well
it suits your needs. You will find it initially harder to use but you will
understand the application server that much better.

> Hi Guys,
> 
> I've been exploring the appservers for some time now
> and it is high time we selected the appserver for our
> project.
> 
> I'm contemplating the usual big one i.e. weblogic,
> dynamo ...and Orion.
> 
> Any pointers to how Orion would and perform in a
> production environmnet to further argue and support
> the decision making of selecting Orion as main
> appserver ?
> 
> All your input are welcome !
> 
> thanks
> 
> denis
> 
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35 
> a year!  http://personal.mail.yahoo.com/






RE: Benchmarks should be better

2001-02-04 Thread Mark Bernardinis

On Sun, 4 Feb 2001, Michael Quinn wrote:

> Just a little update..
> I have completed benchmarks for the initial apache default index.html.en
> with 4 different http servers on Redhat 6.2 with AMD Thunderbird 650 and
> 128MB Ram.
> Apache 1.3.14
> Tomcat 3.2
> Weblogic 5.1
> Orion 1.4.5
>
> I couldn't believe my eyes when Orion served the static html faster than all
> of them (Beating apache by about a 30% margin using 20 threads with 5
> sockets per thread.  Another amazing thing was resource usage..  The highest
> CPU Usage I saw from Orion during the test was a mere 30 percent.  If that
> is not a convincing factor, then I don't know what is.
>
> I still have some concerns about the security of orion (running on port 80
> as root), and Apache is by nature a more memory intensive application.  It

Running Orion as root is not recommended. There have been tutorials
available from www.orionsupport.com that recommend better alternatives
such as running Orion from port 8080 or whatever and using port
redirection. This is what I currently use and I can run Orion as the orion
user which I have created.

I am pleased with Orion's results in CPU usage and memory. Keep the bench
marks coming.

> uses a multi-process -vs- orion's multithreaded technique.  Each process
> uses a few megs of memory, so for a large request base, apache will need
> more memory so it isn't getting page faults all over the place. ( I am also
> running oracle on this box which uses tonnes of memory as many know )
> I'll slap in another 128M and see what happens.
>
> Any comments would be appreciated.
>
> Michael Quinn
> Software Engineer
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Michael Quinn
> Sent: Friday, February 02, 2001 11:19 AM
> To: Orion-Interest
> Subject: Benchmarks should be better
>
>
> Hey all,
>
> I was checking out the benchmarks on www.orionserver.com and they are quite
> interesting.
>
> There are a couple of things I am wondering, however.  How does Orion
> serving dynamic content pit itself -vs- apache serving static content or
> mod_perl stuff.
> It would be nice to take the other "sucky" java servers out of the picture
> and see a baseline comparison of Orion -vs- Apache on a lot of different
> scenarios.
>
> On a side note, can somebody forward me some performance comparisons from
> weblogic?  I know they can't be posted on the website, but I would like to
> see them.
>
> The reason I ask is of the following importance:
>
> I see a lot of job postings for knowledge of Weblogic.  And about 50% of
> telephone interviews ask about it, or bring it up.
> I want to know how it performs.
>
> I'm thinking about setting up Weblogic with Apache and Orion, and doing some
> performance comparisons which I will be glad to share with everyone.
>
> Thanks for your interest,
>
> Michael
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>





Re: Deploying EJB Application - NULL Pointer Exception

2001-02-02 Thread Mark Bernardinis

Ignore this email. After a lot of effort I finally worked out where the
problem was. I wish the errors were a bit more descriptive though.

Mark

> I am deploying an EJB Application and I am receiving this message. It
> is not very descriptive so could someone please shed some light on this
> error message.
> 
> Auto-deploying testapplication-ejb (No previous deployment found)...
> java.lang.NullPointerException
> at
> com.evermind.server.ejb.deployment.BeanDescriptor.equals(JAX)
> at
> com.evermind.server.ejb.deployment.ContainerManagedField.equals(JAX)
> at
> java.util.AbstractCollection.remove(AbstractCollection.java:260)
> at
> com.evermind.server.ejb.deployment.EntityBeanDescriptor.zv(JAX)
> at
> com.evermind.server.ejb.deployment.EntityBeanDescriptor.aba(JAX)
> at com.evermind.server.ejb.compilation.f4.(JAX)
> at com.evermind.server.ejb.compilation.ga.s_(JAX)
> at com.evermind.server.ejb.EJBContainer.bz(JAX)
> at com.evermind.server.Application.bz(JAX)
> at com.evermind.server.Application.gf(JAX)
> at com.evermind.server.ApplicationServer.rv(JAX)
> at com.evermind.server.ApplicationServer.aqb(JAX)
> at com.evermind.server.ApplicationServer.gf(JAX)
> at com.evermind.server.hg.run(JAX)
> at java.lang.Thread.run(Thread.java:498)
> at com.evermind.util.f.run(JAX)
> 
> Thanks.
> 
> Mark






Deploying EJB Application - NULL Pointer Exception

2001-02-02 Thread Mark Bernardinis

I am deploying an EJB Application and I am receiving this message. It is not
very descriptive so could someone please shed some light on this error
message.

Auto-deploying testapplication-ejb (No previous deployment found)...
java.lang.NullPointerException
at com.evermind.server.ejb.deployment.BeanDescriptor.equals(JAX)
at
com.evermind.server.ejb.deployment.ContainerManagedField.equals(JAX)
at java.util.AbstractCollection.remove(AbstractCollection.java:260)
at com.evermind.server.ejb.deployment.EntityBeanDescriptor.zv(JAX)
at com.evermind.server.ejb.deployment.EntityBeanDescriptor.aba(JAX)
at com.evermind.server.ejb.compilation.f4.(JAX)
at com.evermind.server.ejb.compilation.ga.s_(JAX)
at com.evermind.server.ejb.EJBContainer.bz(JAX)
at com.evermind.server.Application.bz(JAX)
at com.evermind.server.Application.gf(JAX)
at com.evermind.server.ApplicationServer.rv(JAX)
at com.evermind.server.ApplicationServer.aqb(JAX)
at com.evermind.server.ApplicationServer.gf(JAX)
at com.evermind.server.hg.run(JAX)
at java.lang.Thread.run(Thread.java:498)
at com.evermind.util.f.run(JAX)

Thanks.

Mark





RE: Form Login bouncing me to welcome page!

2001-02-01 Thread Angus Mark

So, when the user is going to http://host:port/yourapp/Login.jsp
they get redirected to LoginForm.jsp. 
They then authenticate and should see the resource they requested
(ie: http://host:port/yourapp/Login.jsp) - is this what you mean by the
welcome page ??

Hope that helps

Angus






RE: orion-web.xml

2001-02-01 Thread Angus Mark

orion -web.xml must go in the same place as web.xml - ie: in the
web-inf directory

As for the classpath - I don't think you need to add the file:///
bit of the path - just use the directory path ie:
D:/myprojects/paomgmt/classes"/ and see what it does.

Hope that helps




RE: When using autonumber for the primarykey...

2001-01-31 Thread Angus Mark


I'm using the counter.jar which is fine, but does it have any impact on
performance ?

Ok, the EJB spec doesn't support id fields, but surely now for every
create() I'm actually doing twice the work - ie: creating and loading the
counter entity bean and the entity bean using the counter? That can't be
right ...






RE: Session EJB Accessibility

2001-01-30 Thread Mark Bernardinis

And I also want these objects to be accessible remotely via RMI or some
other method as I have a number of different clients accessing the data.
Such as Servlets / JSP's, remote clients who do not need to know the
implementation of it and also I will be able to manage the objects.

> You hit the nail on the head. This is exactly what I want to do. I am
> beginning to realise that maybe EJB is not the way to go with this
> example.
> 
>> I'm confused by your comments; does it need to manage state, or
>> doesn't it?  I'm assuming it does, otherwise you would just use a
>> stateless session bean.
>> 
>> Here's some fodder for conversation:
>> 
>> I don't think there is an EJB facility which will help you.  SLSBs are
>> pooled and can timeout, SFSBs have no lookup mechanism, can timeout,
>> and aren't reentrant (although Orion, despite the spec, serializes
>> calls, which is good), and entity beans will get all wacky because of
>> the multiple instances you will get from an optimistic concurrency
>> model.
>> 
>> It seems like what you want is either a SLSB which never times out and
>> is guaranteed to only have one instance in the pool, or a BMP entity
>> bean with a guarantee of serialized transactions.
>> 
> 
> This is exactly what I want to do. The only reason why I wanted to use
> EJB was to get a bit more experience using them.
> 
> What I really want is many pooled objects that share one Master java
> object so that any number of users can access the java object without
> being locked out.
> 
>> Is it possible to make Orion do either of these?  And what would
>> happen in a clustered solution?
>> 
>> I propose that the only server-independent way to do what you want is
>> to use an RMI server.  The EJB specification really needs a
>> "SingletonBean", preferrably one which allows concurrent calls (and
>> thus reasonable performance).
>> 
>> Comments?
>> 
>> Jeff
>> 
>> 
>>>-Original Message-
>>>From: Mark Bernardinis [mailto:[EMAIL PROTECTED]]
>>>Sent: Tuesday, January 30, 2001 12:18 AM
>>>To: Orion-Interest
>>>Subject: Re: Session EJB Accessibility
>>>
>>>
>>>I don't want to do any database activity. I just want this 
>>>Java Object to be
>>>accessible as an EJB accessible by many different clients hosted by an
>>>Application Server. The object doesn't have to be stateful either.
>>>
>>>> It sounds like you're describing an entity bean more than a session
>>>> bean.  An entity bean can be called by many clients although 
>>>access is
>>>> serialized.  And certainly the role of an entity bean is to
>>>> encapsulate data in a 
>>>apparently-storage-mechanism-independent manner,
>>>> from the client's perspective...
>>>> 
>>>> How does the notion of a session play into what you want the bean to
>>>> do?
>>>> 
>>>>Gary
>>>> 
>>>> Mark Bernardinis ([EMAIL PROTECTED]) wrote:
>>>>>
>>>>> Requirements:
>>>>> An EJB to be Stateful
>>>>> Accessible by more than client
>>>>> Share the same data object and information
>>>>>
>>>>> Summarising the above information, I would like to have an EJB that
>>>>> can be called by many clients yet share the same underlying data
>>>>> within the bean. These clients may be another application running
>>>>> under Orion or a stand-alone application.
>>>>>
>>>>> Is this possible, and if it is, what special requirements 
>>>do I need to
>>>>> meet. I have looked at SessionContext but does this have anything
>>>>> to do with it?
>>>>>
>>>>> Thanks in advance.
>>>>>
>>>>> Mark






RE: Session EJB Accessibility

2001-01-30 Thread Mark Bernardinis

You hit the nail on the head. This is exactly what I want to do. I am
beginning to realise that maybe EJB is not the way to go with this example.

> I'm confused by your comments; does it need to manage state, or doesn't
> it?  I'm assuming it does, otherwise you would just use a stateless
> session bean.
> 
> Here's some fodder for conversation:
> 
> I don't think there is an EJB facility which will help you.  SLSBs are
> pooled and can timeout, SFSBs have no lookup mechanism, can timeout,
> and aren't reentrant (although Orion, despite the spec, serializes
> calls, which is good), and entity beans will get all wacky because of
> the multiple instances you will get from an optimistic concurrency
> model.
> 
> It seems like what you want is either a SLSB which never times out and
> is guaranteed to only have one instance in the pool, or a BMP entity
> bean with a guarantee of serialized transactions.
> 

This is exactly what I want to do. The only reason why I wanted to use EJB
was to get a bit more experience using them.

What I really want is many pooled objects that share one Master java object
so that any number of users can access the java object without being locked
out.

> Is it possible to make Orion do either of these?  And what would happen
> in a clustered solution?
> 
> I propose that the only server-independent way to do what you want is
> to use an RMI server.  The EJB specification really needs a
> "SingletonBean", preferrably one which allows concurrent calls (and
> thus reasonable performance).
> 
> Comments?
> 
> Jeff
> 
> 
>>-Original Message-
>>From: Mark Bernardinis [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, January 30, 2001 12:18 AM
>>To: Orion-Interest
>>Subject: Re: Session EJB Accessibility
>>
>>
>>I don't want to do any database activity. I just want this 
>>Java Object to be
>>accessible as an EJB accessible by many different clients hosted by an
>>Application Server. The object doesn't have to be stateful either.
>>
>>> It sounds like you're describing an entity bean more than a session
>>> bean.  An entity bean can be called by many clients although 
>>access is
>>> serialized.  And certainly the role of an entity bean is to
>>> encapsulate data in a 
>>apparently-storage-mechanism-independent manner,
>>> from the client's perspective...
>>> 
>>> How does the notion of a session play into what you want the bean to
>>> do?
>>> 
>>> Gary
>>> 
>>> Mark Bernardinis ([EMAIL PROTECTED]) wrote:
>>>>
>>>> Requirements:
>>>> An EJB to be Stateful
>>>> Accessible by more than client
>>>> Share the same data object and information
>>>>
>>>> Summarising the above information, I would like to have an EJB that
>>>> can be called by many clients yet share the same underlying data
>>>> within the bean. These clients may be another application running
>>>> under Orion or a stand-alone application.
>>>>
>>>> Is this possible, and if it is, what special requirements 
>>do I need to
>>>> meet. I have looked at SessionContext but does this have anything to
>>>> do with it?
>>>>
>>>> Thanks in advance.
>>>>
>>>> Mark






Help needed to access orion-primer example bean from standalone app

2001-01-30 Thread Mark Palaima


Below is a test to access orion-primer example bean from
a standalone client.

I can not get this to work and have looked through the
mail archive and web to find any working examples of
this type of access.  The lookup portion fails and I have
tried a number of variations.

Since the orion-primer example is used in the Orion
documentation and does work when I access the bean from
a servlet it seems that this bean is a good candidate
for being accessed from a standalone app (ie, any of the
mechanical issues regarding the bean creation and deployment
are moot) since it works.

I do have the application-client.xml empty for the
fully package qualified name reference attempt:




and here is the application-client.xml used for the
JNDI lookup attempts:



ejb/HelloHome
Session
hello.ejb.HelloHome
hello.ejb.Hello



I also make sure the application-client.xml is in a
META-INF directory under the directory where I am running
the standalone client program from.

I have verified that the host, application, username/password
etc... are correct and do work.  I have tried on 1.3.8 and
1.4.5, I am using JDK 1.2.2.

Please augment and/or modify or give hints to get this code to
access the HelloBean. I have spent a good amount of time trying
to make this work and really need some help.  Thanks ahead.

PS. let me know what version of Orion you use to get it to
work and where/what the application-client.xml was.  Also if
anyone a simple JNDI name dump utility so I can "see" what
Orion has done during its deployment would be a great help.

    MrP

Mark Palaima - [EMAIL PROTECTED]

/***
S T A N D A L O N EB E A NT E S T
***/
package test.beans ;

import hello.ejb.* ;
import java.util.Properties ;
import javax.naming.Context ;
import javax.naming.InitialContext;
import javax.naming.NamingException ;
import javax.rmi.PortableRemoteObject;

public class PrimerClient {

   public static void main(String[] args) {
   try {
HelloHome home ;

// Returns null because:
// java:comp/env namespace is only available from within a J2EE
component
home = getHelloHome("java:comp/env/ejb/hello/ejb/HelloHome") ;

// Returns null because:
// java:comp/env namespace is only available from within a J2EE
component
if (home == null)
home = getHelloHome("java:comp/env/ejb/HelloHome") ;

// Returns null because:
// hello/ejb/HelloHome not found
if (home == null)
home = getHelloHome("hello/ejb/HelloHome") ;

// Returns null because:
// ejb/HelloHome not found
if (home == null)
home = getHelloHome("ejb/HelloHome") ;

// Returns null because:
// HelloHome not found
if (home == null)
home = getHelloHome("HelloHome") ;

// Returns null because:
// hello.ejb.HelloHome not found
if (home == null)
home = getHelloHome("hello.ejb.HelloHome") ;

// Unfortunately home is null from all above attempts (sigh...)
if (home == null) {
System.out.println("All HelloHome lookup attempts failed.")
;
}
else {
Hello bizObj = home.create();
System.out.println("response: " + bizObj.sayHello()) ;
bizObj.remove();
}

   } catch(Exception ex) {
System.err.println("errmsg: " + ex.getMessage()) ;
   }
   }

// There are 2 ways to lookup the ejb homes:
//
// 1. The name is FQN like home.ejb.ErrorHome.  This does not
//require any support from the application-client.xml
//
// 2. The JDNI name like:
//hello/ejb/HelloHome  or
//java:com/env/ejb/hello/ejb/HelloHome
//requires an  entry in the application-client.xml file
private static HelloHome getHelloHome(String name)
{
try {
InitialContext ctx = new InitialContext(getProperties());
Object ref = ctx.lookup(name) ;
HelloHome narrowedObj =
(HelloHome)PortableRemoteObject.narrow(ref,
HelloHome.class);
return narrowedObj ;
}
catch(Exception e) {
System.out.println("Failed to find & narrow.\n" +
e.getMessage()) ;
System.out.println("") ;
}

return null ;
   }

   // Required since we are accessing the Orion JNDI tree from the outside
   // of the appserver.
   private static Properties getPropert

Help needed to access orion-primer example bean from standalone app

2001-01-30 Thread Mark Palaima


Below is a test to access orion-primer example bean from
a standalone client.

I can not get this to work and have looked through the
mail archive and web to find any working examples of
this type of access.  The lookup portion fails and I have
tried a number of variations.

Since the orion-primer example is used in the Orion
documentation and does work when I access the bean from
a servlet it seems that this bean is a good candidate
for being accessed from a standalone app (ie, any of the
mechanical issues regarding the bean creation and deployment
are moot).

I do have the application-client.xml empty for the
fully package qualified name reference attempt and have
the refs set correctly when using the JDNI name lookup.

I have verified that the host, application, username/password
etc... are correct and do work.  I have tried on 1.3.8 and
1.4.5, I am using JDK 1.2.2.

Please augment and/or modify or give hints to get this code to
access the HelloBean. I have spent a good amount of time trying
to make this work and really need some help.  Thanks ahead.

PS. let me know what version of Orion you use to get it to
work.  Also if you have a simple JNDI name dump utility so
I can "see" what Orion has done during its deployment would
be a great help.

    MrP

Mark Palaima - [EMAIL PROTECTED]

/*
S T A N D A L O N EB E A NT E S T
*/
package test.beans ;

import hello.ejb.* ;
import java.util.Properties ;
import javax.naming.Context ;
import javax.naming.InitialContext;
import javax.naming.NamingException ;
import javax.rmi.PortableRemoteObject;

public class PrimerClient {

   public static void main(String[] args) {
   try {
HelloHome home ;

// GETS EXCEPTION:
// java:comp/env namespace is only available from within a J2EE
component
// Any variation of java:comp/env will get this exception.
home = (HelloHome)getNarrowedName(
"java:comp/env/ejb/hello/ejb/HelloHome",
HelloHome.class) ;

// GETS EXCEPTION:
// java:comp/env namespace is only available from within a J2EE
component
home = (HelloHome)getNarrowedName(
"java:comp/env/ejb/HelloHome",
HelloHome.class) ;

// GETS EXCEPTION:
// hello/ejb/HelloHome not found
home = (HelloHome)getNarrowedName(
"hello/ejb/HelloHome",
HelloHome.class) ;

// GETS EXCEPTION
// hello.ejb.HelloHome not found
home = (HelloHome)getNarrowedName(
"hello.ejb.HelloHome",
HelloHome.class) ;

Hello bizObj = home.create();

System.out.println("response: " + bizObj.sayHello()) ;

bizObj.remove();

   } catch(Exception ex) {
System.err.println("errmsg: " + ex.getMessage()) ;
   }
   }

// There are 2 ways to lookup the ejb homes:
//
// 1. The name is FQN like home.ejb.ErrorHome.  This does not
//require any support from the application-client.xml
//
// 2. The JDNI name like:
//hello/ejb/HelloHome  or
//java:com/env/ejb/hello/ejb/HelloHome
//requires an  entry in the application-client.xml file
//
private static java.lang.Object getNarrowedName(String name, Class cls)
{
try {
InitialContext ctx = new InitialContext(getProperties());
Object ref = ctx.lookup(name) ;
Object narrowedObj = PortableRemoteObject.narrow(ref, cls);
return narrowedObj ;
}
catch(Exception e) {
System.out.println("Failed to find & narrow.\n" +
e.getMessage()) ;
System.out.println("") ;
}

return null ;
   }

   // Required since we are accessing the Orion JNDI tree from the outside
   // of the appserver.
   private static Properties getProperties() {
Properties p = new Properties();

p.setProperty(Context.PROVIDER_URL,
"ormi://localhost/orion-primer");
p.setProperty(
Context.INITIAL_CONTEXT_FACTORY,
"com.evermind.server.ApplicationClientInitialContextFactory");

// orion\config\principals.xml, set deactivated="false" for admin
user
p.setProperty(Context.SECURITY_PRINCIPAL,   "admin");
p.setProperty(Context.SECURITY_CREDENTIALS, "123");

return p ;
   }
}





Re: Session EJB Accessibility

2001-01-30 Thread Mark Bernardinis

I don't want to do any database activity. I just want this Java Object to be
accessible as an EJB accessible by many different clients hosted by an
Application Server. The object doesn't have to be stateful either.

> It sounds like you're describing an entity bean more than a session
> bean.  An entity bean can be called by many clients although access is
> serialized.  And certainly the role of an entity bean is to
> encapsulate data in a apparently-storage-mechanism-independent manner,
> from the client's perspective...
> 
> How does the notion of a session play into what you want the bean
> to do?
> 
>   Gary
> 
> Mark Bernardinis ([EMAIL PROTECTED]) wrote:
>>
>> Requirements:
>> An EJB to be Stateful
>> Accessible by more than client
>> Share the same data object and information
>>
>> Summarising the above information, I would like to have an EJB that
>> can be called by many clients yet share the same underlying data
>> within the bean. These clients may be another application running
>> under Orion or a stand-alone application.
>>
>> Is this possible, and if it is, what special requirements do I need to
>> meet. I have looked at SessionContext but does this have anything to
>> do with it?
>>
>> Thanks in advance.
>>
>> Mark






Session EJB Accessibility

2001-01-29 Thread Mark Bernardinis


Requirements:
An EJB to be Stateful
Accessible by more than client
Share the same data object and information

Summarising the above information, I would like to have an EJB that can be
called by many clients yet share the same underlying data within the bean.
These clients may be another application running under Orion or a
stand-alone application.

Is this possible, and if it is, what special requirements do I need to meet.
I have looked at SessionContext but does this have anything to do with it?

Thanks in advance.

Mark





Principals.xml

2001-01-25 Thread Angus Mark

Hi there,

I'm using orion 1.3.8 (with jdk1.3 on WinNT) and am using a custom
orion-application.xml.
When I try to deploy the app, I get the following error : "invalid
principals config URL: principals.xml for MyApp"
Both principals.xml and orion-application.xml are in the ejb/meta-inf
directory

Somebody mentioned in an old posting that this is a Windows problem and that
copying the file manually is the only way to do it - is this a bug, or what?

Any help greatly appreciated

Angus F. Mark
Senior Programmer
RTSe UK Ltd
Tel. +44 0207 749 5000
Fax. +44 0207 749 5001
mailto:[EMAIL PROTECTED]
http://www.rtse.com/
 
> This email may not form any part of a 
> legally binding contract unless specifically
> stated.The information in this email is 
> confidential and may be legally privileged.
>  It is intended solely for the addressee.
> Access to this email by anyone else is 
> unauthorized.  If you are not the intended 
> recipient, any disclosure, copying,
> distribution or any action taken or omitted
> to be taken in reliance on it,
> is prohibited and may be unlawful.
> 
> 




Java Petstore v1.1.1 / orion v1.3.8

2001-01-15 Thread Mark Hoek

Hello,
Does anyone have good experiences with running the new blueprints petstore
application v1.1.1 in orion 1.3.8? Is a patched version (like the
orion-config-jps1.0.zip) available?
Thanks,
Mark Hoek




Re: Help with Java obfuscators

2001-01-04 Thread mark

Arno:

I'm real happy with IBM's freeware product "JAX": http://www.alphaworks.ibm.com/tech/JAX.

Incidentally this seems to be the same tool Evermind uses.

--Mark







"Arno Grbac" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
01/04/2001 09:41 AM
Please respond to Orion-Interest

        
        To:        Orion-Interest <[EMAIL PROTECTED]>
        cc:        
        Subject:        Help with Java obfuscators


Happy and prosperous New Year to all,

I hope somebody could recommend a decent code obfuscator
for a Java library.

Thanks,
-arno







Re: Directories in applications

2000-12-28 Thread Mark Bernardinis

Forgive me for being stupid, I forgot to add execute permissions to
directories.

Mark Bernardinis wrote:
> 
> I have created a sample directory underneath an application I created
> called samples so that I could test cocoon's abilities. I am able to
> browse to that directory but once all files and directories are listed,
> their corresponding sizes are all 0KB including the index.xml files. If
> I attempt to load any of them I get a resource not found.
> 
> I have checked all the permissions and they seem to be alright. They are
> rwx - rw - r with orion as the owner and j2ee as the group.
> 
> Does anyone have any ideas. If I move these files into the root of my
> application I have no problem, but once I enter the directory structure
> of samples underneath my app the problems start.
> 
> Mark

begin:vcard 
n:Bernardinis;Mark
x-mozilla-html:FALSE
org:Westfield;eCommerce Development
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;0
fn:Mark Bernardinis
end:vcard



Directories in applications

2000-12-28 Thread Mark Bernardinis

I have created a sample directory underneath an application I created
called samples so that I could test cocoon's abilities. I am able to
browse to that directory but once all files and directories are listed,
their corresponding sizes are all 0KB including the index.xml files. If
I attempt to load any of them I get a resource not found.

I have checked all the permissions and they seem to be alright. They are
rwx - rw - r with orion as the owner and j2ee as the group.

Does anyone have any ideas. If I move these files into the root of my
application I have no problem, but once I enter the directory structure
of samples underneath my app the problems start.

Mark

begin:vcard 
n:Bernardinis;Mark
x-mozilla-html:FALSE
org:Westfield;eCommerce Development
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;0
fn:Mark Bernardinis
end:vcard



EJB Error Message in Orion Log File

2000-12-28 Thread Mark Bernardinis

When deploying an ejb application and tables need to be created, no
matter which tutorial I follow I seem to get this error included within
the logs first time.

BEGIN ERROR MESSAGE
---
Auto-deploying helios-ejb (ejb-jar.xml had been touched since the
previous deployment)... SQL error: ERROR:  parser: parse error at or
near ")"
---
 END ERROR MESSAGE

>From what I can see, everything else seems to be running fine. The table
is created in the DB and there are rows being populated in the tables as
well.

Server specific information is:
Orion v1.4.4
PostgreSQL 7.0.2
Linux 2.2.17
IBM JDK 1.3.0

If there is any more information required please email me. Thanks for
your help.

Regards,

Mark

begin:vcard 
n:Bernardinis;Mark
x-mozilla-html:FALSE
org:Westfield;eCommerce Development
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;0
fn:Mark Bernardinis
end:vcard



EJB Context

2000-12-20 Thread Mark Bernardinis
ve not been able to find
any doco on this (I am probably looking in the
wrong place.

The error I get when running this is,

javax.naming.NamingException: META-INF/application-client.xml resource
not found

Does anyone know how I should fix this. The purpose of me asking this is

because I want an application server such as Orion hosting all my ejb's
and
looking after them. I then want an application to use those beans (not
running
within Orion) to access them with the appropriate access. I believe it
has
something to do with RMI but not exactly sure how I should be accessing
Orion's JVM other than this way.

Your help is much appreciated.

Regards,

Mark
[EMAIL PROTECTED]


begin:vcard 
n:Bernardinis;Mark
x-mozilla-html:FALSE
org:Westfield;eCommerce Development
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;0
fn:Mark Bernardinis
end:vcard



URL Redirecting

2000-12-10 Thread Mark Bernardinis

When a user goes to a certain part of my application (Web-Site) I would
like them to be redirected to the secure part of my site and vice versa.

For example, when "/payment" is in the URL I would like the user to be
redirected to the SSL part of the web site. When this URL does not
exist, I would like them to be transferred out of the SSL encryption and
to the normal part of the site.

Is this possible? I know it is possible with Apache but I prefer not to
use it at all if I can help it.

Regards,

Mark
Westfield


begin:vcard 
n:Bernardinis;Mark
x-mozilla-html:FALSE
org:Westfield;eCommerce Development
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;0
fn:Mark Bernardinis
end:vcard



Secure SSL and Non-Encrypted Pages

2000-11-21 Thread Mark

I am building that requires SSL pages as well as non encrypted pages to
coexist within the same application. I have successfully created a fully
SSL enabled site and a fully non-encrypted site but they are unable to
work with each other (ie. the same application). Does anyone have any
ideas as to how can have files within a certain directory be submitted
securely and when that is finished to return back to non secure mode?

Regards,

Mark





RE: Current Hypersonic SQL web page

2000-11-17 Thread Mark Delanoy

It's still in SourceForge, e.g. http://sourceforge.net/projects/hsql/.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Gerald
Gutierrez
Sent: Friday, November 17, 2000 10:22 AM
To: Orion-Interest
Subject: Re: Current Hypersonic SQL web page



Disappeared two or three days ago for some reason.

At 09:44 AM 11/17/2000 -0600, you wrote:
>I can't find the Hypersonic SQL link at http://hsql.oron.ch/.  Does anyone
>know their current home?








Re: orionserver down?

2000-11-16 Thread Mark

I can actually access it unless my work is caching the page from
yesterday.

Mark

On Thu, 16 Nov 2000, Matthew Domarotsky wrote:

> My company is having trouble access orionserver.com, it seems down.
> Anyone else having problems?
> 
> 
> 
> 
> 





RE: Any Open Source Java Object database

2000-11-15 Thread Mark Delanoy

Try http://www.xl2.net/ and/or http://www.ozone-db.org/

I've used neither so I can't say how good they are

md

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Scott M Stark
Sent: Tuesday, November 14, 2000 4:24 PM
To: Orion-Interest
Subject: Re: Any Open Source Java Object database


cloudscape is pure Java, but it is not an OpenSource offering.

- Original Message - 
From: <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Tuesday, November 14, 2000 1:04 PM
Subject: Re: Any Open Source Java Object database


> 
> check out cloudscape at www.informix.com
> 
> 
> Ted Slusser
> 
> 
> 







EJB Basics

2000-11-14 Thread Mark A. Richman



What is the difference between WEB-INF and 
META-INF?  How do these directory structures relate to jar, ear, and war 
files?  Which of these is J2EE, and which is Orion-specific?  Maybe I 
am confusing something with Tomcat...
 
- Mark


RE: answer (maybe) RE: writing to application.log from EJB

2000-11-07 Thread Mark

Thanks Mike.  The info on Log4J is pretty interesting, especially the
ability to log to remote syslogs!  That's a great facility to have if
you're logging security-related events, for instance.  Will send you a
longer note to your internet.com address.

Will send the JNDI browser servlet code with deployment info to
OrionSupport asap, probably the weekend.

(If you find that logger, please holler!)

Thanks!

--Mark

==

Mark,

That would definitely help, OrionSupport.com would love your
contribution!

There is some interesting stuff in the ApplicationAdministrator that I
sent
to the list the other day, I believe that's where the logger is stored
but I
haven't yet quite hacked access to it.

Have you looked at using Log4J? (http://www.log4j.org) It's an open
source
logging package from IBM. I'd be happy to work with you about how best
to
use this in an EJB / Servlet environment, I'm about to start looking
into
this myself. Email me to collaborate, [EMAIL PROTECTED]

Mike

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Mark
> Sent: Wednesday, November 08, 2000 11:52 AM
> To: Orion-Interest
> Subject: answer (maybe) RE: writing to application.log from EJB
>
>
> Finally got smart and wrote a serlvet to map the Orion JNDI space.
> Doesn't look like there's a logger in there, unless it's bound to some

> subcontext not below "".  Here's the output from the mapper:
>
> Context "":
> EJBLogger: com.mycompany.ejb.logger.EJBLoggerHome
> jdbc: javax.naming.Context
> OraclePooledDS: com.evermind.sql.OrionPooledDataSource
> OracleDS: com.evermind.sql.DriverManagerDataSource
> HypersonicDS: com.evermind.sql.OrionCMTDataSource
> OracleEJBDS: com.evermind.sql.OrionCMTDataSource
> xa: javax.naming.Context
> HypersonicCoreDS: com.evermind.sql.DriverManagerDataSource
> java:comp: javax.naming.Context
> XATopicConnectionFactory:
> com.evermind.server.jms.EvermindXATopicConnectionFactory
> Administrator:
> com.evermind.server.administration.ApplicationAdministrator
> ResourceFinder:
> com.evermind.server.administration.ResourceFinder
> ServerAdministrator:
> com.evermind.server.administration.ApplicationServerAdministrator
> ApplicationClientConnector:
> com.evermind.server.administration.ApplicationClientConnector
> jms: javax.naming.Context
> demoQueue: com.evermind.server.jms.EvermindQueue
> QueueConnectionFactory:
> com.evermind.server.jms.EvermindXAQueueConnectionFactory
> demoTopic: com.evermind.server.jms.EvermindTopic
> TopicConnectionFactory:
> com.evermind.server.jms.EvermindXATopicConnectionFactory
> XAQueueConnectionFactory:
> com.evermind.server.jms.EvermindXAQueueConnectionFactory
>
> Thought about working around by passing ServletContext to my EJB's
log()
> methods; but ServletContext isn't Serializable.  Ugly solution anyway.

>
> S  Well I hate admitting failure, but am out of ideas. Seems
odd
> there's no intuitive way to write to the application logs from an EJB
--
> seems natural to want to do this.  Question for the Evermind folks: am
I
> the only one who's ever thought this would be a good thing to do?
Just
> curious.
>
> P.S., if anybody's interested in this JNDI mapper utility, let me know

> and I'll clean it up a little and post it to orionsupport.com.  There
> seem to be a lot of JNDI space related questions on the mailing list,
> dunno if this will help anybody.
>
> Thanks all!
>
> --Mark
>
> =
>
> There's no standard way to do this unfortunately. There is an Orion
> logger
> which I was told how to use once (involves a JNDI lookup at
> java:comp/env/logger or something like that) - I'll see if I can find
> the
> sample code.
>
> Mike
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Mark
> > Sent: Sunday, November 05, 2000 5:38 PM
> > To: Orion-Interest
> > Subject: writing to application.log from EJB
> >
> >
> > Folks:
> >
> > How do you write to the default-application.log from an EJB?
> >
> > From a servlet you call getServletContext().log().  Can find
anything
> > analogous in EJB-Land.
> >
> > Thanks for your help!  (Sorry if this is documented somewhere --
> > couldn't find it, if it is.)
> >
> > --Mark
> >
> >
> >
>
>
>





RE: answer (maybe) RE: writing to application.log from EJB

2000-11-07 Thread Mark

Well I *think* it works ok!  Hard to tell without another tool to
compare results with.  ;-)

Anyway that's great, I'm glad there's an interest.  Will tidy and
package it up asap, and send it to orionsupport.com.  Probaly over the
weekend.

--M

====

On Today, Mark ([EMAIL PROTECTED]) wrote:
> Finally got smart and wrote a serlvet to map the Orion JNDI space.
> Doesn't look like there's a logger in there, unless it's bound to some

> subcontext not below "".  Here's the output from the mapper:

Cool.  I wrote one but it didn't work the way I thought it would,
must have been some problem with my understanding of JNDI...

If you packaged it up, I'd love to use it!

   Gary






answer (maybe) RE: writing to application.log from EJB

2000-11-07 Thread Mark

Finally got smart and wrote a serlvet to map the Orion JNDI space.
Doesn't look like there's a logger in there, unless it's bound to some
subcontext not below "".  Here's the output from the mapper:

Context "":
EJBLogger: com.mycompany.ejb.logger.EJBLoggerHome
jdbc: javax.naming.Context
OraclePooledDS: com.evermind.sql.OrionPooledDataSource
OracleDS: com.evermind.sql.DriverManagerDataSource
HypersonicDS: com.evermind.sql.OrionCMTDataSource
OracleEJBDS: com.evermind.sql.OrionCMTDataSource
xa: javax.naming.Context
HypersonicCoreDS: com.evermind.sql.DriverManagerDataSource
java:comp: javax.naming.Context
XATopicConnectionFactory:
com.evermind.server.jms.EvermindXATopicConnectionFactory
Administrator:
com.evermind.server.administration.ApplicationAdministrator
ResourceFinder:
com.evermind.server.administration.ResourceFinder
ServerAdministrator:
com.evermind.server.administration.ApplicationServerAdministrator
ApplicationClientConnector:
com.evermind.server.administration.ApplicationClientConnector
jms: javax.naming.Context
demoQueue: com.evermind.server.jms.EvermindQueue
QueueConnectionFactory:
com.evermind.server.jms.EvermindXAQueueConnectionFactory
demoTopic: com.evermind.server.jms.EvermindTopic
TopicConnectionFactory:
com.evermind.server.jms.EvermindXATopicConnectionFactory
XAQueueConnectionFactory:
com.evermind.server.jms.EvermindXAQueueConnectionFactory

Thought about working around by passing ServletContext to my EJB's log()
methods; but ServletContext isn't Serializable.  Ugly solution anyway.

S  Well I hate admitting failure, but am out of ideas. Seems odd
there's no intuitive way to write to the application logs from an EJB --
seems natural to want to do this.  Question for the Evermind folks: am I
the only one who's ever thought this would be a good thing to do?  Just
curious.

P.S., if anybody's interested in this JNDI mapper utility, let me know
and I'll clean it up a little and post it to orionsupport.com.  There
seem to be a lot of JNDI space related questions on the mailing list,
dunno if this will help anybody.

Thanks all!

--Mark

=

There's no standard way to do this unfortunately. There is an Orion
logger
which I was told how to use once (involves a JNDI lookup at
java:comp/env/logger or something like that) - I'll see if I can find
the
sample code.

Mike

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Mark
> Sent: Sunday, November 05, 2000 5:38 PM
> To: Orion-Interest
> Subject: writing to application.log from EJB
>
>
> Folks:
>
> How do you write to the default-application.log from an EJB?
>
> From a servlet you call getServletContext().log().  Can find anything
> analogous in EJB-Land.
>
> Thanks for your help!  (Sorry if this is documented somewhere --
> couldn't find it, if it is.)
>
> --Mark
>
>
>





Re: Orion System Requirements

2000-11-06 Thread mark

Hi Unico:

Suspect the answer will depend a bit on your server OS, etc.  I think many of us would agree that Linux seems to be a bit more resource-friendly than NT, for instance.

Kevin Duffey posted the following Orion performance tests to this list on 10/19, perhaps this will help you.  You'll note that the box in his tests is a bit larger than yours; in particular it has a lot of RAM.

Hope this helps!

--Mark

Kevin's post of 10/19:

Hi all,

Well, using a pretty nifty (and very expensive) testing tool, I was able to
do some "minor" testing on a login process of our site. Using Orion, Oracle
8i database, and e-load test suite, here are some numbers that I got:

25 users  - 15 connections in the pool

pages per second  - 43
pages per day       - 3.75 million
transactions per second  - 14.5
transactions per day       - 1.26 million

25 users  - 30 connections in the pool

pages per second    - 26.4
pages per day         - 2.28 million
transactions per second - 8.81
transactions per day      - 761333

25 users - 5 connections in the pool

pages per second     -  51.95
pages per day          -  4.48 million
transactions per second  - 17.32
transactions per day    - 1.49 million

The test is simple. It uses the browser built into the e-test suite software
and "automates" the login process of our site. I ran the test on a PIII650,
with 512MB RAM. The database is running on a SUN E450 serve with 512MB RAM.
The test simply sends a post submitted form with the login name and password
to a controller servlet that then hits the database using a connection via
the pool, and logs in the user. All logins were valid, I did not test
invalid login names/passwords.

Just thought I would share these numbers. Next week I will be setting up a
two-server farm, using the load-balancer software that Orion includes in
their download. Each server will be dual PIII550 with 512MB RAM and SCSI III
RAID hd setup (Actually, they are IBM NetFinitiy 4000R units). The load
balancer will run on a slow PII300 workstation with 128MB RAM (I hope this
is good enough). They will be failed over and load-balanced, and I will test
the performance on those and post the results here.

The only thing I am not sure of is if different testing software performs
about the same..or are there dramatically different results.

If anyone wants me to attempt to test their site, I'll give it a go from
here..but its over a T1 connection, where as my test is done locally on a
LAN, so I am sure the results are more skewed.









Unico Hommes <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
11/06/00 05:12 AM
Please respond to Orion-Interest

        
        To:        Orion-Interest <[EMAIL PROTECTED]>
        cc:        
        Subject:        Orion System Requirements


I was wondering what are the recommended and/or minimum system requirements
for running Orion Server. I have a 100 Mhz Pentium - 24 Mb memory linux box
which I want to use for testing and developing web apps with Orion server.
Will this work ? I didn't find this info anywhere in the faq etc. on the
Orion website.

Regards,
Unico






Re: writing to application.log from EJB

2000-11-06 Thread Mark

Thank you Porfiriev.

In my real-world use, though, redirecting sysout and syserr isn't going
to give me the behavior I'm looking for -- not without a lot of
additional work, anyway.  What I'm doing is writing a "Logger" EJB which
is the central log manager for a fairly rich, distributed application
environment.  The Logger can write to console (sysout, syserr), or to
the application log file, or to a back-end RDBMS, depending on what it's
being asked to log, how it's configured, etc.; and apps anywhere in the
enterprise can use it as a central service.  So I need to keep console
output and persistent file output separate from each other.  Simplest
way I can think of is to use the same log writer which the
ServletContext uses -- you'd think that would be straightforward.
Haven't succeeded yet though!

Thanks again for the suggestion,

--Mark

===

Hello Mark,

Sunday, November 05, 2000, 1:38:08 AM, you wrote:

M> Folks:

M> How do you write to the default-application.log from an EJB?
M> From a servlet you call getServletContext().log().  Can find anything

M> analogous in EJB-Land.
M> Thanks for your help!  (Sorry if this is documented somewhere --
M> couldn't find it, if it is.)
M> --Mark

if you run orion like
 java -jar orion.jar 1>log/orion.log 2>log/orion.err

you can use
 System.out.println("DEBUG:...");
 System.err.println("Error:...");

to write to this logs

--
Best regards,
 Porfiriev







adding EJBs to the default app

2000-11-05 Thread Mark

Folks:

I know the veterans of this list must become pretty exasperated, seeing
problems posted here which would seem to be pretty simple.
Unfortunately I'm very lost in the complexity of J2EE's directory
structures and configuration .xmls.  Hopefully over time the interaction
between the various components will become more intuitive, but, have to
say, so far that's not happening..  Many thanks for your help and
patience.

Here's what I'm failing to achieve this time.  I have Orion's
default-web-app configured satisfactorily, with multiple JSPs and
Servlets interacting correctly.  Now I want to add a layer of EJB
business objects to this mix.  I believe I understand how to create a
*new* application including EJBs -- there are several documents
available with examples.  But, I'm unable to figure out how to add EJBs
to the existing, default app.  Questions:

1. What is the correct directory structure?  The "demo" sample has an
"ejb" subdirectory, with a "META-INF" and a further subdirectory for
each of the sample EJBs.  By analogy, should there be an "ejb"
subdirectory below "default-web-app", and so on?

2. What .xmls need to be informed that the new EJBs are now part of the
default application?  orion/config/application.xml contains the
 tag which defines defaultWebApp.  But it's not happy
containing  tags, per the sample application.xml files
within the "demo" directory.  Etc.

Clearly, I'm lost.  If someone would find me I'll be grateful.

--Mark





RE: writing to application.log from EJB

2000-11-05 Thread Mark

Mike, many thanks for the tip.  I found an Interface called
com.evermind.util.Logger, and a Class called com.evermind.util.LogEvent,
which seems hopeful.  But after some experimentation, I haven't found
the right JNDI lookup for returning a Logger reference -- assuming there
is one!.  If you can find the sample code I'll be grateful.

--Mark




There's no standard way to do this unfortunately. There is an Orion
logger
which I was told how to use once (involves a JNDI lookup at
java:comp/env/logger or something like that) - I'll see if I can find
the
sample code.

Mike

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Mark
> Sent: Sunday, November 05, 2000 5:38 PM
> To: Orion-Interest
> Subject: writing to application.log from EJB
>
>
> Folks:
>
> How do you write to the default-application.log from an EJB?
>
> From a servlet you call getServletContext().log().  Can find anything
> analogous in EJB-Land.
>
> Thanks for your help!  (Sorry if this is documented somewhere --
> couldn't find it, if it is.)
>
> --Mark
>
>
>









writing to application.log from EJB

2000-11-04 Thread Mark

Folks:

How do you write to the default-application.log from an EJB?

>From a servlet you call getServletContext().log().  Can find anything
analogous in EJB-Land.

Thanks for your help!  (Sorry if this is documented somewhere --
couldn't find it, if it is.)

--Mark





RE: getServletContext().getRealPath() bug?

2000-11-02 Thread Mark Delanoy

Yes we see this too and have since I think 1.3.8.


It compiles but does have a runtime exception, e.g. can't find  the method.
So we're doing hacks now using relative paths to figure out where we are.
Basically ever since the experimental 2.3 servlet and jsp stuff it seems to
have disappeared.  I didn't know if this was apart of the new spec or not
and they're didn't seem to be a replacement.

MD

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jason Rowland
Sent: Thursday, November 02, 2000 1:27 PM
To: Orion-Interest
Subject: getServletContext().getRealPath() bug?


Can someone tell me if this is correct behavior or if this is a bug?

In the init method of my servlet, I have the following line of code:

System.out.println(config.getServletContext().getRealPath("test.xml"));

The result I get is this:
c:\projects\leadsdb\deploy\webtest.xml

The root of the web site is c:\projects\leadsdb\deploy\web

It seems to me that getRealPath should return:
c:\projects\leadsdb\deploy\web\test.xml

Is this a bug?  Could someone either confirm or deny this bug for me?






RE: Xerces-J version

2000-10-27 Thread Mark Delanoy

Just replace it with the latest version.  Orion works fine with the update.
Same with Xalan if necessary

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Paul Hammant
Sent: Friday, October 27, 2000 4:44 AM
To: Orion-Interest
Subject: Xerces-J version


Hi,

Does anyone know why OrionServer ships with Xerces version 1.0.3 ?
Apache have this up to version 1.2.1 on their site:

http://xml.apache.org/xerces-j/index.html

-PH







re Performance test...

2000-10-26 Thread Mark

Kevin, quick question on your login test.  Does your application use
EntityBeans to represent your users (and therefore are you calling
EntityBean.ejbFind() to load from Oracle?).  Or are you using another
mechanism to represent users within your application?

Many thanks for posting this info, it's extremely helpful!

--Mark



Hi all,

Well, using a pretty nifty (and very expensive) testing tool, I was able
to
do some "minor" testing on a login process of our site. Using Orion,
Oracle
8i database, and e-load test suite, here are some numbers that I got:

25 users  - 15 connections in the pool

pages per second  - 43
pages per day   - 3.75 million
transactions per second  - 14.5
transactions per day   - 1.26 million

25 users  - 30 connections in the pool

pages per second- 26.4
pages per day - 2.28 million
transactions per second - 8.81
transactions per day  - 761333

25 users - 5 connections in the pool

pages per second -  51.95
pages per day  -  4.48 million
transactions per second  - 17.32
transactions per day- 1.49 million

The test is simple. It uses the browser built into the e-test suite
software
and "automates" the login process of our site. I ran the test on a
PIII650,
with 512MB RAM. The database is running on a SUN E450 serve with 512MB
RAM.
The test simply sends a post submitted form with the login name and
password
to a controller servlet that then hits the database using a connection
via
the pool, and logs in the user. All logins were valid, I did not test
invalid login names/passwords.

Just thought I would share these numbers. Next week I will be setting up
a
two-server farm, using the load-balancer software that Orion includes in

their download. Each server will be dual PIII550 with 512MB RAM and SCSI
III
RAID hd setup (Actually, they are IBM NetFinitiy 4000R units). The load
balancer will run on a slow PII300 workstation with 128MB RAM (I hope
this
is good enough). They will be failed over and load-balanced, and I will
test
the performance on those and post the results here.

The only thing I am not sure of is if different testing software
performs
about the same..or are there dramatically different results.

If anyone wants me to attempt to test their site, I'll give it a go from

here..but its over a T1 connection, where as my test is done locally on
a
LAN, so I am sure the results are more skewed.









Re: HINT: One possible way to cure an "internal error" on deployment

2000-10-23 Thread mark

I've done something kind of similar.  I found through experimentation that the Orion-generated file "orion-web.xml", which lives in the app-specific subdirectories beneath application-deployments, had gotten stale -- out of sync with my deployment descriptors.  When you shutdown Orion and blow away that file, Orion generates a new one with correct values.  Similar to your experience, that stopped the 500 Internal Errors.

Just noting this so you can experiment with it in future.

Hope this helps!

--Mark






Jim Archer <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
10/23/00 09:11 PM
Please respond to Orion-Interest

        
        To:        Orion-Interest <[EMAIL PROTECTED]>
        cc:        
        Subject:        HINT: One possible way to cure an "internal error" on deployment

Hi All...

I just thought I would put this out in case anyone finds it usefull to tuck 
away for future use.

For about an hour now, I have been getting an "Internal error" on 
deployment. The error complained that the persistence type was not set for 
one of my fields in an EB that participated in an EJB 2.0 CMP relationship.

I don't know what made me do it, but I went over to application-deploymnts 
and blew away the entire application folder. Then I started Orion and the 
app deployed like a champ.

If I could reproduce this, I would bugzilla it, but I can't, so I'm just 
offering this hint.

Jim









Re: Data Sources Help

2000-10-23 Thread Mark

Fixed it!  Yay!

Gary, I tried it again per the suggestion you forwarded from support,
but this time by removing the  from my web.xml and coding
my Java as you noted: "jdbc/etc".  Also fixed the startup problem by
removing a transparently stupid syntax error from data-sources.xml.

In case anybody else has been following this thread, here's the working
 and a code fragment:



InitialContext cxt = new InitialContext();
// WRONG: DataSource ds = (DataSource)
cxt.lookup("java:comp/env/OracleDS");
DataSource ds = (DataSource) cxt.lookup("jdbc/OracleEJBDS"); // RIGHT
Connection  c = ds.getConnection();

So the moral of the story seems to be, don't use the syntax
"java:comp/env/myDS"; rather, use "jdbc/myDS".

Note I've substituted "OracleEJBDS" per the note from support which Gary
included earlier in the thread.

Finally -- 'cause I'm personally done with this thread for a while, ;-)
-- if any of the Evermind folks are taking note, I'd very much like to
be able to choose to use networked LDAP for objects such as
DataSources.  Please consider this an enhancement suggestion.

Thanks Gary, Allen and Deepak!

--Mark

===

Thanks Allen.

The answers to your questions are yes, and yes.  Earlier messages in
this thread contained complete listings for the data-sources.xml and
web.xml files, plus a code snippet.  I'll append them to this reply in
case they're helpful.

You'll note that the data-sources definitions are slightly different
than what you suggest below.  Your suggestion is similar to the first
half of Deepak's example, that is, what he considers to be a non-pooled
version.  After reading your message I tried it with your configuration
and the test tag handler blows up in exactly the same spot.

--Mark

=

Excerpted from thread history:

Gary, I'm running 1.3.8.

Per your research into the Orion JNDI namespace, could there be an
undocumented quirk in Orion's implementation?  I've been using JNDI/LDAP

pretty extensively the last couple months and have been super impressed
with its ease and speed.  But, that environment is under my programmatic

control, including the namespace design.  In fact what I'd really like
to be able to do is throw a configuration switch enabling a networked
LDAP server as an alternative to using the Orion JNDI namespace.  If
there were a JNDI.xml file or something like that, perhaps it would be
possible to organize the namespace in a way that makes best sense for
your enterprise application architecture; and of course other servers
would be able to share centralized resources.  To my thinking
DataSources kind of cry out for this approach.  Seems to be the J2EE
"way", although, I dunno, I'm still learning.

In case it helps, below are the entries in my data-sources.xml and
web.xml files, and a code example. These are taken directly from
Deepak's earlier posts.  With these I'm able to get a non-null
Connection reference from the DataSource.  But note this isn't to
declare victory: still have a strange bug to figure out.  My tag handler

blows up with a NullPointerException when I call
Connection.createStatement() on the Connection reference.  Have no idea
if this is related to the config below, or what, but the Exception is
being caught by Orion, not by my tag handler, which at first glance
points to Orion's implementation of the pooled Connection object.

Note to Mike Cannon-Brookes: based on the quantity of questions posted
to the mailing list, I'd suggest that proper configuration of
DataSources and also the workings of the Orion JNDI namespace are two
good candidates for your super-FAQ suggestion.  :-)

--Mark

>From data-sources.xml:

 
 

 
 

>From web.xml:


OracleDS
jdbc/OracleDS


Oracle pooled data source
OracleDS
javax.sql.DataSource
Container


>From the tag handler:

try {

InitialContext cxt = new InitialContext();
DataSource ds = (DataSource) cxt.lookup("java:comp/env/OracleDS");

Connection c = ds.getConnection();
if (c == null)
System.out.println("==> Connection is null");
else System.out.println("Connection is not null");

/* Blows up here with NullPointerException caught by Orion --
NOT caught by the enclosing try/catch block.  Is this a bug
in the Connection object, which I assume is Orion's
implementation of a pooled version?  Should I post all this
to Buzilla?  Dunno!:
*/
Statement s = c.createStatement();
if (s == null)
System.out.println("==> Statement is null");
else System.out.println("Statement is not null");

} catch  (Exception e) {
System.err.println("==> Caught: " + e);
}

==

Mark, what version of Orion ar

Re: Data Sources Help

2000-10-23 Thread Mark

Thanks Allen.

The answers to your questions are yes, and yes.  Earlier messages in
this thread contained complete listings for the data-sources.xml and
web.xml files, plus a code snippet.  I'll append them to this reply in
case they're helpful.

You'll note that the data-sources definitions are slightly different
than what you suggest below.  Your suggestion is similar to the first
half of Deepak's example, that is, what he considers to be a non-pooled
version.  After reading your message I tried it with your configuration
and the test tag handler blows up in exactly the same spot.

--Mark

=

Excerpted from thread history:

Gary, I'm running 1.3.8.

Per your research into the Orion JNDI namespace, could there be an
undocumented quirk in Orion's implementation?  I've been using JNDI/LDAP

pretty extensively the last couple months and have been super impressed
with its ease and speed.  But, that environment is under my programmatic

control, including the namespace design.  In fact what I'd really like
to be able to do is throw a configuration switch enabling a networked
LDAP server as an alternative to using the Orion JNDI namespace.  If
there were a JNDI.xml file or something like that, perhaps it would be
possible to organize the namespace in a way that makes best sense for
your enterprise application architecture; and of course other servers
would be able to share centralized resources.  To my thinking
DataSources kind of cry out for this approach.  Seems to be the J2EE
"way", although, I dunno, I'm still learning.

In case it helps, below are the entries in my data-sources.xml and
web.xml files, and a code example. These are taken directly from
Deepak's earlier posts.  With these I'm able to get a non-null
Connection reference from the DataSource.  But note this isn't to
declare victory: still have a strange bug to figure out.  My tag handler

blows up with a NullPointerException when I call
Connection.createStatement() on the Connection reference.  Have no idea
if this is related to the config below, or what, but the Exception is
being caught by Orion, not by my tag handler, which at first glance
points to Orion's implementation of the pooled Connection object.

Note to Mike Cannon-Brookes: based on the quantity of questions posted
to the mailing list, I'd suggest that proper configuration of
DataSources and also the workings of the Orion JNDI namespace are two
good candidates for your super-FAQ suggestion.  :-)

--Mark

>From data-sources.xml:

 
 

 
 

>From web.xml:


OracleDS
jdbc/OracleDS


Oracle pooled data source
OracleDS
javax.sql.DataSource
Container


>From the tag handler:

try {

InitialContext cxt = new InitialContext();
DataSource ds = (DataSource) cxt.lookup("java:comp/env/OracleDS");

Connection c = ds.getConnection();
if (c == null)
System.out.println("==> Connection is null");
else System.out.println("Connection is not null");

/* Blows up here with NullPointerException caught by Orion --
NOT caught by the enclosing try/catch block.  Is this a bug
in the Connection object, which I assume is Orion's
implementation of a pooled version?  Should I post all this
to Buzilla?  Dunno!:
*/
Statement s = c.createStatement();
if (s == null)
System.out.println("==> Statement is null");
else System.out.println("Statement is not null");

} catch  (Exception e) {
System.err.println("==> Caught: " + e);
}

==

Mark, what version of Orion are you using?  I wrote a little utility
that traverses the JNDI namespace, just looking for Context objects
and displaying what's in them.  I found an env Context but it was
empty!  I did eventually discover, due to a chance remark of someone
on the list, that there is in fact another Context which my scheme
did not find, namely jdbc/*.  I'm feeling pretty stupid about JNDI
these days, since I can't even figure out how to search the space,
despite the spec's indication that (as best I can tell) it's a
purely heirarchical namespace!

   Gary

On Today, Mark ([EMAIL PROTECTED]) wrote:

> Dunno if this is any help, but I found through experimentation that,
if
> you're using the deployment approach suggested by Deepak Goel in the
> thread "ANSWER: how to use pooled connections in Orion", the parameter

> to pass to InitialContext.lookup() is, as he notes,
> "java:comp/env/d123DS", not "java:comp/env/jdbc/d123DS".  That is,
> there's no "jdbc" in that String.  Just pointing that out because I
> missed it at first.
>
> (Yes, it seems to take a while for messages to get out to the list!)
>
> --Mark

=

Re: Data Sources Help

2000-10-23 Thread Mark

Thanks Gary.

Well I gave it a shot.  First thing to note is that the instructions you
were given by support seem to be self contradictory.  While suggesting
you should use com.evermind.OrionConnectionDataSource with Oracle, the
example  uses com.evermind.sql.ConnectionDataSource.  So I
tried them both, and at least in my environment they blow up with
identical errors when the server is started:

Result with com.evermind.sql.ConnectionDataSource:

java -jar orion.jar
java.lang.NullPointerException
at com.evermind.server.deployment.EnterpriseArchive.ajv(JAX)
at com.evermind.server.deployment.EnterpriseArchive.bx(JAX)
at com.evermind.xml.XMLConfig.bs(JAX)
at com.evermind.xml.XMLConfig.ay(JAX)
at com.evermind.xml.XMLConfig.ay(JAX)
at com.evermind.server.ServerComponent.ay(JAX)
at com.evermind.server.XMLApplicationServerConfig.ak9(JAX)
at com.evermind.server.XMLApplicationServerConfig.by(JAX)
at com.evermind.xml.XMLConfig.ay(JAX)
at com.evermind.xml.XMLConfig.ay(JAX)
at com.evermind.server.hc.run(JAX)
at java.lang.Thread.run(Thread.java:498)
at com.evermind.util.f.run(JAX)

Result with com.evermind.OrionConnectionDataSource:

java -jar orion.jar
java.lang.NullPointerException
at com.evermind.server.deployment.EnterpriseArchive.ajv(JAX)
at com.evermind.server.deployment.EnterpriseArchive.bx(JAX)
at com.evermind.xml.XMLConfig.bs(JAX)
at com.evermind.xml.XMLConfig.ay(JAX)
at com.evermind.xml.XMLConfig.ay(JAX)
at com.evermind.server.ServerComponent.ay(JAX)
at com.evermind.server.XMLApplicationServerConfig.ak9(JAX)
at com.evermind.server.XMLApplicationServerConfig.by(JAX)
at com.evermind.xml.XMLConfig.ay(JAX)
at com.evermind.xml.XMLConfig.ay(JAX)
at com.evermind.server.hc.run(JAX)
at java.lang.Thread.run(Thread.java:498)
at com.evermind.util.f.run(JAX)

So...  hmmm...

Will keep trying as time permits.

--Mark





Re: Data Sources Help

2000-10-23 Thread Mark

Gary, I'm running 1.3.8.

Per your research into the Orion JNDI namespace, could there be an
undocumented quirk in Orion's implementation?  I've been using JNDI/LDAP
pretty extensively the last couple months and have been super impressed
with its ease and speed.  But, that environment is under my programmatic
control, including the namespace design.  In fact what I'd really like
to be able to do is throw a configuration switch enabling a networked
LDAP server as an alternative to using the Orion JNDI namespace.  If
there were a JNDI.xml file or something like that, perhaps it would be
possible to organize the namespace in a way that makes best sense for
your enterprise application architecture; and of course other servers
would be able to share centralized resources.  To my thinking
DataSources kind of cry out for this approach.  Seems to be the J2EE
"way", although, I dunno, I'm still learning.

In case it helps, below are the entries in my data-sources.xml and
web.xml files, and a code example. These are taken directly from
Deepak's earlier posts.  With these I'm able to get a non-null
Connection reference from the DataSource.  But note this isn't to
declare victory: still have a strange bug to figure out.  My tag handler
blows up with a NullPointerException when I call
Connection.createStatement() on the Connection reference.  Have no idea
if this is related to the config below, or what, but the Exception is
being caught by Orion, not by my tag handler, which at first glance
points to Orion's implementation of the pooled Connection object.

Note to Mike Cannon-Brookes: based on the quantity of questions posted
to the mailing list, I'd suggest that proper configuration of
DataSources and also the workings of the Orion JNDI namespace are two
good candidates for your super-FAQ suggestion.  :-)

--Mark

>From data-sources.xml:

 
 

 
 

>From web.xml:


OracleDS
jdbc/OracleDS


Oracle pooled data source
OracleDS
javax.sql.DataSource
Container


>From the tag handler:

try {

InitialContext cxt = new InitialContext();
DataSource ds = (DataSource) cxt.lookup("java:comp/env/OracleDS");

Connection c = ds.getConnection();
if (c == null)
System.out.println("==> Connection is null");
else System.out.println("Connection is not null");

/* Blows up here with NullPointerException caught by Orion --
NOT caught by the enclosing try/catch block.  Is this a bug
in the Connection object, which I assume is Orion's
implementation of a pooled version?  Should I post all this
to Buzilla?  Dunno!:
*/
Statement s = c.createStatement();
if (s == null)
System.out.println("==> Statement is null");
else System.out.println("Statement is not null");

} catch  (Exception e) {
System.err.println("==> Caught: " + e);
}

==

Mark, what version of Orion are you using?  I wrote a little utility
that traverses the JNDI namespace, just looking for Context objects
and displaying what's in them.  I found an env Context but it was
empty!  I did eventually discover, due to a chance remark of someone
on the list, that there is in fact another Context which my scheme
did not find, namely jdbc/*.  I'm feeling pretty stupid about JNDI
these days, since I can't even figure out how to search the space,
despite the spec's indication that (as best I can tell) it's a
purely heirarchical namespace!

   Gary

On Today, Mark ([EMAIL PROTECTED]) wrote:

> Dunno if this is any help, but I found through experimentation that,
if
> you're using the deployment approach suggested by Deepak Goel in the
> thread "ANSWER: how to use pooled connections in Orion", the parameter

> to pass to InitialContext.lookup() is, as he notes,
> "java:comp/env/d123DS", not "java:comp/env/jdbc/d123DS".  That is,
> there's no "jdbc" in that String.  Just pointing that out because I
> missed it at first.
>
> (Yes, it seems to take a while for messages to get out to the list!)
>
> --Mark











Re: ANSWER: How to use pooled connections in Orion?

2000-10-23 Thread Mark

Per the thread below, I realize after a bunch of tinkering that my
underlying assumption of a distributed app architecture is wrong; Orion
is managing DataSources itself, without talking to an external directory
server or other networked resource.  Duh.

But, that's not what I want.  What I'm after is to retrieve DataSources
from an LDAP server acting as a shared resource on the network.  This
can be done manually by binding DataSource objects to LDAP independently
of Orion, then programmatically creating InitialDirContexts with
appropriate connection parameters inside my application code.  What
might be better though would be if Orion's JNDI "data store" could be
configured to use networked LDAP instead of it's internal mechanism.
Can it?  Can Orion parse a JNDI.xml file or equivalent?  I'm not exactly
sure at this hour which approach might be more portable; the manual
version is obviously more work.

--Mark

==

Thank you Al.

I realize I haven't worded my question correctly, though.  Maybe a
better way to say it is, where is Orion's JNDI environment defined?
That is, how does Orion know the location of the LDAP server on the
network, plus the binding (login) credentials required so that the
data-sources.xml example can work its auto-magic?

If I were doing this programmatically I'd create an InitialDirContext
parameterized with a Hashtable of  connection parameters.  Presumably
Orion does the same thing behind the scenes. Where are those connection
parameters defined to Orion?

Many thanks,

--Mark

===

Orion will bind the Datasource to the JNDI environment for you, you set
this
up in the data-sources.xml file. for instance for my Oracle instance the

file is ... defined in data-sources.xml like so


http://www.orionserver.com/dtds/data-sources.dtd">


 
 


this will bind my DataSource to "java:comp/env/jdbc/RedbookDS"



Al


- Original Message -
From: "Mark" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Saturday, October 21, 2000 8:01 PM
Subject: RE: ANSWER: How to use pooled connections in Orion?


> Deepak et al:
>
> I'm confused about how Orion populates the JNDI server with the
> DataSource object.  Obviously for the code fragment you posted to
work,
> an object "jdbc/SQLServerDS" has to exist in your directory server.
How
> does it get there?
>
> I would have guessed that admin.jar -installDataSource was the answer,

> but I find no switch there which would tell Orion how to find the
> directory server.
>
> 
>
> Many thanks for your posts, they're very helpful!
>
> --Mark
>
> ===
> Hi,
>
> The way you access the datasource is dependent on where will you
access
> the
> datasource from. I'm currently accessing the datasource from a servlet

> which
> is pretty straightforward:
>
> InitialContext ctx = new InitialContext();
> DataSource ds = (DataSource)ctx.lookup("jdbc/SQLServerDS");
>
> The above method might not be portable but it works for me so I
mention
> it.
> Note that you don't need any special Orion datasource name. DataSource

> is
> defined in javax.sql.*
>
> The portable way which require more work is to add the following to
your
>
> web.xml if you access the datasource from servlets and/or JSP:
>
> 
>myDS
>jdbc/SQLServerDS
> 
> 
> A data source
>myDS
>javax.sql.DataSource
>CONTAINER
> 
>
> Now, you can access the datasource by:
>
> InitialContext ctx = new InitialContext();
> DataSource ds = (DataSource)ctx.lookup("java:comp/env/myDS");
>
>
> --Deepak
>
> -Original Message-
> From: Luis M Bernardo [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 12, 2000 7:39 AM
> To: Goel, Deepak
> Subject: Re: ANSWER: How to use pooled connections in Orion?
>
>
>
>
> hi. thanks for posting this message, but could you show me how you
make
> the connection (a code snippet)? Looking at old postings I see some
> people
> using a DataSource and some others a ConnectionPoolDataSource. Also,
you
>
> use a DriverManagerDataSource, some other people use a
> ConnectionDataSource.
>
> cheers,
> luis
>
>
> On Sat, 7 Oct 2000, Goel, Deepak wrote:
>
> > Hello everyone,
> >
> > I've seen that many people are confused over how to setup pooled
> connections
> > in Orion (even I was initially). Now since I figured out through
> > documentation and through some hit and try, I would like to share
> these
> > instructions. Keep in mind that this is only one way of setting it
up
> and
> > there are other ways to setup depending on ca

Re: Data Sources Help

2000-10-23 Thread Mark

Dunno if this is any help, but I found through experimentation that, if
you're using the deployment approach suggested by Deepak Goel in the
thread "ANSWER: how to use pooled connections in Orion", the parameter
to pass to InitialContext.lookup() is, as he notes,
"java:comp/env/d123DS", not "java:comp/env/jdbc/d123DS".  That is,
there's no "jdbc" in that String.  Just pointing that out because I
missed it at first.

(Yes, it seems to take a while for messages to get out to the list!)

--Mark




  Gary Shea said...

 > On Today, David Kenzik ([EMAIL PROTECTED]) wrote:
 > >  ds = (DataSource) ctx.lookup("java:comp/env/jdbc/d123DS");

 >
 > Well, it took me a couple weeks (not full time!) to figure out that
 > even though they tell you to use java:comp/env/jdbc... it doesn't
 > actually work.  Instead do your lookup on just "jdbc/d123DS".

Yes, Greg Matthews sent me a note shortly after receiving my inquiry
with
that same answer-- this is the case, "java:comp/env/jdbc..." won't work,
you
must shorten it to simply "jdbc/SOURCENAME".

Now that is out of the way, and it __was__ working for a bit. Really!

However, I wanted to restart Orion and pass it some debugging info to
find a
pesky connection leak. Now my Orion won't startup:

   Error initializing server: DriverManagerDataSource driver
'oracle.jdbc.driver.OracleDriver' not found

I've changed nothing and can't figure out what the heck would've caused
this.

My oracle.zip jdbc drivers are available because if I comment out my
 tag and start Orion, my servlets that use the Oracle jdbc

driver directly (without the Orion driver manager) work just fine.

I'm totally boggled at this point. Any ideas?

Also, does anyone else notice that it takes nearly an hour for messages
to
make it to the list distribution, or is it just my location versus the
Evermind mail server I guess I'm used to instant email. ;-)

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








Re: ANSWER: How to use pooled connections in Orion?

2000-10-21 Thread Mark

Thank you Al.

I realize I haven't worded my question correctly, though.  Maybe a
better way to say it is, where is Orion's JNDI environment defined?
That is, how does Orion know the location of the LDAP server on the
network, plus the binding (login) credentials required so that the
data-sources.xml example can work its auto-magic?

If I were doing this programmatically I'd create an InitialDirContext
parameterized with a Hashtable of  connection parameters.  Presumably
Orion does the same thing behind the scenes. Where are those connection
parameters defined to Orion?

Many thanks,

--Mark

===

Orion will bind the Datasource to the JNDI environment for you, you set
this
up in the data-sources.xml file. for instance for my Oracle instance the

file is ... defined in data-sources.xml like so


http://www.orionserver.com/dtds/data-sources.dtd">


 
 


this will bind my DataSource to "java:comp/env/jdbc/RedbookDS"



Al


----- Original Message -
From: "Mark" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Saturday, October 21, 2000 8:01 PM
Subject: RE: ANSWER: How to use pooled connections in Orion?


> Deepak et al:
>
> I'm confused about how Orion populates the JNDI server with the
> DataSource object.  Obviously for the code fragment you posted to
work,
> an object "jdbc/SQLServerDS" has to exist in your directory server.
How
> does it get there?
>
> I would have guessed that admin.jar -installDataSource was the answer,

> but I find no switch there which would tell Orion how to find the
> directory server.
>
> 
>
> Many thanks for your posts, they're very helpful!
>
> --Mark
>
> ===
> Hi,
>
> The way you access the datasource is dependent on where will you
access
> the
> datasource from. I'm currently accessing the datasource from a servlet

> which
> is pretty straightforward:
>
> InitialContext ctx = new InitialContext();
> DataSource ds = (DataSource)ctx.lookup("jdbc/SQLServerDS");
>
> The above method might not be portable but it works for me so I
mention
> it.
> Note that you don't need any special Orion datasource name. DataSource

> is
> defined in javax.sql.*
>
> The portable way which require more work is to add the following to
your
>
> web.xml if you access the datasource from servlets and/or JSP:
>
> 
>myDS
>jdbc/SQLServerDS
> 
> 
> A data source
>myDS
>javax.sql.DataSource
>CONTAINER
> 
>
> Now, you can access the datasource by:
>
> InitialContext ctx = new InitialContext();
> DataSource ds = (DataSource)ctx.lookup("java:comp/env/myDS");
>
>
> --Deepak
>
> -Original Message-
> From: Luis M Bernardo [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 12, 2000 7:39 AM
> To: Goel, Deepak
> Subject: Re: ANSWER: How to use pooled connections in Orion?
>
>
>
>
> hi. thanks for posting this message, but could you show me how you
make
> the connection (a code snippet)? Looking at old postings I see some
> people
> using a DataSource and some others a ConnectionPoolDataSource. Also,
you
>
> use a DriverManagerDataSource, some other people use a
> ConnectionDataSource.
>
> cheers,
> luis
>
>
> On Sat, 7 Oct 2000, Goel, Deepak wrote:
>
> > Hello everyone,
> >
> > I've seen that many people are confused over how to setup pooled
> connections
> > in Orion (even I was initially). Now since I figured out through
> > documentation and through some hit and try, I would like to share
> these
> > instructions. Keep in mind that this is only one way of setting it
up
> and
> > there are other ways to setup depending on capabilities of the
driver.
>
> >
> > 1. Basically, the first step is to create a non-pooled version of
your
>
> data
> > source. This can be done by adding something like this to your
> > data-sources.xml:
> >
> > >   class="com.evermind.sql.DriverManagerDataSource"
> >   name="SQLServerNP"
> >   location="jdbc/SQLServerNP"
> >   xa-location="jdbc/xa/SQLServerXANP"
> >   ejb-location="jdbc/SQLServerNP"
> >   connection-driver="com.inet.tds.TdsDriver"
> >   username="user"
> >   password="pwd"
> >   url="jdbc:inetdae:localhost"
> >   inactivity-timeout="30"
> >   schema="database-schemas\ms-sql.xml"
> >/>
> >
> > The above example is for a SQL Server data source using i-net
driver.

RE: ANSWER: How to use pooled connections in Orion?

2000-10-21 Thread Mark

Deepak et al:

I'm confused about how Orion populates the JNDI server with the
DataSource object.  Obviously for the code fragment you posted to work,
an object "jdbc/SQLServerDS" has to exist in your directory server.  How
does it get there?

I would have guessed that admin.jar -installDataSource was the answer,
but I find no switch there which would tell Orion how to find the
directory server.



Many thanks for your posts, they're very helpful!

--Mark

===
Hi,

The way you access the datasource is dependent on where will you access
the
datasource from. I'm currently accessing the datasource from a servlet
which
is pretty straightforward:

InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("jdbc/SQLServerDS");

The above method might not be portable but it works for me so I mention
it.
Note that you don't need any special Orion datasource name. DataSource
is
defined in javax.sql.*

The portable way which require more work is to add the following to your

web.xml if you access the datasource from servlets and/or JSP:


   myDS
   jdbc/SQLServerDS


A data source
   myDS
   javax.sql.DataSource
   CONTAINER


Now, you can access the datasource by:

InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:comp/env/myDS");


--Deepak

-Original Message-
From: Luis M Bernardo [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 12, 2000 7:39 AM
To: Goel, Deepak
Subject: Re: ANSWER: How to use pooled connections in Orion?




hi. thanks for posting this message, but could you show me how you make
the connection (a code snippet)? Looking at old postings I see some
people
using a DataSource and some others a ConnectionPoolDataSource. Also, you

use a DriverManagerDataSource, some other people use a
ConnectionDataSource.

cheers,
luis


On Sat, 7 Oct 2000, Goel, Deepak wrote:

> Hello everyone,
>
> I've seen that many people are confused over how to setup pooled
connections
> in Orion (even I was initially). Now since I figured out through
> documentation and through some hit and try, I would like to share
these
> instructions. Keep in mind that this is only one way of setting it up
and
> there are other ways to setup depending on capabilities of the driver.

>
> 1. Basically, the first step is to create a non-pooled version of your

data
> source. This can be done by adding something like this to your
> data-sources.xml:
>
>   class="com.evermind.sql.DriverManagerDataSource"
>   name="SQLServerNP"
>   location="jdbc/SQLServerNP"
>   xa-location="jdbc/xa/SQLServerXANP"
>   ejb-location="jdbc/SQLServerNP"
>   connection-driver="com.inet.tds.TdsDriver"
>   username="user"
>   password="pwd"
>   url="jdbc:inetdae:localhost"
>   inactivity-timeout="30"
>   schema="database-schemas\ms-sql.xml"
>/>
>
> The above example is for a SQL Server data source using i-net driver.
> Remeber to change the connection-driver, username, password and url.
>
> 2. Now, the following step will add the pooled version. Add the
following
> lines to data-sources.xml.
>
>   class="com.evermind.sql.OrionPooledDataSource"
>   name="SQLServer"
>   location="jdbc/SQLServerDS"
>   xa-location="jdbc/xa/SQLServerXADS"
>   ejb-location="jdbc/SQLServerDS"
>   max-connections="4"
>   source-location="jdbc/SQLServerNP"
>   pooled-location="jdbc/SQLServerDS"
>   inactivity-timeout="30"
>   connection-driver="com.inet.tds.TdsDriver"
>   url="jdbc:inetdae:localhost"
>/>
>
> Note that the source-location should correspond to location in the 1st

step.
> "max-connections" can be changed to suit your requirements. I'm not
sure
> whether url and connection-driver are required here.
>
> The above steps should work for any JDBC drivers. If your driver
vendor
> supplies a data source, step 1 will be little bit different. Also,
some of
> the driver vendors directly provide pooled data source implementation
in
> which case 2 steps are not needed. I could successfully use i-net OPTA

> PooledDataSource with Orion.
>
> --Deepak
>
>







RE: New 2 Orion.

2000-10-11 Thread mark

Where is "youradminpw" configured?  Presumably one of the various XML files, but which one, and is there an example?  Haven't been able to find it in the docs.

Thanks!

--Mark








Nathan Phelps <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
10/07/00 12:43 PM
Please respond to Orion-Interest

        
        To:        Orion-Interest <[EMAIL PROTECTED]>
        cc:        
        Subject:        RE: New 2 Orion.

1.) You can cleanly shut Orion down using the following command: java -jar admin.jar ormi://yourservername admin youradminpw -shutdown
Or, you can use the Orion console by right-clicking on the Server and choosing Shutdown from the Context-sensitive menu.
 
2.) See http://www.znerd.demon.nl/orion-primer/
-Original Message-
From: Miles Daffin [mailto:[EMAIL PROTECTED]]
Sent: Saturday, October 07, 2000 2:12 PM
To: Orion-Interest
Subject: New 2 Orion.

Hi,
 
I have 2 questions for the Community:
 
1) I can start Orion (1.3.8) using a batch file but I cannot believe that the only way to stop it is 'Ctrl - c'. Is it?
2) I find the instructions for creating a new application a little scanty - does anyone know where I can find a real idiots', step by tedious step, guide to setting up an alternative to the default application?
 
Thanks.  
 
--
Miles Daffin 
Java Developer, Netherlands.  
 
Land: +31 (0)10 476 2412
Mobile: +31 (0)6 2959 1423
Permanent email: [EMAIL PROTECTED]



Lookup of Orion-based EJB from Tomcat-based servlet ("java:comp/env namespace is only available from within the J2EE environment")

2000-10-04 Thread McLain, Mark

NOTE:  This is a repost.  The message now includes a subject (oops!) and
more detail.

A coworker and I are trying to create a servlet that will run on his
computer under Tomcat.  This servlet is attempting to lookup and use an EJB
deployed on my computer under Orion.  This servlet is using the
com.evermind.server.ApplicationInitialContextFactory.

When the servlet performs the context object's lookup method (using the
String literal "java:com/env/fungi"), we get the following exception
displayed on his computer:

"Exception: javax.naming.NamingException:  java:comp/env namespace
is only available from within the J2EE environment ."

A command-line client application run on the same coworker's computer IS
able to successfully lookup the same EJB on my computer using the
"java:com/env/fungi" String literal.  This command-line client is using the
com.evermind.server.ApplicationClientInitialContextFactory.

We have been unable to find any documentation about the NamingException
described above.

Please, would someone explain reasons we might be getting this exception
and/or the proper way to access an Orion EJB from a Tomcat servlet?  We
would appreciate any assistance that can be given.

Thank you.

Mark McLain
Systems Developer
Sybron Laboratory Products Corporation





No Subject

2000-10-03 Thread McLain, Mark

A coworker and I are trying to create a servlet that will run on his
computer under Tomcat.  The servlet is attempting to lookup and use an EJB
deployed on my computer under Orion.

When the servlet performs the context object's lookup method (using the
String literal "java:com/env/fungi"), we get the following exception
displayed on his computer:

"Exception: javax.naming.NamingException: java:comp/env namespace is
only available from within the J2EE environment."

A command-line client application run on the same coworker's computer IS
able to successfully lookup the same EJB on my computer using the
"java:com/env/fungi" String literal.

We have been unable to find any documentation about the NamingException
described above.  If the message can be trusted, it appears as though our
servlet is not perceived to be part of the "J2EE world".  We are not sure
why.

Does anyone know anything that can help us?  We would appreciate any
assistance that can be given.

Thank you.

Mark McLain
Systems Developer
Sybron Laboratory Products Corporation





permanent redirects?

2000-10-01 Thread mark

Hello all:

Does Orion's HTTP server support permanent redirects?  For illustration, the line below is taken from an apache configuration file.  I'd like to configure the same behavior in Orion if that's possible:

"RedirectPermanent        /index.html        http://foo.bar.com/Welcome/index.jsp"

Thanks!

--Mark

RE: SSL - Only a few pages need SSL, does that slow things down?

2000-09-25 Thread Mark Delanoy

We actually have two web sites with the session state shared.  One's the
secure version and the other is the normal version.  They point to the same
directories and code.  It really a mapping issue.  However they are
distinctly different sites as far as Orion is concerned.  So if you do any
caching of static items they will get loaded twice, one per site.  So we do
a lot static singleton classes that have our caches, making the data
available throughout the JVM once.

There's a performance hit the first time you navigate to the first SSL
protected page but after that it gets better.

We haven't done measurements yet (that will be soon) but it is noticeably
slower running in SSL.  Makes sense due to the computation efforts envolved
with encryption and all the CPU cycles stolen to handle the security.

So for best practices we try to SSL as little as possible to keep a high
throughput on the Web server.

So it sounds like you have a similar problem as we had so this solution
should help you.

MD

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Duffey, Kevin
Sent: Monday, September 25, 2000 10:34 AM
To: Orion-Interest
Subject: SSL - Only a few pages need SSL, does that slow things down?


Hi,

Seeing all this SSL talk has me wondering a bit...we only have 3 pages right
now that use the HTTPS protocol. The other 200+ are just HTTP. If we have
Orion use SSL does it take any noticeable hit on the rest of the pages that
are not using SSL? I just want to make sure that before we go production
with our clustered SSL Orion setup, it isn't going to come to a crawl
because a few pages are using SSL. I haven't read much on how to get SSL to
work yet, but it seems to me as if the whole server goes in to SSL mode if
you use it. Is this the case..or is it only pages that use SSL that are
slow, the rest being unscathed by the SSL mode?

Thanks.






RE: JavaMail

2000-09-22 Thread Mark Delanoy

Look at Java Soft's Pet Shop example.  They have a stateless ejb mailer
which does emails.  Configuration is within ejb-jar.xml file.

it's fairly simple.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Amir Peivandi
Sent: Friday, September 22, 2000 1:26 PM
To: Orion-Interest
Subject: JavaMail


Dose anybody have a simple sample application which uses JavaMail to send
email?

Amir






Re: Third Party Packages

2000-08-31 Thread Mark A. Richman

How do I get off this damn list???!!!  It says I am not subscribed

-Mark

- Original Message -
From: "Smith, Bill (RIC)" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Thursday, August 31, 2000 8:56 AM
Subject: Third Party Packages


> I have a number of questions for the group.
>
> 1) If you have third party components (spell checking api, etc.) what is
the
> best way to attach them to an application? Is there some way to put them
in
> the classpath used by Orion? It isn't always convenient or easy to have a
> jar and put it in the orion directory.
>
> 2) From an earlier post, what is the proper way to undeploy an
application?
>
> 3) What is entailed in using LoadBalancer.jar that is part of 1.2.7?
>
> 4) Is there anywhere that the size of the object and connection pools can
be
> configured?
>
> TIA,
> Bill
>
> =
> Bill Smith
> Senior Software Engineer
> iXL, Inc.
> 4600 Cox Rd.
> Glen Allen, VA 23060
>
> tel: 804.217.
> fax: 804.217.8890
> [EMAIL PROTECTED]
>
> This message is intended only for the use of the Addressee and may contain
> information that is PRIVILEGED and CONFIDENTIAL. If you are not the
intended
> recipient, dissemination of this communication is prohibited. If you have
> received this communication in error, please erase all copies of the
message
> and its attachments and notify us immediately.
>
>
>





JNDI Service Providers

2000-08-29 Thread McLain, Mark

Background...

I would like to have Orion Application Server store its object references in
a Win2000 Active Directory via a JNDI LDAP service provider.  I would also
like to have my client applications access these same object references via
a JNDI LDAP service provider.

Question 1.  Does Orion support JNDI Service Providers other than the
default (accessed via ormi)?

Question 2.  Can Orion support the scenario I have described above?

Question 3.  If the answer to Question 2 is "Yes", what are the general
steps to accomplish the scenario?

Thanks!

Mark H. McLain
Systems Developer
Sybron Laboratory Products Corporation (SLPC)





RE: Help: Mapping roles to users.

2000-08-17 Thread mark . lussier



This 
week I only have 11am EST (8am here in California) open
 

Mark LussierChief Software ArchitectGE Power Systems 
eBusinessDC 8*433-2232 

  -Original Message-From: wim veninga 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, August 17, 2000 
  11:05 AMTo: Orion-InterestSubject: Help: Mapping roles 
  to users.Hi all, 
  I have created an  set of Enterprise beans and in the assembly 
  descriptor I have defined a set of roles that have some permissions to run 
  methods ( in ejb-jar.xml). When I deploy the application and the modify 
  orion-ejb-jar.xml to map the roles to different groups in the assembly 
  descriptor and than re-start or re-deploy the application (using 
  orionconsole.jar) orion overwrites the changes I've made in 
  orion-ejb-jar.xml (see below for the deployment descriptors ejb-jar.xml, 
  orion-ejb-jar.xml and orion-ejb-jar.xml after re-starting/re-deploying). 
  Has anybody done this in orion (with ejb 2.0 on orion 1.2.0) ? If so can 
  you sent me the deployment descriptors ? 
  Have I made an error ? (The groups are defined in principals.xml and the 
  role-mappings aren't being overwritten in orion-application.xml). 
  Does the default-method-acces tag in orion-ejb-jar.xml means that all the 
  methods that aren't tied to a method permission in ejb-jar.xml can be 
  called by the group/user and that all the methods that are can't be called ? 
  Thanks  in advance, Greetings Wim Veninga 
  In ejb-jar.xml:  http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtd"> 
    
   
    The deployment descriptor for 
  the com.fnv.kozijncalc beans 
       
     
   
     
  Klant 
     
  com.fnv.kozijncalc.entities.klanten.KlantHome 
     
  com.fnv.kozijncalc.entities.klanten.Klant 
     
  com.fnv.kozijncalc.entities.klanten.KlantEJB 
     
  Container 
     
  java.lang.Integer 
     
  False 
     
  klantNr 
     
  klantNaam 
     
  klantAdres 
     
  klantPostcode 
     
  klantPlaats 
     
  klantLand 
     
  klantTelefoon 
     
  klantContactPersoon 
     
  klantNr    
        
  KlantSession 
    
  com.fnv.kozijncalc.sessions.klanten.KlantSessionHome 
    
  com.fnv.kozijncalc.sessions.klanten.KlantSession 
    
  com.fnv.kozijncalc.sessions.klanten.KlantSessionBean 
    
  Stateless 
    
  Container 
     
    
  kozijn/ejb/KlantHome 
    
  Entity 
    
  com.fnv.kozijncalc.entities.klanten.KlantHome 
    
  com.fnv.kozijncalc.entities.klanten.Klant 
    Klant 
          
    
    
   
     
     
  calculator 
     
     
     
  hoofd_calculator 
     
     
     
  werkvoorbereiding 
     
   
       
       
     
  werkvoorbereiding 
       
       
       
      The 
  permissions of the calculator role 
      
  calculator 
       
     
  The permissions for the klant entity bean 
  remote 
     
  Klant 
     
  Remote 
     
  * 
       
       
     
  A permission for the klant entity bean 
  home 
     
  Klant 
     
  Home 
     
  findAll 
       
       
     
  A permission for the klant entity bean 
  home 
     
  Klant 
     
  Home 
     
  findByKlantNaam 
     
   
     
  java.lang.String 
     
      
      
   
     
  A permission for the klant entity bean 
  home 
     
  Klant 
     
  Home 
     
  findByPrimaryKey 
     
   
     
  java.lang.Integer 
     
      
      
   
     
  The permissions for the klant session bean 
   
     
  KlantSession 
     
  create 
       
       
     
  The permissions for the klant session bean 
   
     
  KlantSession 
     
  findAllKlanten 
       
       
            
      The 
  permissions of the hoofd calculator role 
      
  hoofd_calculator 
       
     
  The permissions for the klant entity bean 
  remote 
     
  Klant 
     
  Remote 
     
  * 
       
       
     
  A permission for the klant entity bean 
  home 
     
  Klant 
     
  Home 
     
  findAll 
       
       
     
  A permission for the klant entity bean 
  home 
     
  Klant 
     
  Home 
     
  findByKlantNaam 
     
   
     
  java.lang.String 
     
       
       
   
     
  A permission for the klant entity bean 
  home 
     
  Klant 
     
  Home 
     
  findByPrimaryKey 
     
   
     
  java.lang.Integer 
     
       
       
   
     
  The permission

Clustering

2000-06-28 Thread Mark Causer

Have been looking at using Orion for Clustering and I am getting very
confused.

Some Questions:

1. Ive looked at the example quoted in
http://www.orionserver.com/docs/http-clustering-howto.html
- Why do I have to pass the sessionid to the second server ? Shouldn't the
clustering
  keep that data in sync ?
-
2. EJB Clustering. Is this supported in Orion ? If so how do I set it up ?
3. Why is there a cluster id in server.xml and rmi.xml ??
4. What is the  tag in rmi.xml used for ?

Sorry if I appear dense, but if anyone could explain this I would be very
grateful

Thanks

Mark Causer










Servlets and EJB's

2000-06-02 Thread Mark Causer

Hi,

Question I hope someone can help me with as I appear to be confusing myself over
this . . 

If I have a Servlet and an EJB defined in my application.xml and I have a class
that is used by BOTH the Servlet and the EJB (A transfer object passed from
Servlet to EJB) where should it be placed in the application ?

If it is in the EJB jar file it doesn't appear to be visible to the servlet.
Is there a way of defining shared jars for an application or should it be in
orion\lib in a helper jar ?

Thanks

mark




Source XML Error: External entity not found:

2000-05-31 Thread Kaseman, Mark T

I just upgraded to orion 1.0.0.RC2 and when I try to generate an XML
document from my JSP code I receive the following error
Source XML Error: External entity not found:  .dtd. 
This same code works fine under orion 1.0.0.RC1.
Right now I am not sure what the problem/issue is 
Here is the beginning JSP code:










Here is the dtd definition:




















Installing Servlets in Orion

2000-05-25 Thread Mark Causer

Hi,

I am having a few problems installing servlets into Orion.

My Server.xml is set to:

   

My default-web-site.xml is set to:

  http://localhost/pops-web/servlet/ParameterObjectFactory
and
http://localhost/pops-web/servlet/General

Obviously I am missing something as I am getting

HTTP 500 - Internal server error 

Anyone tell me where I am going wrong.
Is what I want to do possible ? Or do I have to package ALL servlets in one war
file ?

Thanks

Mark







RE: servlet-map

2000-04-19 Thread Mark Koontz

Hm.  It didn't work for me.  I tried adding the mapping in the
/WEB-INF/orion-web.xml file between   Is this
where it goes.  (The doc for orion-web.xml.html didn't explain servlet
mapping, it is mentioned in the web-app.xml.html doc, though.)  My app is
Model2 (I'm trying out the stuff you've been talking about in the jsp-interest
forum).  I have tried url-pattern[s] like /Model2/*.mdl2, /*.mdl2 and just plain
*.mdl2.  When I access http://server.local.net/Model2/index.mdl2, I get a 404
in every case.  I'm using Orion 0.9.6.

The mapping keeps being done from the web.xml.  When the application
auto-deploys,
Orion overwrites the orion-web.xml file and removes any servlet mappings in it.
Is there some relationship between web.xml and orion-web.xml that I'm missing?

Magnus made the comment, " "*.test" is an extension mapping (file extension),
the most common mistake is to simply not have a file by that name at that
location (*.ext differs from other mappings in that it needs a file to act
upon)."
The Servlet 2.2 spec doesn't mention a requirement for the existence of a file
at a location for a mapping to occur.  It simply states that any map beginning
with a '/' character is a path mapping; any map beginning with a '*' is an
extension mapping.  I don't understand how this can be interpreted to require
an actual file to exist whose name must match the requested name before a
mapping
will invoke a servlet.  I also don't understand what the use of such a file
would be in relation to the servlet being invoked.

Thanks for your part in making this forum and the jsp forum so interesting and
useful.

Mark

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Duffey
> Sent: Wednesday, April 19, 2000 4:14 PM
> To: Orion-Interest
> Subject: RE: servlet-map
>
>
> I had to use the orion-web.xml file to get servlet mapping to work. Look in
> the HELP files for orion-web.xml.html in the DOCS folder. It will explain
> how to map a servlet. I map *.do to my specific servlet, which resides in
> WEB-INF/classes and loads just fine.
>
>
>





servlet-map

2000-04-18 Thread Mark Koontz

For some reason, I can't get servlet-map to map to a servlet.  Am I doing
something wrong?  Here is the web-app configuration:






Model-2

Demonstration of a Model-2 Application



ctrl
Controller



ctrl
*.mdl2



index.html




Thanks for any help!
Mark





  1   2   >