RE: Building an application

2001-04-11 Thread olivier

I had a quick look at log4J, but though it looked very complete, also bit
more difficult to use that the dumb servlet.log()...
I could not download the binaries from opensymphony.

But I when I get some time, I will have a better look at log4j anyway.

thanks.

Olivier
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Dan North
Sent: 11 April 2001 13:02
To: Orion-Interest
Subject: RE: Building an application


Logging is something that has been rather overlooked in java.  The proposed
Java 1.4 contains a logging api, but in the meantime, the log4j project at
jakarta.apache.org/log4j is an excellent framework suitable for most
architectures.  We use it all the time in servlets, EJBs, taglibs, etc and
it works very well.

The OpenSymphony open source project (www.opensymphony.com) contains a
class called com.opensymphony.util.Logger in oscore.jar (you can obtain and
build this through anonymous cvs) which conveniently hides all the things
you don't need to know about log4j.  You use it like this:

import com.opensymphony.util.Logger;

public class MyClass {
   private static final Logger logger = new Logger( MyClass.class );
   ...
   public void myMethod() {
 logger.debug( "This is a debug message" );
 logger.info( "This is info" );
 logger.warn( "Guess what this is?" );
 logger.error( "Bad news" );
 logger.fatal( "REALLY bad news" );
 ...


It reads in a properties file which is described in the log4j docs, and is
accessed by
the logger.config system property, eg:

java -Dlogger.config=/path/to/my/logger.properties MyClass

which allows you to switch logging on and off, and record only certain
priorities of logging, send debug to the console and error to syslog or the
Event Logger in NT, etc.

Very clean, simple and nice to use.

Hope that helps,
Dan/tastapod

ps. I have no commercial affiliation in opensymphony, but Logger is
possibly the class I use the most anywhere in java, after java.lang.String
:o)


At 10:09 11/04/2001 +0100, you wrote:
>Thanks everyone,
>
>Switching off the "friendly" message, help me figuring out.
>
>It is now working.
>I had to modify 3 config files (instead of 2...see at the bottom of this
>mail):
>application.xml:
> 
>default-web-site.xml
> 
>server.xml
> 
>
>Does it look allright or redondant ???
>
>
>Is there a way to access a log class in Orion (is is standard to all EJB
>servers ?)
>
>Thanks again,
>
>Olivier
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of SCOTT FARQUHAR
>Sent: 11 April 2001 00:29
>To: Orion-Interest
>Subject: RE: Building an application
>
>
>Two things that might be of interest:
>
> 
> 
>
>in default-web-site.xml .  I assume that you can map an application to root
>by changing that?
>
>Turn off "friendly error messages" in Internet Explorer
>(tools->options->advanced->show friendly http error messages).
>
>A 500 could mean anything.  Once you get the stack trace you might be able
>to determine what the problem is.
>
>Scott
>
>
> >>> [EMAIL PROTECTED] 04/11/01 04:21am >>>
>Dan,
>
>The error I have is 500 (http internal server error), when I type
>http://localhost/taskforce
>If I type http://localhost, I have the orion home page.
>
>This the tree of the applications directory, once expanded by orion.
>
>D:\JAVA\ORION\APPLICATIONS
>taskforce.ear
>\---taskforce
> taskforce.war
> userEJB.jar
> +---META-INF
> application.xml
> \---taskforce
> index.html
> +---images
> +---META-INF
> \---WEB-INF
> +---classes
> |   +---net
> |   |   \---tnt
> |   |   +---user
> |   |   |   \---model
> |   |   +---util
> |   |   \---web
> |   |   +---control
> |   |   \---taglib
> |   \---org
> |   \---apache
> |   \---struts
> |   \---resources
> +---lib
> \---tlds
>
>The server.xml and default-web-site.xml have been modified as mentionned at
>the bottom of this mail.
>
>I have tried to modify the context root to "/" but it did not change.
>
>I have just noticed that you can set the root="/taskforce" in
>default-web-site.xml
>  root="/taskforce"/>
>and also in the /META-INF/application.xml of you
>ear(/taskforce)
>
>I suppose they must be the same (which is the case for me). What is the
role
>of each ?

RE: Building an application

2001-04-11 Thread Dan North

Logging is something that has been rather overlooked in java.  The proposed 
Java 1.4 contains a logging api, but in the meantime, the log4j project at 
jakarta.apache.org/log4j is an excellent framework suitable for most 
architectures.  We use it all the time in servlets, EJBs, taglibs, etc and 
it works very well.

The OpenSymphony open source project (www.opensymphony.com) contains a 
class called com.opensymphony.util.Logger in oscore.jar (you can obtain and 
build this through anonymous cvs) which conveniently hides all the things 
you don't need to know about log4j.  You use it like this:

import com.opensymphony.util.Logger;

public class MyClass {
   private static final Logger logger = new Logger( MyClass.class );
   ...
   public void myMethod() {
 logger.debug( "This is a debug message" );
 logger.info( "This is info" );
 logger.warn( "Guess what this is?" );
 logger.error( "Bad news" );
 logger.fatal( "REALLY bad news" );
 ...


It reads in a properties file which is described in the log4j docs, and is 
accessed by
the logger.config system property, eg:

java -Dlogger.config=/path/to/my/logger.properties MyClass

which allows you to switch logging on and off, and record only certain 
priorities of logging, send debug to the console and error to syslog or the 
Event Logger in NT, etc.

Very clean, simple and nice to use.

Hope that helps,
Dan/tastapod

ps. I have no commercial affiliation in opensymphony, but Logger is 
possibly the class I use the most anywhere in java, after java.lang.String :o)


At 10:09 11/04/2001 +0100, you wrote:
>Thanks everyone,
>
>Switching off the "friendly" message, help me figuring out.
>
>It is now working.
>I had to modify 3 config files (instead of 2...see at the bottom of this
>mail):
>application.xml:
> 
>default-web-site.xml
> 
>server.xml
> 
>
>Does it look allright or redondant ???
>
>
>Is there a way to access a log class in Orion (is is standard to all EJB
>servers ?)
>
>Thanks again,
>
>Olivier
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of SCOTT FARQUHAR
>Sent: 11 April 2001 00:29
>To: Orion-Interest
>Subject: RE: Building an application
>
>
>Two things that might be of interest:
>
> 
> 
>
>in default-web-site.xml .  I assume that you can map an application to root
>by changing that?
>
>Turn off "friendly error messages" in Internet Explorer
>(tools->options->advanced->show friendly http error messages).
>
>A 500 could mean anything.  Once you get the stack trace you might be able
>to determine what the problem is.
>
>Scott
>
>
> >>> [EMAIL PROTECTED] 04/11/01 04:21am >>>
>Dan,
>
>The error I have is 500 (http internal server error), when I type
>http://localhost/taskforce
>If I type http://localhost, I have the orion home page.
>
>This the tree of the applications directory, once expanded by orion.
>
>D:\JAVA\ORION\APPLICATIONS
>taskforce.ear
>\---taskforce
> taskforce.war
> userEJB.jar
> +---META-INF
> application.xml
> \---taskforce
> index.html
> +---images
> +---META-INF
> \---WEB-INF
> +---classes
> |   +---net
> |   |   \---tnt
> |   |   +---user
> |   |   |   \---model
> |   |   +---util
> |   |   \---web
> |   |   +---control
> |   |   \---taglib
> |   \---org
> |   \---apache
> |   \---struts
> |   \---resources
> +---lib
> \---tlds
>
>The server.xml and default-web-site.xml have been modified as mentionned at
>the bottom of this mail.
>
>I have tried to modify the context root to "/" but it did not change.
>
>I have just noticed that you can set the root="/taskforce" in
>default-web-site.xml
>  root="/taskforce"/>
>and also in the /META-INF/application.xml of you
>ear(/taskforce)
>
>I suppose they must be the same (which is the case for me). What is the role
>of each ?
>
>I guess there are 2 possible source of error
>1) the way I have update the server.xml and default-web-site.xml
> (default-web-site.xml)
>  root="/taskforce"/>
>
> (server.xml)
> 
>
>2) the directory structure (see above)
>
>
>Thanks,
>
>Olivier
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf

