RE: bugs in <@page extends="...."> in Orion implementation?

2001-05-28 Thread Randahl Fink Isaksen

Well, Robert, would you elaborate on those thoughts?

R.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Robert
Nicholson
Sent: 23. maj 2001 04:51
To: Orion-Interest
Subject: RE: bugs in <@page extends=""> in Orion implementation?


Factoring code into the jsppage superclass is a bad idea. You will regret
this later.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of SCOTT FARQUHAR
> Sent: Tuesday, May 22, 2001 5:53 PM
> To: Orion-Interest
> Subject: Re: bugs in <@page extends=""> in Orion implementation?
> 
> 
> It looks like your page should extend servlet and not jsppage.
> 
> Just change JSPBase to extend servlet (and make the required changes).
> 
> I haven't read the spec, but I imagine that extending 
> OrionHttpJspPage is proprietary, and would not be part of the spec.
> 
> Scott
> 
> >>> [EMAIL PROTECTED] 05/23/01 05:42am >>>
> I create a class called JSPBase class which extends OrionHttpJspPage,
> and I put the <@ page extends="packagename.JSPBase"> in my JSP file.
> however, orion give the following error:
> 
>  Superclass of the JSP page does not implement Servlet, invalid
> extends attribute.
> 
> Does orion implement <@page extends> correctly?
> 
> Any clarification?
> 
> -Jiuyun
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/ 
> 
> 
> 






RE: bugs in <@page extends="...."> in Orion implementation?

2001-05-28 Thread Randahl Fink Isaksen

Well, can anyone confirm that JSP pages can extend your own class when using
Orion??? Or has noone been able to use "@page extends"?

I see many good reasons for implementing your own super class for your JSP
pages. For instance, such a superclass could do logging of all client
activities or it could do security checking.


Randahl

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Robert
Nicholson
Sent: 25. maj 2001 21:15
To: Orion-Interest
Subject: RE: bugs in <@page extends=""> in Orion implementation?


It's doing you a favour.Please elaborate on why you want to extend
that class.


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jiuyun Wang
> Sent: Friday, May 25, 2001 9:20 AM
> To: Orion-Interest
> Subject: Re: bugs in <@page extends=""> in Orion implementation?
>
>
> It doesnot work, not matter which one (servlet/jspbase) I extends my
> jsp, orion jsp compiler just don't support extends
>
> -Jiuyun
> --- SCOTT FARQUHAR <[EMAIL PROTECTED]> wrote:
> > It looks like your page should extend servlet and not jsppage.
> >
> > Just change JSPBase to extend servlet (and make the required
> > changes).
> >
> > I haven't read the spec, but I imagine that extending
> > OrionHttpJspPage is proprietary, and would not be part of the spec.
> >
> > Scott
> >
> > >>> [EMAIL PROTECTED] 05/23/01 05:42am >>>
> > I create a class called JSPBase class which extends OrionHttpJspPage,
> > and I put the <@ page extends="packagename.JSPBase"> in my JSP file.
> > however, orion give the following error:
> >
> >  Superclass of the JSP page does not implement Servlet, invalid
> > extends attribute.
> >
> > Does orion implement <@page extends> correctly?
> >
> > Any clarification?
> >
> > -Jiuyun
> >
> >
> > __
> > Do You Yahoo!?
> > Yahoo! Auctions - buy the things you want at great prices
> > http://auctions.yahoo.com/
> >
> >
> >
>
>
> =
> Jiuyun Wang   M.Sc. of Computer Sciences
> Sun Certified Programmer for Java 2 Platform
> IBM Certified Solution & Enterprise Developer
> Phone: 919-696-0419(cel)
> Email: [EMAIL PROTECTED]
>
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>





Re: Creating an EJB

2001-05-28 Thread Ed Bras

See below.



>From: "Derek M. A. Lee-Wo" <[EMAIL PROTECTED]>
>Reply-To: Orion-Interest <[EMAIL PROTECTED]>
>To: Orion-Interest <[EMAIL PROTECTED]>
>Subject: Creating an EJB
>Date: Mon, 28 May 2001 16:21:40 -0400
>
>I need some help.  I'm trying to learn to create an EJB and use it from a
>JSP.
>
>I've seen some examples where I have to package everything into a war file
>(ejb and JSP) and I've gotton that to work in the past.  Is this mandatory?

