Kurt Kopf

+ Follow
since Jun 28, 2010
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kurt Kopf

Found some info in this thread:

My database was actually "appDb" in camel-case, and apparently HSQLDB does not support camel-case in resource mode for some reason.

After fixing that, I was getting the following error...

The solution to that was to modify db.properties (in the jar source). Somehow the "modified" flag had been set to true. Setting that back to false allowed the database to work. While I was in there, I set "readonly" to true for safety.
I know this can be done, as I've head it alluded to many times: including an embedded read-only hsql db (via files) in a .jar file and accessing it.

This is how I have it set up:

My embedded db jar file contents:

This gets successfully exported into my web app as "db.jar" in WEB-INF/lib/

My question is what is the JDBC url format to access this inside the generated jar file?
According to these sources:

the URL should be:

But that doesn't work, or I wouldn't be posting here

I've tried every variation I could think of:

Plus replacing forward slashes with double backslashes (I'm on a windows 7 system at the moment), and every combination of slashes and dots I can think of. I haven't been able to find the specification for the "file_in_jar" notation mentioned in the HSQLDB documentation.

If I access the files that get compiled into the jar with a URL like this:

then it will work. Obviously this doesn't help me for deploying an application though.

I'm using hsqldb 2.0.0, java 1.6.0, and tomcat 6.

Thanks in advance for any help.
After further testing, it also appears that fixing my "java.home" path in my properties file fixed the default JCE implementation as well.

Hopefully this helps someone else out there
10 years ago
Actually think I got the BouncyCastle provider working... looks like my java.home property was set incorrectly (set to <jdk>/jre/lib when it should have been <jdk>/jre).

I'm still trying to figure out the original issue with the default JCE.
10 years ago
Attempted to switch to BouncyCastle JCE implementation by doing the following:

and now getting the error:

Not sure if that helps, but I'm focusing on getting BouncyCastle to work instead at the moment.
10 years ago
I think this is just an easy configuration issue, but so far I've had no luck searching...

Java 1.6 x64
Eclipse Helios x64
Tomcat 6.0.26
Windows 7 Ult x64 and Mac OS X

I'm building an app that executes facebook graph requests (which are required to go over https). The code that I have works on my OS X box, but not on my Win7 machines. I have JAVA_HOME pointed to the jdk install directory (not the JRE inside of that).

At first, I was getting the following exception:

After adding the following to one of my loaded .properties files, the situation improved slightly:

Now I'm getting the following:

Of course the JCE and JSSE jars are in the JAVA_HOME/jre/lib dir, and Eclipse has them listed with my selected JRE.

So my first obvious question is, how do I fix this and what am I missing here?

Second, what's different between the default installations/configurations of the above software on these two different OS's?

Thanks in advance for any help.
10 years ago
I figured out the issue. In OS X, Eclipse Galileo is 64-bit. In Win23, Galileo is only 32 bit. I had to upgrade Eclipse to Helios 64-bit (which means none of my SVN stuff works, but that's a completely different issue).

Thanks David, you actually sent me down the path that solved the issue.
10 years ago
Here's my web.xml:

Thanks for any insight =)
10 years ago
OS: Windows 7
Tomcat: 6.0.26
Java 1.6.0_20

Whenever I try and start up my app in Tomcat with a struts filter, I get the following exception:

I actually had the same exception on my OS X box, but that was with Tomcat 6.0.24. When I upgraded to .26, everything worked fine. I'm using the same exact code base, libraries, etc, on the two machines but with no luck. Using the same major and minor Java versions as well, both compiled for 64-bit. I've tried going back to Tomcat .24 and .20 with no luck. I haven't tried going to Struts 2.0.x, but I'll probably try it out if no one has any suggestions.

Thanks in advance for your help, hopefully it's just something simple.
10 years ago