SV: Building an application

2001-04-11 Thread Magnus Rydin
Title: SV: Building an application





Why do you include taskforce.ear as an web-application in the global application ? (application.xml) ?


> -Ursprungligt meddelande-
> Från: olivier [mailto:[EMAIL PROTECTED]]
> Skickat: den 11 april 2001 02:09
> Till: Orion-Interest
> Ämne: RE: Building an application
> 
> 
> Thanks everyone,
> 
> Switching off the "friendly" message, help me figuring out.
> 
> It is now working.
> I had to modify 3 config files (instead of 2...see at the 
> bottom of this
> mail):
> application.xml:
>   
> path="../applications/taskforce.ear" />
> default-web-site.xml
>   
> root="/taskforce"/>
> server.xml
>   
> path="../applications/taskforce.ear"/>
> 
> Does it look allright or redondant ???
> 
> 
> Is there a way to access a log class in Orion (is is standard 
> to all EJB
> servers ?)
> 
> Thanks again,
> 
> Olivier
> 
> -Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of 
> SCOTT FARQUHAR
> Sent: 11 April 2001 00:29
> To: Orion-Interest
> Subject: RE: Building an application
> 
> 
> Two things that might be of interest:
> 
>   
>   
> 
> in default-web-site.xml .  I assume that you can map an 
> application to root
> by changing that?
> 
> Turn off "friendly error messages" in Internet Explorer
> (tools->options->advanced->show friendly http error messages).
> 
> A 500 could mean anything.  Once you get the stack trace you 
> might be able
> to determine what the problem is.
> 
> Scott
> 
> 
> >>> [EMAIL PROTECTED] 04/11/01 04:21am >>>
> Dan,
> 
> The error I have is 500 (http internal server error), when I type
> http://localhost/taskforce
> If I type http://localhost, I have the orion home page.
> 
> This the tree of the applications directory, once expanded by orion.
> 
> D:\JAVA\ORION\APPLICATIONS
> taskforce.ear
> \---taskforce
>   taskforce.war
>   userEJB.jar
> +---META-INF
>   application.xml
> \---taskforce
>   index.html
> +---images
> +---META-INF
> \---WEB-INF
> +---classes
> |   +---net
> |   |   \---tnt
> |   |   +---user
> |   |   |   \---model
> |   |   +---util
> |   |   \---web
> |   |   +---control
> |   |   \---taglib
> |   \---org
> |   \---apache
> |   \---struts
> |   \---resources
> +---lib
> \---tlds
> 
> The server.xml and default-web-site.xml have been modified as 
> mentionned at
> the bottom of this mail.
> 
> I have tried to modify the context root to "/" but it did not change.
> 
> I have just noticed that you can set the root="/taskforce" in
> default-web-site.xml
>   
> root="/taskforce"/>
> and also in the /META-INF/application.xml of you
> ear(/taskforce)
> 
> I suppose they must be the same (which is the case for me). 
> What is the role
> of each ?
> 
> I guess there are 2 possible source of error
> 1) the way I have update the server.xml and default-web-site.xml
>   (default-web-site.xml)
>   
> root="/taskforce"/>
> 
>   (server.xml)
>   
> path="../applications/taskforce.ear" />
> 
> 2) the directory structure (see above)
> 
> 
> Thanks,
> 
> Olivier
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lopez
> Sent: 10 April 2001 07:05
> To: Orion-Interest
> Subject: Re: Building an application
> 
> 
> Hi Oliver,
> Last week I was plating with the same thing and I was successful with
> pretty much the same configuration that you have, except that in
> application.xml I set the context root to /
> (/). Which error are you getting 
> ? 404? Can
> you see your .ear file unpackaged?
> regards,
> Dan
> 
> > olivier wrote:
> >
> > Hi,
> >
> > I am new to Orion, and I have recently been trying to build an
> > application (ear) with not much success. Basically, Orion seems to
> > deploys all the components, but I can't get the first page 
> to open on
> > the browser.
> > I am using struts as a framework, with the fix I have seen on this
> > site (remove the dtd from the jar and put them under classes), and
> > struts does not seem to be the problem now (especially 
> since my first
> > page is an index.html)
> >
> > The ear is in orion\applications
> >
> > userEjb.jar
> > taskforce.war
> > \META-INF
> > application.xml
> >
> > source of application.xml for the ear
> > 
> >   taskforce
> >   Application description
> >   
> > 
> >   taskforce.war
> >   /taskforce
> > 
> >   
> >   
> > userEjb.jar
> >   
> > 
> >
> > I put this in default-web-site
> >  
> > root="/taskforce"/>
> > this in server.xml
> >  
> path="../applications/taskforce.ear" />
> >
> >
> > I have tried with the news.ear coming with orion, but same problem.
> >
> > Any clue?
> >
> > Thanks,
> >
> > olivier
> 
> 
> 
> 