Nop, it's not necessary to package everything in a ear file. I don't use it 
often, to easily develop an application.


>Can I simply create my EJB and deploy it to Orion and then create JSPs to
>use it?


Yep, but your EJB has to be part of an application.


>When I create my EJB, it seems that it must be part of an application in
>order to deploy it to Orion.  Is that correct?


Yep, everything is an application.
In the descriptor of the application you simple specify the components: 
ejb's and web components.
So if your application only contains ejb's, they are specified in the 
application.xml descriptor. The descriptor tells where to find the ejb's. In 
the ejb's dir ou specify the ejb-jar.xml in which you put the ejb details, 
and so onthe deeper you go, the more detail you specify...very elegant 
and structured.

Take a look at the orion-primer (search in the orion documentation for 
primer, as I don't know the url here).

Good luck,
Eddie




>
>Does anyone of an example showing what I'm trying to do?  The documentation
>for Orion is pretty sparse, but I'm also trying to follow the docs for 
>other
>app servers, but I can't seem to put my finger on a standardbut they 
>all
>have their own deployment apps and it's driving my crazy.
>
>Derek
>
>
>
>
>

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





Creating an EJB

2001-05-28 Thread Derek M. A. Lee-Wo

I need some help.  I'm trying to learn to create an EJB and use it from a
JSP.

I've seen some examples where I have to package everything into a war file
(ejb and JSP) and I've gotton that to work in the past.  Is this mandatory?
Can I simply create my EJB and deploy it to Orion and then create JSPs to
use it?

When I create my EJB, it seems that it must be part of an application in
order to deploy it to Orion.  Is that correct?

Does anyone of an example showing what I'm trying to do?  The documentation
for Orion is pretty sparse, but I'm also trying to follow the docs for other
app servers, but I can't seem to put my finger on a standardbut they all
have their own deployment apps and it's driving my crazy.

Derek








RE: proxying orion with IIS or iPlanet Web Server

2001-05-28 Thread Juan Lorandi (Chile)

Dig into ISA server, It's the M$ reversed proxy solution. Or else, go into
the ISAPI filter world (best of luck)

JP

> -Original Message-
> From: Andrew Diederich [mailto:[EMAIL PROTECTED]]
> Sent: Viernes, 25 de Mayo de 2001 16:37
> To: Orion-Interest
> Subject: proxying orion with IIS or iPlanet Web Server
> 
> 
> Folks,
> 
> I've been able to make proxying work with apache, but I 
> wanted to know if
> you could do the same thing with either IIS or iWS 4.1.  I was fooling
> around with redirects in IIS, but they seem to be truly 
> redirects, and not
> proxy passthroughs.  Has anyone accomplished this successfully?
> 
> --
> Andrew Diederich
> 




Re: Counter gives naming exception

2001-05-28 Thread Eddie

I am not sure if I understand you completely but it sounds like you forgot
you counter ref in your ejb-jar.xml.
Here is an example, I use the counter.jar in my user bean:

 
  
   nl.unwired.sgs.um.User
   nl.unwired.sgs.um.User
   nl.unwired.sgs.um.UserHome
   nl.unwired.sgs.um.User
   nl.unwired.sgs.um.UserEJB
   Container
   java.lang.Integer
   False
   id
   accIddatTimUpd
   id
   
ejb/Counter
Entity
com.evermind.ejb.CounterHome
com.evermind.ejb.Counter
   
  


And don't forget to include the counter as an ejb module in your
application.xml!

Good luck,
Eddie



- Original Message -
From: Koster, K.J. <[EMAIL PROTECTED]>
To: Orion-Interest <[EMAIL PROTECTED]>
Sent: Monday, May 28, 2001 7:34 PM
Subject: Counter gives naming exception


> Dear All,
>
> I'm sure I must be doing something dumb, but I've banging my head into
this
> stupid wall for two days now. I should have stayed in school and learned
> something, but nooo, I had to do Computer Science. *argh!* :-)
>
> I deployed the counter.jar (yes it's in the ear, it even autocreates the
> table it needs, but never uses). I have included the relevant bits into
> web.xml (from $ORION/applications/myapp/webthingy/WEB-INF/web.xml):
>
>   
> ejb/Counter
> Entity
> com.evermind.ejb.CounterHome
> com.evermind.ejb.Counter
>   
>
> Yet when I use that thing inside the ejbCreate of another bean I get a
> NameNotFound Exception. Replacing the Counterutils.getnextid() with (new
> Date()).getTime() works without generating the errors.
>
> How can I view the contents of the JNDI directory that Orion has? It would
> be sooo helpful in debugging.
>
> What is so obvious that I missed it?
>
> Kees Jan
>
> 
>  You are only young once,
>but you can stay immature all your life.
>
>
>




