• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Integrating Jett6 with Jboss

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've built the jboss jetty sar file from $jetty.home/extras/jboss and copied it into the jboss deploy directory, but I can't figure out is how to get my jetty virtual hosts configurations into jboss. This does not work in the jboss-service.xml

<New id="myWebAppContext" class=" org.mortbay.jetty.webapp.WebAppContext">
<Arg><Ref id="Contexts"/></Arg>
<Arg><SystemProperty name="jetty.home"/>/webapps/root.war</Arg>
<Arg>/</Arg>
<Set name="defaultsDescriptor"><SystemProperty name="jetty.home" default="."/>/etc/webdefault.xml</Set>
<Set name="VirtualHosts">
<Array type=" java.lang.String">
<Item>xxxxxxx.com</Item>
</Array>
</Set>
</New>


When starting jboss it can't find <SystemProperty name=" jetty.home"/>. gets null. It also can't find my datasource:



<New id="mysqlds" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>jdbc/mysqlds</Arg>
<Arg>
<New class="org.apache.commons.dbcp.BasicDataSource">
<Set name="url">jdbc:mysql://localhost/mysql</Set>
<Set name="driverClassName"> com.mysql.jdbc.Driver</Set>
<Set name="username">xxxxx</Set>
<Set name="password">xxxxx</Set>
<Set name="maxActive">10</Set>
<Set name="poolPreparedStatements">true</Set>
<Set name="maxIdle">30</Set>
<Set name="maxWait">10000</Set>
<Set name="removeAbandoned">true</Set>
</New>
</Arg>
</New>


Thank you,

Jeff
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am moving this to the JBoss forum

Mark
 
reply
    Bookmark Topic Watch Topic
  • New Topic