Re: [Resin-interest] Fresh resin install won't run my app or log

2014-03-13 Thread Rick Mann

On Mar 12, 2014, at 20:23 , Alex Rojkov a...@caucho.com wrote:

 Did you remove resin:import for app-default.xml by any chance ? 

Why do you ask?



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Fresh resin install won't run my app or log

2014-03-13 Thread Alex Rojkov
 
 On Mar 12, 2014, at 20:23 , Alex Rojkov a...@caucho.com wrote:
 
 Did you remove resin:import for app-default.xml by any chance ? 
 
 Why do you ask?

app-default.xml has all the required imports to for web.xml, resin-web.xml, 
etc. Without the imports application won’t be properly initialized. 

Commenting app-default.xml out or excluding the imports would make application 
behave as you describe. 

 
 ___
 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


Re: [Resin-interest] Fresh resin install won't run my app or log

2014-03-13 Thread Alex Rojkov

 So, any other suggestions for getting more logging out of the system to see 
 where things are falling down?

Are your servlets in WB-INF/classes? 

Try adding a compiling-loader (or a simple-loader if classes are compiled 
already) to your class-loader.

class-loader
compiling-loader path=WEB-INF/classes”/
tree-loader../
/class-loader

Alex

 
 On Mar 12, 2014, at 20:12 , Rick Mann rm...@latencyzero.com wrote:
 
 Well, that's not exactly true, but I'm baffled.
 
 I have my webapp running just fine locally, and just find on a 4.0.37/Java 
 1.6/Ubuntu 10.10 server I've had running for years.
 
 I just created an Ubuntu 13.10/Java 1.7/4.0.38 server using the Pro 
 distribution (but no license file yet) that I build myself (rather than 
 using apt-get) because I wanted to control the directories used. It started 
 up and ran fine.
 
 I then installed my app, and modified resin.xml to point to it. Resin seems 
 to create the app, and the resin-file handler is able to serve up some 
 top-level files in my app.
 
 But it does not appear to be actually executing any of the code in my app. 
 My app is pure-java configed, and uses Log4J. No log files are getting 
 created. I tried logging some stuff using System.out, but it's not appearing 
 in any of the logs I do get. I'm executing with resinctl console, as much 
 logging as I can set to ALL.
 
 I've little by little gone through the various Resin config files removing 
 references to other apps, virtual hosts, and other logging. My app's entry 
 in resin.xml looks like this:
 
  http://pastebin.com/6STAmNBS
 
 Any ideas what else to try? I have the following logs to look at:
 
 rmann@clarke $ ls /logs/resin/
 out.log
 rmann@clarke $ ls /logs/inote/
 access.log  resin.log
 
 Plus what comes out of the resinctl console.
 
 I'm baffled.
 
 Some possible issues?
 
 [03-13 03:01:20.176] {main}  ALL 
 (com.caucho.env.deploy.ExpandDeployController) 
 java.io.FileNotFoundException: 
 /lz/var/www/com/latencyzero/inote/META-INF/resin.application-hash
 
 GETting / results in 404:
 
 [03-13 03:11:38.506] {resin-port-80-46}  FINER 
 (com.caucho.server.dispatch.ServletInvocation) Dispatch '/' to 
 AccessLogFilterChain[http://inote.latencyzero.com, 
 next=WebAppFilterChain[http://inote.latencyzero.com, 
 next=ServletFilterChain[resin-file]]]
 
 
 GETting /css/site.css returns the css file:
 
 [03-13 03:01:36.023] {resin-port-80-22}  FINER 
 (com.caucho.server.dispatch.ServletInvocation) Dispatch '/css/site.css' to 
 AccessLogFilterChain[http://inote.latencyzero.com, 
 next=WebAppFilterChain[http://inote.latencyzero.com, 
 next=ServletFilterChain[resin-file]]]
 
 TIA,
 
 -- 
 Rick
 
 
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest
 
 
 -- 
 Rick
 
 
 
 ___
 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


Re: [Resin-interest] Fresh resin install won't run my app or log

2014-03-13 Thread Rick Mann

On Mar 13, 2014, at 14:13 , Alex Rojkov a...@caucho.com wrote:

 Are your servlets in WB-INF/classes? 

