Glassfish、railo 和 Coldbox - 链接混乱?

发布于 2024-08-20 17:58:17 字数 1499 浏览 4 评论 0原文

我是 ColdFusion 和 ColdBox(以及编程)的新手。我尝试设置 ColdBox,但示例应用程序中的一些链接已损坏。

我的配置是使用当前 Railo OSS 进行 GlassFish v3 安装。我通过 Apache 2.2.14 访问我的网站。

因此,我不是通过 http://127.0.0.1:8080/railo/ 访问我的环境,而是通过 http://railo/ 访问我的环境。

在 Railo 中,我有一个 webroot 映射 /C:/webapps/myproject/

我已将当前的 ColdBox 3M4 复制到 C:/webapps/myproject/coldbox。我可以通过 http://railo/coldbox/dashboard/index.cfm 访问仪表板并可以访问所有选项。

当我尝试打开示例库时,我的问题就开始了:

HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
java.io.FileNotFoundException: C:\webapps\viss-dev\coldbox\samples
(Zugriff verweigert)
note The full stack traces of the exception and its root causes are
available in the GlassFish v3 logs.
GlassFish v3 

好的,没问题,只需直接输入链接:http://railo/coldbox/samples/index.cfm

该网站看起来很普通,谁在乎 - 但所有本地链接看起来都是这样的:http://127.0.0.1:8080/coldbox/samples/applications/helloworld/index.cfm (railo< /code> 替换为 127.0.0.1:8080)。

看起来有麻烦了。为了让我的困惑变得完美:当我尝试访问登录应用程序时:http://railo/coldbox/samples/applications/sampleloginapp/index.cfm并点击提交按钮,我被重定向到此地址:http://railo/railo/coldbox/samples/applications/sampleloginapp/index.cfm

我相信这并不是真正与 ColdBox 相关的,但当我尝试使用 ColdBox 时它就会显现出来,所以我在这里。

PS:amazon.de 运送 ColdBox 书的时间太长了:(

I am new to ColdFusion and ColdBox (and programming). I tried to setup ColdBox but some of the links in the sample applications are broken.

My configuration is a GlassFish v3 installation with the current Railo OSS. I access my site through Apache 2.2.14.

So instead of http://127.0.0.1:8080/railo/ I access my environment trough http://railo/.

In Railo I have a webroot mapping / to C:/webapps/myproject/.

I have copied the current ColdBox 3M4 to C:/webapps/myproject/coldbox. I can access the dashboard through http://railo/coldbox/dashboard/index.cfm and have access to all options.

My problems start the moment I try to open the sample gallery:

HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
java.io.FileNotFoundException: C:\webapps\viss-dev\coldbox\samples
(Zugriff verweigert)
note The full stack traces of the exception and its root causes are
available in the GlassFish v3 logs.
GlassFish v3 

OK, no problem, just enter the link directly: http://railo/coldbox/samples/index.cfm.

The site looks plain, who cares - BUT all local links look like this: http://127.0.0.1:8080/coldbox/samples/applications/helloworld/index.cfm (railo is replaced with 127.0.0.1:8080).

Looks like trouble. To make my confusion perfect: when I try to access the login app: http://railo/coldbox/samples/applications/sampleloginapp/index.cfm and hit the submit button, I am redirected to this address: http://railo/railo/coldbox/samples/applications/sampleloginapp/index.cfm.

I believe that this is not really ColdBox-related, but it manifests itself when I try to use ColdBox, so here I am.

P.S.: amazon.de takes too long to ship the ColdBox book :(

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

断念 2024-08-27 17:58:17

这里有一个建议,Vivotech 的优秀人员已经为 Windows/IIS7 和 Railo 和 Open BlueDragon 的各种 Linux 版本开发了几个不同的安装程序。该安装程序将 Tomcat、Railo/Open Blue Dragon 以及必要的连接器安装到 Web 服务器。链接如下:http://www.viviotech.net/company/installers.cfm

我想您会发现使用安装程序比自己完成安装要容易得多。如果您想走这条路,Adobe 和各种博主都提供了有关如何操作的说明。 Matt Woodward 有一篇非常好的博客文章:请参阅 MattWoodward.com,他也有这方面的演示,你可以看看此处

嗯,

拉里

Here's a suggestion, The good people at Vivotech have developed a couple of different installers for both Windows/IIS7 and various flavours of Linux for both Railo and Open BlueDragon. The setup installs Tomcat, Railo/Open Blue Dragon and the necessary connectors to the web server. Here's the link: http://www.viviotech.net/company/installers.cfm

I think you'll find using the installers to be a lot easier than working through it yourself. If you want to go that route, Adobe and various bloggers have instructions on how to do it. Matt Woodward has a very good blog posting on it: see MattWoodward.com, He also has a presentation on this, you can see it here.

hth,

larry

贩梦商人 2024-08-27 17:58:17

由于您是 ColdFusion(以及一般编程)的新手,我建议您使用 Adob​​e ColdFusion 进行开发。 ColdFusion 开发人员版是免费的,可从 Adob​​e.com 获取。您无需搞乱或配置 GlassFish,因为 Adob​​e ColdFusion 附带内置的预配置 Tomcat,提供 servlet 引擎和 Web 服务器。

只需安装 ColdFusion Developer Edition 的“独立”版本,将 ColdBox 文件复制到 webroot 中,不到 15 分钟即可启动并运行。

您还应该查看 ColdFusion Builder,它目前在 http://labs.adobe.com 上提供测试版。它具有完整的语言支持和集成的帮助内容,用于学习该语言的详细信息。

就 ColdBox 书而言,如果您实在等不及的话,它可以作为电子书提供。 ;-)

免责声明:作为 Adob​​e 的 CF 产品经理,我花了大约 50% 的清醒时间致力于让 ColdFusion 变得更好。 :-)

Since you are new to ColdFusion (and programming in general), I would recommend developing against Adobe ColdFusion. The Developer Edition of ColdFusion is free and available from Adobe.com. You won't need to mess around or configure GlassFish since Adobe ColdFusion comes with a baked-in pre-configured Tomcat, providing both servlet engine and web server.

Just install the 'Stand-alone' version of ColdFusion Developer Edition, copy the ColdBox files into the webroot and in less than 15 minutes you be up and running.

You should also check out ColdFusion Builder which is currently available in beta from http://labs.adobe.com. It has full language support and integrated help content for learning the ins-outs of the language.

As far as the ColdBox book goes, it's available as an eBook if you really can't wait. ;-)

DISCLAIMER: I spend about 50% of my waking life devoted to making ColdFusion better as the CF Product Manager at Adobe. :-)

街角迷惘 2024-08-27 17:58:17

我已经放弃了 glassfish,现在正在与 tomcat 作斗争:D

i have given up on glassfish and i am now struggling with tomcat :D

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文