Rick Fischer

Greenhorn
+ Follow
since May 15, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rick Fischer

I am having the same problem. Did you ever get this resolved?
17 years ago
The following code snippet works fine when it is run as a standalone program on my Linux machine. When run as a servlet under tomcat 5, it throws: java.io.EOFException : unexpected end of input stream.

Now if I run it as a servlet on my Windows machine it works fine.

Windows
Tomcat 5.5
JVM : 1.4.2_11

Linux
Tomcat 5
JVM 1.4.2_05

The exception started happening after we installed a new Linux kernel including jvm and tomcat5. Could the different versions of jvm or tomcat (they are pretty close)be the problem, or do you think it is with Linux?

try {
serviceURL="https://trans.sym...........
URL u = new URL(serviceURL);
URLConnection connection = / u.openConnection();
connection.setDoInput(true);
connection.setDoOutput(false);
InputStream is = connection.getInputStream();
return is;
} catch(Exception anything) {
System.out.println(anything);
}
17 years ago
A form post submits data to a cgi-bin for processing. It returns the results in XML which come back to the browser. How do I get the return XML into a servlet for parsing. OR, can I simulate the form post from within a servlet?
What is the best way to eliminate the need to specify port 8080 in the URL with Tomcat5.5. I have used the jspisapi product, but I am looking for a better solution.
19 years ago
Craig,

Thank very much for your help
To your questions

The web site is www.mygkard.com (It does use frames unfortunately)

You can invoke a jsp as follows www.mygkard.com/v2login.jsp

If you try www.mygkard.com/CCLoadIntro you get
The page cannot be found ...
Http Error 404
Internet Information Services

Does this mean they are running IIS?

I don't know how to bring up the Tomcat Test page on the production server.

Thanks
19 years ago
Thanks for your help jk jack

You are correct in your assumptions.

To give you more information, the application has been all JSPs, which are all working fine. I added a servlet, which I am trying to invoke directly, to do some processing before redircting to a jsp. Invoking the servlet directly is where I am having a problem.

Concerning Apache jk2 Connector I found the following in my local server.xml file.
<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8009" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="20000"
useURIValidationHack="false"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>

On the production web server which is Tomcat 5.5.4, there is no such entry, not even commented out

I am a novice at understanding all the entries in the server.xml file. I can tell you my Tomcat 4 version makes numerous references to Coyote, while Tomcat 5 makes no reference to Coyote, but rather Catalina
19 years ago
I cannot invoke the following servlet in the Browser address line

http://www.mywebsite.com/CCLoadIntro

However http://localhost/CCLoadIntro works fine

My servlet is in TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/trans/CCLoadIntro.class

My WEB-INF/web.xml has the following:

<servlet>
<servlet-name>CCLoadIntro</servlet-name>
<servlet-class>trans.CCLoadIntro</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>CCLoadIntro</servlet-name>
<url-pattern>/CCLoadIntro</url-pattern>
</servlet-mapping>

localhost version is Tomcat 4.1.12

Fails on production server Tomcat 5.5.4

The /conf/web.xml and WEB-INF/web.xml are the same in both Tomcat versions?

Could there be a server.xml setting on Tomcat/Catalina preventing it from working?

Is there any Version 5.5.4 issues I'am not considering
19 years ago
Using IPCONFIG I obtain the IP addresses of two computers A and B Both A and B have Tomcat started. I can enter a URL on computer A using comPuter B's IP address and open the requested page, however the reverse does not work (page not found), I cannot get to B from A. I have disabled the firewall, no luck.

There must be something in the configuration or some setting on computer A preventing me from opening a URL with a hard coded IP address.

Please Help
[ October 26, 2004: Message edited by: Rick Fischer ]
19 years ago
I am doing a bulk email of about 100 e-mails. After 80 or so successful tranmissions an exception is thrown: Could not connect to SMTP host. The exception is thrown on about 5 transmissions, then it will successfully complete the remaining e-mail tranmissions. My web hosting provider suggested setting up a delay between transmissions, as the message queue is being filled up and needs time to complete each tranmission. How can I set up this delay between email?
19 years ago
I finally got it working, but still not sure where (in what jar) it found javax.sql.DataSource. Does anyone know how I can find this out?

Thanks
Thanks for your feedback

I downloaded and installed j2sdk1.4.2_05. I also set the JDK in the project properties to the new JDK. I still get the compiler error on the import javax.sql.*; I could not find J2EE.jar or J2SE.jar in the J2sdk1.4.2_05 directory or anywhere on my system. How do I get these?
I cannot import javax.sql.*; in my JBuilder6 Professsional IDE. I get a complier error. Is there a library I need to add? I've tried JDataStore and DBExpress among others.
I cannot import javax.sql.*; in my JBuilder6 Professsional IDE. I get a complier error. Is there a library I need to add? I've tried JDataStore and DBExpress among others.
19 years ago
I have 'load-on-startup' set in my web.xml file for a servlet named (Controller). The initialization code sets up my connection pool for mySql. Upon starting Tomcat the initialization code runs not once, but twice, and a third time upon first execution of the Controller servlet.

Why does it run three times and not just once?

Thanks
19 years ago