RE: Building an application

2001-04-11 Thread olivier

Thanks everyone,

Switching off the "friendly" message, help me figuring out.

It is now working.
I had to modify 3 config files (instead of 2...see at the bottom of this
mail):
application.xml:

default-web-site.xml

server.xml


Does it look allright or redondant ???


Is there a way to access a log class in Orion (is is standard to all EJB
servers ?)

Thanks again,

Olivier

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of SCOTT FARQUHAR
Sent: 11 April 2001 00:29
To: Orion-Interest
Subject: RE: Building an application


Two things that might be of interest:




in default-web-site.xml .  I assume that you can map an application to root
by changing that?

Turn off "friendly error messages" in Internet Explorer
(tools->options->advanced->show friendly http error messages).

A 500 could mean anything.  Once you get the stack trace you might be able
to determine what the problem is.

Scott


>>> [EMAIL PROTECTED] 04/11/01 04:21am >>>
Dan,

The error I have is 500 (http internal server error), when I type
http://localhost/taskforce
If I type http://localhost, I have the orion home page.

This the tree of the applications directory, once expanded by orion.

D:\JAVA\ORION\APPLICATIONS
taskforce.ear
\---taskforce
taskforce.war
userEJB.jar
+---META-INF
application.xml
\---taskforce
index.html
+---images
+---META-INF
\---WEB-INF
+---classes
|   +---net
|   |   \---tnt
|   |   +---user
|   |   |   \---model
|   |   +---util
|   |   \---web
|   |   +---control
|   |   \---taglib
|   \---org
|   \---apache
|   \---struts
|   \---resources
+---lib
\---tlds