Yes.

 Try adding a compiling-loader (or a simple-loader if classes are compiled 
 already) to your class-loader.
 
 class-loader
 compiling-loader path=WEB-INF/classes”/
 tree-loader../
 /class-loader

I had that in there originally, but it wasn't working. I removed it because I 
never want .java files in classes/ to be compiled (that's what it's for, 
right?).

Just to be sure, I added it and tried again. No go.

-- 
Rick





signature.asc
Description: Message signed with OpenPGP using GPGMail
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Fresh resin install won't run my app or log

2014-03-13 Thread Alex Rojkov

On Mar 13, 2014, at 2:26 PM, Rick Mann rm...@latencyzero.com wrote:

 
 On Mar 13, 2014, at 14:13 , Alex Rojkov a...@caucho.com wrote:
 
 Are your servlets in WB-INF/classes? 
 
 Yes.
 
 Try adding a compiling-loader (or a simple-loader if classes are compiled 
 already) to your class-loader.
 
 class-loader
 compiling-loader path=WEB-INF/classes”/
 tree-loader../
 /class-loader
 
 I had that in there originally, but it wasn't working. I removed it because I 
 never want .java files in classes/ to be compiled (that's what it's for, 
 right?).
 
 Just to be sure, I added it and tried again. No go.

And can you move the class-loader registration inside the web-app please?

