Error during install

62 views
Skip to first unread message

Adam Hacking

unread,
Jan 2, 2015, 5:37:39 PM1/2/15
to conte...@googlegroups.com

HTTP Status 404 - /cbox/index.cfm/cbInstaller


type Status report

message /cbox/index.cfm/cbInstaller

description The requested resource is not available.


Apache Tomcat/7.0.56


Ubuntu 14.04 LTS
Railo 4.2.1.008 final


Hi I have done a complete re-install and still get this error. The tables seem to get set up in the db, the install chugs along then generates this error.

Any thoughts would be welcome.

Thanks

Adam

br...@bradwood.com

unread,
Jan 2, 2015, 5:52:12 PM1/2/15
to conte...@googlegroups.com
Stock Tomcat doesn't support the same double-wildcard mapping servlet filters that you've grown to know and love with Adobe ColdFusion.  
 
 ColdFusion 11 sample:
 
<servlet-mapping id="coldfusion_mapping_7">
  <servlet-name>CfmServlet</servlet-name>
  <url-pattern>*.cfm/*</url-pattern>
</servlet-mapping>
 
Instead Railo is constrained to the J2EE spec that only allows one wildcard.  

Railo/Tomcat sample:
 
<servlet-mapping>
  <servlet-name>GlobalCFMLServlet</servlet-name>
  <url-pattern>*.cfm</url-pattern>
</servlet-mapping>
<servlet-mapping>
  <servlet-name>GlobalCFMLServlet</servlet-name>
  <url-pattern>/index.cfm/*</url-pattern>
</servlet-mapping>
 
What you'll need to do is add additional servlet filter lines to your web.xml that have the subdirectory in them.
 
<servlet-mapping>
  <servlet-name>GlobalCFMLServlet</servlet-name>
  <url-pattern>/cbox/index.cfm/*</url-pattern>
</servlet-mapping>
 
This hold true for any applications you wish to use SES urls in a subdirectory AS WELL AS any Railo application that uses SES URLs with a file other than "index.cfm"

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: br...@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com 
 
 
--------- Original Message ---------
--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://www.gocontentbox.org/blog
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/CONTENTBOX
---
You received this message because you are subscribed to the Google Groups "ContentBox Modular CMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to contentbox+...@googlegroups.com.
To post to this group, send email to conte...@googlegroups.com.
Visit this group at http://groups.google.com/group/contentbox.
For more options, visit https://groups.google.com/d/optout.

-<servlet-mapping>
<servlet-name>GlobalCFMLServlet</servlet-name>
<url-pattern>*.cfm</url-pattern>
</servlet-mapping>

-<servlet-mapping>
<servlet-name>GlobalCFMLServlet</servlet-name>
<url-pattern>/index.cfm/*</url-pattern>
</servlet-mapping>

Oğuz Demirkapı

unread,
Mar 26, 2015, 12:43:42 PM3/26/15
to conte...@googlegroups.com
Hi Brad, all,

I have a clean Lucee Express which has the same issue.

My web.xml file has following ...

  <servlet-mapping>
      <servlet-name>CFMLServlet</servlet-name>
      <url-pattern>*.cfc</url-pattern>
      <url-pattern>*.cfm</url-pattern>
      <url-pattern>*.cfml</url-pattern>   
      <url-pattern>/index.cfc/*</url-pattern>
      <url-pattern>/index.cfm/*</url-pattern>
      <url-pattern>/index.cfml/*</url-pattern>
  </servlet-mapping>

This is what I have. What else can I check?

Thanks in advance.


/OD

br...@bradwood.com

unread,
Mar 26, 2015, 2:18:08 PM3/26/15
to conte...@googlegroups.com
If you're trying to use SES urls from within a subfolder, you'll need to add URL patterns for the sub folder since Adobe hacked Tomcat to make double wildcard mappings work.
 
Minimally, you'll need to add:

<url-pattern>mySubFolder/index.cfm/*</url-pattern>
 
Note, this only applies if you're installing ContentBox (or any SES ColdBox app for that matter) into a subfolder.  Sites in the web root will work fine. 
 
Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: br...@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com 
 
 
--------- Original Message ---------
--

clockwo...@gmail.com

unread,
Dec 6, 2018, 3:10:06 PM12/6/18
to ContentBox Modular CMS
hey Brad,
 I added this to web.xml for web sphere and it works. Is what else should I add as you said this was the minimum. i am working on documentation for .gov installs  
<servlet-mapping id="coldfusion_mapping_24">
<servlet-name>GlobalCFMLServlet</servlet-name>
<url-pattern>cbapp/index.cfm/*</url-pattern>
</servlet-mapping>
Message has been deleted

clockwo...@gmail.com

unread,
Dec 6, 2018, 3:21:02 PM12/6/18
to ContentBox Modular CMS
this actually did not work after all still getting the same 404 with 

<url-pattern>cbapp/index.cfm/*</url-pattern>

and 

<url-pattern>/cbapp/index.cfm/*</url-pattern>
Reply all
Reply to author
Forward
0 new messages