RE: [3.3m3][NT4sp6][sun hotspot 1.3.0_01][jni] create (code=10106) error!

2001-05-27 Thread Tae Grt

Hello, Martin!
I tried what you have adviced me - and nothing.
Params to org.apache.tomcat.startup.Main are the same-
array of 0 lenght.

System.getProperties() - i could make them
in Alexandria Java Service, tomcat.bat and my
environment look the same, alomost identical,
especially java.library.path - and i still get those
stupid error.

I started thinking about stack overflows - but i
launch java in the main thread of process created via
CreateProcess.. Maybe there's a special mailing list
somewhere at Sun to discuss JNI problmes? Can anybody
tell me?

Still need help, sincerely yours, Tagunov Anthony

--- Martin van den Bemt <[EMAIL PROTECTED]> wrote:
> Since you added some stuff to the source already, it
> maby a good idea to log
> the arguments that are passed to the tomcat main
> when using tomcat.bat and
> when using you system. Also you can review the
> differences in the
> System.getProperties() and see what's lacking in you
> startup version.
> It's a very interesting project you'r doing there.
> 
> Mvgr,
> Martin
> 
> > -Original Message-
> > From: Tae Grt [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, May 27, 2001 11:04 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: [3.3m3][NT4sp6][sun hotspot
> 1.3.0_01][jni] create (code=10106)
> > error!
> >
> >
> > Hello, community!
> >
> > PLEASE, can anybody lend me a helping hand?
> >
> > The problem:
> > i'm developing a tool for running tomcat (and
> > other java apps)
> > under NT and unix-s. It features control over
> > environment, directories, logs, it traces
> > tomcat coming down and brings it up automatically,
> > it helps in running multiple tomcat instances.
> > It also manages the sucurity (what user tomcat
> > is running under and who have access permissions
> > to start/stop it).(The enviroment borrowes
> > some code form the Alexandria Java Service,
> > http://www.alexandriasc.com/software/JavaService/)
> >
> > The problem: when i run tomcat 3.3m3 under this
> > environment (i load jvm via JNI JVM_Create..)
> > and i give a new environment to it (almost
> > empty). Tomcat fails to start, i attach
> > a file with stack traces. The problem
> > comes from java.net.PlainSocketImpp.socketCreate
> > (Native Method).
> > I've got sun hotspot 1.3.0_01
> >
> > The funny thing is that when i
> > run this from tomcat.bat it starts ok!
> > (Looks like the same thing happens
> > when i run it from Alexandria Java Service).
> >
> > What am i Missing?? Please help! (I'm behind
> > all deadline with my university project :-(( )
> >
> > The only difference i can see is passing almost
> > clean environment to the application.. What do
> > i need there to make it work?
> >
> > Will appriciate every bit of help!
> >
> > Anthony

P.S.  Please, could you cc the copies to me personally
(i do receive list evry day, but it's so easy to get
lost there..)

> >
> > JVM at creation as -Djava.class.path=...;..;...
> > when i use sun   hotspot\jvm.dllit goes okay.
> > when i use sun   classic\jvm.dllit does not
> find
> > my startup.Main
> > when i use ibm(1.3) classic\jvm.dll it does not
> find
> > my startup.Main
> > Maybe some ideas on this too?


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



RE: [3.3m3][NT4sp6][sun hotspot 1.3.0_01][jni] create (code=10106) error!

2001-05-27 Thread Martin van den Bemt

Since you added some stuff to the source already, it maby a good idea to log
the arguments that are passed to the tomcat main when using tomcat.bat and
when using you system. Also you can review the differences in the
System.getProperties() and see what's lacking in you startup version.
It's a very interesting project you'r doing there.

Mvgr,
Martin

> -Original Message-
> From: Tae Grt [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 27, 2001 11:04 AM
> To: '[EMAIL PROTECTED]'
> Subject: [3.3m3][NT4sp6][sun hotspot 1.3.0_01][jni] create (code=10106)
> error!
>
>
> Hello, community!
>
> PLEASE, can anybody lend me a helping hand?
>
> The problem:
> i'm developing a tool for running tomcat (and
> other java apps)
> under NT and unix-s. It features control over
> environment, directories, logs, it traces
> tomcat coming down and brings it up automatically,
> it helps in running multiple tomcat instances.
> It also manages the sucurity (what user tomcat
> is running under and who have access permissions
> to start/stop it).(The enviroment borrowes
> some code form the Alexandria Java Service,
> http://www.alexandriasc.com/software/JavaService/)
>
> The problem: when i run tomcat 3.3m3 under this
> environment (i load jvm via JNI JVM_Create..)
> and i give a new environment to it (almost
> empty). Tomcat fails to start, i attach
> a file with stack traces. The problem
> comes from java.net.PlainSocketImpp.socketCreate
> (Native Method).
> I've got sun hotspot 1.3.0_01
>
> The funny thing is that when i
> run this from tomcat.bat it starts ok!
> (Looks like the same thing happens
> when i run it from Alexandria Java Service).
>
> What am i Missing?? Please help! (I'm behind
> all deadline with my university project :-(( )
>
> The only difference i can see is passing almost
> clean environment to the application.. What do
> i need there to make it work?
>
> Will appriciate every bit of help!
>
> Anthony
> P.S.  Please, could you cc the copies
> to me personally (i do receive list
> evry day, but it's so easy to get
> lost there..)
>
> P.P.S. If all goes well, my will
> be available as open source as APL.
>
> P.P.P.S. One more funny thing: i pass class path to
> JVM at creation as -Djava.class.path=...;..;...
> when i use sun   hotspot\jvm.dllit goes okay.
> when i use sun   classic\jvm.dllit does not find
> my startup.Main
> when i use ibm(1.3) classic\jvm.dll it does not find
> my startup.Main
> Maybe some ideas on this too?
>
>
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/