The server.xml and default-web-site.xml have been modified as mentionned at
the bottom of this mail.

I have tried to modify the context root to "/" but it did not change.

I have just noticed that you can set the root="/taskforce" in
default-web-site.xml

and also in the /META-INF/application.xml of you
ear(/taskforce)

I suppose they must be the same (which is the case for me). What is the role
of each ?

I guess there are 2 possible source of error
1) the way I have update the server.xml and default-web-site.xml
(default-web-site.xml)


(server.xml)


2) the directory structure (see above)


Thanks,

Olivier
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lopez
Sent: 10 April 2001 07:05
To: Orion-Interest
Subject: Re: Building an application


Hi Oliver,
Last week I was plating with the same thing and I was successful with
pretty much the same configuration that you have, except that in
application.xml I set the context root to /
(/). Which error are you getting ? 404? Can
you see your .ear file unpackaged?
regards,
Dan

> olivier wrote:
>
> Hi,
>
> I am new to Orion, and I have recently been trying to build an
> application (ear) with not much success. Basically, Orion seems to
> deploys all the components, but I can't get the first page to open on
> the browser.
> I am using struts as a framework, with the fix I have seen on this
> site (remove the dtd from the jar and put them under classes), and
> struts does not seem to be the problem now (especially since my first
> page is an index.html)
>
> The ear is in orion\applications
>
> userEjb.jar
> taskforce.war
> \META-INF
> application.xml
>
> source of application.xml for the ear
> 
>   taskforce
>   Application description
>   
> 
>   taskforce.war
>   /taskforce
> 
>   
>   
> userEjb.jar
>   
> 
>
> I put this in default-web-site
>   root="/taskforce"/>
> this in server.xml
>  
>
>
> I have tried with the news.ear coming with orion, but same problem.
>
> Any clue?
>
> Thanks,
>
> olivier







