Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!

Dominic Steng�rd

Ranch Hand
+ Follow
since Feb 05, 2001
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 Dominic Steng�rd

Hey fellow javacoders!

Im running JDBC on top of a DB2 database.
When I run the following code:



I get the following error when rs.beforeFirst() is executed:


Have you guys got any thoughts on why this is happening and how to solve it?
Thanks in advance!

Kind regards
[ March 08, 2008: Message edited by: Dominic Steng�rd ]
Hey fellow javacoders!

I'll get two Strings from a remote system:
String dateStr = "20080206";
String timeStr = "1215";

I want to convert them into another format:
2008-02-06T12:15:00

What would be the most efficient way of doing this?

Thanks in advance!
12 years ago
Hey again,

Have found what the problem is and thought you guys might want to know how to solv this IBM AS400 issue.

Did some googling and ran some tests and it turns out that the IBM JVM 1.4 doesnt have the JSSE support that is included in the Sun JVM 1.4. This implies that one has to fetch the IBMJSSE jar and have it configured in the java.security file for this JVM.

More info can be found at:
http://apps.cybersource.com/library/documentation/dev_guides/Web_Services_Clients_Java/html/app_adv_config.htm

Have a fantastic Java Coding Week!!
12 years ago
Hello JavaCoders,

I've implemented a java client program that connects to a Web Service over SSL/https to fetch data. When running the completed application on a Windows JDK 1.4.2 it works just as expected.

But when its deployed to an AS400 server running JDK 1.4.2 I get the following error:


Why is this happening?
When I google Ive realized that this is a common problem when running JDK 1.3, but that the JSSE packages are part of the JDK 1.4 release.

Any help is more than welcome!

Kind regards
12 years ago
Hey Javacoders!

When running call.invoke() in my current Axis client the following SOAP body is generated and sent:



What the Web Service expects is:



As you can tell the xml elements <username>, <password> and <xmlDocument> are not included in the Axis generated SOAPBody but are called <argx>.

How can I use call.invoke() and set the SOAPBody elements to specific names, not the default <argx> names?

Kind regards
12 years ago
Hey fellow Java Coders,

From what Ive understood a basic web services client using Axis support classes could look as follows:



My question is:
What steps are necessary to make this client run over SSL with 128 bits encryption?

Thanks in advance!

Kind regards
[ January 22, 2008: Message edited by: Dominic Steng�rd ]
12 years ago
Hey JavaGurus,

Ive packaged my POJO application in a JAR file together with its third party libraries such as Log4j.

The structure of the executable jar file is as follows:



The issue Im having is that when I execute

I get the following error:


Seems as if Pojo.java cannot find my log4j.jar files.
So the question is:
How do I set the classpath to refer to a library jar file (log4j.jar) that is contained in another jar file?

Thanks in advance!

Kind regards
12 years ago
Hey ServletGurus!

Im trying to get my links URL encoded using:



And from what I have understood, the Tomcat server doesnt know if the client will support cookies on the first response back to the client, so it should start by attempting to set the session id in a cookie AND at the end of URLs that have been encoded using the reponse.encodeURL() method on the first response.

This doesnt seem to be happening. When I access my servlet for the first time it doesnt add the session id at the end of the "click me" link.
Why?

Thanks in advance.

Kind regards
12 years ago
Hey Tomcat Gurus!

How do I change the host name of a Tomcat server?
The problem Im having is that Ive got several development environments and they all have their own names. I want these environment names to be reflected by the respective Tomcat installations as well.

For example on my local installation I might want to be able to access my webapps using a different URL such as:
http://mylocalhost:8080

Im guessing that this setting is set in server.xml ... but I cant get it to work as expected.

Kind regards
12 years ago
Hey Ilja,

Yes I know about that menu option, the question is more directed to what value should be added in the "To URL:" field. Since the URL that is default is the same as the one in "From WC at URL:".

From what Ive understood to create a tag of a directory a snapshot copy will be made to a new directory structure. I pressume that this new directory structure is the one that should be added in "To URL:"?
Hey Subversion gurus!

I need to create a tag for a directory in Subclipse, meaning Subversion in Eclipse.
How do I proceed with doing this?
Thanks in advance!

Kind regards
Thanks for all the help youve provided.
The application is up and running well. :-)
12 years ago
Hi Ben,

Thanks for your quick reply. :-)

Yes I will make it a context init parameter. But my question is more related to if it is even possible for a File object within serlvetA in webappA to reach fileA, even though fileA is not located within webappA? FileA will be located somewhere else on the filesystem.
12 years ago
Hi Web Container Gurus!

Ive got a servlet from which I want to load properties/config files. Today these files are located in WEB-INF/classes, but I want to relocate them to a location within the same server that is outside this specific web app or Tomcat installation. My thought is to refer to these files using the File object.

Is this possible, if so how do I do it?
Thanks in advance.

Kind regards

[ August 14, 2007: Message edited by: Dominic Steng�rd ]
[ August 14, 2007: Message edited by: Dominic Steng�rd ]
12 years ago
Thank you Ernest!

You were so right ... calling getAbsolutePath() on the file object gave me a totally different relative path than I had expected.
My code runs just fine now.
12 years ago