RE: Serious problem with Orion transaction processing: multiple c onnecti

2001-05-28 Thread Juan Lorandi (Chile)

This is most likely caused by Orion not recognizing transaction affinity.
CMP connections are taken from ejb-location, and the other connections
you're using are from either the non transactional pool (location) or XA
(xa-location). These pools are unaware of each other. Also, TX affinity is
handled on a per thread basis, so issuing JDBC commands directly from the
Web Server won't enrole these within the same transaction as the ones fired
from the app-server. Eduardo, if you can ellaborate further, we can provide
more assistance (and gain some know how in the process ;-)

JP

> -Original Message-
> From: Andre Vanha [mailto:[EMAIL PROTECTED]]
> Sent: Viernes, 25 de Mayo de 2001 14:15
> To: Orion-Interest
> Subject: RE: Serious problem with Orion transaction 
> processing: multiple
> c onnecti
> 
> 
> Interesting problem.  It could be that there is a bug in 
> orion, but since
> this problem is so likely to happen anytime you use multiple 
> connections I
> would suspect the problem was taken care of.
> 
> A couple of hints:
> 
> From which context are you executing your JDBC calls?  
> Servlet or EJB?  How
> are you retrieving the connection?  Dirver Manager or JNDI?  
> You should be
> using JNDI, and if you are,  you should be using the 
> EJBPooled location, to
> ensure transactional integrity with CMP transactions.  Also if you are
> executing JDBC calls from EJB, you should be defining and 
> using a resource
> reference in your assembly descriptor.
> 
> Andre
> 
> 
> 
> -Original Message-
> From: Eduardo Estefano [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 25, 2001 9:49 AM
> To: Orion-Interest
> Cc: Orion-Interest (E-mail)
> Subject: SV: Serious problem with Orion transaction 
> processing: multiple
> c onnecti
> 
> 
> Using 1.4.5 with Oracle 8i and jdk1.3.1
> 
> The problem we are finding is that when orion starts a 
> transaction, it does
> not necessarily executes all DB commands within the same database
> transaction.
> 
> The end result is a deadlock in the database.
> 
> I'm having a problem executing a delete command that does a 
> delete on child
> tables using JDBC and finally, a delete in the parent table using
> entityBean.remove().
> 
> I tested the code two ways. 
> 
> The first, with no constraints on the database and the delete 
> works fine.
> 
> The second, with foreign key constraings, causes a deadlock, where the
> parent delete is waiting on the child deletes to commit. But 
> this commit
> will not happen until the parent is deleted.
> 
> I was able to duplicate the problem manually, opening two 
> connections to the
> database and issuing SQL statements. Off course, if I was doing this
> manually, I would put both statements in the same transaction.
> 
> Here are my questions now:
> - Is it not allowed in EJB to mix JDBC and CMP Entity calls in the
> same transaction?
> 
> 




Re: Counter gives naming exception

2001-05-28 Thread Greg Stickley

if you are using NetBeans it comes with a JNDI
explorer on the runtime tab of the explorer.

--- "Koster, K.J." <[EMAIL PROTECTED]> wrote:
> Dear All,
> 
> I'm sure I must be doing something dumb, but I've
> banging my head into this
> stupid wall for two days now. I should have stayed
> in school and learned
> something, but nooo, I had to do Computer Science.
> *argh!* :-)
> 
> I deployed the counter.jar (yes it's in the ear, it
> even autocreates the
> table it needs, but never uses). I have included the
> relevant bits into
> web.xml (from
>
$ORION/applications/myapp/webthingy/WEB-INF/web.xml):
> 
>   
> ejb/Counter
> Entity
> com.evermind.ejb.CounterHome
> com.evermind.ejb.Counter
>   
> 
> Yet when I use that thing inside the ejbCreate of
> another bean I get a
> NameNotFound Exception. Replacing the
> Counterutils.getnextid() with (new
> Date()).getTime() works without generating the
> errors.
> 
> How can I view the contents of the JNDI directory
> that Orion has? It would
> be sooo helpful in debugging.
> 
> What is so obvious that I missed it?
> 
> Kees Jan
> 
> 
>  You are only young once,
>but you can stay immature all your life.
> 
> 


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




