Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

mocca mixer

Greenhorn
+ Follow
since Jul 30, 2010
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 mocca mixer

Hi Java Ranch Members,

I have a device which is configured to access a webservice under a given ip address + port. The problem is that the configuration of the device cannot be changed anymore (it can but it would be very inconvinient since we would have to send the device back, etc.)...

the webservice it is supposed to call is running under http://xxx.xxx.xxx.xxx:8080/JavaProjectName/services/WebserviceName on a tomcat server (using axis2)

what i am trying to accomplish at the moment is to make it work directly under http://xxx.xxx.xxx.xxx:8080

after exchanging the <display-name> in the web.xml with "/" it is already running under http://xxx.xxx.xxx.xxx:8080/services/WebserviceName. I can see that there are mappings in the web.xml file which direct to url-patterns "/services/*" to an AxisServlet. I tried to replace those mappings with "/*" which produced some error during tomcat startup.

any ideas? is this possible at all? I am thankful for every hint.

10 years ago
Hello JavaRanch People :-)

My problem is the following - i programmed an application which accesses a ms sql server through native authentification (jdbc driver is jtds). everything works fine in my development environment (eclipse) and also directly under tomcat - at least if i start up manually (of course i had to put the native dll file for single sign on in a directory where my java library path points to). BUT (!!!) it doesn't work if i start tomcat as a service!

I already found out where my library path is by adding


to my application which returns:

INFO:
C:\Program Files\apache-tomcat-6.0.26\bin;
.;
C:\Windows\Sun\Java\bin;
C:\Windows\system32;
C:\Windows;C:\Windows\system32;
C:\Windows;
C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0\;
c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;
c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;
c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;
c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;

I already tried putting the .dll file ("ntlmauth.dll" shipped with the jdbc driver) in some of that places, but the application always throws the following exception:



... which means that the native library for using that driver was not found (SSO = Single Sign On -> needs "ntlmauth.dll" shipped with the jdbc driver). As I said: it works in eclipse or if I start tomcat manually, but it doesn't work if I start tomcat as a service. I also tried starting it as admin... any suggestions? I am sure more ppl are getting this error...

Thanks in advance for any useful tips! :-)
11 years ago