Servlet in VisualAge
Hi!
I have created my first servlet in VisualAge. How I can compile it (I mean to create class file)?
You have to export the package or the class. Just find menu item "Export..", then select "File Jar", on the next page select button "refrenced Resources..."
Wait.
Bye.
Similar Messages
-
Cann't load Oracle driver from servlet
I develop a servlet with VisualAge.
This code works fine:
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url = "jdbc:odbc:SCOTT";
Connection con = java.sql.DriverManager.getConnection(url, "SCOTT", "TIGER");
But I cann't load Oracle driver. I suppose it is path problem. In option of my application I have set path to
classes12.zip, nls_charset12.zip and rt.jar.
But there isn't option ClassPath for Servlet in VisulaAge.
What can I do?What do you use to test your servlet?
In Visual Age, i use WTE (WebSphere Test Environement). You can find it in WorkSpace - Tools - WTE.
In WTE, click on servlet engine. You have 4 buttons on the right (sorry i use the french version so i do not know theirs english label) use the last one to change classpath.
Regards -
Servlet results image - intermittent error
Hi!
I have an html that calls a servlet from the src of an image tag. The servlet brings a image as result. The intermittent error is that the image doesn't appears in the very first time. Only when I refresh the page is that the image appears. If I call the page from another browser, the image always appears. But if I restart the application server, the image doesn't appear at the first time, again.
I use the WebSphere Application Server 3.5, and develop the applications with VisualAge for Java 3.5. In both environments the error occurs.
Can someone helps me?
thanks
html: index.html
<HTML>
<HEAD>
</HEAD>
<BODY bgcolor="#FFFFFF">
This is your logo:
<p><img src="servlet/pLog.Counter"></p>
</BODY>
</HTML>servlet pLog.Counter
package pLog;
import java.io.*;
import java.net.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
import com.sun.image.codec.jpeg.*;
import java.awt.image.*;
import java.awt.*;
public class Counter extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException {
doPost(request, response);
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException {
response.setContentType("image/jpeg");
ServletOutputStream out = response.getOutputStream();
String strImagePath = "http://localhost:8080/images/logogedas.jpg";
Toolkit toolkit = Toolkit.getDefaultToolkit();
URL urlIMAGE = new URL(strImagePath);
Image image1 = toolkit.getImage(urlIMAGE);
int iWid = image1.getWidth(null);
int iHei = image1.getHeight(null);
BufferedImage image = new BufferedImage(iWid,iHei, BufferedImage.TYPE_INT_RGB);
Graphics g = image.getGraphics();
g.drawImage(image1, 0, 0, null);
JPEGImageEncoder encoder =JPEGCodec.createJPEGEncoder(out);
encoder.encode(image);
out.close();
}Hi,
You'll need to define a MediaTracker to wait for the image to be loaded completely. Here's the modified code:
package pLog;
import java.io.*;
import java.net.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
import com.sun.image.codec.jpeg.*;
import java.awt.image.*;
import java.awt.*;
public class Counter extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, java.io.IOException {
doPost(request, response);
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, java.io.IOException {
response.setContentType("image/jpeg");
ServletOutputStream out = response.getOutputStream();
String strImagePath = "http://localhost:8080/images/logogedas.jpg";
Toolkit toolkit = Toolkit.getDefaultToolkit();
URL urlIMAGE = new URL(strImagePath);
Image image1 = toolkit.getImage(urlIMAGE);
Frame frame = new Frame();
frame.addNotify();
MediaTracker tracker = new MediaTracker(frame);
tracker.addImage(image1, 0);
try {
tracker.waitForAll();
catch (InterruptedException e) {
log("Interrupted while loading image");
throw new ServletException(e.getMessage());
int iWid = image1.getWidth(null);
int iHei = image1.getHeight(null);
BufferedImage image = new BufferedImage(iWid,iHei, BufferedImage.TYPE_INT_RGB);
Graphics g = image.getGraphics();
g.drawImage(image1, 0, 0, null);
JPEGImageEncoder encoder =JPEGCodec.createJPEGEncoder(out);
encoder.encode(image);
out.close();
}Another possibility is to implement the ImageObserver interface (although it's a little more complicated).
Hope this helps,
Kurt. -
Visualage and weblogic !!!
Hi ,
I was wondering if there is someone who has used these two products
namely Visualage and Weblogic together.
Regards
Suchak JaniWe integrate with the Professional version of VAge which doesn't support JSPs.
Their Enterprise version does, but is tightly coupled to WebSphere and an
earlier release of the JSP spec.
You can do debugging of JSPs in VAge but you'll need to convert them to java
servlets first (use weblogic.jspc, see the JSP documentation.
-dana
suchak wrote:
>
Dana ,
Please could you tell us about JSP's within the integration of VAge 2.0 and
WebLogic 4.5.1.
Regards
Suchak Jani
"suchak" <[email protected]> wrote in message
news:8f6fug$baa$[email protected]..
Hi Dana ,
Thank you for your reply !
I have a question though ...
BEA currently provides a integration with VAge 2.0 and WebLogic 4.5.1.This Integration , does it incude JSP's ??
Regards
Suchak Jani
"Dana Jeffries" <[email protected]> wrote in message
news:[email protected]..
BEA currently provides a integration with VAge 2.0 and WebLogic 4.5.1.
We're getting ready to beta the VAge 3.02 Integration Kit for WebLogic5.1.0.
The beta should be available around the middle of the month. Check out
weblogic.beta.tools.visualage for a notice of the release.
Dana Jeffries
BEA WebLogic Engineering
suchak wrote:
Hi ,
I was wondering if there is someone who has used these two products
namely Visualage and Weblogic together.
Regards
Suchak Jani -
Visualage 353 Weblogic 510sp9 JSP's compilation
I am attempting to use a JSP based (weblogic) server from within of VisualAge
353. The server comes up ok, however, when I access the jsp page from a browser
window I get exception stated below.
Ques -
1) It seems the weblogic server always requires the compileCommand param set for
displaying/compiling JSP pages - is that correct?
2) When we run this server outside of visualage we set "compileCommand" (as part
of the init args) to "javac.exe" - but - inside of visualage javac.exe is not
visible - so what should this parameter be?
thanx
-harsh-
javax.servlet.UnavailableException: Couldn't find init param: compileCommand
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.servlet.ServletException(java.lang.String)
javax.servlet.UnavailableException(javax.servlet.Servlet, java.lang.String)
void weblogic.servlet.jhtmlc.PageCompileServlet.init(javax.servlet.ServletConfig)
void weblogic.servlet.JSPServlet.init(javax.servlet.ServletConfig)
javax.servlet.Servlet weblogic.servlet.internal.ServletStubImpl.createServlet()
void weblogic.servlet.internal.ServletStubImpl.createInstances()
void weblogic.servlet.internal.ServletStubImpl.prepareServlet(weblogic.servlet.internal.ServletRequestImpl,
weblogic.servlet.internal.ServletResponseImpl)
javax.servlet.Servlet weblogic.servlet.internal.ServletStubImpl.getServlet(weblogic.servlet.internal.ServletRequestImpl,
weblogic.servlet.internal.ServletResponseImpl)
void weblogic.servlet.internal.ServletStubImpl.invokeServlet(weblogic.servlet.internal.ServletRequestImpl,
weblogic.servlet.internal.ServletResponseImpl)
void weblogic.servlet.internal.ServletContextImpl.invokeServlet(weblogic.servlet.internal.ServletRequestImpl,
weblogic.servlet.internal.ServletResponseImpl, weblogic.servlet.internal.ServletStubImpl)
void weblogic.servlet.internal.ServletContextImpl.invokeServlet(weblogic.servlet.internal.ServletRequestImpl,
weblogic.servlet.internal.ServletResponseImpl)
int weblogic.servlet.internal.ServletContextManager.invokeServlet(weblogic.socket.MuxableSocketHTTP)
int weblogic.socket.MuxableSocketHTTP.invokeServlet()
void weblogic.socket.MuxableSocketHTTP.execute(weblogic.kernel.ExecuteThread)Harsh,
The only thing I can think of is to specify another javac compiler as VAJ does not expose its javac. We do not support JSP
development in the VisualAge Integration Kit due to issues such as those pointed out by you.
Nirav.
Thanks,
Nirav.
H wrote:
I am attempting to use a JSP based (weblogic) server from within of VisualAge
353. The server comes up ok, however, when I access the jsp page from a browser
window I get exception stated below.
Ques -
1) It seems the weblogic server always requires the compileCommand param set for
displaying/compiling JSP pages - is that correct?
2) When we run this server outside of visualage we set "compileCommand" (as part
of the init args) to "javac.exe" - but - inside of visualage javac.exe is not
visible - so what should this parameter be?
thanx
-harsh-
javax.servlet.UnavailableException: Couldn't find init param: compileCommand
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.servlet.ServletException(java.lang.String)
javax.servlet.UnavailableException(javax.servlet.Servlet, java.lang.String)
void weblogic.servlet.jhtmlc.PageCompileServlet.init(javax.servlet.ServletConfig)
void weblogic.servlet.JSPServlet.init(javax.servlet.ServletConfig)
javax.servlet.Servlet weblogic.servlet.internal.ServletStubImpl.createServlet()
void weblogic.servlet.internal.ServletStubImpl.createInstances()
void weblogic.servlet.internal.ServletStubImpl.prepareServlet(weblogic.servlet.internal.ServletRequestImpl,
weblogic.servlet.internal.ServletResponseImpl)
javax.servlet.Servlet weblogic.servlet.internal.ServletStubImpl.getServlet(weblogic.servlet.internal.ServletRequestImpl,
weblogic.servlet.internal.ServletResponseImpl)
void weblogic.servlet.internal.ServletStubImpl.invokeServlet(weblogic.servlet.internal.ServletRequestImpl,
weblogic.servlet.internal.ServletResponseImpl)
void weblogic.servlet.internal.ServletContextImpl.invokeServlet(weblogic.servlet.internal.ServletRequestImpl,
weblogic.servlet.internal.ServletResponseImpl, weblogic.servlet.internal.ServletStubImpl)
void weblogic.servlet.internal.ServletContextImpl.invokeServlet(weblogic.servlet.internal.ServletRequestImpl,
weblogic.servlet.internal.ServletResponseImpl)
int weblogic.servlet.internal.ServletContextManager.invokeServlet(weblogic.socket.MuxableSocketHTTP)
int weblogic.socket.MuxableSocketHTTP.invokeServlet()
void weblogic.socket.MuxableSocketHTTP.execute(weblogic.kernel.ExecuteThread) -
JSP compilation w/in VisualAge
Greetings
I am attempting to use a JSP based (weblogic) server from within of VisualAge
353. The server comes up ok, however, when I access the jsp page from a browser
window I get exception stated below.
Ques -
1) It seems the weblogic server always requires the compileCommand param set for
displaying/compiling JSP pages - is that correct?
2) When we run this server outside of visualage we set "compileCommand" (as part
of the init args) to "javac.exe" - but - inside of visualage javac.exe is not
visible - so what should this parameter be?
thanx
-harsh-
javax.servlet.UnavailableException: Couldn't find init param: compileCommand
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.servlet.ServletException(java.lang.String)
javax.servlet.UnavailableException
void weblogic.servlet.jhtmlc.PageCompileServlet.init
Greetings
I am attempting to use a JSP based (weblogic) server from within of VisualAge
353. The server comes up ok, however, when I access the jsp page from a browser
window I get exception stated below.
Ques -
1) It seems the weblogic server always requires the compileCommand param set for
displaying/compiling JSP pages - is that correct?
2) When we run this server outside of visualage we set "compileCommand" (as part
of the init args) to "javac.exe" - but - inside of visualage javac.exe is not
visible - so what should this parameter be?
thanx
-harsh-
javax.servlet.UnavailableException: Couldn't find init param: compileCommand
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.servlet.ServletException(java.lang.String)
javax.servlet.UnavailableException
void weblogic.servlet.jhtmlc.PageCompileServlet.init
-
Note - the original post was only to w.d.i.environment.
Here's a transcript of a run that failed.
help...
The messed up thing is that it WORKS on my machine, but not on the other
machines. I've gone as far as reinstalling onto another machine,
mapping the same folders to the same drive letters, and copying the
resource files -- in effect, creating an identical setup -- and still
have problems.
Fri Jan 12 13:36:15 PST 2001:<I> <WebLogicServer> Read global properties
n:\weblogic.va\weblogic.properties
Fri Jan 12 13:36:15 PST 2001:<I> <WebLogicServer> Read per-server
properties n:\weblogic.va\myserver\weblogic.properties
Fri Jan 12 13:36:15 PST 2001:<I> <Logging> FileLogger initialized.
Fri Jan 12 13:36:15 PST 2001:<I> <WebLogicServer> ************ WebLogic
Server (5.1.0 Service Pack 6 09/20/2000 21:03:19 #84511) 'myserver' from
directory path n:/weblogic.va
Fri Jan 12 13:36:15 PST 2001:<I> <WebLogicServer> ************ (c) 1995,
1996, 1997, 1998 WebLogic, Inc., (c) 1999 BEA Systems, Inc.
Fri Jan 12 13:36:15 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.swapIntervalSecs', current value: '10'
Fri Jan 12 13:36:15 PST 2001:<I> <Config> Property name:
'weblogic.jms.ConnectionConsumer', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.enforceClientCert', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.login.readTimeoutMillis', current value: '5000'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.bindAddr', current value: 'localhost'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.propertiesFile', current value:
'n:/weblogic.va\weblogic.properties'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.servlet.reloadCheckSecs', current value: '-1'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.authRealmName', current value: 'WebLogic Server'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.SSLHandler.enable', current value: 'true'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.startupFailureIsFatal', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.http.keepAliveSecs', current value: '15'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.servlet.classpath', current value:
'N:/bobcat/weblogic/servletclasses'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.tunneling.clientPingSecs', current value: '45'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.defaultWebApp', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.persistentStoreDir', current value: 'session_db'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.perServerPropertiesFile', current value:
'n:/weblogic.va\myserver\weblogic.properties'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.maxQueueExpansionSize', current value: '10'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.queue', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.invalidationIntervalSecs', current value: '60'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.persistence', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.realm.cache.user.enable', current value: 'true'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.rmi.dgc.callSystemGC', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.maxTransactedDurableSubscribers', current value: '0'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.weight', current value: '100'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.connectionPoolArgs', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.disableGuest', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.persistentStorePool', current value: ''
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.URLAclFile', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.percentSocketReaders', current value: '33'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.zac.enable', current value: 'true'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jdbc.TXDataSource', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.DNSName', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.ejb.deploy', current value:
'n:/bobcat/weblogic/serverclasses/bobcat.jar,
n:/bobcat/weblogic/serverclasses/bobcat_admin.jar,
n:/bobcat/weblogic/serverclasses/bobcat_adunit.jar,
n:/bobcat/weblogic/serverclasses/bobcat_community.jar,
n:/bobcat/weblogic/serverclasses/bobcat_customer.jar,
n:/bobcat/weblogic/serverclasses/bobcat_preview.jar,
n:/bobcat/weblogic/serverclasses/bobcat_memberaccountprofile.jar,
n:/bobcat/weblogic/serverclasses/bobcat_affiliate.jar'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.workspace.showUserKeysOnly', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.enable', current value: 'true'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.allow', current value:
'[weblogic.allow.read.weblogic.workspace=everyone
weblogic.allow.write.weblogic.workspace=everyone
weblogic.allow.reserve.weblogic.jdbc.connectionPool.AdminA=guest
weblogic.allow.execute.weblogic.servlet=everyone ]'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.listenPort', current value: '80'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.allow', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.servlet.reloadOnModify', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.io.fileSystem', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.startupArgs', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jdbc.enableLogFile', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.cookie.domain', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.realm.debug', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.clustering.enable', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.enable', current value: 'true'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.shutdownArgs', current value:
'[weblogic.system.shutdownArgs.VisualAge= ]'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.rmi.startupClass', current value:
'[weblogic.rmi.startupClass.RMI
Registry=weblogic.rmi.internal.RegistryImpl ]'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.keepAlive.enable', current value: 'true'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.jdbc.connTimeoutSecs', current value: '120'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.name', current value: 'myserver'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.sessionIDLength', current value: '52'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.helpPageURL', current value:
'd:\ibmvjava2\ide\project_resources\WebLogic Server/docs/adminhelp/'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.cluster.multicastPort', current value: '-1'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.key.server', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.rmi.startupArgs', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.topicSessionPool', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.home', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.documentRoot', current value:
'n:/bobcat/weblogic/public_html/'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.servlet.reloadOnModifyRecursive', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.errorPage', current value:
'[weblogic.httpd.errorPage.500=/shared/siteerror.jsp
weblogic.httpd.errorPage.404=/shared/notfound.jsp ]'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.certificate.authority3', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.administrativePort', current value: '0'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.certificate.authority2', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.startupClass', current value:
'[weblogic.system.startupClass.cacheResetListener=com.fl.listener.CacheResetListener
weblogic.system.startupClass.cachePreload=com.fl.util.lookup.CodeTable
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.nonPrivGroup', current value: 'nobody'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.cluster.multicastTTL', current value: '1'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.nonBlockingExecuteThreadCount', current value: '2'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.home', current value: 'n:/weblogic.va'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.https.keepAliveSecs', current value: '60'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jndi.transportableObjectFactories', current value: ''
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.certificateCacheSize', current value: '3'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.tunneling.clientTimeoutSecs', current value: '40'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jdbc.DataSource', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.maxLogFileSizeKBytes', current value: '0'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.nonPrivUser', current value: 'nobody'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.zac.publishRoot', current value: 'exports'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.clientRootCA', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.cluster.defaultLoadAlgorithm', current value: 'round-robin'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.enable', current value: 'true'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.administrator.phone', current value: '(None)'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jdbc.connectionPool', current value:
'[weblogic.jdbc.connectionPool.AdminA=url=jdbc20:oracle:thin:@172.16.3.10:1521:ADMINDBT,driver=oracle.jdbc.driver.OracleDriver,loginDelaySecs=0,initialCapacity=4,maxCapacity=80,capacityIncrement=2,allowShrinking=true,shrinkPeriodMins=15,refreshMinutes=10,testTable=dual,props=user=devbc1;password=devbc1;
weblogic.jdbc.connectionPool.SearchA=url=jdbc20:oracle:thin:@10.1.2.41:1521:SRCHDBP,driver=oracle.jdbc.driver.OracleDriver,loginDelaySecs=0,initialCapacity=3,maxCapacity=80,capacityIncrement=2,allowShrinking=true,shrinkPeriodMins=15,refreshMinutes=10,testTable=dual,props=user=devbc1;password=devbc1;
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.debug', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jdbc.logFileName', current value:
'n:/weblogic.va\myserver\jdbc.log'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.cluster.dnsName', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.requireAuthentication', current value: 'true'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.cluster.multicastAddress', current value: '224.0.10.10'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.defaultSecureProtocol', current value: 't3s'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.realm.cache.auth.enable', current value: 'true'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.executeThreadCount', current value: '10'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.cookie.comment', current value: 'Weblogic Server
Session Tracking Cookie'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.tableNamePrefix', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.connectionPool', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.shutdownClass', current value:
'[weblogic.system.shutdownClass.VisualAge=weblogic.integration.visualage.server.Server
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.defaultServlet', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.cluster.name', current value: 'mycluster'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.defaultProtocol', current value: 't3'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.postTimeoutSecs', current value: '30'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.group', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.tunnelingenabled', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.realm.cache.caseSensitive', current value: 'true'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.certificate.server', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.mimeType', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.logRotationBeginTime', current value: ''
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.webApp', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.minPasswordLen', current value: '4'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.connectionFactoryArgs', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.persistentStoreType', current value: 'file'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.cacheEntries', current value: '1024'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.queueCompactionPeriod', current value: '10'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.certificate.authority', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.resource.MailSession', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.cookie.maxAgeSecs', current value: '-1'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.login.readTimeoutMillisSSL', current value: '25000'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.cluster.enable', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.SSL.ciphersuites', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.indexFiles', current value:
'index.html,index.htm,index.jsp'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.password', current value: '[weblogic.password.system=********
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.enableLogFile', current value: 'true'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.enableReverseDNSLookups', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.indexDirectories', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.maxLogFileSize', current value: '0'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.logFile', current value:
'n:/weblogic.va\myserver\weblogic.log'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.timeoutSecs', current value: '3600'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.logRotationType', current value: 'size'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.logFileFormat', current value: 'common'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.perClusterPropertiesFile', current value:
'n:/weblogic.va\myserver\weblogic.properties'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.key.export.lifespan', current value: '500'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.CORBA.connectionPool', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'java.system.property', current value: '[]'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.logFileName', current value:
'n:/weblogic.va\myserver\access.log'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.defaultMimeType', current value: 'text/plain'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.debug.httpd.servlet', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.connectionFactoryName', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.SSLListenPort', current value: '81'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.logRotationPeriodMins', current value: '1440'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.URLResource', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.cookie.name', current value: 'WebLogicSession'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.quiescent', current value: 'false'
Fri Jan 12 13:36:17 PST 2001:<I> <Config> Property name:
'weblogic.httpd.register', current value:
'[weblogic.httpd.register.ADMIN=com.fl.control.handler.AdminServlet
weblogic.httpd.register.site/surveyreward=com.fl.control.handler.site.rwds.SurveyRewardServlet
weblogic.httpd.register.Admin/secure=com.fl.control.handler.SecureAdminServlet
weblogic.httpd.register.123qpwoeiruty321=com.fl.control.handler.FileServlet
weblogic.httpd.register.affiliatelanding=com.fl.control.handler.affiliate.AffiliateExtranetLanding
weblogic.httpd.register.site/Ecard=com.fl.control.handler.site.community.ECardServlet
weblogic.httpd.register.client/secure/AcctRegLogin=com.fl.control.handler.client.regloginServlet
weblogic.httpd.register.ADMIN/SECURE/DEACTMEM=com.fl.control.handler.admin.clientaccount.MemberDeactivationServlet
weblogic.httpd.register.admin/secure/maintainpromotion=com.fl.control.handler.admin.marketing.MaintainPromotionServlet
weblogic.httpd.register.site/ecard=com.fl.control.handler.site.community.ECardServlet
weblogic.httpd.register.site/member/forgotemail=com.fl.control.handler.member.LegacyServlet
weblogic.httpd.register.admin/Profile=com.fl.control.handler.admin.adminaccount.AdminProfileServlet
weblogic.httpd.register.Site/test=com.fl.control.handler.preview.TestServlet
weblogic.httpd.register.site/referfriend=com.fl.control.handler.site.community.ReferAFriendServlet
weblogic.httpd.register.servletimages=weblogic.servlet.internal.InternalImageServlet
weblogic.httpd.register.site/ShipDetail=com.fl.control.handler.site.rdctr.ShipDetailServlet
weblogic.httpd.register.index.jsp=com.fl.control.handler.SiteServlet
weblogic.httpd.register.AFFILIATE=com.fl.control.handler.AffiliateServlet
weblogic.httpd.register.site/referfriendconf=com.fl.control.handler.site.community.ReferAFriendConfServlet
weblogic.httpd.register.Site/preview=com.fl.control.handler.preview.PreviewServlet
weblogic.httpd.register.site/search=com.fl.control.handler.site.search.SearchServlet
weblogic.httpd.register.admin/MemberProfile=com.fl.control.handler.admin.adminaccount.AdminMemberProfileServlet
weblogic.httpd.register.site/preview/mediaurl=com.fl.control.handler.preview.MediaURLServlet
weblogic.httpd.register.affiliate/Reg2=com.fl.control.handler.affiliate.reg.AffiliateContactInfoServlet
weblogic.httpd.register.affiliate/Reg1=com.fl.control.handler.affiliate.reg.AffiliateInfoServlet
weblogic.httpd.register.site/PrizeDetail=com.fl.control.handler.site.rdctr.PrizeDetailServlet
weblogic.httpd.register.site/RevAdd=com.fl.control.handler.site.revprev.RevAddServlet
weblogic.httpd.register.affiliate=com.fl.control.handler.AffiliateServlet
weblogic.httpd.register.admin/find=com.fl.control.handler.admin.adminaccount.AdminFindServlet
weblogic.httpd.register.SITE/preview/chart=com.fl.control.handler.preview.ChartServlet
weblogic.httpd.register.admin/secure/maintainsurveySave=com.fl.control.handler.admin.marketing.MaintainSurveySaveServlet
weblogic.httpd.register.admin/secure/login=com.fl.control.handler.admin.adminaccount.AdminLoginServlet
weblogic.httpd.register.Client/secure/managepreview=com.fl.control.handler.preview.ManagePreviewServlet
weblogic.httpd.register.client/secure/acctreglogin=com.fl.control.handler.client.regloginServlet
weblogic.httpd.register.SITE/managepreview=com.fl.control.handler.preview.ManagePreviewServlet
weblogic.httpd.register.site/campaign=com.fl.control.handler.site.community.CampaignServlet
weblogic.httpd.register.*.swf=weblogic.servlet.FileServlet
weblogic.httpd.register.admin/secure/MaintainSurvey=com.fl.control.handler.admin.marketing.MaintainSurveyServlet
weblogic.httpd.register.client=com.fl.control.handler.ClientServlet
weblogic.httpd.register.Firstlook.cfm=com.fl.control.handler.affiliate.ColdFusionLinksServlet
weblogic.httpd.register.affiliate/Login=com.fl.control.handler.affiliate.LoginServlet
weblogic.httpd.register.admin/secure/reviews=com.fl.control.handler.admin.review.ReviewsServlet
weblogic.httpd.register.Client=com.fl.control.handler.ClientServlet
weblogic.httpd.register.linkshare=com.fl.control.handler.affiliate.LinkShareServlet
weblogic.httpd.register.site/prizehome=com.fl.control.handler.site.rdctr.PrizeHomeServlet
weblogic.httpd.register.affiliate/login=com.fl.control.handler.affiliate.LoginServlet
weblogic.httpd.register.client/secure/BidMgrLogin=com.fl.control.handler.client.loginServlet
weblogic.httpd.register.site/prizedetail=com.fl.control.handler.site.rdctr.PrizeDetailServlet
weblogic.httpd.register.site/Survey=com.fl.control.handler.site.community.SurveyServlet
weblogic.httpd.register.GetNewuserID.cfm=com.fl.control.handler.affiliate.ColdFusionLinksRegServlet
weblogic.httpd.register.SITE/preview=com.fl.control.handler.preview.PreviewServlet
weblogic.httpd.register.site/logincampaign=com.fl.control.handler.site.community.LoginCampaign
weblogic.httpd.register.site/getpreviews=com.fl.control.handler.preview.GetPreviewsServlet
weblogic.httpd.register.admin/secure/deactadm=com.fl.control.handler.admin.adminaccount.AdminDeactivationServlet
weblogic.httpd.register.SITE/test=com.fl.control.handler.preview.TestServlet
weblogic.httpd.register.affiliate/register=com.fl.control.handler.affiliate.reg.AffiliateAgreementServlet
weblogic.httpd.register.CLIENT/secure/managepreview=com.fl.control.handler.preview.ManagePreviewServlet
weblogic.httpd.register.site/PrizeHome=com.fl.control.handler.site.rdctr.PrizeHomeServlet
weblogic.httpd.register.site/orderconfirm=com.fl.control.handler.site.rdctr.OrderConfirmServlet
weblogic.httpd.register.firstlook.cfm=com.fl.control.handler.affiliate.ColdFusionLinksServlet
weblogic.httpd.register.AFFILIATE/secure=com.fl.control.handler.SecureAffiliateServlet
weblogic.httpd.register.site/SearchResults=com.fl.control.handler.site.search.SearchResultsServlet
weblogic.httpd.register.site/ReferFriend=com.fl.control.handler.site.community.ReferAFriendServlet
weblogic.httpd.register.site/eCard=com.fl.control.handler.site.community.ECardServlet
weblogic.httpd.register.AffiliateLanding=com.fl.control.handler.affiliate.AffiliateExtranetLanding
weblogic.httpd.register.site/OrderConfirm=com.fl.control.handler.site.rdctr.OrderConfirmServlet
weblogic.httpd.register.affiliate/secure/search=com.fl.control.handler.affiliate.maint.AffiliateSearchServlet
weblogic.httpd.register.admin/secure/maintainpromotionsave=com.fl.control.handler.admin.marketing.MaintainPromotionSaveServlet
weblogic.httpd.register.site/registercampaign=com.fl.control.handler.site.community.registercampaign
weblogic.httpd.register.admin/secure=com.fl.control.handler.SecureAdminServlet
weblogic.httpd.register.site/PARTNERS=com.fl.control.handler.site.redirector.partners
weblogic.httpd.register.admin/memberparams=com.fl.control.handler.admin.sysparam.MaintainMemberParamServlet
weblogic.httpd.register.site/partners=com.fl.control.handler.site.redirector.partners
weblogic.httpd.register.site=com.fl.control.handler.SiteServlet
weblogic.httpd.register.admin/memberprofile=com.fl.control.handler.admin.adminaccount.AdminMemberProfileServlet
weblogic.httpd.register.site/member/wishlist=com.fl.control.handler.member.WishListServlet
weblogic.httpd.register.admin/promopackage=com.fl.control.handler.admin.marketing.MaintainPromotionPackageServlet
weblogic.httpd.register.admin/secure/MaintainSponsor=com.fl.control.handler.admin.sysparam.MaintainSponsorServlet
weblogic.httpd.register.admin/secure/maintainfeaturedpreview=com.fl.control.handler.admin.preview.MaintainFeaturedPreview
weblogic.httpd.register.Site/preview/chart=com.fl.control.handler.preview.ChartServlet
weblogic.httpd.register.FirstLook.cfm=com.fl.control.handler.affiliate.ColdFusionLinksServlet
weblogic.httpd.register.admin/Find=com.fl.control.handler.admin.adminaccount.AdminFindServlet
weblogic.httpd.register.ADMIN/SECURE/DEACTADM=com.fl.control.handler.admin.adminaccount.AdminDeactivationServlet
weblogic.httpd.register.admin/secure/MaintainPromotion=com.fl.control.handler.admin.marketing.MaintainPromotionServlet
weblogic.httpd.register.Site/managepreview=com.fl.control.handler.preview.ManagePreviewServlet
weblogic.httpd.register.site/preview=com.fl.control.handler.preview.PreviewServlet
weblogic.httpd.register.admin/secure/maintainsurvey=com.fl.control.handler.admin.marketing.MaintainSurveyServlet
weblogic.httpd.register.affiliate/secure/maintdealterms=com.fl.control.handler.affiliate.maint.DealTermsMaintainServlet
weblogic.httpd.register.Affiliate/secure=com.fl.control.handler.SecureAffiliateServlet
weblogic.httpd.register.client/secure=com.fl.control.handler.SecureClientServlet
weblogic.httpd.register.preview/mediaUrl=com.fl.control.handler.preview.MediaURLServlet
weblogic.httpd.register.Shared=com.fl.control.handler.SharedServlet
weblogic.httpd.register.client/secure/managepreview=com.fl.control.handler.preview.ManagePreviewServlet
weblogic.httpd.register.site/secure=com.fl.control.handler.SecureSiteServlet
weblogic.httpd.register.default.cfm=com.fl.control.handler.affiliate.LinkShareServlet
weblogic.httpd.register.Affiliate=com.fl.control.handler.AffiliateServlet
weblogic.httpd.register.site/recommendation=com.fl.control.handler.member.RecommendationServlet
weblogic.httpd.register.site/preview/chart=com.fl.control.handler.preview.ChartServlet
weblogic.httpd.register.site/RegisterCampaign=com.fl.control.handler.site.community.RegisterCampaign
weblogic.httpd.register.client/secure/acctregfm=com.fl.control.handler.client.regfmServlet
weblogic.httpd.register.affiliate/Register=com.fl.control.handler.affiliate.reg.AffiliateAgreementServlet
weblogic.httpd.register.site/addrating=com.fl.control.handler.site.rwds.AddRatingServlet
weblogic.httpd.register.client/secure/Account=com.fl.control.handler.client.acctServlet
weblogic.httpd.register.site/EnterCampaign=com.fl.control.handler.site.community.EnterCampagin
weblogic.httpd.register.admin/secure/approvepreview=com.fl.control.handler.admin.preview.ApprovePreviewServlet
weblogic.httpd.register.site/managepreview=com.fl.control.handler.preview.ManagePreviewServlet
weblogic.httpd.register.site/member/login=com.fl.control.handler.member.LoginServlet
weblogic.httpd.register.client/secure/Logout=com.fl.control.handler.client.logoutServlet
weblogic.httpd.register.AFFILIATELANDING=com.fl.control.handler.affiliate.AffiliateExtranetLanding
weblogic.httpd.register.affiliate/forgot=com.fl.control.handler.affiliate.ForgotPassServlet
weblogic.httpd.register.affiliate/secure=com.fl.control.handler.SecureAffiliateServlet
weblogic.httpd.register.affiliate/secure/MaintDealTerms=com.fl.control.handler.affiliate.maint.DealTermsMaintainServlet
weblogic.httpd.register.admin/secure/MaintainPromotionSave=com.fl.control.handler.admin.marketing.MaintainPromotionSaveServlet
weblogic.httpd.register.affiliate/Forgot=com.fl.control.handler.affiliate.ForgotPassServlet
weblogic.httpd.register.affiliate/LogOut=com.fl.control.handler.affiliate.AffLogoutServlet
weblogic.httpd.register.site/revprev=com.fl.control.handler.site.revprev.RevPrevServlet
weblogic.httpd.register.CLIENT=com.fl.control.handler.ClientServlet
weblogic.htt -
VisualAge Java Connection to Oracle
Does anyone have any suggestions for this problem?
I am trying to connect to an Oracle 8 database from within VisualAge Java Prof. 3.5. I am using a servlet to access this database.
I can connect to this instance using SQL*Plus without a problem.... This SQL*Plus connection is done using the same connection string as I have coded in VA (after the @ sign).
The connection string I am using is:
jdbc:oracle:thin:@(description=(address_list=(address=(protocol=tcp)(port=1521)(host=172.17.1.57)))(connect_data=(sid=iasdev))(source_route=yes))
The oracle.jdbc drivers are found...I imported classes111.zip into VisualAge and set the project in my ClassPath.
The registerDriver or Class.forName methods work fine. The problem is on the DriverManager.getConnection() call. The error message is:
'No more data to read from socket'.
Any suggestions would be appreciated. Thanks!
dmorrisAhbaid Gaffoor (guest) wrote:
: I'm trying to run the TestInstallJDBC program off of your site
: on a RedHat Linux 5.1 box with Oracle 8.0.5 for linux
installed.
: However it cannot seem to find the following classes when
trying
: to import them:
: import oracle.sqlj.runtime.Oracle;
: import sqlj.runtime.ref.DefaultContext;
: How do I solve this problem?
: Do I need to download them separately from sun?
: thanks,
: there is no $ORACLE_HOME/jdbc directory on my installation, I
: think that's where it should be...
: Ahbaid.
Just to confirm for u. U should have
$ORACLE_HOME/jdbc/lib/classes111.zip or classess102.zip. There is
also a README there which show how to connect, sample code etc.
If these files already installed, then i don't know what is the
problem. U have to have these files, dirs.
Nathan Phan
null -
Debugging servlet/JSPs ??
What IDE would you use to debug Servlet/JSPs ? I think that JBuilder can
only debug Servlets. What about VisualCafe, VisualAge ?
Olivier
[olivier.vcf]Currently it is a bug in JDeveloper 3.1.x. We will be fixing it.
raghu -
Using Websphere test env. in VisualAge
I am trying to test a web app using the Websphere test environment in VisualAge. What url do I type into my browser to view the example web apps?
Make sure you have these features added to your workspace (File->Quick Start->Features->Add Feature):
IBM WebSphere Java Libraries
IBM WebSphere Test Environment
IBM XML Parser for Java
Sun Servlet API
I'm not sure if you need all of these or maybe others. But let me know how it goes. Then just make sure you start up your test environment, start the Servlet Engine, and the Persistent Name Server.
All of your files should be located somewhere like this:
C:\Program Files\IBM\VisualAge for Java\ide\project_resources\IBM WebSphere Test Environment\hosts\default_host\default_app
There should be a default_app.webapp file in the servlets directory that may give you some options to change.
If that doesn't work for you and you have VA 3.5.3 take a look at the Tomcat Test Environment. It's very easy to install and run. http://www7.software.ibm.com/vad.nsf/FrameData/Master?OpenDocument&Title=Overview&FSet=1&Doc3=4556&Doc4=4567
Hope this helps!
DesQuite -
Get all values from multi select in a servlet
Hello,
I have a multi <select> element in a HTML form and I need to retrieve the values of ALL selected options of this <select> element in a servlet.
HTML code snippet
<select name="elName" id="elName" multiple="multiple">
Servlet code snippet
response.setContentType("text/html");
PrintWriter out = null;
out = response.getWriter();
String output = "";
String[] str = request.getParameterValues("elName");
for(String s : str) {
output += s + ":";
output = output.substring(0, output.length()-1); // cut off last deliminator
out.println(output);But even when selecting multiple options, the returned text only ever contains the value of the first selected option in the <select>
What am I doing wrong? I'm fairly new to servlets
Edited by: Irish_Fred on Feb 4, 2010 12:43 PM
Edited by: Irish_Fred on Feb 4, 2010 12:44 PM
Edited by: Irish_Fred on Feb 4, 2010 2:14 PM
Edited by: Irish_Fred on Feb 4, 2010 2:26 PM
Edited by: Irish_Fred on Feb 4, 2010 2:26 PM
Edited by: Irish_Fred on Feb 4, 2010 2:32 PMI am using AJAX.
I will show you how I'm submitting the <select> values by showing you the flow of code:
This is the HTML code for the <select> tag and the button that sends the form data:
<form name="formMain" id="formMain" method="POST">
<input type="button" id="addOpts" name="addOpts" value="Add Options" style="width:auto; visibility:hidden" onClick="jsObj.addOptions('servletName', document.getElementById('elName'))">
<br>
<select name="elName" id="elName" multiple="multiple" size="1" onChange="jsObj.checkSelected()">
<option value="0"> - - - - - - - - - - - - - - - - </option>
</select>
</form>Note that the "visibility:hidden" part of the button style is set to "visible" when at least one option is selected
Note that "jsObj" relates to a java script object that has been created when the web app starts ( The .js file is included in the .jsp <head> tag )
The following code is taken from the file: "jsObj.js"
jsObj = new jsObj();
function jsObj() {
//=================================================
this.addOptions = function(url, elName) {
var theForm = document.getElementById('formMain');
if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
} else { // code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
url += this.buildQueryString(theForm.name);
xmlhttp.open("POST",url,true);
xmlhttp.send(null);
xmlhttp.onreadystatechange=function() {
if(xmlhttp.readyState==4) { // 4 = The request is complete
alert(xmlhttp.responseText);
//=================================================
this.buildQueryString = function(formName) {
var theForm = document.forms[formName];
var qs = '';
for (var i=0; i<theForm.elements.length; i++) {
if (theForm.elements.name!='') {
qs+=(qs=='')? '?' : '&';
qs+=theForm.elements[i].name+'='+escape(theForm.elements[i].value);
return qs;
//=================================================
}And this is a code snippet from the "servletName" servlet:public synchronized void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException,IOException {
PrintWriter out = null;
try {
response.setContentType("text/html");
out = response.getWriter();
String output = "";
String[] values = request.getParameterValues("elName");
for(String s : values) {
output += s + ":";
output = output.substring(0, output.length()-1); // cut off last delimitor
out.println(output);
} catch (Exception e) {
}So anyway, everthing compiles / works, except for the fact that I'm only getting back the first selected <option> in the 'elName' <select> tag whenever I select multiple options
Edited by: Irish_Fred on Feb 7, 2010 10:53 AM -
Open Jasper Report in new page using servlet
Guys,
Looks very simple but i am having problem making this process work. I am using 11.1.1.4
This is my use case:
- From a employee page, user clicks on a menu item to open report for current employee. I need to pass appropriate report parameters to servlet and open report into new page.
I can successfully call servlet using commandmenuitem and set request parameters and call servlet from backing bean.... but that doesn't open report in a new page.... any way i can do this?
Another option i tried was that using gomenuitem and setting target=blank but in that case i need to pass the parameter using servlet url which i like to avoid.(in case i need to pass many parameters in future) (also values will be set on page so i need to generate url when then click the menuitem...... so there are some hoops and loops i need to go through) I don't know a way to pass the request parameter using backing bean to servlet... i don't think it is possible.
Those are the two approaches i tried.
If you have any better approach...I would appreciate if you can let me know. (i have searched on internet for two days now.... for the solution)
-R
Edited by: polo on Dec 13, 2011 7:22 AMHi,
Hope following will useful
http://sameh-nassar.blogspot.com/2009/10/using-jasper-reports-with-jdeveloper.html
http://www.gebs.ro/blog/oracle/jasper-reports-in-adf/ -
How can i execute ejb method in a servlet?
hi
I am using a IBM HTTP Server and Weblogic Server.
I could execute below source in a main method of application but i could not that in a init method of servlet because of ClassCastException.
(a classpath of weblogic contains client's classpath)
// source code
Hashtable props = new Hashtable();
props.pu(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
props.put(Context.PROVIDER_URL,
"t3://192.168.1.5:7001");
Context ctx = new InitialContext(props);
Object obj = ctx.lookup("session.LigerSessionHome");
LigerSessionHome home = (LigerSessionHome) PortableRemoteObject.narrow (obj, LigerSessionHome.class);
// error code
Exception : session.LigerSessionBeanHomeImpl_ServiceStub
java.lang.ClassCastException: session.LigerSessionBeanHomeImpl_ServiceStub
at com.ibm.rmi.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:253)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:136)
at credit.getCreditResearch(credit.java:41)
at creditResearchClient.doGet(creditResearchClient.java:122)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
thanksHave your stubs somehow got out of sync? So that your Servlet engine is pointing to a different jar than that of your jvm on which you were running your client application
hi
I am using a IBM HTTP Server and Weblogic Server.
I could execute below source in a main method of
application but i could not that in a init method of
servlet because of ClassCastException.
(a classpath of weblogic contains client's classpath)
// source code
Hashtable props = new Hashtable();
props.pu(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
props.put(Context.PROVIDER_URL,
"t3://192.168.1.5:7001");
Context ctx = new InitialContext(props);
Object obj = ctx.lookup("session.LigerSessionHome");
LigerSessionHome home = (LigerSessionHome)
PortableRemoteObject.narrow (obj,
LigerSessionHome.class);
// error code
Exception :
session.LigerSessionBeanHomeImpl_ServiceStub
java.lang.ClassCastException:
session.LigerSessionBeanHomeImpl_ServiceStub
at
com.ibm.rmi.javax.rmi.PortableRemoteObject.narrow(Porta
leRemoteObject.java:253)
at
javax.rmi.PortableRemoteObject.narrow(PortableRemoteObj
ct.java:136)
at credit.getCreditResearch(credit.java:41)
at
creditResearchClient.doGet(creditResearchClient.java:12
at
javax.servlet.http.HttpServlet.service(HttpServlet.java
740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java
865)
thanks -
How to call a specific method in a servlet from another servlet
Hi peeps, this post is kinda linked to my other thread but more direct !!
I need to call a method from another servlet and retrieve info/objects from that method and manipulate them in the originating servlet .... how can I do it ?
Assume the originating servlet is called Control and the servlet/method I want to access is DAO/login.
I can create an object of the DAO class, say newDAO, and access the login method by newDAO.login(username, password). Then how do I get the returned info from the DAO ??
Can I use the RequestDispatcher to INCLUDE the call to the DAO class method "login" ???
Cheers
KevinThanks for the reply.
So if I have a method in my DAO class called login() and I want to call it from my control servlet, what would the syntax be ?
getrequestdispatcher.include(newDAO.login())
where newDAO is an instance of the class DAO, would that be correct ?? I'd simply pass the request object as a parameter in the login method and to retrieve the results of login() the requestdispatcher.include method will return whatever I set as an attribute to the request object, do I have that right ?!!!!
Kevin -
Error while opening Excel report using servlet
Hi
I am using a servlet to open an excel report which has multiple sheets . But there is a weird problem when i try to open an excel report with two sheets having the same name .
Generally when an excel with same sheet names is opened with Microsoft excel , it will open the excel file with a dialog showing error .
But when i am trying to open through a servlet after that open/save dialog box comes , its sending two requests and that too the second one from another browser . How i am saying that its sending from another browser is , during the second time its not passing the session checks which i placed .....I mean the session for the request doesn't have any data while it was expected to have some data which i placed in Session while logging in .
Can any one let me know why this is happening ?/Refer Note:280376.1 on MetaLink. Hope this will help you resolve the issue.
Thanks
Shail
Maybe you are looking for
-
Satellite Pro A200 - need Win7 drivers & FN buttons functionality
Hi, i have little problem with my Satellite Pro A200-29N. I installed on him win7 and now i can't find drivers (only finded ValueAddedPackage). The second are FN buttons they doesn't works :( befor i have WinVista
-
respected sirs, I am using vista. Recently I installed / switched to apex 3.2 from apex 3.1 After installing the apex 3.2 i am facing one problem. That is every time when i boot the system first time, if i try to go database 10 G home page (ie 127.00
-
40UL605U LED TV: Netflix Won't Launch
I have a Toshiba 40UL605U LED TV. I have the most recent firmware update and a wired internet connection, but for some reason the Netflix app has stopped working. When I select Netflix from the "Widgets" menu, the red Netflix screen appears briefly a
-
Hi, I want to find out the T-codes being used in our ECC prd system in the time frame- So, is there any table or report available where used t-codes being stored? Like we can find out the used t-codes from st03n tcode's transaction profile. If anybod
-
Header on first page, not on others
Hello, Does anyone know how to get a header to appear on the first page of a document, but not on the rest? Using section breaks, I can get the header to appear on all pages EXCEPT the first, but not the other way around. I've really played around w/