On Feb 9, 2007, at 9:12 AM, Kuntz, Tim wrote:

> Thanks Scott,
>
> Good call. I open a new shell as root and run bin/httpd.sh directly to
> eliminate any possible voodoo with su, sudo, etc...
>
> Any other thoughts?

Are you using "bin/httpd.sh start" or just bin/httpd.sh?

There's a tricky issue with the JDK and dynamic libraries and  
LD_LIBRARY_PATH. The LD_LIBRARY_PATH needs to be set before loading  
any JNI code.  The Watchdog JDK process is responsible for setting  
LD_LIBRARY_PATH, but the watchdog can't set it for itself just a  
child process.

Since bin/httpd.sh start spawns a child process, you get the right  
JNI loading.  Also, since Resin is always spawned the LD_LIBRARY_PATH  
is set properly.  But, bin/httpd.sh with no "start" is the watchdog  
process, so it doesn't have LD_LIBRARY_PATH set.

The problem is that the watchdog is responsible for validation of  
user-name, i.e. we want to give an error message early if there's a  
problem.

That might be what you're running into.  We need to improve that  
validation, but it's a bit complicated to get right.

-- Scott

>
> tim
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Scott Ferguson
> Sent: Friday, February 09, 2007 10:54 AM
> To: General Discussion for the Resin application server
> Subject: Re: [Resin-interest] Errors enabling "user-name" element
>
>
> On Feb 9, 2007, at 7:31 AM, Kuntz, Tim wrote:
>
>> I'm currently in the process of upgrading Resin from a 2.x version to
>> 3.1.0 and have been unable to eliminate the error below, which I get
>> when I attempt to set the user-name and group-name values in
>> resin.conf.
>> I have tried this on Solaris 8 and a RedHat installation but get the
>> same error.
>>
>> I have also included the output from the Linux install when NOT
>> setting
>> the user-name. It shows that I am using Resin Pro with appropriate
>> license and the socket JNI library is being loaded.
>
> I've added this as a bug report.
>
> Are you starting as root?  The log without user-name shows a user of
> "web".  user-name also requires that you start as root.  I'm not sure
> Resin if is throwing the right exception if you start with a
> different user.
>
> -- Scott
>
>>
>> Any help in troubleshooting this is much appreciated.
>>
>> - tim
>>
>>
>> --- ERROR ---
>> Feb 8, 2007 6:19:14 PM com.caucho.boot.ResinWatchdog run
>> INFO: com.caucho.config.ConfigException: <user-name> requires Resin
>> Professional and compiled JNI.
>> com.caucho.config.ConfigException: <user-name> requires Resin
>> Professional and compiled JNI.
>>         at
>> com.caucho.boot.ResinWatchdog.createProcess(ResinWatchdog.java:754)
>>         at com.caucho.boot.ResinWatchdog.run(ResinWatchdog.java:497)
>>         at java.lang.Thread.run(Thread.java:595)
>>
>>
>> --- DEFAULT CONF ---
>> [EMAIL PROTECTED] resin-pro-3.1.0]$ bin/httpd.sh Resin Professional 3.1.0
>> (built Fri, 22 Dec 2006 07:11:14 PST)
>> Copyright(c) 1998-2006 Caucho Technology.  All rights reserved.
>>
>>
>>   1006350.license -- 2 Resin servers Pampered Chef
>>
>> Starting Resin on Fri, 09 Feb 2007 08:20:43 -0600 (CST)
>>
>> [08:20:45.575] Server[id=,cluster=app-tier] starting [08:20:45.576]
>> [08:20:45.576] Linux 2.6.9-34.ELsmp i386 [08:20:45.576] Java
>> 1.5.0_11-b03, 32, mixed mode, UTF-8, en, Sun Microsystems Inc.
>> [08:20:45.577] user.name: web
>> [08:20:45.577] resin.home = /webapp/resin-pro-3.1.0/ [08:20:45.577]
>> root.directory = /webapp/resin-pro-3.1.0/ [08:20:45.578] resin.conf =
>> /webapp/resin-pro-3.1.0/conf/resin.conf
>> [08:20:45.578]
>> [08:20:45.592] Loaded Socket JNI library.
>> [08:20:45.594] hmux listening to localhost.localdomain:6800
>> [08:20:45.595] http listening to *:8080 [08:20:45.721] Host[]  
>> starting
>> [08:20:45.971] WebApp[http://localhost:8080] starting [08:20:46.440]
>> WebApp[http://localhost:8080/resin-doc] starting [08:20:46.698]
>> WebApp[http://localhost:8080/resin-admin] starting
>>
>>
>>
>>
>> _______________________________________________
>> resin-interest mailing list
>> resin-interest@caucho.com
>> http://maillist.caucho.com/mailman/listinfo/resin-interest
>
>
>
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>
>
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest



_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to