Re: Counter gives naming exception

2001-05-28 Thread Markus Holmberg

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

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

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

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

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

Markus

-- 

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




>>>Re: ATM example -> deployment error -> PLEASE some HELP

2001-05-28 Thread Eddie

Ok... forgot something...

I did some debugging by starting orion with the options:
-Djms.debug=true -Dmulticast.debug=true

I then receive the following when I run the client (sends a message):

Orion/1.4.7 initialized
Unknown command: -1
-

Anyone any idea, what this means and where this comes from    :-(
(I can't find this anywhere in my application nor the config dir of Orion)

BTW: when I play around with atm I don't get this "unknown command" but
mayby this is because I don't get to the logging part. When do I get to this
part ??
Eddie



- Original Message -
From: Eddie <[EMAIL PROTECTED]>
To: Orion-Interest <[EMAIL PROTECTED]>
Sent: Monday, May 28, 2001 7:13 PM
Subject: >>Re: ATM example -> deployment error -> PLEASE some HELP


> Ok,
> I now have my tiny jms client submitting messages, but the ejb doesn't
> consume them.
>
> I use the atm example as guideline and have this running. However when I
> have a look at the atm example, I notice that neither does atm logs !!1
That
> is, there doesn't appear anything in the table com_acme_atm_ejb_mainlog
> table, whereas other tables are filled!!
>
> What are the specific orion requirements, such that the jms-ejb consumes
the
> message ?? ( I am running on 1.4.7) and how can I debug the problem (look
at
> the topics's or somthing like that )?? I don't get any output from orion
in
> any log !! (strange!!!)
>
> I will shortly explain my client and ejb hereunder as they are really
short:
> The ejb-jar.xml:
> 
> 
>  
> 
>   JMS logger
>   Hello
>   HelloMSGBean.HelloBean
>   Container
>   JMSType='mainLogMessage'
>   
> javax.jms.Topic
>   
> 
>  
> 
> 
>
> The onmessage part in the ejb:
> 
>   public void onMessage(Message message) {
> System.out.println("onMessage");
>
> TextMessage textmessage = null;
> if (message instanceof TextMessage) {
>   textmessage = (TextMessage)message;
> } else {
>   return;
> }
> --
>
> The client part:
> ---
>   ctx=new InitialContext(p);
>
>
tcf=(TopicConnectionFactory)ctx.lookup("java:comp/env/jms/theTopicConnection
> Factory");
>   tcon = tcf.createTopicConnection();
>   tcon.start();
>tsession = tcon.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
>topic = (Topic)ctx.lookup("java:comp/env/jms/theTopic");
>tpublisher = tsession.createPublisher(topic);
>TextMessage message = tsession.createTextMessage();
>message.setJMSType("mainLogMessage");
>message.setText("Hello, World");
>tpublisher.publish(message);
> 
>
> The part in the jms.xml file (I am not sure if this is necessary!!!??):
> -
>  
>   A dummy topic
>  
> --
>
> The application-client.xml:
> -
> 
>  Something
>  
>   jms/theTopicConnectionFactory
>   javax.jms.TopicConnectionFactory
>   Container
>  
>  
>   jms/theTopic
>   javax.jms.Topic
>   Container
>  
> 
> 
>
> That's it, but the ejb doesn't print anything to the STDOUT.
> What am I doing wrong .
>
> Eddie
>




RE: Counter gives naming exception

2001-05-28 Thread Jason Smith

To look at the JNDI directory use the Orion Console tool:
java -jar orionconsole.jar

-jason

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Koster, K.J.
> Sent: Monday, May 28, 2001 1:35 PM
> To: Orion-Interest
> Subject: Counter gives naming exception
>
>
> Dear All,
>
> I'm sure I must be doing something dumb, but I've banging my head
> into this
> stupid wall for two days now. I should have stayed in school and learned
> something, but nooo, I had to do Computer Science. *argh!* :-)
>
> I deployed the counter.jar (yes it's in the ear, it even autocreates the
> table it needs, but never uses). I have included the relevant bits into
> web.xml (from $ORION/applications/myapp/webthingy/WEB-INF/web.xml):
>
>   
> ejb/Counter
> Entity
> com.evermind.ejb.CounterHome
> com.evermind.ejb.Counter
>   
>
> Yet when I use that thing inside the ejbCreate of another bean I get a
> NameNotFound Exception. Replacing the Counterutils.getnextid() with (new
> Date()).getTime() works without generating the errors.
>
> How can I view the contents of the JNDI directory that Orion has? It would
> be sooo helpful in debugging.
>
> What is so obvious that I missed it?
>
> Kees Jan
>
> 
>  You are only young once,
>but you can stay immature all your life.
>





>>Re: ATM example -> deployment error -> PLEASE some HELP

2001-05-28 Thread Eddie

Ok,
I now have my tiny jms client submitting messages, but the ejb doesn't
consume them.

I use the atm example as guideline and have this running. However when I
have a look at the atm example, I notice that neither does atm logs !!1 That
is, there doesn't appear anything in the table com_acme_atm_ejb_mainlog
table, whereas other tables are filled!!

What are the specific orion requirements, such that the jms-ejb consumes the
message ?? ( I am running on 1.4.7) and how can I debug the problem (look at
the topics's or somthing like that )?? I don't get any output from orion in
any log !! (strange!!!)

I will shortly explain my client and ejb hereunder as they are really short:
The ejb-jar.xml:


 

  JMS logger
  Hello
  HelloMSGBean.HelloBean
  Container
  JMSType='mainLogMessage'
  
javax.jms.Topic
  

 



The onmessage part in the ejb:

  public void onMessage(Message message) {
System.out.println("onMessage");

TextMessage textmessage = null;
if (message instanceof TextMessage) {
  textmessage = (TextMessage)message;
} else {
  return;
}
--

The client part:
---
  ctx=new InitialContext(p);

tcf=(TopicConnectionFactory)ctx.lookup("java:comp/env/jms/theTopicConnection
Factory");
  tcon = tcf.createTopicConnection();
  tcon.start();
   tsession = tcon.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
   topic = (Topic)ctx.lookup("java:comp/env/jms/theTopic");
   tpublisher = tsession.createPublisher(topic);
   TextMessage message = tsession.createTextMessage();
   message.setJMSType("mainLogMessage");
   message.setText("Hello, World");
   tpublisher.publish(message);


The part in the jms.xml file (I am not sure if this is necessary!!!??):
-
 
  A dummy topic
 
--

The application-client.xml:
-

 Something
 
  jms/theTopicConnectionFactory
  javax.jms.TopicConnectionFactory
  Container
 
 
  jms/theTopic
  javax.jms.Topic
  Container
 



That's it, but the ejb doesn't print anything to the STDOUT.
What am I doing wrong .

Eddie




Counter gives naming exception

2001-05-28 Thread Koster, K.J.

Dear All,

I'm sure I must be doing something dumb, but I've banging my head into this
stupid wall for two days now. I should have stayed in school and learned
something, but nooo, I had to do Computer Science. *argh!* :-)

I deployed the counter.jar (yes it's in the ear, it even autocreates the
table it needs, but never uses). I have included the relevant bits into
web.xml (from $ORION/applications/myapp/webthingy/WEB-INF/web.xml):

  
ejb/Counter
Entity
com.evermind.ejb.CounterHome
com.evermind.ejb.Counter
  

Yet when I use that thing inside the ejbCreate of another bean I get a
NameNotFound Exception. Replacing the Counterutils.getnextid() with (new
Date()).getTime() works without generating the errors.

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

What is so obvious that I missed it?

Kees Jan


 You are only young once,
   but you can stay immature all your life.





configuration of web tier (JNDI)

2001-05-28 Thread Denis Kranjcec

Hi everyone!

I'm new user of Orion and I have one problem.

I want to separate web tier and ejb tier. Both tiers will be running in the
same server for now, but later they will be on different Orion servers.
How can I specify that my web tier make jndi lookup to ejb tier, where is
JNDI server...?
We have two applications and  both have Login bean so I must be able to
specify application where my web tier should make lookup.

Configuration should be same as that tiers are on different servers.

I have read Orion documentation, but there isn't examples, and I'm not able
to figure it out how to configure it.

Thanks in advance,
Denis Kranjcec






Re: Shitty ORMap implementation in 1.5.1

2001-05-28 Thread Vidur Dhanda


The ORMap is badly broken in 1.5.1.  I had run into serious issues
and Magnus was kind enough to send me a fix.  I'm not sure I'm at
liberty to share that with you, but try contacting Magnus directly and
perhaps you too can get the fix.
Vidur
Lachezar Dobrev wrote:

  
The com.evermind.server.java.ORMap does NOT implement in the correct way
the java.util.Map interface. So... One is UNABLE to get the KeySet, or
ValueCollection.  
What the heck is that??   
Sincerly dissolved: Lachezar :(

--
Vidur Dhanda
Active Solutions
tel: 617/566-1252
cell: 617/821-7115
[EMAIL PROTECTED]
www.active-solutions-inc.com
 


RE: Confused with all the configuration files

2001-05-28 Thread Yves Bossel

Hello Stefan,

First of all, the files organization:
one J2EE application (e.g. ) is packed into a jar file whose name is
modified to ear, that application may contain (zero or more) of the
following components: EJB packed into jar files (e.g. ), and web
applications (e.g. ) packed into a jar file whose name is
modified to war.

.ear/
.ear/.jar
.ear/.jar
.ear/.jar
.ear/.jar
.ear/.jar

Remember that an EJB may be accessed by other EJBs within the same
application (), from web applications within the same application
() or from outside (in that case you have to do more work).

In order to be served the application, the EJBs and the web applications
have to be declared. You specify them in the /config/server.xml
file:
1. using the  tag your application is declared (the EBJs are
then implicitely retrieved from within the .ear file.
2. using the  tag you declare your web sites.
Note: use absolute paths (with backslashed in windows).


Now lets look a the .ear organization.

.ear/META-INF/application.xml
.ear/META-INF/orion-application.xml
.ear/META-INF/data-sources.xml
.ear/META-INF/.xml
.ear/META-INF/principals.xml

.ear/lib/

.ear/.jar/META-INF/ejb-jar.xml
.ear/.jar/META-INF/orion-ejb-jar.xml

.ear/.war/WEB-INF/web.xml
.ear/.war/WEB-INF/orion-web.xml
.ear/.war/lib
.ear/.war/classes
.ear/.war/


A little description:
.ear/META-INF/application.xml
Use the  tag to declare the components of your application:
.jar and .war;
that tag gives them a name that is referenced from
/config/server.xml.

.ear/META-INF/orion-application.xml
Declares deployment-specificities, such as (absolute) path to:
jars located in the .ear/META-INF/lib directory. 
Declare their path as "lib/jar"
Declares the location of data-sources.xml and principals.xml;
use following path
"\\META-INF\principals.xml"
(the same holds for data-sources.xml).

.ear/META-INF/data-sources.xml
This file holds the information about how to connect to your DB.
Although you could use the default one, I recommend you to put it
here,
it is too easy to forget files when deploying your app into another
Orion.
Note: do not forget to declare the path to this file in
orion-application.xml (see before)

.ear/META-INF/principals.xml
This file declares security roles and groups (use same name for
both).
Although you could use the default one, I recommend you to put it
here,
it is too easy to forget files when deploying your app into another
Orion.  
Note: do not forget to declare the path to this file in
orion-application.xml (see before)

.ear/META-INF/.xml
This file declares your web application.
This file could be located somewhere else, however the same as
before
holds.
Note: do not forget to declare the path to this file in 
/config/server.xml

.ear/lib/
This directory holds the jars your application depends on.

.ear/.jar/META-INF/ejb-jar.xml
The descriptor of your EJBs.
.ear/.jar/META-INF/orion-ejb-jar.xml
Deployment specificities of your EJBs 
(e.g. the queries associated to finder methods).


.ear/.war/WEB-INF/web.xml
Declares your servlets, and web applications configuration.
.ear/.war/WEB-INF/orion-ejb-jar.xml
Deployment specificities of your web app.
.ear/.war/lib
Contains helper libraries used by that specific web app.
.ear/.war/classes
Contains helper classes used by that specific web app.
.ear/.war/
Holds your JSP, HTML, etc.


Note that not all files are required (e.g. orion-abc.xml files are
automatically generated by orion if not present).

Put only those you really need.

When you start your application, orion will generate a directory named
.ear. It will also
generate a directory named /application-deployments//
When you modify classes, if they do not work as expected, you should
shutdown Orion and delete these two directories then restart.


The first week you will be a little bit confused, then when you remember
this map, everything will be easier.


I hope it helps,



Yves Bossel L.
Programmer
www.neoris.com - Business Technology Partners
Edificio Birmann 24, Sanchez Fontecilla 310, piso 7 (esq. Callao)
Las Condes, Santiago; CHILE
oficina: (56-2) 426-1260
email: [EMAIL PROTECTED]




abstract-schema-name ??

2001-05-28 Thread Eddie
Title: SV: ATM example -> deployment error -> PLEASE some HELP



Can someone please explain me the usage and 
maeaning of the "abstract-schema-name" tag in the ejb.xml ??
 
I known it's necessary in ejb 2.0 but can't find 
good information on the web about his usage !
BTW: 
- Can anyone tell me a good URL where  to 
download the ejb 2.0 spec, as I always get an error when downloading it from the 
javasoft site ?
 
 
Eddie


Re: ATM example -> deployment error -> PLEASE some HELP

2001-05-28 Thread Eddie
Title: SV: ATM example -> deployment error -> PLEASE some HELP



Hi Magnus,
 
Thanks for the advice.
I did some tests with the original config files and 
noticed that I have:
  
set in my server.xml while I am still using 1.4.7, 
whereas this tag is only needed from 1.4.8.
After removing this tag, deployment went 
ok.
I probable made a mistake when I went back to orion 
1.4.7 when I noticed that 1.4.8 didn't worked for me.
 
 
Thanks,
Eddie

  - Original Message - 
  From: 
  Magnus 
  Rydin 
  To: Orion-Interest 
  Sent: Monday, May 28, 2001 8:25 AM
  Subject: SV: ATM example -> deployment 
  error -> PLEASE some HELP
  
  Ed. 1) did you install Orion 
  properly? 2) Do you have a line that goes: 
       in your 
  [ORION-DIR]/config/server.xml ? 3) Does your 
  [ORION-DIR]/config/jms.xml looks anything like this:  http://www.orionserver.com/dtds/jms-server.dtd"> 
   
       
      
      A 
  dummy queue 
           
   
      
      A 
  dummy topic 
           
       
       
        
  WR 
  > -Ursprungligt meddelande- > Från: Ed Bras [mailto:[EMAIL PROTECTED]] 
  > Skickat: den 26 maj 2001 13:34 > Till: Orion-Interest > Ämne: Re: ATM 
  example -> deployment error -> PLEASE some HELP > > > Hi 
  Joel, > > Thanks but 
  isn't a bit weird what you do beneath: commenting > 
  the line in the > server.xml that actualy starts 
  the jms server ?? (that's what > you do not 
  ?). > Does this really helps ??? > > Eddie > 
  > > >From: "Joel B. 
  Kinney" <[EMAIL PROTECTED]> > >Reply-To: 
  Orion-Interest <[EMAIL PROTECTED]> > >To: Orion-Interest 
  <[EMAIL PROTECTED]> > 
  >Subject: Re: ATM example ->  deployment error -> PLEASE some 
  HELP > >Date: Wed, 23 May 2001 21:03:19 -0400 
  (EDT) > > > >I had 
  a similar problem running it on orion1.4.5. > >I 
  put this in server.xml, reference the list archive, after > I commented it > >out the atm 
  example worked. > > > 
  > > > > >Joel > > > > > > > >On Wed, 23 May 2001, Eddie 
  wrote: > > > > 
  > SV: abstract-schema-nameI am trying to develop an JMS > EJB, but I have > >bad luck with 
  it. > > > If I try to deploy the atm example 
  out of the box, just > as explained on 
  > >the orion web site, I get the same error as 
  with my tiny, > simple, short... > >JMS EJB: > > > 
   > > > Error deploying 
  file:/opt/Orion_1.4.7/applications/atm/atm-ejb.jar 
  >homes: No javax.jms.ConnectionFactory found at the 
  specified >destination-location 
  (jms/TopicConnectionFactory) for MessageDrivenBean >com.acme.atm.ejb.MainLoggerEJB > > 
  --- > > > > How do 
  I solve this, as this DRIVES me crazy as I can't find the JNDI 
  >reference anywhere in my application/atm ;( 
   > > > > 
  Eddie > > PS: I haven't changed anything to the 
  jms.xml file. > > PS: Isn't there a good JMS EJB 
  Orion example  available somewhere ??? I >looked at some places and found examples for WebLogix and others, 
  but >nothing on the orrionsupport site. I like to 
  write one, as the JMS gives >every time the same 
  error in the newsgroups but I can't find a good >solution in the newsgroup :(- > 
  > > > > 
  > 
  _ 
  Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. 
  


are my mail getting through?

2001-05-28 Thread Felix Schmid


--
Felix SchmidTech@Spree Software Technology GmbH
mailto: [EMAIL PROTECTED]   http://www.tech.spree.de/
http://www.techatspree.com
tel.: ++49/30/235 520-38Bülowstr. 66
fax.: ++49/30/236 318-7910783 Berlin (Aufgang D, 4.Etage)




test

2001-05-28 Thread Felix Schmid

test
--
Felix SchmidTech@Spree Software Technology GmbH
mailto: [EMAIL PROTECTED]   http://www.tech.spree.de/
http://www.techatspree.com
tel.: ++49/30/235 520-38Bülowstr. 66
fax.: ++49/30/236 318-7910783 Berlin (Aufgang D, 4.Etage)




Re: Cannot start orion using JDK1.4

2001-05-28 Thread Lachezar Dobrev



   You are trying to use the JRE, 
whilst Orion requires more stuff from the JDK itself.
   Try to start in the Orion 
directory:
  /bin/java -jar orion.jar
 
   Other thing: Check this NIO.DLL. 
Whatever. It may be missing. 
   ANOther thing: Put the 
c:\program\1.4\bin directory in the path.
 
   Try again :)
   Lachezar
 > 
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


Shitty ORMap implementation in 1.5.1

2001-05-28 Thread Lachezar Dobrev



   The com.evermind.server.java.ORMap 
does NOT implement in the correct way the java.util.Map interface. So... One is 
UNABLE to get the KeySet, or ValueCollection.
   What the heck is 
that??
 
   Sincerly dissolved: Lachezar 
:(


SV: Cannot start orion using JDK1.4

2001-05-28 Thread Patrik Andersson
Title: SV: Cannot start orion using JDK1.4





It works find for me to:


windows 2000 professional sp2
j2se1.4beta
orion 1.4.7


I surfed through my ejb2.0 app and everything seemed to be working.


regards,
Patrik Andersson


-Ursprungligt meddelande-
Från: Mark Kettner [mailto:[EMAIL PROTECTED]]
Skickat: den 28 maj 2001 09:46
Till: Orion-Interest
Ämne: Re: Cannot start orion using JDK1.4



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: 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: Cannot start orion using JDK1.4

2001-05-28 Thread Randahl Fink Isaksen

I suppose you are aware that the current JDK1.4 is only a beta release - I
think the error you posted is not related to Orion, and might very well be
JDK related, since it is concerning a JDK DLL.
We should probably expect some instability from the current JDK1.4 - sun has
chosen to not even display it on their JDK download page at
http://java.sun.com/j2se/.


Just a thought
Randahl


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of rosely kumoi
Sent: 28. maj 2001 03:57
To: Orion-Interest
Subject: Cannot start orion using JDK1.4


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
;
;
;
;
;
;






Orion filters != Servlet 2.3 spec

2001-05-28 Thread Manne Fagerlind

Hm!

I just tried to build my first filter under Orion and realized that,
amazingly, Orion doesn't conform to the latest spec! :-)

I guess the setFilterConfig(FilterConfig)-method in the javax.servlet.Filter
interface was present in a previous version of the spec, but has now been
replaced by init(FilterConfig), right? Does anybody know if/when Orion will
be updated so as to conform to the spec again? I suppose IronFlare may be
reluctant to do so because of backward-compatibility issues.

Karl or Magnus, are you there?

/Manne

"Build a foolproof system and someone will build a better fool"