Railo 3.1.2.001 issues

23 views
Skip to first unread message

Arthur Blake

unread,
Dec 4, 2009, 10:21:47 AM12/4/09
to Railo
Hi, I'm new to Railo and actually pretty new to CFML in general (been
working with it for about 3 months.) I am however a long time Java/
J2EE developer, so I'm pretty familiar with a lot of the components
used in Railo.

I downloaded 3.1.2.001 yesterday to attempt to set up CanvasWiki - I
am really impressed with the Railo admin pages and it was really nice
that ColdSpring and ModelGlue (dependencies for CanvasWiki) could be
set up with just a few clicks in the Railo admin pages. (I did
however notice that one of the mappings was set up wrong and I had to
manually adjust it-- but no big deal.)

However the biggest issue I have is that when I cycle the service
(stop and start) with windows service manager, half of the time the
web site is inaccessible. The only errors in the logs are several
exceptions like this:


**** MessageBrokerServlet failed to initialize due to runtime
exception: java.lang.RuntimeException: MessageBroker already defined
from MessageBrokerServlet with init parameter messageBrokerId =
'__default__'
at flex.messaging.MessageBroker.start(MessageBroker.java:301)
at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:
142)
at com.caucho.server.dispatch.ServletConfigImpl.createServletImpl
(ServletConfigImpl.java:833)
at com.caucho.server.dispatch.ServletConfigImpl.createServlet
(ServletConfigImpl.java:735)
at com.caucho.server.dispatch.ServletManager.init(ServletManager.java:
159)
at com.caucho.server.webapp.WebApp.start(WebApp.java:1874)
at com.caucho.server.deploy.DeployController.startImpl
(DeployController.java:667)
at com.caucho.server.deploy.DeployController.restartImpl
(DeployController.java:630)
at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.alarm
(StartAutoRedeployAutoStrategy.java:177)
at com.caucho.server.deploy.DeployController.handleAlarm
(DeployController.java:789)
at com.caucho.util.Alarm.handleAlarm(Alarm.java:375)
at com.caucho.util.Alarm.run(Alarm.java:345)
at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:743)
at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:662)
at java.lang.Thread.run(Unknown Source)
Caused by: flex.messaging.config.ConfigurationException: MessageBroker
already defined from MessageBrokerServlet with init parameter
messageBrokerId = '__default__'
at flex.messaging.MessageBroker.registerMessageBroker
(MessageBroker.java:1843)
at flex.messaging.MessageBroker.start(MessageBroker.java:274)
... 14 more



I am running Railo Server on Windows XP, (download from
railo-3.1.2.001-resin-with-jre-windows.exe (73 MB))
Is this release considered to be stable?

I've just about given up with trying to figure out why the web site
won't come up a lot of the time when I restart, and I'm about to blow
away the install, and try re-installing it...

Thanks for any insight you might have...

Paul Kukiel

unread,
Dec 4, 2009, 10:43:54 AM12/4/09
to ra...@googlegroups.com
Are you running multiple vhosts? This is a issue in the app-defult.xml (
or web.xml )

I'll assume your running resin? Can you attach your app-defualt.xml file
from the /conf directory.

Paul.
--

You received this message because you are subscribed to the Google Groups
"Railo" group.
To post to this group, send email to ra...@googlegroups.com.
To unsubscribe from this group, send email to
railo+un...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/railo?hl=en.



Paul Klinkenberg

unread,
Dec 4, 2009, 10:46:36 AM12/4/09
to ra...@googlegroups.com
Without going deep into the problem, it is a well-known one. Restarting is evil, you should never do it with Railo ;-)
I have the same issue on different machines and configs (windows vista, xp, 2003, 2008, mac osx 10.5 and 10.6)
Are you using Apache or IIS with resin+railo? In case you're using apache, then first restart Railo, wait 10-15 secs, then restart Apache. Then check if the sites are working, if not, restart Apache again. Should work, even though far from pretty.

Hope there's a real and stable solution to this...

Paul Klinkenberg

Arthur Blake

unread,
Dec 4, 2009, 11:58:47 AM12/4/09
to Railo
> Are you running multiple vhosts?

No.

> I'll assume your running resin?

Yes.

> Can you attach your app-defualt.xml file from the /conf directory.

I didn't modify app-default.xml - it's the one that came with the
install.

> Are you using Apache or IIS with resin+railo?

No. Connecting directly to resin on port 8600. Made very little
changes to the config

By the way, here is more information on the mapping that (I think) was
set up incorrectly:

