[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JRun issue simple deployment



Jason,
  If you look at the properties for the web
application, I think you will find that JRun4 defaults
the context path for the 'default application' to be
'bob' and therefore the address should be:
localhost:8101/bob/HelloWorldServletNameHere
Is this the case?

-MLA

--- "Jason R. Kretzer" <jason@OpinionOne.com> wrote:
> I have done exactly as you said.  Below is my
> web.xml file.  I am still
> getting the same OOPS... message as before.
> 
> -Jason
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems,
> Inc.//DTD Web Application
> 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
> <web-app>
>   <display-name>Default Web Application
> Settings</display-name>
>   <description>Settings</description>
> 
>   <servlet>
>     <servlet-name>HelloWorld</servlet-name>
>     <servlet-class>HelloWorld</servlet-class>
>   </servlet>
> 
>   <servlet-mapping>
>     <servlet-name>HelloWorld</servlet-name>
>     <url-pattern>/HelloWorld</url-pattern>
>   </servlet-mapping>
> </web-app>
> 
> On Thu, 2003-02-20 at 15:09, Mike Arnett wrote:
> 
> > Jason,
> >   The first thing I would do is start / restart
> the
> > new bob server from the JRun Launcher app.  Verify
> > that it starts correctly and is listed as running
> (hit
> > refresh after 30 seconds or so for kicks).  Next,
> go
> > to the JRun Management Console and click on the
> bob
> > server link.  Is the HelloWorld Application listed
> in
> > the web applications section?  If not, click add
> and
> > enter the root directory (<jrun_home>/servers/bob)
> of
> > the HelloWorld application.  Restart the server
> and
> > retry. If it is already listed or you do all of
> this
> > and it still is not working, then there may be a
> > problem with your servlet mapping in your web.xml
> > file.
> > Let me know what happens...
> > -MLA
> > 
> > 
> > --- "Jason R. Kretzer" <jason@OpinionOne.com>
> wrote:
> > > I am using JRun 4.
> > > 
> > > I started the admin server with ./jrun -start
> admin
> > > 
> > > After logging in, I created the bob server from
> the
> > > menu at the top of
> > > the admin page using port 8101.
> > > 
> > > I created the WEB-INF and WEB-INF/classes
> > > directories and the
> > > WEB-INF/web.xml.  WEB-INF is located directly
> below
> > > [jrun_root]/servers/bob/. I then placed my
> > > HelloWorld.java and
> > > HelloWorld.class to
> > > [jrun_root]/servers/bob/WEB-INF/classes.
> > > 
> > > I then restarted the bob server.  First using
> the
> > > admin page, then from
> > > the command line.  I tried to access the
> HelloWorld
> > > servlet using the
> > > following URL
> > > 
> > > http://localhost:8101/HelloWorld and got this
> > > message in the browser
> > > 
> > >
> >
>
-----------------------------------------------------------------------
> > > Oops! We couldn't find your document.
> > > 
> > > The file that you requested could not be found
> on
> > > this server.
> > >
> >
>
-----------------------------------------------------------------------
> > > 
> > > and this message on the command line
> > > 
> > >
> >
>
-----------------------------------------------------------------------
> > > 02/20 14:52:46 info HelloWorld
> > > 02/20 14:52:46 info HelloWorld
> > > 02/20 14:52:46 info HelloWorld
> > > 02/20 14:52:46 error Requested resource null not
> > > found
> > >
> >
>
-----------------------------------------------------------------------
> > > 
> > > This is all the feedback I have received and
> have
> > > done nothing besides
> > > what I wrote here.
> > > 
> > > Is there something else I need to do?
> > > 
> > > -Jason
> > > 
> > > 
> > > On Thu, 2003-02-20 at 14:34, Mike Arnett wrote:
> > > 
> > > > The structure should be the same as TomCat
> with
> > > all
> > > > classes that are NOT in a jar or zip archive
> being
> > > > located in the WEB-INF/classes directory and
> the
> > > > web.xml file being in the WEB-INF directory.
> > > > What version are you using?  Are you using the
> JMC
> > > to
> > > > deploy or hot deploy or what?  Are you able to
> > > deploy,
> > > > but unable to access the servlet or are you
> unable
> > > to
> > > > deploy altogether?
> > > > Hope this helps,
> > > > -MLA
> > > > 
> > > > --- "Jason R. Kretzer" <jason@OpinionOne.com>
> > > wrote:
> > > > > Hello all,
> > > > > 
> > > > > I have downloaded the trial version today
> and I
> > > am
> > > > > having problems
> > > > > deploying a simple "HelloWorld" servlet.
> > > > > I am using the JMC on port 8000 and have
> created
> > > a
> > > > > new server called
> > > > > bob. 
> > > > > 
> > > > > Where does the HelloWorld.class file need to
> go?
> > > How
> > > > > do I access it once
> > > > > it is in place?
> > > > > 
> > > > > http://localhost/HelloWorld (for port 80)?
> > > > > 
> > > > > Where do I place my web.xml? Where do any
> images
> > > > > that I need to use go?
> > > > > 
> > > > > I have much experience with Tomcat but this
> > > seems to
> > > > > be really
> > > > > different. Please help.
> > > > > 
> > > > > -Jason
> > > > > 
> > > > 
> > > > 
> > > >
> __________________________________________________
> > > > Do you Yahoo!?
> > > > Yahoo! Tax Center - forms, calculators, tips,
> more
> > > > http://taxes.yahoo.com/
> > > 
> > 
> > 
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Tax Center - forms, calculators, tips, more
> > http://taxes.yahoo.com/
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/