Dave Bosky

Ranch Hand
+ Follow
since Dec 16, 2003
Merit badge: grant badges
For More
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 Dave Bosky

Trying to configure Tomcat 5.5 with SSL. I created the keystore, created a csr request, received a certificate from geotrust, added certifcate to the keystore.
I added the connector below which points to the keystore. I'm stumped on the error message below. I see the message all over the web but can't find a straight answer how to resolve the issue. I know the passwords and the keystore are correct.

<Connector port="443"
maxHttpHeaderSize="8192"
maxThreads="150"
minSpareThreads="25"
maxSpareThreads="75"
enableLookups="false"
disableUploadTimeout="true"
acceptCount="100"
scheme="https"
secure="true"
clientAuth="false"
SSLEnabled="true"
sslProtocol="TLS"
keystoreFile="F:\Tomcat\conf\credentials\cert.jks"
keystorePass="xxxxxxxxxxxxxxxxx"/>

ava.io.IOException: SSL configuration is invalid due to No available certificate or key corresponds to the SSL cipher suites which are enabled.
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.checkConfig(JSSESocketFactory.java:404)
at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:124)
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:95)
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:293)
at org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:139)
at org.apache.catalina.connector.Connector.initialize(Connector.java:1017)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782)
at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: javax.net.ssl.SSLException: No available certificate or key corresponds to the SSL cipher suites which are enabled.
at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.checkEnabledSuites(SSLServerSocketImpl.java:303)
at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:253)
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.checkConfig(JSSESocketFactory.java:400)
... 15 more


Thanks,
Dave
14 years ago
Here's the rest of the code. Thanks Again!






Here's my readystate function:


Here's the servlet code:


It works fine in IE but nothing happens in Firefox.
It's like the readystate and status is undefined.

I've installed firebug to look at the http headers.
The posted data is correct, the response data is correct, and the headers look fine as well. But nothing happens.

Thanks,
Dave
My ajax code works fine in IE but Firefox keeps dumping this error to the javascript console. I'm doing a simple POST to a servlet and it returns an responseXML object.

Error: uncaught exception: [Exception... "Component returned failure code: 0x804b000f [nsIXMLHttpRequest.setRequestHeader]" nsresult: "0x804b000f (<unknown> " location: "JS frame :: https://myserver.x.com :: confirmitems :: line 186" data: no]



Thanks,
Dave
I'm trying to connect to a xml-rpc server to execute a method but I keep receiving this error when trying to connect to the server.
Any help would be great! What does it mean and how to resolve it? I've connected to other SSL sites before without issues.



Thanks,
Dave
Does anyone have a code sample showing how to use Apache XML-RPC clientthrough a proxy server? I've been trying to use Apache HttpClient as the transport method but can't get anything to work. I've searched and found nothing on this topic..

I've posted my test servlet below.

Thanks,
Dave

I'm using an Apache 2/Tomcat 5.5/SSL setup and keep receiving mixed-content warnings from IE. Apache is serving the static content like images, styles, etc. and Tomcat is serving the servlet/jsp's.

Every page I access popups the mixed content warning.

Can I modify a Tomcat or Apache conf file to eliminate this problem???


Thanks,
Dave
17 years ago
I resolved the issue by adding an init-param to the filter config.


Thanks,
Dave
18 years ago
What code did you add to your filter to accept/ignore image/css files?

Thanks,
Dave
18 years ago
It seems like my filter-mapping is not allowing access to the images???
Is there a value to only check classes/jsp's and exclude everything else such as images?
Thanks Again,
Dave

18 years ago
I'm using a filter to verify a user exists in a list of groups before displaying the page.

If a user fails the verification filter they get sent to an error page.
The problem is the error page can't find my images, it will show the text on the page though. It seems the mappings get screwed up and being forwarded. How can I correct this?

Thanks.
Dave
18 years ago
I'm trying to write to a text file on network share and keep receiving the
following error msg:

------------------------------------------------
IOException: java.io.FileNotFoundException:
\\myserver\dev\projects\projbefore\trans.txt
(The system cannot find the file specified)
------------------------------------------------

I store the share path in my web.xml file:



Any ideas? It must be something simple.

Thanks
Dave
18 years ago
How can I lookup the 'dept_name' each 'parent_order_id'
when performing a select query?
Will I need to use to use two select queries?

tbl_dept
--------------------------------------
int PK NOT NULL dept_id
int NULL parent_dept_id
char (25) NOT NULL dept_name
char (25) NOT NULL dept_location
--------------------------------------

Regards,
Dave
I have a servlet that loads several collections that are using to populate dropdown listbox. Snippet below.


This servlet is configured to load on startup in my web.xml file.
How can I reload this list after I add new values to the list?

Is there a better way to accomplish caching of collections used to populate common listboxes?

Thanks....
Dave
18 years ago
I'm searching for some Java/JSP code that will allow me to query an LDAP Active Directory server and return all the group memberships for a specific user.

I was using a taglib from Simya but it doesn't seem to work anymore for some odd reason. Any other options available? Can someone provide an example of how they're querying a LDAP server?

Thanks Again,
Dave
18 years ago
JSP