RE: [JBoss-user] JNDI with Jetty & Servlets

2001-10-05 Thread Edward Q. Bridges

sorry for the confusion, but the jetty.xml file that i used --
JBoss-2.4.3_Jetty-3.1.1-1/jboss/conf/jetty/jetty.xml -- was pasted (in its
entirety) in the email.  i _was not_ using at all the default jetty.xml file.

i replaced the distro jetty.xml with my own, that contained two nodes: an
addWebApplication node for my .war file, and an addListener node to set up
the listener on port 8080.

when the addWebApplication node was commented out (leaving only the
addListener node), the .war file was deployed properly and my java:comp/env
entries were available.

when the addWebApplication node was *not* commented out, the .war was
deployed properly, but the java:comp/env entries were absent.

this happens even when i deploy it onto a fresh install of
JBoss-2.4.3_Jetty-3.1.1-1.

to clarify all this, i've put together a sample .war file (attached, with
source code for servlet also) which, on a fresh install of 2.4.3/3.1.1-1
works (i.e. java:comp/env entries exist) with no modifications to
jetty/jetty.xml by hitting:
http://localhost:8080/systemdump/system

but no java:comp/env entries exist when i add an addWebApplication node to
jetty/jetty.xml (attached also), as such:
  
  /systemdump/*
  C:/JBoss-2.4.3_Jetty-3.1.1-1/jboss/deploy/systemdump.war
  /etc/webdefault.xml
  true
  

is this a bug?  or should one simply not add a jetty.xml entry for
webapplications when running jetty in conjunction with jboss (actually, it
seems to work fine when that is the case!)?

thanks a lot!
--e--



On Thu, 4 Oct 2001 15:57:07 +0100 (BST), Julian Gosnell wrote:

>Edward,
>
>If you look at
>
>JBoss-2.4.3_Jetty-3.1.1-1/jboss/conf/jetty/jetty.xml
>
>(perhaps you were looking at
>jboss/conf/default/jetty.xml - this is not used and I
>should remove it).
>
>you will find all these entries have now been
>commented out.
>
>I used to ship JBoss/Jetty with the Jetty demo webapps
>and servlets ready installed, but then recently I
>realised that this may interfere with deployment of a
>users webapps and be confusing (especially apps being
>deployed into the '/' context).
>
>Look again at the latest release. I will be surprised
>if:
>
>1. The demo stuff is not commented out in your
>jetty.xml.
>
>2. Deployment onto a vanilla installation gives you
>the same problem again.
>
>Cheers,
>
>
>Jules
>
>
>
> --- "Edward Q. Bridges" <[EMAIL PROTECTED]> wrote:
>>
>> after some poking around, it turns out that the
>> problem is with
>> $JBOSS_HOME/conf/jetty/jetty.xml
>>
>> here is the entire file:
>>
>> 
>> > Consulting//DTD Configure 1.1//EN"
>> "http://jetty.mortbay.com/configure_1_1.dtd";>
>>
>> 
>>   
>> 
>>   
>> 8080
>> 5
>> 255
>> 6
>> 6
>>   
>> 
>>   
>>
>>   
>> /pix/*
>>
>>
>C:/JBoss-2.4.1_Jetty-3.1.RC9-1/jboss/deploy/pix.war
>> > default="."/>/etc/webdefault.xml
>> true
>>   
>>
>> 
>>
>> The problem seems to come from the call to
>> addWebApplication.  when that is
>> present, and i deploy to
>> $JBOSS_HOME/deploy/, then java:comp/env
>> entries specified in WEB-INF/web.xml don't get
>> created.  when i comment it
>> out, they do get created.
>>
>> this also happens with the JBoss-2.4.3_Jetty-3.1.1-1
>> distro.
>>
>> is this a problem?  or should it just be part of
>> configuring a .war to use
>> with jboss/jetty that there is no need to edit the
>> jetty.xml file?
>>
>> thanks
>> --e--
>>
>>
>> On Tue, 02 Oct 2001 23:44:11 +0100, Julian Gosnell
>> wrote:
>>
>> >I am having reports of another JNDI related problem
>> with this release.
>> >
>> >Would it be possible for you to drop back to the
>> 2.4.0/3.1.RC8 release and let
>> >me know if that works, or shows the same problem ?
>> >
>> >Thanks,
>> >
>> >
>> >Jules



 ed.q.bridges
 tel. 089-368179.552
 fax 089-368179.79
 osterwaldstraße 10
 (haus F eingang 21)
 80805 münchen






http://jetty.mortbay.com/configure_1_1.dtd";>


  

  
8080
5
255
6
6
  

  





 systemdump.war
 SystemDump.java


RE: [JBoss-user] JNDI with Jetty & Servlets

2001-10-04 Thread Julian Gosnell

Edward,

If you look at 

JBoss-2.4.3_Jetty-3.1.1-1/jboss/conf/jetty/jetty.xml

(perhaps you were looking at
jboss/conf/default/jetty.xml - this is not used and I
should remove it).

you will find all these entries have now been
commented out.

I used to ship JBoss/Jetty with the Jetty demo webapps
and servlets ready installed, but then recently I
realised that this may interfere with deployment of a
users webapps and be confusing (especially apps being
deployed into the '/' context).

Look again at the latest release. I will be surprised
if:

1. The demo stuff is not commented out in your
jetty.xml.

2. Deployment onto a vanilla installation gives you
the same problem again.

Cheers,


Jules



 --- "Edward Q. Bridges" <[EMAIL PROTECTED]> wrote:
> 
> after some poking around, it turns out that the
> problem is with
> $JBOSS_HOME/conf/jetty/jetty.xml
> 
> here is the entire file:
> 
> 
>  Consulting//DTD Configure 1.1//EN"
> "http://jetty.mortbay.com/configure_1_1.dtd";>
> 
> 
>   
> 
>   
> 8080
> 5
> 255
> 6
> 6
>   
> 
>   
> 
>   
> /pix/*
>
>
C:/JBoss-2.4.1_Jetty-3.1.RC9-1/jboss/deploy/pix.war
>  default="."/>/etc/webdefault.xml
> true
>   
> 
> 
> 
> The problem seems to come from the call to
> addWebApplication.  when that is
> present, and i deploy to
> $JBOSS_HOME/deploy/, then java:comp/env
> entries specified in WEB-INF/web.xml don't get
> created.  when i comment it
> out, they do get created.
> 
> this also happens with the JBoss-2.4.3_Jetty-3.1.1-1
> distro.
> 
> is this a problem?  or should it just be part of
> configuring a .war to use
> with jboss/jetty that there is no need to edit the
> jetty.xml file?
> 
> thanks
> --e--
> 
> 
> On Tue, 02 Oct 2001 23:44:11 +0100, Julian Gosnell
> wrote:
> 
> >I am having reports of another JNDI related problem
> with this release.
> >
> >Would it be possible for you to drop back to the
> 2.4.0/3.1.RC8 release and let
> >me know if that works, or shows the same problem ?
> >
> >Thanks,
> >
> >
> >Jules
> 
> 
> 
> 
>  ed.q.bridges
>  tel. 089-368179.552
>  fax 089-368179.79
>  osterwaldstraße 10
>  (haus F eingang 21)
>  80805 münchen
> 
> 
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/jboss-user 


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] JNDI with Jetty & Servlets

2001-10-04 Thread Edward Q. Bridges


after some poking around, it turns out that the problem is with
$JBOSS_HOME/conf/jetty/jetty.xml

here is the entire file:


http://jetty.mortbay.com/configure_1_1.dtd";>


  

  
8080
5
255
6
6
  

  

  
/pix/*
C:/JBoss-2.4.1_Jetty-3.1.RC9-1/jboss/deploy/pix.war
/etc/webdefault.xml
true
  



The problem seems to come from the call to addWebApplication.  when that is
present, and i deploy to $JBOSS_HOME/deploy/, then java:comp/env
entries specified in WEB-INF/web.xml don't get created.  when i comment it
out, they do get created.

this also happens with the JBoss-2.4.3_Jetty-3.1.1-1 distro.

is this a problem?  or should it just be part of configuring a .war to use
with jboss/jetty that there is no need to edit the jetty.xml file?

thanks
--e--


On Tue, 02 Oct 2001 23:44:11 +0100, Julian Gosnell wrote:

>I am having reports of another JNDI related problem with this release.
>
>Would it be possible for you to drop back to the 2.4.0/3.1.RC8 release and let
>me know if that works, or shows the same problem ?
>
>Thanks,
>
>
>Jules




 ed.q.bridges
 tel. 089-368179.552
 fax 089-368179.79
 osterwaldstraße 10
 (haus F eingang 21)
 80805 münchen





___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JNDI with Jetty & Servlets

2001-10-02 Thread Julian Gosnell

I am having reports of another JNDI related problem with this release.

Would it be possible for you to drop back to the 2.4.0/3.1.RC8 release and let
me know if that works, or shows the same problem ?

Thanks,


Jules

"Edward Q. Bridges" wrote:

> i am using the JBoss 2.4.1 bundle with Jetty 3.1.RC9-1 on Win 2k and JDK 1.3.
>
> i have an entry in web.xml in a .war as such:
> 
> 
>   This is an environment entry.
>   EnvName
>   ThisIsaValue
>   java.lang.String
> 
>
> 
>SystemDump
>SystemDump
> 
>
> 
>SystemDump
>/system/*
> 
> 
>
> and the "SystemDump" servlet simply dumps all the values from java:comp/env
>
> i deploy the .war file to $JBOSS_HOME/deploy successfully, and it deploys
> without a problem.
>
> the servlet works okay, but doesn't display the  from the
> deployment descriptor.
>
> does the jboss/jetty integration support jndi locating?  if so, am i missing
> something in this?
>
> thanks
> --e--
>
> 
> 
>  ed.q.bridges
>  tel. 089-368179.552
>  fax 089-368179.79
>  osterwaldstraße 10
>  (haus F eingang 21)
>  80805 münchen
> 
> 
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JNDI with Jetty & Servlets

2001-10-02 Thread Edward Q. Bridges

i am using the JBoss 2.4.1 bundle with Jetty 3.1.RC9-1 on Win 2k and JDK 1.3.

i have an entry in web.xml in a .war as such:


  This is an environment entry.
  EnvName
  ThisIsaValue
  java.lang.String



   SystemDump
   SystemDump



   SystemDump
   /system/*



and the "SystemDump" servlet simply dumps all the values from java:comp/env

i deploy the .war file to $JBOSS_HOME/deploy successfully, and it deploys
without a problem.

the servlet works okay, but doesn't display the  from the
deployment descriptor.

does the jboss/jetty integration support jndi locating?  if so, am i missing
something in this?

thanks
--e--




 ed.q.bridges
 tel. 089-368179.552
 fax 089-368179.79
 osterwaldstraße 10
 (haus F eingang 21)
 80805 münchen





___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user