[Resin-interest] resin-pro-3.1.s080208 startup exception if /tmp/caucho/qa is missing on clean install

2008-02-09 Thread Stargazer
This is an obvious glitch with this snapshot I'd like to raise for 
visibility.



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


Re: [Resin-interest] Snapshot s080125 breaks resin:import for host's.

2008-02-09 Thread Stargazer
Scott Ferguson wrote:
 It's probably already caught by our regression tests, but I've added  
 a bug report at http://bugs.caucho.com/view.php?id=2374 just in case.

 The current snapshots do have a large number of regression failures.

   
This is fixed in resin-pro-3.1.s080208, thanks.
 By the way, we should probably add your suggested configuration  
 somewhere like the wiki.  I'm not sure what title we should give it,  
 though.
   
It strikes me that its the reliance on the physical directory name in 
the host-deploy construct which is causing the problem. It mixes the 
found dir name on disk with the contents of its particuar host.xml. 
Using my resin:import way everything is defined in the found xml 
files, no matter where they exist in the subdir tree, because I put the 
resin:import tag in the def for http://localhost webapps in 
resin.conf, i.e. /. So what would be perfect would be the 
host-deploy functionality but honouring everything in the located 
file, as in this example (as a useful side effect is the files can have 
any name too, which helps manage many hosts easier as I usually stick 
the hostname in the xml filename):

conf/hostconf/pligg/www.foo.com.xml:

host xmlns=http://caucho.com/ns/resin; 
xmlns:resin=http://caucho.com/ns/resin/core;
  web-app id='www.foo.com' document-directory='/www/pligg/www.foo.com'
 /web-app
/host

Lets me use http://localhost:8080/www.foo.com and

conf/hostconf/pligg/www.bar.com.xml:

host xmlns=http://caucho.com/ns/resin; 
xmlns:resin=http://caucho.com/ns/resin/core;
  web-app id='www.bar.com' document-directory='/www/pligg/www.bar.com'
 /web-app
/host

