urlLogConnection = logURL.openConnection();
urlLogConnection.setDoOutput(true);
urlLogConnection.setDoInput(true);
urlLogConnection.setUseCaches(false);
log = new PrintWriter(new OutputStreamWriter(urlLogConnection.getOutputStream()),true);
At this point I get the following exception;
java.net.UnknownServiceException: protocol doesn't support output
at java.net.URLConnection.getOutputStream(URLConnection.java:650)
at com.javaexchange.dbConnectionBroker.DbConnectionBroker.<init>(DbConne
ctionBroker.java:108)
at com.cytera.frameworks.database.ConnPoolJuggler.init(ConnPoolJuggler.j
ava:529)
at ServerConfigurator.init(ServerConfigurator.java:128)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:713)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
Impl.java:656)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:601)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
ervletContext.java:2272)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
Any help is greatly appreciated.
Regards,
Carey Boldenow
URL u1 = getServletContext().getResource(config.getInitParameter("log-file-path")+
"ConnectionPool.log");
logURL = new URL(u1,"",new sun.net.www.protocol.http.Handler());
Not sure if this was the right thing to do, but at least the
exception went away. However, nothing gets written to the file,
and further more, if I try and get an InputStream to the file to
read its contents, the server throws a 501 error, which basically says that the
server does not support the
functionality required to fulfill the request. I am deploying
the app through a .war file and the following is the string representation of
the URL created.
URL:zip:C:/bea/wlserver6.1/config/mydomain/applications/.wlnotdel
ete/wl_comp9811.war!/WEB-INF/classes/logs/ConnectionPool.log
Is it possible to write to a file that is located in a war file?
Thanks for any help offered.
Carey Boldenow <c.bol...@cyterasystems.com> wrote:
--
Dimitri
Carey Boldenow <c.bol...@cyterasystems.com> wrote:
> urlLogConnection = logURL.openConnection();
> urlLogConnection.setDoOutput(true);
> urlLogConnection.setDoInput(true);
> urlLogConnection.setUseCaches(false);
> Regards,
> Carey Boldenow
--
Dimitri
Regards,
Carey
Regards,
Carey
"Dimitri I. Rakitine" <dim...@dima.dhs.org> wrote:
Carey Boldenow <c.bol...@cyterasystems.com> wrote:
--
Dimitri