If that doesn’t work please post log and conf/*.xml conf/*.properties 
someplace. 

Alex


 
 -- 
 Rick
 
 
 
 ___
 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


Re: [Resin-interest] Fresh resin install won't run my app or log

2014-03-13 Thread Rick Mann

On Mar 13, 2014, at 14:56 , Alex Rojkov a...@caucho.com wrote:

 And can you move the class-loader registration inside the web-app please?
 
 If that doesn’t work please post log and conf/*.xml conf/*.properties 
 someplace. 

It's inside the web-app inside resin.xml.

resin.xml:  http://pastebin.com/tY8MRf3S
app-defaults.xml:   http://pastebin.com/iF8F6Ug9
cluster-default.xml:http://pastebin.com/n84jPp1S

properties: http://pastebin.com/sMBTiNfi

It's probably something really stupid that I did, and I'll be suitably 
embarrassed when you point it out.

Thanks!

-- 
Rick





signature.asc
Description: Message signed with OpenPGP using GPGMail
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Fresh resin install won't run my app or log

2014-03-13 Thread Alex Rojkov
Hm… In the referenced resin.xml the classloader is in the host section. Can you 
move it into the web-app section and try accessing one of your mapped servlets?

Alex
 


 
 And can you move the class-loader registration inside the web-app please?
 If that doesn’t work please post log and conf/*.xml conf/*.properties 
 someplace. 
 
 It's inside the web-app inside resin.xml.
 
   resin.xml:  http://pastebin.com/tY8MRf3S
   app-defaults.xml:   http://pastebin.com/iF8F6Ug9
   cluster-default.xml:http://pastebin.com/n84jPp1S
 
   properties: http://pastebin.com/sMBTiNfi
 
 It's probably something really stupid that I did, and I'll be suitably 
 embarrassed when you point it out.
 
 Thanks!
 
 -- 
 Rick
 
 
 
 ___
 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


Re: [Resin-interest] Fresh resin install won't run my app or log

2014-03-13 Thread Rick Mann
Hmm. I don't have the connector jar outside my webapps in any other 
environment. I can't remember what it is I did to fix it last time.

On Mar 13, 2014, at 15:37 , Rick Mann rm...@latencyzero.com wrote:

 Oh! Sorry. That was it. Argh. I am embarrassed (and annoyed with myself, 
 since I've lost precious development time).
 
 Thank you.
 
 Now I'm back to an issue I had earlier (which I realize now I was solving 
 when I created this problem), and that is that Resin can't find the MySQL 
 driver in WEB-INF/lib when it goes to create the DataSource. This is a 
 problem that has plagued me for years, and each time I eventually get things 
 to work, but each new environment seem to trip me up.
 
 It seems to me that if the tree-loader points to lib, and the MySQL connector 
 jar is in there, Resin should be able to find it. Is it trying to create this 
 datasource before the tree-loader can load classes? I guess that also makes 
 sense, since this configuration is outside of my webapp, and therefore not 
 controlled by it.
 
 Is that the right understanding? By that understanding, I should be able to 
 instantiate the datasource inside my webapp instead, using the jar inside the 
 webapp, no?
 
 Thanks again for spotting my error!
 
 On Mar 13, 2014, at 15:31 , Alex Rojkov a...@caucho.com wrote:
 
 Hm… In the referenced resin.xml the classloader is in the host section. Can 
 you move it into the web-app section and try accessing one of your mapped 
 servlets?
 
 Alex
 
 
 
 
 And can you move the class-loader registration inside the web-app please?
 If that doesn’t work please post log and conf/*.xml conf/*.properties 
 someplace. 
 
 It's inside the web-app inside resin.xml.
 
 resin.xml:  http://pastebin.com/tY8MRf3S
 app-defaults.xml:   http://pastebin.com/iF8F6Ug9
 cluster-default.xml:http://pastebin.com/n84jPp1S
 
 properties: http://pastebin.com/sMBTiNfi
 
 It's probably something really stupid that I did, and I'll be suitably 
 embarrassed when you point it out.
 
 Thanks!
 
 -- 
 Rick
 
 
 
 ___
 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
 
 
 -- 
 Rick
 
 
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest


-- 
Rick





signature.asc
Description: Message signed with OpenPGP using GPGMail
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Fresh resin install won't run my app or log

2014-03-13 Thread Rick Mann
And, stopping and re-starting resin again solved that problem.

On Mar 13, 2014, at 15:43 , Rick Mann rm...@latencyzero.com wrote:

 Hmm. I don't have the connector jar outside my webapps in any other 
 environment. I can't remember what it is I did to fix it last time.
 
 On Mar 13, 2014, at 15:37 , Rick Mann rm...@latencyzero.com wrote:
 
 Oh! Sorry. That was it. Argh. I am embarrassed (and annoyed with myself, 
 since I've lost precious development time).
 
 Thank you.
 
 Now I'm back to an issue I had earlier (which I realize now I was solving 
 when I created this problem), and that is that Resin can't find the MySQL 
 driver in WEB-INF/lib when it goes to create the DataSource. This is a 
 problem that has plagued me for years, and each time I eventually get things 
 to work, but each new environment seem to trip me up.
 
 It seems to me that if the tree-loader points to lib, and the MySQL 
 connector jar is in there, Resin should be able to find it. Is it trying to 
 create this datasource before the tree-loader can load classes? I guess that 
 also makes sense, since this configuration is outside of my webapp, and 
 therefore not controlled by it.
 
 Is that the right understanding? By that understanding, I should be able to 
 instantiate the datasource inside my webapp instead, using the jar inside 
 the webapp, no?
 
 Thanks again for spotting my error!
 
 On Mar 13, 2014, at 15:31 , Alex Rojkov a...@caucho.com wrote:
 
 Hm… In the referenced resin.xml the classloader is in the host section. Can 
 you move it into the web-app section and try accessing one of your mapped 
 servlets?
 
 Alex
 
 
 
 
 And can you move the class-loader registration inside the web-app please?
 If that doesn’t work please post log and conf/*.xml conf/*.properties 
 someplace. 
 
 It's inside the web-app inside resin.xml.
 
resin.xml:  http://pastebin.com/tY8MRf3S
app-defaults.xml:   http://pastebin.com/iF8F6Ug9
cluster-default.xml:http://pastebin.com/n84jPp1S
 
properties: http://pastebin.com/sMBTiNfi
 
 It's probably something really stupid that I did, and I'll be suitably 
 embarrassed when you point it out.
 
 Thanks!
 
 -- 
 Rick
 
 
 
 ___
 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
 
 
 -- 
 Rick
 
 
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest
 
 
 -- 
 Rick
 
 
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest


-- 
Rick





signature.asc
Description: Message signed with OpenPGP using GPGMail
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Fresh resin install won't run my app or log

2014-03-13 Thread Alex Rojkov

 Hmm. I don't have the connector jar outside my webapps in any other 
 environment. I can't remember what it is I did to fix it last time.

As long as database configuration is in the web-app (not in cluster) putting 
the connector.jar into WEB-INF/lib/ should work. 

Your database configuration is in the web-app, but the driver configuration 
is removed from the posted resin.xml ( so I can’t comment on that )

Are you seeing a ClassNotFoundException for the driver class and the driver 
class is in WEB-INF/lib? 

What does the exception look like in the context of web-app begin loaded?

Alex


 
 On Mar 13, 2014, at 15:37 , Rick Mann rm...@latencyzero.com wrote:
 
 Oh! Sorry. That was it. Argh. I am embarrassed (and annoyed with myself, 
 since I've lost precious development time).
 
 Thank you.
 
 Now I'm back to an issue I had earlier (which I realize now I was solving 
 when I created this problem), and that is that Resin can't find the MySQL 
 driver in WEB-INF/lib when it goes to create the DataSource. This is a 
 problem that has plagued me for years, and each time I eventually get things 
 to work, but each new environment seem to trip me up.
 
 It seems to me that if the tree-loader points to lib, and the MySQL 
 connector jar is in there, Resin should be able to find it. Is it trying to 
 create this datasource before the tree-loader can load classes? I guess that 
 also makes sense, since this configuration is outside of my webapp, and 
 therefore not controlled by it.
 
 Is that the right understanding? By that understanding, I should be able to 
 instantiate the datasource inside my webapp instead, using the jar inside 
 the webapp, no?
 
 Thanks again for spotting my error!
 
 On Mar 13, 2014, at 15:31 , Alex Rojkov a...@caucho.com wrote:
 
 Hm… In the referenced resin.xml the classloader is in the host section. Can 
 you move it into the web-app section and try accessing one of your mapped 
 servlets?
 
 Alex
 
 
 
 
 And can you move the class-loader registration inside the web-app please?
 If that doesn’t work please post log and conf/*.xml conf/*.properties 
 someplace. 
 
 It's inside the web-app inside resin.xml.
 
resin.xml:  http://pastebin.com/tY8MRf3S
app-defaults.xml:   http://pastebin.com/iF8F6Ug9
cluster-default.xml:http://pastebin.com/n84jPp1S
 
properties: http://pastebin.com/sMBTiNfi
 
 It's probably something really stupid that I did, and I'll be suitably 
 embarrassed when you point it out.
 
 Thanks!
 
 -- 
 Rick
 
 
 
 ___
 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
 
 
 -- 
 Rick
 
 
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest
 
 
 -- 
 Rick
 
 
 
 ___
 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


Re: [Resin-interest] Fresh resin install won't run my app or log

2014-03-12 Thread Alex Rojkov
Did you remove resin:import for app-default.xml by any chance ? 

Alex

On Mar 12, 2014, at 8:12 PM, Rick Mann rm...@latencyzero.com wrote:

 Well, that's not exactly true, but I'm baffled.
 
 I have my webapp running just fine locally, and just find on a 4.0.37/Java 
 1.6/Ubuntu 10.10 server I've had running for years.
 
 I just created an Ubuntu 13.10/Java 1.7/4.0.38 server using the Pro 
 distribution (but no license file yet) that I build myself (rather than using 
 apt-get) because I wanted to control the directories used. It started up and 
 ran fine.
 
 I then installed my app, and modified resin.xml to point to it. Resin seems 
 to create the app, and the resin-file handler is able to serve up some 
 top-level files in my app.
 
 But it does not appear to be actually executing any of the code in my app. My 
 app is pure-java configed, and uses Log4J. No log files are getting created. 
 I tried logging some stuff using System.out, but it's not appearing in any of 
 the logs I do get. I'm executing with resinctl console, as much logging as I 
 can set to ALL.
 
 I've little by little gone through the various Resin config files removing 
 references to other apps, virtual hosts, and other logging. My app's entry in 
 resin.xml looks like this:
 
   http://pastebin.com/6STAmNBS
 
 Any ideas what else to try? I have the following logs to look at:
 
 rmann@clarke $ ls /logs/resin/
 out.log
 rmann@clarke $ ls /logs/inote/
 access.log  resin.log
 
 Plus what comes out of the resinctl console.
 
 I'm baffled.
 
 Some possible issues?
 
 [03-13 03:01:20.176] {main}  ALL 
 (com.caucho.env.deploy.ExpandDeployController) java.io.FileNotFoundException: 
 /lz/var/www/com/latencyzero/inote/META-INF/resin.application-hash
 
 GETting / results in 404:
 
 [03-13 03:11:38.506] {resin-port-80-46}  FINER 
 (com.caucho.server.dispatch.ServletInvocation) Dispatch '/' to 
 AccessLogFilterChain[http://inote.latencyzero.com, 
 next=WebAppFilterChain[http://inote.latencyzero.com, 
 next=ServletFilterChain[resin-file]]]
 
 
 GETting /css/site.css returns the css file:
 
 [03-13 03:01:36.023] {resin-port-80-22}  FINER 
 (com.caucho.server.dispatch.ServletInvocation) Dispatch '/css/site.css' to 
 AccessLogFilterChain[http://inote.latencyzero.com, 
 next=WebAppFilterChain[http://inote.latencyzero.com, 
 next=ServletFilterChain[resin-file]]]
 
 TIA,
 
 -- 
 Rick
 
 
 
 ___
 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


Re: [Resin-interest] Fresh resin install won't run my app or log

2014-03-12 Thread Rick Mann
No, but I adjusted that file, too, for logging. 

Sent from my iPhone

On Mar 12, 2014, at 20:23, Alex Rojkov a...@caucho.com wrote:

 Did you remove resin:import for app-default.xml by any chance ? 
 
 Alex
 
 On Mar 12, 2014, at 8:12 PM, Rick Mann rm...@latencyzero.com wrote:
 
 Well, that's not exactly true, but I'm baffled.
 
 I have my webapp running just fine locally, and just find on a 4.0.37/Java 
 1.6/Ubuntu 10.10 server I've had running for years.
 
 I just created an Ubuntu 13.10/Java 1.7/4.0.38 server using the Pro 
 distribution (but no license file yet) that I build myself (rather than 
 using apt-get) because I wanted to control the directories used. It started 
 up and ran fine.
 
 I then installed my app, and modified resin.xml to point to it. Resin seems 
 to create the app, and the resin-file handler is able to serve up some 
 top-level files in my app.
 
 But it does not appear to be actually executing any of the code in my app. 
 My app is pure-java configed, and uses Log4J. No log files are getting 
 created. I tried logging some stuff using System.out, but it's not appearing 
 in any of the logs I do get. I'm executing with resinctl console, as much 
 logging as I can set to ALL.
 
 I've little by little gone through the various Resin config files removing 
 references to other apps, virtual hosts, and other logging. My app's entry 
 in resin.xml looks like this:
 
http://pastebin.com/6STAmNBS
 
 Any ideas what else to try? I have the following logs to look at:
 
 rmann@clarke $ ls /logs/resin/
 out.log
 rmann@clarke $ ls /logs/inote/
 access.log  resin.log
 
 Plus what comes out of the resinctl console.
 
 I'm baffled.
 
 Some possible issues?
 
 [03-13 03:01:20.176] {main}  ALL 
 (com.caucho.env.deploy.ExpandDeployController) 
 java.io.FileNotFoundException: 
 /lz/var/www/com/latencyzero/inote/META-INF/resin.application-hash
 
 GETting / results in 404:
 
 [03-13 03:11:38.506] {resin-port-80-46}  FINER 
 (com.caucho.server.dispatch.ServletInvocation) Dispatch '/' to 
 AccessLogFilterChain[http://inote.latencyzero.com, 
 next=WebAppFilterChain[http://inote.latencyzero.com, 
 next=ServletFilterChain[resin-file]]]
 
 
 GETting /css/site.css returns the css file:
 
 [03-13 03:01:36.023] {resin-port-80-22}  FINER 
 (com.caucho.server.dispatch.ServletInvocation) Dispatch '/css/site.css' to 
 AccessLogFilterChain[http://inote.latencyzero.com, 
 next=WebAppFilterChain[http://inote.latencyzero.com, 
 next=ServletFilterChain[resin-file]]]
 
 TIA,
 
 -- 
 Rick
 
 
 
 ___
 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