[prev in list] [next in list] [prev in thread] [next in thread] 

List:       japple-user
Subject:    Re: [japple-user] Running jappleide under weblogic server6.1
From:       Nagananda Motikane <nmotikane () yahoo ! com>
Date:       2002-02-18 13:41:39
[Download RAW message or body]

Mr.Larmore:

Thanks for the information. We will get back to you
after we test it out.

Regards,
Nanda


--- Patrick Larmore <plarmore@saucontech.com> wrote:
> Nagananda,
> 
> We looked into your error.  The problem revolves
> around the fact that 
> japple can not resolve the name of it's
> configuration file.
> By default, japple looks for this file name using
> the following call.....
> 
> this.getServletContext().getRealPath(
>                     java.io.File.separator
>                         + "WEB-INF"
>                         + java.io.File.separator
>                         + "japple"
>                         + java.io.File.separator
>                         + "conf"
>                         + java.io.File.separator
>                         + "japple.xml");
> 
> which means that the  path for this file would be
> 
>       web appl
> directory/WEB-INF/japple/conf/japple.xml
> 
> where we rely on the servlet context to
> resolve......."web appl 
> directory"  portion of the file name via the
> ServletContext.getRealPath 
> call.
> 
> We also are aware of the following comment in the
> servlet api doc for 
> ServletContext.getRealPath(String)......
> 
> "This method returns null if the servlet container
> cannot translate the 
> virtual path to a real path for any reason (such as
> when the content is 
> being made available from a .war archive)."
> 
> See 
> http://java.sun.com/products/servlet/2.3/javadoc/
> for the complete 
> context of the documentation.
> 
> Unfortunately, the tutorials and examples where not
> written to support 
> running in a container that does not expand the WAR
> file.  
> 
> First, do you know whether Weblogic is expanding the
> WAR?
> 
> If it is not, you can defeat this problem by doing
> the following steps..
> 
> 1. Extract the conf and jmo directories from the
> WEB-INF directory in 
> the war to some absolute location on the server.
> 2. Set the japple.xml location view a servlet
> parameter called   
>  configurationFile  the value of which is an
> absolute file path and name 
> to japple.xml.
> 3. Set absolute paths for all directories and files
> in the japple.xml 
> file itself.
> 
> 
> Nagananda Motikane wrote:
> 
> >
> >hello ;-)
> >
> >We installed an evaluation version of weblogic
> server
> >6.1
> >
> >Next we moved the jappleide.war under the
> >config/mydomain/applications dir.
> >
> >When we tried to access the application with the
> URL
> >http://localhost:7001/jappleide it came back with
> null
> >pointer exception error.
> >
> >Someone please help and thanks in advance.
> >
> >Following is the error log details:
> >
> >   Feb 14, 2002 4:00:37 PM EST     myserver
> >Error       HTTP
>
>[WebAppServletContext(3850848,jappleide,/jappleide)]
> >Root ca
> >
> >                                use of
> >ServletException
> >
> >   java.lang.NullPointerException:
> >           at java.io.FileInputStream.open(Native
> >Method)
> >           at
> java.io.FileInputStream.<init>(Unknown
> >Source)
> >           at
>
>japple.model.utilities.DataModelXMLDecoder.decodeFile(Unknown
> >Source)
> >           at
> >japple.core.server.ServerConfiguration.load(Unknown
> >Source)
> >           at
>
>japple.core.server.ServerConfiguration.<init>(Unknown
> >Source)
> >           at
> japple.server.JAPPLEServer.init(Unknown
> >Source)
> >           at
>
>weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:700)
> >           at
>
>weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:643)
> >           at
>
>weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:588)
> >           at
>
>weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:368)
> >           at
>
>weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
> >           at
>
>weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
> >           at
>
>weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
> >           at
>
>weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
> >           at
>
>weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
> >           at
>
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Send FREE Valentine eCards with Yahoo! Greetings!
> >http://greetings.yahoo.com
> >_______________________________________________
> >japple-user mailing list
> >japple-user@japple.org
> >http://www.japple.org/mailman/listinfo/japple-user
> >
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic