Aodhan Hoffman

Ranch Hand
+ Follow
since May 21, 2004
Aodhan likes ...
MyEclipse IDE Redhat Java
Merit badge: grant badges
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 Aodhan Hoffman

Thanks. I am aware the hostname lab-nf-01.ns.cs.boeing.com must match the CN lab-nf-01.ns.cs.boeing.com.
They do, which is why the error is so frustrating and unhelpful.
I'm trying to access a web service that uses BASIC Auth + SSL with a self-signed cert. I've cobbled together code that should work, and imported the cert from the server into a keystore. I have verified that the CN for the crt is identical to the target hostname and matches exactly what CertificateException is telling me it needs. I've hit a brick wall here and would appreciate any assistance an SSL veteran can provide. Thanks!



code:


and the certs in my keystore


I see JavaFX mentioned in company with Groovy and BeanShell, giving me the impression JavaFX is intended to serve as a scripting language outside of web pages. It seems like JavaFX has a ways to go in defining itself clearly before many can understand how to or why to adopt it.
14 years ago
[java] Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target



[java] Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.sec
urity.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requ
ested target


STP - define what techs are core to the NMT


I am running JBoss 4.0.5 w/ JbossWS 1.2.1.

I have enabled the SSL connector and am able to access the WSDL for my web service using a browser on port 8443 with a certificate I created using keytool.


The client works if I provide it the old http/port 80 URL in it's local WSDL. If I try to aim it at https/port 8443, the client dies with the following error:







<soap:address location="http://localhost:8080/NetworkService/NLS"/> <-- works
<soap:address location="https://localhost:8443/NetworkService/NLS"/> <-- doesn't work

I have imported the server cert into a keystore in the client's bin directory. I configured the client to use the keystore ( I believe ) by using jboss-wsse-client.xml in the client's bin directory.

jboss-wsse-client.xml

16 years ago
Continuing to try different paths:

From this dir,

C:\jboss_examples\examples\src\main>tree
C:.
└───org
└───jboss
├───chap12
│ ├───hello

C:\jboss_examples\examples\src\main>ls org\jboss\chap12\hello
Hello.java HelloServlet.java wsdl
HelloBean.java config.xml

From here I tried again, specifying the whole path to the config file and including the whole path in my specified CP.

C:\jboss_examples\examples\src\main>C:\Sun\jwsdp-2.0\jaxrpc\bin\wscompile -classpath c:\jboss_examples\examples\src\main\org\jboss\chap12\hello -gen:server -f:rpcliteral -mapping mapping.xml org\jboss\chap12\hello\config.xml

error: RmiModeler error: java.lang.ClassNotFoundException: org$jboss$chap12$hello$Hello

16 years ago
I'm working through the JBoss ws tutorial and right off the bat they recommend building the AS service descriptors using Sun's wscompile app. Fine. I do so from the directory the code resides in, and I get a ClassNotFound error.







The instruction in the tutorial ( take from the JBoss 4.0 Official Guide ) is simply:

wscompile -classpath <classpath> -gen:server -f:rpcliteral -mapping mapping.xml config.xml

This is what I did.

I tried performing the operation from the parent directory ( specifying the relative path to the config.xml file ), but got the same error.

Any input would be appreciated. Thanks!
16 years ago
Based on your suggestion Craig I rooted around and found the problem. I was stumbling over the connection pool concerns, just trying to get them to work, I missed the more basic JDBC related errors. Your mention regarding the Connection object got me back on track.

Many thanks for your time!
18 years ago
The only start up errors I get has something to do with tomcat already using the port it wants to use. ( A perplexing error that doesn't seem to stop tomcat from launching. )

The context.xml file is in webapps/jobtracker/META-INF/context.xml.

For sanity, I quit NetBeans, went on with life for a couple of hours, read your post and tried again. THis time, it magically worked. NetBeans itself, not just Tomcat, must have needed a restart. An annoying lesson. I need to find out how to get netbeans to use MY tomcat installation...but that's a separate issue.

Regardless, I appreciate your time verifying my configuration.

Now, I am getting a 'connection pool exhausted' error on submitting the form.



The function in question is this:


The specific line is:


So I went back and confirmed the related information was specified in the server.xml file:


Now there should be more than enough connections. However, I am doing a batch. (One form entry is still only one query though. ) Could this be a problem? Is there somewhere else I should look for trouble?

THanks again.
18 years ago
I'm trying to write a tag that takes form input and inserts it into a database. (Perhaps not clean, but I'm playing around. )

I'm using Netbeans 4.x ( which includes Tomcat 5.5.x ).

WHen I submit the form I get the following error ( truncated )



I read the JNDI HOW-TO, other Tomcat documents relating to JDBC and JNDI naming, as well as other research. The result is a slightly mixed approach that closely matches the recommendations from the HOW-TO. Comparing what I have to the HOW-TO, I don't know where the issue is.

Here's the server.xml entry:



Here's the context.xml ( within the webapp file system ) entry :


Here's the deployment descriptor for the webapp:


and finally the code that's supposed to be initializing the DataSource


The line it specifically hiccups on is this one:


Any input would be appreciated, thanks!
18 years ago
Okay, that was the clue-by-four I was looking for. Thanks!
I didn't recognize the significance of the nested class.
18 years ago
JSP
I'm trying to parse incoming form intput into a table where one column prints out the name of the parameter, the other column its value. Since the request.param object is a HashMap, it should have both. Is there simply no way to do this? ( I should note that it prints out the values alone just fine. )

If it is possible, as it is in PHP, what is the field name for the parameter names? Thanks!

here's the code fragment:
18 years ago
JSP
*shrug*
I wrote my app as a stand alone using crond, but the poster's needs might require JSP, or might be more interested/comfortable with JSP. I didn't say it was a great idea, only a possibility.
18 years ago
JSP
IIUC, to create a daemon, simply write a headless app that runs in the background that checks the date every minute or so for a date change. This would be implemented in regular java, not JSP or Servlets.

I wrote an app to upload data to a database every hour, and used UNIX cron to call it. I figured that would be more reliable.

You could write all of the email code into JSP, and call the JSP using a shell script using some type of system schedule ( whether you're using Windows or UNIX ). Not pretty, but simple if you want to stick to JSP.
18 years ago
JSP
Doh! Sorry, I misunderstood your suggestion.

Bingo!

Removing the enctype did the trick, not something I would have thought of at all because I thought everything, including the POST data, was /supposed/ to be text/html.

I changed the form declaration:


This is what I get now:


Many thanks for your time and input.
18 years ago
JSP
Thanks for the suggestion, but no joy. I still got no data in the request object.

Here is the html of the form as it is now:


and the JSP page that processes it as it is now:


and the result:


Is there a separate object that the POST data is placed into? Is there another method I should be using to access POST data? Is there a known issue relating to MacOS implementation of Java that I haven't otherwise run into?

I appreciate your assistance.
18 years ago
JSP