[Resin-interest] Can't use host-name in host?
I have Resin set up on my local machine to support development of a handful of web sites. In order to shorten startup times, I have the main resin.xml file include other config files: cluster id=app host id= root-directory=/Users/rmann/Projects/ resin:import fileset dir=/lz/config/resin/enabled include name=*.xml/ /fileset /resin:import ... Inside /lz/config/resin/enabled I have a bunch of .xml files like this: host xmlns=http://caucho.com/ns/resin; xmlns:resin=urn:java:com.caucho.resin host-namedev.latencyzero.com/host-name web-app id=/ document-directory=LZWeb/trunk/target/build ... If I don't include the host-name tag, it works fine, but I can only have one .xml file in the enabled directory at a time. Now I'm finding I'm flipping between two sites frequently (they have related functionality), and I'd like to enable both. I added two entries to my /etc/hosts file so that I could identify them separately (in the example above, one entry is 127.0.0.1 dev.latencyzero.com), but Resin balks with [13-12-09 14:37:36.491] WARNING com.caucho.server.webapp.ErrorPageManager sendServletErrorImpl: lz.xml:2: 'host-name' is an unknown property of 'com.caucho.server.host.Host'. Is there any way of accomplishing what I want to do, which is to enable and disable apps by moving config files in and out of the enabled folder, and also have virtual hosts? 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] Can't use host-name in host?
On 12/9/13, 2:57 PM, Rick Mann wrote: I have Resin set up on my local machine to support development of a handful of web sites. In order to shorten startup times, I have the main resin.xml file include other config files: Try host-alias instead. I've added a bug report. I think what's happening is that the resin:import isn't getting evaluated when you expect. It's being saved until the Host is configured. So it's evaluated too late to set the host-name, which is an early identifier like the id. -- Scott ___ 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] Can't use host-name in host?
Actually, I first tried host-name as an attribute of the host tag, then I tried host-alias inside it. It failed in the same way. Then I tried host-name inside it, which failed the way you see. On Dec 9, 2013, at 15:26 , Scott Ferguson f...@caucho.com wrote: On 12/9/13, 2:57 PM, Rick Mann wrote: I have Resin set up on my local machine to support development of a handful of web sites. In order to shorten startup times, I have the main resin.xml file include other config files: Try host-alias instead. I've added a bug report. I think what's happening is that the resin:import isn't getting evaluated when you expect. It's being saved until the Host is configured. So it's evaluated too late to set the host-name, which is an early identifier like the id. -- Scott ___ 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 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
[Resin-interest] javax.validation and 4.0.23 - 4.0.36?
I'm having a heck of a time with javax.validation and hibernate-validator. Works fine in 4.0.36, but fails with varying levels of inability to create the validation stack on .23. Before I go through the pain of updating resin on my server, was something fixed in the interim that would address this? TIA, -- 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
[Resin-interest] Resin .37 download link points to .36
FYI, some of the non-pro links for .37 point to .36. -- 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
[Resin-interest] Resin 4.0 admin manual section 1.3.3
The formatting is wonky and it seems to have placeholder text (some details on the starting-resin-command-line.xtp). http://www.caucho.com/download/resin-4.0-admin.pdf -- 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
[Resin-interest] BAM/hmtp errors?
I'm trying to upgrade to 4.0.37, and transition all my old config over to the new thing. I only run a single instance of resin, so it's confusing, but I took the default files and just inserted my hostweb-app block into resin.xml. It seems to run, but I get a lot of the following. Is it something to worry about? - Dec 9, 2013 7:46:08 PM com.caucho.bam.client.OutboundMessageStream query FINER: com.caucho.bam.RemoteConnectionFailedException: Cannot connect to http://127.0.0.1:6600/hmtp java.net.ConnectException: Connection refused com.caucho.bam.RemoteConnectionFailedException: Cannot connect to http://127.0.0.1:6600/hmtp java.net.ConnectException: Connection refused at com.caucho.hmtp.HmtpLinkFactory.open(HmtpLinkFactory.java:146) at com.caucho.bam.client.OutboundMessageStream.getLink(OutboundMessageStream.java:165) at com.caucho.bam.client.OutboundMessageStream.query(OutboundMessageStream.java:120) at com.caucho.bam.packet.Query.dispatch(Query.java:86) at com.caucho.bam.mailbox.MultiworkerMailbox$PacketProcessor.process(MultiworkerMailbox.java:408) at com.caucho.bam.mailbox.MultiworkerMailbox$PacketProcessor.process(MultiworkerMailbox.java:394) at com.caucho.env.actor.ValueActorQueue$ValueItemProcessor.process(ValueActorQueue.java:183) at com.caucho.env.actor.ValueActorQueue$ValueItemProcessor.process(ValueActorQueue.java:161) at com.caucho.env.actor.ActorQueue$ActorConsumer.doConsume(ActorQueue.java:453) at com.caucho.env.actor.ActorQueue$ActorConsumer.consumeAll(ActorQueue.java:406) at com.caucho.env.actor.ActorQueue$ActorConsumer.access$300(ActorQueue.java:340) at com.caucho.env.actor.ActorQueue$ActorWorker.runTask(ActorQueue.java:555) at com.caucho.env.thread2.AbstractTaskWorker2.run(AbstractTaskWorker2.java:240) at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:173) at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:118) Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at com.caucho.remote.websocket.WebSocketClient.connectImpl(WebSocketClient.java:180) at com.caucho.remote.websocket.WebSocketClient.connect(WebSocketClient.java:130) at com.caucho.remote.websocket.WebSocketClient.connect(WebSocketClient.java:121) at com.caucho.hmtp.HmtpLinkFactory.open(HmtpLinkFactory.java:138) ... 14 more Dec 9, 2013 7:46:08 PM com.caucho.bam.BamError create FINER: com.caucho.bam.RemoteConnectionFailedException: Cannot connect to http://127.0.0.1:6600/hmtp java.net.ConnectException: Connection refused com.caucho.bam.RemoteConnectionFailedException: Cannot connect to http://127.0.0.1:6600/hmtp java.net.ConnectException: Connection refused at com.caucho.hmtp.HmtpLinkFactory.open(HmtpLinkFactory.java:146) at com.caucho.bam.client.OutboundMessageStream.getLink(OutboundMessageStream.java:165) at com.caucho.bam.client.OutboundMessageStream.query(OutboundMessageStream.java:120) at com.caucho.bam.packet.Query.dispatch(Query.java:86) at com.caucho.bam.mailbox.MultiworkerMailbox$PacketProcessor.process(MultiworkerMailbox.java:408) at com.caucho.bam.mailbox.MultiworkerMailbox$PacketProcessor.process(MultiworkerMailbox.java:394) at com.caucho.env.actor.ValueActorQueue$ValueItemProcessor.process(ValueActorQueue.java:183) at com.caucho.env.actor.ValueActorQueue$ValueItemProcessor.process(ValueActorQueue.java:161) at com.caucho.env.actor.ActorQueue$ActorConsumer.doConsume(ActorQueue.java:453) at com.caucho.env.actor.ActorQueue$ActorConsumer.consumeAll(ActorQueue.java:406) at com.caucho.env.actor.ActorQueue$ActorConsumer.access$300(ActorQueue.java:340) at com.caucho.env.actor.ActorQueue$ActorWorker.runTask(ActorQueue.java:555) at com.caucho.env.thread2.AbstractTaskWorker2.run(AbstractTaskWorker2.java:240) at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:173) at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:118) Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at
Re: [Resin-interest] BAM/hmtp errors?
On 12/9/13, 7:49 PM, Rick Mann wrote: I'm trying to upgrade to 4.0.37, and transition all my old config over to the new thing. I only run a single instance of resin, so it's confusing, but I took the default files and just inserted my hostweb-app block into resin.xml. It seems to run, but I get a lot of the following. Is it something to worry about? If you start while logging at the finer level, you'll see the command-line program try to connect to an existing watchdog and fail, before launching a new watchdog instance. -- Scott - Dec 9, 2013 7:46:08 PM com.caucho.bam.client.OutboundMessageStream query FINER: com.caucho.bam.RemoteConnectionFailedException: Cannot connect to http://127.0.0.1:6600/hmtp java.net.ConnectException: Connection refused com.caucho.bam.RemoteConnectionFailedException: Cannot connect to http://127.0.0.1:6600/hmtp java.net.ConnectException: Connection refused at com.caucho.hmtp.HmtpLinkFactory.open(HmtpLinkFactory.java:146) at com.caucho.bam.client.OutboundMessageStream.getLink(OutboundMessageStream.java:165) at com.caucho.bam.client.OutboundMessageStream.query(OutboundMessageStream.java:120) at com.caucho.bam.packet.Query.dispatch(Query.java:86) at com.caucho.bam.mailbox.MultiworkerMailbox$PacketProcessor.process(MultiworkerMailbox.java:408) at com.caucho.bam.mailbox.MultiworkerMailbox$PacketProcessor.process(MultiworkerMailbox.java:394) at com.caucho.env.actor.ValueActorQueue$ValueItemProcessor.process(ValueActorQueue.java:183) at com.caucho.env.actor.ValueActorQueue$ValueItemProcessor.process(ValueActorQueue.java:161) at com.caucho.env.actor.ActorQueue$ActorConsumer.doConsume(ActorQueue.java:453) at com.caucho.env.actor.ActorQueue$ActorConsumer.consumeAll(ActorQueue.java:406) at com.caucho.env.actor.ActorQueue$ActorConsumer.access$300(ActorQueue.java:340) at com.caucho.env.actor.ActorQueue$ActorWorker.runTask(ActorQueue.java:555) at com.caucho.env.thread2.AbstractTaskWorker2.run(AbstractTaskWorker2.java:240) at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:173) at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:118) Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at com.caucho.remote.websocket.WebSocketClient.connectImpl(WebSocketClient.java:180) at com.caucho.remote.websocket.WebSocketClient.connect(WebSocketClient.java:130) at com.caucho.remote.websocket.WebSocketClient.connect(WebSocketClient.java:121) at com.caucho.hmtp.HmtpLinkFactory.open(HmtpLinkFactory.java:138) ... 14 more Dec 9, 2013 7:46:08 PM com.caucho.bam.BamError create FINER: com.caucho.bam.RemoteConnectionFailedException: Cannot connect to http://127.0.0.1:6600/hmtp java.net.ConnectException: Connection refused com.caucho.bam.RemoteConnectionFailedException: Cannot connect to http://127.0.0.1:6600/hmtp java.net.ConnectException: Connection refused at com.caucho.hmtp.HmtpLinkFactory.open(HmtpLinkFactory.java:146) at com.caucho.bam.client.OutboundMessageStream.getLink(OutboundMessageStream.java:165) at com.caucho.bam.client.OutboundMessageStream.query(OutboundMessageStream.java:120) at com.caucho.bam.packet.Query.dispatch(Query.java:86) at com.caucho.bam.mailbox.MultiworkerMailbox$PacketProcessor.process(MultiworkerMailbox.java:408) at com.caucho.bam.mailbox.MultiworkerMailbox$PacketProcessor.process(MultiworkerMailbox.java:394) at com.caucho.env.actor.ValueActorQueue$ValueItemProcessor.process(ValueActorQueue.java:183) at com.caucho.env.actor.ValueActorQueue$ValueItemProcessor.process(ValueActorQueue.java:161) at com.caucho.env.actor.ActorQueue$ActorConsumer.doConsume(ActorQueue.java:453) at com.caucho.env.actor.ActorQueue$ActorConsumer.consumeAll(ActorQueue.java:406) at com.caucho.env.actor.ActorQueue$ActorConsumer.access$300(ActorQueue.java:340) at com.caucho.env.actor.ActorQueue$ActorWorker.runTask(ActorQueue.java:555) at com.caucho.env.thread2.AbstractTaskWorker2.run(AbstractTaskWorker2.java:240) at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:173) at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:118) Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) at