Re: Building an application

2001-04-10 Thread Daniel Lopez

Olivier,

I have the same setup as you have and it works for me. What are the
error messages that you get in the error log? Just an internal server
error? It sounds like orion is not able to "load" you application
because of a configuration issue and that's why even the index.html
doesn't work.
Good luck with it,
Dan

olivier wrote:
> 
> Dan,
> 
> The error I have is 500 (http internal server error), when I type
> http://localhost/taskforce
> If I type http://localhost, I have the orion home page.
> 
> This the tree of the applications directory, once expanded by orion.
> 
> D:\JAVA\ORION\APPLICATIONS
> taskforce.ear
> \---taskforce
> taskforce.war
> userEJB.jar
> +---META-INF
> application.xml
> \---taskforce
> index.html
> +---images
> +---META-INF
> \---WEB-INF
> +---classes
> |   +---net
> |   |   \---tnt
> |   |   +---user
> |   |   |   \---model
> |   |   +---util
> |   |   \---web
> |   |   +---control
> |   |   \---taglib
> |   \---org
> |   \---apache
> |   \---struts
> |   \---resources
> +---lib
> \---tlds
> 
> The server.xml and default-web-site.xml have been modified as mentionned at
> the bottom of this mail.
> 
> I have tried to modify the context root to "/" but it did not change.
> 
> I have just noticed that you can set the root="/taskforce" in
> default-web-site.xml
> 
> and also in the /META-INF/application.xml of you
> ear(/taskforce)
> 
> I suppose they must be the same (which is the case for me). What is the role
> of each ?
> 
> I guess there are 2 possible source of error
> 1) the way I have update the server.xml and default-web-site.xml
> (default-web-site.xml)
> 
> 
> (server.xml)
> 
> 
> 2) the directory structure (see above)
> 
> Thanks,
> 
> Olivier
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lopez
> Sent: 10 April 2001 07:05
> To: Orion-Interest
> Subject: Re: Building an application
> 
> Hi Oliver,
> Last week I was plating with the same thing and I was successful with
> pretty much the same configuration that you have, except that in
> application.xml I set the context root to /
> (/). Which error are you getting ? 404? Can
> you see your .ear file unpackaged?
> regards,
> Dan
> 
> > olivier wrote:
> >
> > Hi,
> >
> > I am new to Orion, and I have recently been trying to build an
> > application (ear) with not much success. Basically, Orion seems to
> > deploys all the components, but I can't get the first page to open on
> > the browser.
> > I am using struts as a framework, with the fix I have seen on this
> > site (remove the dtd from the jar and put them under classes), and
> > struts does not seem to be the problem now (especially since my first
> > page is an index.html)
> >
> > The ear is in orion\applications
> >
> > userEjb.jar
> > taskforce.war
> > \META-INF
> > application.xml
> >
> > source of application.xml for the ear
> > 
> >   taskforce
> >   Application description
> >   
> > 
> >   taskforce.war
> >   /taskforce
> > 
> >   
> >   
> > userEjb.jar
> >   
> > 
> >
> > I put this in default-web-site
> >   > root="/taskforce"/>
> > this in server.xml
> >  
> >
> >
> > I have tried with the news.ear coming with orion, but same problem.
> >
> > Any clue?
> >
> > Thanks,
> >
> > olivier




RE: Building an application

2001-04-10 Thread Frank Eggink

You can change that entry to:



or what ever names you prefer.

Make sure you have defined 'myApp' in the server.xml though.

FE