When I enabled ModelGlue, it automatically set up the mapping as C:
\Railo\webapps\ROOT\ModelGlue-2.0.34

and I had to change it to:

C:\Railo\webapps\ROOT\ModelGlue-2.0.34\ModelGlue

to make it work right

Paul Kukiel

unread,
Dec 4, 2009, 12:10:53 PM12/4/09
to ra...@googlegroups.com
So you just using 127.0.0.1 ?

And exactly which version did you download so I can re-download that and
look at the .xml files

I might be wrong but I have seen this happen before and although railo
functioned properly I constantly saw this com up in the debug output.

Paul.

-----Original Message-----
From: Arthur Blake [mailto:arthur...@gmail.com]
Sent: Friday, December 04, 2009 11:59 AM
To: Railo

Arthur Blake

unread,
Dec 4, 2009, 12:20:15 PM12/4/09
to Railo
> So you just using 127.0.0.1 ?

Yes, just testing on localhost

> And exactly which version did you download so I can re-download that and
> look at the .xml files

As I said in the original post: railo-3.1.2.001-resin-with-jre-
windows.exe

Paul Kukiel

unread,
Dec 4, 2009, 12:47:01 PM12/4/09
to ra...@googlegroups.com
Try comment out this line:

<servlet servlet-name="MessageBrokerServlet"
servlet-class="flex.messaging.MessageBrokerServlet">
<init-param>
<param-name>services.configuration.file</param-name>
<param-value>/WEB-INF/flex/services-config.xml</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>

And restart resin see if that helps.

Paul.

-----Original Message-----
From: Arthur Blake [mailto:arthur...@gmail.com]
Sent: Friday, December 04, 2009 12:20 PM
To: Railo
Subject: [railo] Re: Railo 3.1.2.001 issues

Paul Kukiel

unread,
Dec 4, 2009, 12:47:28 PM12/4/09
to ra...@googlegroups.com
Try comment out this section:

<servlet servlet-name="MessageBrokerServlet"
servlet-class="flex.messaging.MessageBrokerServlet">
<init-param>
<param-name>services.configuration.file</param-name>
<param-value>/WEB-INF/flex/services-config.xml</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>

From app-defualt.xml and restart see if that helps.

Paul.

-----Original Message-----
From: Arthur Blake [mailto:arthur...@gmail.com]
Sent: Friday, December 04, 2009 12:20 PM
To: Railo
Subject: [railo] Re: Railo 3.1.2.001 issues

Tom Lenz

unread,
Dec 5, 2009, 12:06:13 AM12/5/09
to ra...@googlegroups.com
Paul,

I'm getting the same error messages, but Railo works if I wait a few
minutes.

I think I've only seen this problem in the last few months. For some
time after the install I never saw it.

I tried commenting out the section you recommended from
app-default.xml. I also had to comment out these lines:

<servlet-mapping url-pattern="/messagebroker/*"
servlet-name="MessageBrokerServlet"/>
<servlet-mapping url-pattern="/flashservices/gateway/*"
servlet-name="MessageBrokerServlet"/>
<servlet-mapping url-pattern="/flex2gateway/*"
servlet-name="MessageBrokerServlet"/>

I didn't get the error message this time, and all seems to work for my
purposes.

I first installed using
railo-3.1.0.015-resin-with-jre-windows.zip

And have upgraded to 3.1.2.002

Are you running multiple vhosts?
Yes


I'll assume your running resin?
Yes


Apache
Yes

I attached my app-default.xml, but I used it unmodified from the install.

Here;s the kind of thing I have in apache:
## -----------------------------------
## kontakt Railo
##
<VirtualHost 192.168.127.100:80>
DocumentRoot D:/!DevWebRoot/kontakt
Alias /mxunit D:/$DevWebRoot/test/mxunit
Alias /coldbox D:/$DevWebRoot/coldbox
<Directory / >
Order deny,allow
Allow from all
</Directory>
ServerName kontakt
ResinConfigServer localhost 6800
<Location /caucho-status>
SetHandler caucho-status
</Location>
</VirtualHost>
app-default.xml

Paul Kukiel

unread,
Dec 5, 2009, 10:00:57 AM12/5/09
to ra...@googlegroups.com
The section I suggested commenting out is for flashremoting. If you need flash remoting make a new web.xml put that in you web-inf folder for the site that required it. Each servlet name needs to be unique so make sure for each new sites the name is different.

If you don't need flashremoting then you can leave it commented out.

Paul.
> <app-default.xml>

Reply all
Reply to author
Forward
0 new messages