Win a copy of Java by Comparison (eBook) this week in the Java in General forum!

Jarrod Mennuobe

Greenhorn
+ Follow
since Oct 05, 2005
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 Jarrod Mennuobe

I figured out the answer. Its' Window > Customize Perspective.
I'm using Eclipse 3.2.1, build M20060921-0945 on RedHat. When I go to Window > Open perspective, the resulting menu shows only 2 or three of the available perspectives and it shows an "Other" option which opens a dialog with a larger list of perspectives.

I would like the initial Perspectives menu to contain all the existing perspectives so that I don't have to mess around with that dialog box. Is there a way to configure that? I checked under Window > Preferences > Perspectives, but found nothing related.

Any help would be greatly appreciated.
Thanks for the reply.

WEB-INF\lib

By the way, I'm using an exploded deployment -- deploying an open directory instead of a .war file.
11 years ago
I'm working with Tomcat 5.5.17 on Win2K using JDK 1.5.0_07. I've got a Struts / Hibernate app that I'm trying to deploy.

It deploys and runs fine in WebLogic 8.1.3, no problem.

However, when I try to load it on Tomcat and access the first JSP page I get this error in the browser:



I've checked the Tomcat logs and there is nothing in there. Even if I reload the page to get the error several times, Tomcat does not provide any details in the logs.

I've checked to make sure that web.xml and struts-config.xml are valid. As far as I can tell, they are. It seems that they should be valid because the app works fine in WebLogic.

Has anyone seen this behavior before? Any hints on troubleshooting?

Thanks,

J
11 years ago
I forgot to mention that I have this in my catalina.sh file as I'm trying to use debugging...

JAVA_HOME="/home/ethan/apps/jdk1.5.0_07";
JAVA_OPTS="-Xverify:none -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005";

Is there a better way to configure debugging?

Thanks.
11 years ago
I'm working with Tomcat 5.5.17 on Fedora Core 5. I'm able to start it no problem by cd'ing to Tomcat's bin directory and doing

./startup.sh &

However, when I do this...

./shutdown.sh

...I get this error message...



Afterwards I find that Tomcat has not shut down.

I notice that the error includes "address already in use" but I don't know how to use that information because I don't know what address they're talking about or why a shutdown operation would cause that error.

Any help would be greatly appreciated.
11 years ago
I'm trying to get the javamail API working with commons email.

When I try to call setFrom() I get a NoClassDefFoundException looking for com.sun.mail.util.LineInputStream.

I've made sure that activation.jar, commons-email.jar, and mail.jar are in my classpath. I've tried both versions 1.3.3 and 1.4 of mail.jar.

Any help would be greatly appreciated.

Here's my code:


[ April 18, 2006: Message edited by: Jarrod Mennuobe ]
[ April 18, 2006: Message edited by: Jarrod Mennuobe ]
12 years ago
I'm getting a really strange problem in WebLogic 8.1 SP 3 on RedHat Enterprise Linux. I built and deployed my app as a war file using the WebLogic console. The console reports "success"

but when I went to the "testing" tab the URI of the app is given as:

http://localhost:7001//

Note the two slashes and no context root.

When I try to visit the app in a browser I get a 404 error.

Can you offer any troubleshooting suggestions?

I deployed the same war file on a Tomcat 5.5.9 server and it works fine, so I know the code is valid.

I tried adding a <context-root> element to weblogic.xml, but the produced the same result.

Thanks,

JM
12 years ago
Since yesterday afternoon, when I try to run an Ant target, a small dialog pops up titled "Ant configuration selection". There's a message saying "choose an Ant configuration to run". The dialog offers two identical choics, which are the name of my project, followed by the name of my build file, followed by "(1)" and "(2)".

This is in Eclipse 3.3.1, build ID M20050929-0840 on Windows 2000.

What is going on here? Is there a way to stop this from happening and just get Eclipse to run the build target?

Thanks.

JM
I couldn't find the answer to this in the docs. In Eclipse, is there a way to do a search-and-replace across an entire project in one operation? It's simple to do a search-and-replace on a single file, but I haven't found a way to do it on more than one file. I'm using Eclipse 3.1.
Thanks for the reply. I'll try that.
12 years ago
I have a web app where users are allowed to edit data stored in a DB. In many cases, they arrive at a page with a form appearing there already filled out with values from the DB.

In the past I always used ordinary ActionForms for this type of situation. Set the fields in an Action and then use the Struts html tags to implement the form, so the values would show up there.

However, for the current project, we're looking at using DynaActionForms. I have searched these forums and done a Google search, but strangely, I can't find any info on how to prepopulate the fields of a DynaActionForm. Is it not normal to do that?

Any help to get in the right direction would be greatly appreciated.
12 years ago
The solution is to do all of the above, then restart the computer.

E
12 years ago
I've followed the steps outlined on other posts on this forum to get the Tomcat admin webapp working -- installed the distributed "admin" directory in



installed "admin.xml" in



Also updated tomcat-users.xml...



Restarted Tomcat. I still get this error:

"Tomcat's administration web application is no longer installed by default. Download and install the "admin" package to use it."

The admin webapp DOES show up in the webapps listing in the Tomcat Manager Web interface.

The Tomcat log files don't show any errors.

I'm using RedHat Fedora Core 4 Linux, Tomcat 5.5.12.

Any help would be apprectiated.

Thanks,

E
12 years ago