The voices are telling me Jason said on 5/19/2006 8:44 PM:
> javaservice.exe -install "nntprss" "c:\Program Files\Java\jdk1.5.0_06
> \jre\bin\client\jvm.dll" "-Djava.class.path=c:\program
> files\nntprss\nntprss-start.jar" -start
> org.methodize.nntprss.Startup -current "c:\program files\nntprss"
>
> This resulted in the following message -
>
> "The nntprss automatic service was successfully installed"
C:\Program Files\nntprss>javaservice.exe -install "nntprss" "c:\Program
Files\Java\jdk1.5.0_06\jre\bin\client\jvm.dll"
"-Djava.class.path=c:\program files\nntprss\nntprss-start.jar" -start
org.methodize.nntprss.Startup -out "c:\program files\nntprss\out.log"
-err "c:\program files\nntprss\err.log" -current "c:\program files\nntprss"
The nntprss automatic service was successfully installed
> I then went to the Services Control Panel applet, and was able to
> successfully start the nntp//rss service.
The first time I did it, it started successfully, but I couldn't access
the service via HTTP or NNTP. Subsequent uninstalls and reinstalls gave
the following dialog box when I tried to start the service:
"The nntprss service on Local Computer started and then stopped. Some
services stop automatically if they have no work to do, for example the
Performance Logs and Alerts service."
> I could access the admin
> interface by going to http://127.0.0.1:7180 in my browser.
Nothing happened. BUT!!! I left the service installed
(unintentionally), rebooted, and before I tried another test I noticed
that it was still installed and the Services admin interface indicated
it was "Started", so I tried it with my newsreader and then the web
interface, and I discovered it's working now!
Wild speculation: on this machine, you need to install it, leave it
installed, and reboot. At any rate, I'd never done that before, and
when I did it, it started working. Beats me why.
> You may want to try uninstalling the service
> then reinstall with these parameters to see if anything gets dumped
> to the files.
When the service failed to start, out.log was empty and err.log contained:
java.lang.NoClassDefFoundError: org/methodize/nntprss/Startup
one instance of that line for each attempt to start the service.
Currently out.log is full of lines showing what it did (I'm going to
have to remember to turn that off once I'm convinced it's going to keep
working), and err.log contains:
19:35:39.375 EVENT Starting Jetty/4.2.3
19:35:39.421 EVENT Started HttpContext[/]
19:35:39.812 EVENT Started SocketListener on 0.0.0.0:7810
19:35:39.812 EVENT Started org.mortbay.http.HttpServer@10ffb38
I suspect they're just logged events. Verdad?
Many thanks. I have no idea why rebooting worked, but when it comes to
Java on this computer I've got a black thumb. I'm think it's miraculous
that when I uninstalled and reinstalled the JDK and JVM before trying
this series of tests, my Java applications still worked.
Thanks again.
--
Rev. Bob "Bob" Crispen
bob at crispen dot org
Ex Cathedra weblog: http://blog.crispen.org/
I refuse to have a culture war with an unarmed opponent. - uu_mom