On Wednesday, April 11, 2001 1:29 AM, SCOTT FARQUHAR 
[SMTP:[EMAIL PROTECTED]] wrote:
> Two things that might be of interest:
> 
>   
>   
> 
> in default-web-site.xml .  I assume that you can map an application to root by 
>changing that?
> 
> Turn off "friendly error messages" in Internet Explorer 
>(tools->options->advanced->show friendly http error messages).
> 
> A 500 could mean anything.  Once you get the stack trace you might be able to 
>determine what the problem is.
> 
> Scott
> 
> 
> >>> [EMAIL PROTECTED] 04/11/01 04:21am >>>
> Dan,
> 
> The error I have is 500 (http internal server error), when I type
> http://localhost/taskforce 
> If I type http://localhost, I have the orion home page.
> 
> This the tree of the applications directory, once expanded by orion.
> 
> D:\JAVA\ORION\APPLICATIONS
> taskforce.ear
> \---taskforce
>   taskforce.war
>   userEJB.jar
> +---META-INF
>   application.xml
> \---taskforce
>   index.html
> +---images
> +---META-INF
> \---WEB-INF
> +---classes
> |   +---net
> |   |   \---tnt
> |   |   +---user
> |   |   |   \---model
> |   |   +---util
> |   |   \---web
> |   |   +---control
> |   |   \---taglib
> |   \---org
> |   \---apache
> |   \---struts
> |   \---resources
> +---lib
> \---tlds
> 
> The server.xml and default-web-site.xml have been modified as mentionned at
> the bottom of this mail.
> 
> I have tried to modify the context root to "/" but it did not change.
> 
> I have just noticed that you can set the root="/taskforce" in
> default-web-site.xml
>   
> and also in the /META-INF/application.xml of you
> ear(/taskforce)
> 
> I suppose they must be the same (which is the case for me). What is the role
> of each ?
> 
> I guess there are 2 possible source of error
> 1) the way I have update the server.xml and default-web-site.xml
>   (default-web-site.xml)
>   
> 
>   (server.xml)
>   
> 
> 2) the directory structure (see above)
> 
> 
> Thanks,
> 
> Olivier
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lopez
> Sent: 10 April 2001 07:05
> To: Orion-Interest
> Subject: Re: Building an application
> 
> 
> Hi Oliver,
> Last week I was plating with the same thing and I was successful with
> pretty much the same configuration that you have, except that in
> application.xml I set the context root to /
> (/). Which error are you getting ? 404? Can
> you see your .ear file unpackaged?
> regards,
> Dan
> 
> > olivier wrote:
> >
> > Hi,
> >
> > I am new to Orion, and I have recently been trying to build an
> > application (ear) with not much success. Basically, Orion seems to
> > deploys all the components, but I can't get the first page to open on
> > the browser.
> > I am using struts as a framework, with the fix I have seen on this
> > site (remove the dtd from the jar and put them under classes), and
> > struts does not seem to be the problem now (especially since my first
> > page is an index.html)
> >
> > The ear is in orion\applications
> >
> > userEjb.jar
> > taskforce.war
> > \META-INF
> > application.xml
> >
> > source of application.xml for the ear
> > 
> >   taskforce
> >   Application description
> >   
> > 
> >   taskforce.war
> >   /taskforce
> > 
> >   
> >   
> > userEjb.jar
> >   
> > 
> >
> > I put this in default-web-site
> >   > root="/taskforce"/>
> > this in server.xml
> >  
> >
> >
> > I have tried with the news.ear coming with orion, but same problem.
> >
> > Any clue?
> >
> > Thanks,
> >
> > olivier
> 
> 
> 




RE: Building an application

2001-04-10 Thread SCOTT FARQUHAR

Two things that might be of interest:




in default-web-site.xml .  I assume that you can map an application to root by 
changing that?

Turn off "friendly error messages" in Internet Explorer 
(tools->options->advanced->show friendly http error messages).

A 500 could mean anything.  Once you get the stack trace you might be able to 
determine what the problem is.

Scott


>>> [EMAIL PROTECTED] 04/11/01 04:21am >>>
Dan,

The error I have is 500 (http internal server error), when I type
http://localhost/taskforce 
If I type http://localhost, I have the orion home page.

This the tree of the applications directory, once expanded by orion.

D:\JAVA\ORION\APPLICATIONS
taskforce.ear
\---taskforce
taskforce.war
userEJB.jar
+---META-INF
application.xml
\---taskforce
index.html
+---images
+---META-INF
\---WEB-INF
+---classes
|   +---net
|   |   \---tnt
|   |   +---user
|   |   |   \---model
|   |   +---util
|   |   \---web
|   |   +---control
|   |   \---taglib
|   \---org
|   \---apache
|   \---struts
|   \---resources
+---lib
\---tlds

