TorqueBox 中的 Java 部署

标签 java torquebox

我是 TorqueBox 的新手。我已经创建了一个当前在 tomcat 上运行的 RESTEasy 应用程序。现在我想将它部署在 TorqueBox 中。 为此,我在 torquebox 的 apps 文件夹中创建了 yml 文件。文件内容为

---
application: 
  root: C:/torqueApp/java/RESTEasyTorque
  env: development 
web: 
  context: /hellojava

我的问题是当我启动服务器时它没有部署我的应用程序。我该怎么办?

最佳答案

Bob 在邮件列表中回答了这个问题,但我也将其粘贴在这里:

You can deploy pure Java applications on TorqueBox, but you don't use a torquebox.yml (or *-knob.yml).

To deploy a Java application in TorqueBox, just drop your .war file into the apps/ directory directly (I'm assuming TorqueBox 1.x)

fwiw, if deploying a Ruby application, you can put a torquebox.yml inside your application, but the files in app/ would be a *-knob.yml file, or an archived version of your application with the extension of .knob.

When we refer to "knobs", we mean either the *-knob.yml, or the *.knob archives, which are used in the apps/ folder. torquebox.yml is primarily used within your application's own directory tree.

For Java applications, ignore everything TorqueBox-related, and you can pretend that our distribution is just like JBoss AS6 (for TorqueBox 1.x) or just like JBoss AS7 (for TorqueBox 2.x). Our changes are purely additive, building on top of the JavaEE container from JBoss.

来自:http://markmail.org/message/zhjwhbgxarjsvdz7

关于TorqueBox 中的 Java 部署,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7130525/

相关文章:

ruby-on-rails - 将 JRuby 与 Rails 3.2 结合使用

ruby-on-rails - 通过路径前缀代理对虚拟主机的请求

java - Torquebox 上的 Jruby Rails 调用 EJB 服务 - 模型类

java - 如何在java图形缩放过程中存储临时bufferedImage

java - Ubuntu MaxPermSize 上的 Torquebox 设置

authentication - 验证 stomp Web 套接字客户端

java - Java中如何声明48位定宽数据类型?

java - hql 查询错误

java - 使用完整目录路径将文件添加到 JEditorPane

java - `ByteBuffer.allocateDirect` 和 Xmx