Win a copy of Rust Web Development this week in the Other Languages forum!

Shawn Kuenzler

Ranch Hand
+ Follow
since Apr 16, 2006
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 Shawn Kuenzler

Could only find loosely related items in the search about this nor could I find good info on the web -- though I'm sure it's out there.

I'm using WebSphere 7.1 and trying to port my application from JBoss to deploy on WAS. I have deployed the EAR but I have some name/value property files and .xml files that I use in the JBoss deployment.

How do I go about deploying these files in WebSphere?

11 years ago
I resolved the issue. I had to add both Activation.jar and Mail.jar to my classpath and remove all .class files from the javax/mail package within J2EE-1.3.1.jar that was also on the classpath. Not sure what caused the conflict.
12 years ago
Seems this is a common issue, unfortunately, I tried a bunch of things I found via search but no luck. I upgraded an application (including some jars) that was using javax.mail. The old version still works, but even with all the same code and parameters, the new version fails. The working version uses j2ee-1.3.1.jar, I've tried using that as well as mail.jar 1.4.2 and smtp.jar. I've dropped the default provider list in the /META-INF directory and no changes either. I've turned on debugging and here's the output of the failing verison:

And here's the output of the working version:

What else should I try?

12 years ago
After closing my application, which uses RMI, my clients are instructed to kill the rmiregistry process to free up the port. I've found that on Solaris, sometimes even after killing the pid for rmiregistry, it's still running on the system. You have to dig a little deeper by running ps -eaf to find it though it's not listed if you run ps -f.

Perhaps this is more of a UNIX question than a problem with rmiregistry but I think it's a little strange. Any ideas? Better yet, is there a way to kill the process for good without knowing the pid? That way I could script it in a Couldn't find anything on Google.

13 years ago
Thanks abhishek!

This works, but I have a couple concerns.

1) Isn't this process just creating a policy file that supersedes the one I really want to use for my application? .java.policy looks like my wide open security policy I used for testing...

2) I don't want to have customers copy a this policy file to their home directory. I'd rather have my entire application contained within the .jar
14 years ago
The search brought back many loosely related topics but couldn't find this specifically...

So I have an RMI application that works fine when using the below security policy file:

Now I'm ready to deliver it to clients and I'd like to lock it down to the path that the code resides in. The below policy:

Allows the server to start properly, but as soon as a client attempts to connect, the server reports:

So following some of the examples online I also tried the policy:

This one doesn't even allow the server to start. The server reports:

Can someone help explain what I may be doing wrong here? Is there anything else I need to provide to help explain why I'm getting these results? Thanks!!
14 years ago
Nearly three years later but just wanted to say thanks to Nate for answering this...

I had the exact same problem (worked unjar'd, threw the classNotFound when the application was jar'd). Interesting though, Sun says you don't need a codebase if you're using 1.5 (which I am). How come I needed the codebase afterall?

Sun's example and explanation

Note: If the server needs to support clients running on pre-5.0 VMs, then a stub class for the remote object implementation class needs to be pregenerated using the rmic compiler, and that stub class needs to be made available for clients to download. See the codebase tutorial for more details.
14 years ago
My application uses the SwingWorker utility class for multi-threading. I'm having an issue in which a user can click "cancel", and the swingworker thread is interrupted, but the user must still wait -- staring at the hour glass -- for the process that thread kicked off to complete on the server. Now, true to thread interruption (and correct me if I'm wrong), the client has no effect on the server completing its process, and the process simply returns no results to the client (or not to the UI at least). This is fine with me, but I'd like for my users to be able to continue working after clicking the cancel button.

So I threw in a call to

After the thread is killed, but something still seems to take over control and throw up the hour glass again, until the server process is complete.

I know this by viewing the log4j output. See below:

That is all fine, typical processing until the user now clicks cancel and kills the thread

At this point, I'd expect the user to be given their control back, but instead the hour glass prevents them from having control until after the next, big, process completes. I can't control Thread 1310 (the server process) so it should be assumed it will run out, but how can I ignore this from the client and allow the user to continue working? Is something in Swing taking the focus and setting the hour glass to wait for this 1310 thread despite the swingworker thread (who launched Thread 1310) was interrupted?

[ October 22, 2007: Message edited by: Shawn Kuenzler ]
14 years ago
I need to redirect my JSP based on whether the the parent window has a certain name. I wrote up a simple JSP with javascript to do what I want. It doesn't work but you get the idea for what I'm looking for. Anyone care to share the best way to do this? Or help me fix whatever its doing wrong here? Thanks!

(Notice "onLoad" is spelled incorrectly because javaranch won't allow me to post with that syntax in my own code.)
What do you foresee for GWT in the job-marketplace? I wonder how well it will be adopted for development in larger shops.

Basically, with GWT doing so much of the work behind the scenes, if I invest my time learning it, will potential employers frown on the fact that I don't truly know AJAX?

14 years ago
Sorry for the 'repost' but I posed this question deeper in a similar post below and didn't get any response. I'll try to be more clear this time.

I'm trying to set up html links in a parent window that update content in the same child window(rather than opening successive new windows with each click).

Having the same target name in the anchor tag looks to be the easiest way to do this but it's not working in conjunction with a servlet mapping.

This works:

This doesn't work. This link will open a new window every time it's clicked

What is it about the servlet URL mapping that causes the links to not return to the child window? Is there another way to solve this issue?

I have a multiple select SELECT list and my users are complaining that they don't want to have to click the 'reset' button to clear their selections. Is there a way to set up a SELECT list similar to Checkbox in which users can simply click on a selected item to deselect it?

I know. That was only for sake of having different examples. If you click on any one of those links -- multiple times -- it'll open its target (with the same name...) in a new window each time.