The server.xml and default-web-site.xml have been modified as mentionned at
the bottom of this mail.

I have tried to modify the context root to "/" but it did not change.

I have just noticed that you can set the root="/taskforce" in
default-web-site.xml

and also in the /META-INF/application.xml of you
ear(/taskforce)

I suppose they must be the same (which is the case for me). What is the role
of each ?

I guess there are 2 possible source of error
1) the way I have update the server.xml and default-web-site.xml
(default-web-site.xml)


(server.xml)


2) the directory structure (see above)


Thanks,

Olivier
-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lopez
Sent: 10 April 2001 07:05
To: Orion-Interest
Subject: Re: Building an application


Hi Oliver,
Last week I was plating with the same thing and I was successful with
pretty much the same configuration that you have, except that in
application.xml I set the context root to /
(/). Which error are you getting ? 404? Can
you see your .ear file unpackaged?
regards,
Dan

> olivier wrote:
>
> Hi,
>
> I am new to Orion, and I have recently been trying to build an
> application (ear) with not much success. Basically, Orion seems to
> deploys all the components, but I can't get the first page to open on
> the browser.
> I am using struts as a framework, with the fix I have seen on this
> site (remove the dtd from the jar and put them under classes), and
> struts does not seem to be the problem now (especially since my first
> page is an index.html)
>
> The ear is in orion\applications
>
> userEjb.jar
> taskforce.war
> \META-INF
> application.xml
>
> source of application.xml for the ear
> 
>   taskforce
>   Application description
>   
> 
>   taskforce.war
>   /taskforce
> 
>   
>   
> userEjb.jar
>   
> 
>
> I put this in default-web-site
>   root="/taskforce"/>
> this in server.xml
>  
>
>
> I have tried with the news.ear coming with orion, but same problem.
>
> Any clue?
>
> Thanks,
>
> olivier






RE: Building an application

2001-04-10 Thread olivier

I suppose it is a orion configuration problem, as when I put the same ear
into the deploy directory of jboss, I can access the index.html page.

Is there a plan from the orion developper to implement a "drag and drop"
feature in Orion ?? :-)

Olivier


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lopez
Sent: 10 April 2001 07:05
To: Orion-Interest
Subject: Re: Building an application


Hi Oliver,
Last week I was plating with the same thing and I was successful with
pretty much the same configuration that you have, except that in
application.xml I set the context root to /
(/). Which error are you getting ? 404? Can
you see your .ear file unpackaged?
regards,
Dan

> olivier wrote:
>
> Hi,
>
> I am new to Orion, and I have recently been trying to build an
> application (ear) with not much success. Basically, Orion seems to
> deploys all the components, but I can't get the first page to open on
> the browser.
> I am using struts as a framework, with the fix I have seen on this
> site (remove the dtd from the jar and put them under classes), and
> struts does not seem to be the problem now (especially since my first
> page is an index.html)
>
> The ear is in orion\applications
>
> userEjb.jar
> taskforce.war
> \META-INF
> application.xml
>
> source of application.xml for the ear
> 
>   taskforce
>   Application description
>   
> 
>   taskforce.war
>   /taskforce
> 
>   
>   
> userEjb.jar
>   
> 
>
> I put this in default-web-site
>   root="/taskforce"/>
> this in server.xml
>  
>
>
> I have tried with the news.ear coming with orion, but same problem.
>
> Any clue?
>
> Thanks,
>
> olivier





RE: Building an application

2001-04-10 Thread olivier

Dan,

The error I have is 500 (http internal server error), when I type
http://localhost/taskforce
If I type http://localhost, I have the orion home page.

This the tree of the applications directory, once expanded by orion.

D:\JAVA\ORION\APPLICATIONS
taskforce.ear
\---taskforce
taskforce.war
userEJB.jar
+---META-INF
application.xml
\---taskforce
index.html
+---images
+---META-INF
\---WEB-INF
+---classes
|   +---net
|   |   \---tnt
|   |   +---user
|   |   |   \---model
|   |   +---util
|   |   \---web
|   |   +---control
|   |   \---taglib
|   \---org
|   \---apache
|   \---struts
|   \---resources
+---lib
\---tlds