Does the same for http://localhost:8080/www.bar.com etc

 -- Scott

 On Jan 26, 2008, at 10:31 AM, Stargazer wrote:

   
 Note - this worked for previous snapshots, it just been broken now.
 We find it useful to develop sites locally, stage them, then move them
 to production when ready. For local
 development we fire up resin and configure them such that their url is
 conveniently available after
 http://localhost:8080, for example http://localhost:8080/www.foo.com,
 http://localhost:8080/www.bar.com etc.
 Then when moved to staging they become
 http://www.staginghost.com:8080/www.foo.com and finally production  
 is as
 expected.
 The advantage with this is it is always clear where you are from the
 url: you can have all 3 open at once. The
 configuration for this has always been easy too, using this syntax:

 host id= root-directory=.
   web-app id=/ root-directory=webapps/ROOT/

   resin:import
 fileset dir=${resinHome}/conf/hostconf
   include name=**/*.xml/
 /fileset
   /resin:import
   ...

 This means that all we needed was the relevant *.xml file for each  
 host
 anywhere under our conf/hostconf dir.
 When the host-deploy directive was introduced I was sure this  
 meant we
 could do the same thing but without
 the restarts, but this isn't exactly the case. Sure, I can create a
 localhost folder and stick host.xml in it for my
 foo.com example as above, and access it with
 http://localhost:8080/www.foo.com, but the definition of foo.com is  
 within
 the host.xml file, so I have no way to do the same for bar.com as I  
 have
 using the resin:import style.
 I could edit my local hosts file and add aliases but that means  
 there is
 extra (unnecessary) config and you can't tell
 from the url where you are if at any time www.foo.com could really be
 pointing to 127.0.0.1.

 Unless there is a way of doing this I'd really appreciate the
 resin:import functionality not to be dropped please.

 The pligg verbose logging I reported is still present in this  
 snapshot.

 One other small point I'm sure you'd like to address before  
 3.1.15 : its
 now 2008 but the snapshot still announces itself
 as copyright 1998-2007 ;-)




 ___
 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] resin-pro-3.1.s080208: java.lang.NoClassDefFoundError: _quercus/_libs/_utils_, _php$fun_safeAddSlashes

2008-02-09 Thread Stargazer
Running Pligg on this snapshot gives the same verbosity as mentioned 
before, in amongst which i noticed:

safe_name;s:5:pligg;s:13:category_name;s:5:pligg;s:13:category_lang;s:2
:en;s:11:category_id;s:1:1;}}s:8:num_rows;i:2;s:12:return_value;i:2;}
[14:13:45.500] {resin-17} java.lang.NoClassDefFoundError: 
_quercus/_libs/_utils_
_php$fun_safeAddSlashes
[14:13:45.500] {resin-17}   at 
java.lang.Class.getDeclaredConstructors0(Nati
ve Method)
[14:13:45.500] {resin-17}   at 
java.lang.Class.privateGetDeclaredConstructor
s(Unknown Source)
[14:13:45.500] {resin-17}   at 
java.lang.Class.getConstructor0(Unknown Sourc
e)
[14:13:45.500] {resin-17}   at java.lang.Class.newInstance0(Unknown 
Source)
[14:13:45.500] {resin-17}   at java.lang.Class.newInstance(Unknown 
Source)
[14:13:45.500] {resin-17}   at 
com.caucho.quercus.page.ProPageManager.create
Page(ProPageManager.java:149)
[14:13:45.500] {resin-17}   at 
com.caucho.quercus.page.ProPageManager.access
$200(ProPageManager.java:39)
[14:13:45.500] {resin-17}   at 
com.caucho.quercus.page.ProPageManager$Compil
eThread.run(ProPageManager.java:199)
[14:13:45.500] {resin-17}   at 
com.caucho.util.ThreadPool$Item.runTasks(Thre
adPool.java:721)
[14:13:45.500] {resin-17}   at 
com.caucho.util.ThreadPool$Item.run(ThreadPoo
l.java:643)
[14:13:45.500] {resin-17}   at java.lang.Thread.run(Unknown Source)
[14:13:45.500] {resin-17} Caused by: java.lang.ClassNotFoundException: 
_quercus.
_libs._utils__php$fun_safeAddSlashes [java.io.IOException: class file 
length mis
match]
[14:13:45.500] {resin-17}   at 
com.caucho.loader.DynamicClassLoader.findClas
sImpl(DynamicClassLoader.java:1350)
[14:13:45.500] {resin-17}   at 
com.caucho.loader.DynamicClassLoader.loadClas
sImpl(DynamicClassLoader.java:1247)
[14:13:45.500] {resin-17}   at 
com.caucho.loader.DynamicClassLoader.loadClas
s(DynamicClassLoader.java:1180)
[14:13:45.500] {resin-17}   at 
com.caucho.loader.DynamicClassLoader.loadClas
s(DynamicClassLoader.java:1165)
[14:13:45.500] {resin-17}   at 
java.lang.ClassLoader.loadClassInternal(Unkno
wn Source)
[14:13:45.500] {resin-17}   ... 11 more
[14:13:45.500] {resin-17} Caused by: java.io.IOException: class file 
length mism
atch
[14:13:45.500] {resin-17}   at 
com.caucho.loader.ClassEntry.load(ClassEntry.
java:398)
[14:13:45.500] {resin-17}   at 
com.caucho.loader.DynamicClassLoader.loadClas
s(DynamicClassLoader.java:1424)
[14:13:45.500] {resin-17}   at 
com.caucho.loader.DynamicClassLoader.findClas
sImpl(DynamicClassLoader.java:1342)
[14:13:45.500] {resin-17}   ... 15 more
[14:13:45.609] {http--8080-2} java.lang.NoClassDefFoundError: 
_quercus/_libs/_ut
ils__php$fun_safeAddSlashes



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