[Building Sakai] Tomcat won't start (on Windows)... SOLVED

will at serensoft.com will at serensoft.com
Mon May 18 12:39:02 PDT 2009


Argh! We had done a cut-and-paste to set JAVA_OPTS, and... missed the
leading dash in "-server".

Found this out by "rem"ming out the @echo off lines in STARTUP.BAT and
CATALINA.BAT (plus a little help from Chuck Caldarale on the Tomcat
mailing lists) to see what the startup command was, then pasting that
in at the command line.

Much better now!

Also managed to get TOMCAT5 to run AS A SERVICE within 64-bit Windows
-- will include that in a separate email.


On Sat, May 16, 2009 at 7:44 AM, Matthew Jones <jonespm at umich.edu> wrote:
> By stopping with "Not a valid win32 application" it seems like it's
> having a problem with the one of the binaries. I'm not sure which one
> though. Have you tried running the java 6 binaries? I know sakai 2.5
> won't compile fully with 6 but you shouldn't have any problem running
> it. You'll probably need the java opt of
> "-Dsun.lang.ClassLoader.allowArraySyntax=true"  though. Java 5 EOL is
> coming up in a few months, and I believe sakai 2.6 passed for
> compiling and execution in 6.
>
> Hmm, according to these blog you need a 64 bit tomcat binary and
> possibly iis connector too. Though it seems like you're going direct.
> I was running with the connector on the windows qa install, but I left
> it 32 bit as it's an older machine that maxed out at 4 gigs of ram.
>
> http://blog.datajelly.com/company/blog/35-running-tomcat-as-a-64-bit-windows-service.html
> http://jspors.blogspot.com/2009/01/setting-up-64-bit-tomcat-6-on-iis7.html
>
> Unfortunately sakai doesn't run under tomcat 6, but maybe there's one
> for tomcat 5 out there (or maybe the binaries also work for 5)
>
> -Matthew
>
> On Fri, May 15, 2009 at 5:24 PM, will at serensoft.com <will at serensoft.com> wrote:
>>
>> Just to be clear --
>>
>> Yes, this is a 64-bit machine;
>> yes, we're listening on port 80 instead of 8080 (via server.xml);
>> Java has no spaces in its path: C:\Java\jdk1.5.0_18 (from
>> jdk-1_5_0_18-windows-amd64.exe installer)
>> Tomcat has no spaces in its path: C:\Tomcat55
>>
>> Also tried the 64-bit binaries from
>> http://svn.apache.org/viewvc/tomcat/connectors/trunk/procrun/bin/, no
>> luck yet.
>>
>> :(
>>
>> On Fri, May 15, 2009 at 2:14 PM, will at serensoft.com <will at serensoft.com> wrote:
>> > All we get is "error 0x0"...?
>> >
>> > This is on Windows Server 2003 R2 Enterprise x64 (SP2)
>> > Tried tomcat from apache-tomcat-5.5.27.exe installer and from straight ZIP
>> > Java is 1.5.0_18 (
>> > Nothing has port 80 open according to netstat -an
>> >
>> > Executing "tomcat5.exe" from the command line shows only a blank line,
>> > then the command prompt pops up again (no text-to-console logged).
>> > Executing "startup.bat" shows
>> > Using CATALINA_BASE:   C:\Tomcat55
>> > Using CATALINA_HOME:   C:\Tomcat55
>> > Using CATALINA_TMPDIR: C:\Tomcat55\temp
>> > Using JRE_HOME:        C:\Java\jdk1.5.0_18
>> >
>> > The start>admin>componentServices>event viewer shows only:
>> > """
>> > The Apache Tomcat service terminated with service-specific error 0 (0x0).
>> >
>> > For more information, see Help and Support Center at
>> > http://go.microsoft.com/fwlink/events.asp.
>> > """
>> >
>> > We've tried running it as a service (setting it up via 'service.bat'), too:
>> > C:\Tomcat55\logs>type jakarta_service_20090515.log
>> > [2009-05-15 15:03:59] [info] Procrun (2.0.4.0) started
>> > [2009-05-15 15:03:59] [info] Service sakai name Apache Tomcat sakai
>> > [2009-05-15 15:04:00] [info] Service sakai installed
>> > [2009-05-15 15:04:00] [info] Procrun finished.
>> > [2009-05-15 15:04:00] [info] Procrun (2.0.4.0) started
>> > [2009-05-15 15:04:00] [info] Updating service...
>> > [2009-05-15 15:04:00] [info] Service sakai updated
>> > [2009-05-15 15:04:00] [info] Update service finished.
>> > [2009-05-15 15:04:00] [info] Procrun finished.
>> > [2009-05-15 15:04:00] [info] Procrun (2.0.4.0) started
>> > [2009-05-15 15:04:00] [info] Updating service...
>> > [2009-05-15 15:04:00] [info] Service sakai updated
>> > [2009-05-15 15:04:00] [info] Update service finished.
>> > [2009-05-15 15:04:00] [info] Procrun finished.
>> > [2009-05-15 15:05:19] [info] Procrun (2.0.4.0) started
>> > [2009-05-15 15:05:19] [info] Running Service...
>> > [2009-05-15 15:05:19] [info] Starting service...
>> > [2009-05-15 15:05:19] [174  javajni.c] [error] %1 is not a valid Win32
>> > application.
>> > [2009-05-15 15:05:19] [994  prunsrv.c] [error] Failed creating java
>> > C:\Java\jdk1.5.0_18\jre\bin\server\jvm.dll
>> > [2009-05-15 15:05:19] [1269 prunsrv.c] [error] ServiceStart returned 1
>> > [2009-05-15 15:05:19] [info] Run service finished.
>> > [2009-05-15 15:05:19] [info] Procrun finished.
>> >
>> > Both stderr and stdout logs are empty.
>> >
>> > We did find a thread online that recommended "copy the file
>> > msvcr71.dll from the bin dir of your java installation, to the bin dir
>> > of the tomcat installation." Of course, we don't have a msvcr71 (tho
>> > we did find a msvcrt.dll which didn't do the trick.)
>> >
>> > Any pointers would be great!
>> >
>> > --
>> > will trillich
>> > "Our only real economic security lies in our power to meet human
>> > needs." -- S.Covey, the 8th Habit
>> >
>>
>>
>>
>> --
>> will trillich
>> "Our only real economic security lies in our power to meet human
>> needs." -- S.Covey, the 8th Habit
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
>



-- 
will trillich
"Our only real economic security lies in our power to meet human
needs." -- S.Covey, the 8th Habit


More information about the sakai-dev mailing list