The server.xml and default-web-site.xml have been modified as mentionned at
the bottom of this mail.

I have tried to modify the context root to "/" but it did not change.

I have just noticed that you can set the root="/taskforce" in
default-web-site.xml

and also in the /META-INF/application.xml of you
ear(/taskforce)

I suppose they must be the same (which is the case for me). What is the role
of each ?

I guess there are 2 possible source of error
1) the way I have update the server.xml and default-web-site.xml
(default-web-site.xml)


(server.xml)


2) the directory structure (see above)


Thanks,

Olivier
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lopez
Sent: 10 April 2001 07:05
To: Orion-Interest
Subject: Re: Building an application


Hi Oliver,
Last week I was plating with the same thing and I was successful with
pretty much the same configuration that you have, except that in
application.xml I set the context root to /
(/). Which error are you getting ? 404? Can
you see your .ear file unpackaged?
regards,
Dan

> olivier wrote:
>
> Hi,
>
> I am new to Orion, and I have recently been trying to build an
> application (ear) with not much success. Basically, Orion seems to
> deploys all the components, but I can't get the first page to open on
> the browser.
> I am using struts as a framework, with the fix I have seen on this
> site (remove the dtd from the jar and put them under classes), and
> struts does not seem to be the problem now (especially since my first
> page is an index.html)
>
> The ear is in orion\applications
>
> userEjb.jar
> taskforce.war
> \META-INF
> application.xml
>
> source of application.xml for the ear
> 
>   taskforce
>   Application description
>   
> 
>   taskforce.war
>   /taskforce
> 
>   
>   
> userEjb.jar
>   
> 
>
> I put this in default-web-site
>   root="/taskforce"/>
> this in server.xml
>  
>
>
> I have tried with the news.ear coming with orion, but same problem.
>
> Any clue?
>
> Thanks,
>
> olivier





Re: Building an application

2001-04-09 Thread Daniel Lopez

Hi Oliver, 
Last week I was plating with the same thing and I was successful with
pretty much the same configuration that you have, except that in
application.xml I set the context root to /
(/). Which error are you getting ? 404? Can
you see your .ear file unpackaged?
regards,
Dan

> olivier wrote:
> 
> Hi,
> 
> I am new to Orion, and I have recently been trying to build an
> application (ear) with not much success. Basically, Orion seems to
> deploys all the components, but I can't get the first page to open on
> the browser.
> I am using struts as a framework, with the fix I have seen on this
> site (remove the dtd from the jar and put them under classes), and
> struts does not seem to be the problem now (especially since my first
> page is an index.html)
> 
> The ear is in orion\applications
> 
> userEjb.jar
> taskforce.war
> \META-INF
> application.xml
> 
> source of application.xml for the ear
> 
>   taskforce
>   Application description
>   
> 
>   taskforce.war
>   /taskforce
> 
>   
>   
> userEjb.jar
>   
> 
> 
> I put this in default-web-site
>   root="/taskforce"/>
> this in server.xml
>  
> 
> 
> I have tried with the news.ear coming with orion, but same problem.
> 
> Any clue?
> 
> Thanks,
> 
> olivier




Building an application

2001-04-09 Thread olivier
Title: SV: Error deserializing session



Hi,
 
I am 
new to Orion, and I have recently been trying to build an application (ear) with 
not much success. Basically, Orion seems to deploys all the components, but I 
can't get the first page to open on the browser.
I am 
using struts as a framework, with the fix I have seen on this site (remove the 
dtd from the jar and put them under classes), and struts does not seem to be the 
problem now (especially since my first page is an 
index.html)
 
The 
ear is in orion\applications
 
    userEjb.jar
    taskforce.war
    \META-INF
    
application.xml
 
source 
of application.xml for the ear
  
taskforce  
Application description  
    
  
taskforce.war  
/taskforce    
    
    
userEjb.jar  

 
I put 
this in default-web-site
 
this 
in server.xml
  
 
 
I have 
tried with the news.ear coming with orion, but same problem.
 
Any clue?
 
Thanks,
 
olivier