• 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

deployment with jboss 6.1

 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,
I deployed my ear in the jboss 6.1 folder deployment and now I am trying to lunch the web application.
The ear inside have ongli this file :
application.xml
jboss-deployment-structure.xml
jboss-ejb-client.xml
MANIFEST.MF
persistence.xml

the application.xml has :


I would like to lunch this web application from browser with this url http://localhost:9990/ServiceAssurance but on the console it write :
15:41:49,823 FINE [com.sun.net.httpserver] (HttpManagementService-threads - 15) GET /ServiceAssurance HTTP/1.1 [404 Not Found] ()

How can to lunch it ?

Thanks

Dora Di Donato
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you please post the exception trace what you have in the server.log?
 
Bartender
Posts: 1051
5
Hibernate Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dora

Please refer to this post: UseCodeTags

I have added code tags to your original post on this occasion.
 
James Boswell
Bartender
Posts: 1051
5
Hibernate Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The default port for JBoss is 8080, not 9990. Are you sure this is the port you should be using? As a previous poster has already said, you need to provide more information about any errors the server log may contain.
 
Dora Di Donato
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

thank you but I solve my problem, now I see my login page, yes I use 8080 port and I configure the consol too and in this case I use 9990 port.
Do you suggest me to use the console to deployment or it is better to use the manual folder?

But I am trying to deployer an other ear and I would like to understand how it start.
This ear contains inside this a :
-package java
- folder > META-INF > jboss-deployment-structure.xml and a MANIFEST.MF
- one jar (csm-dal.jar)
- one war (csm-dal.war)
It is possible to start the war application?


thank you

Dora








Dora
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you deploy the .ear, it should also automatically "start" the web application represented by that .war.

As for deploying, using the console or the CLI admin interface is preferred since that way you can even deploy it to a domain, if you want to.
 
Dora Di Donato
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jakira,

it is strange because after deployment I read the web.xml inside the csm-da.war :

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>

<display-name>InitCsmDal</display-name>



<servlet>

<servlet-name>InitializerServlet</servlet-name>

<servlet-class>com.accenture.ams.converged.system.dal.init.InitServlet</servlet-class>

<load-on-startup>1</load-on-startup>

</servlet>

</web-app>


and I try to lunch it with this url : localhost:8080/InitCsmDal/InitializerServlet but nothing I don't see nothing on my log console.

thank you

Dora
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's not how web-app works. You need to have corresponding servlet-mapping for that servlet to be accessible from a specific URL. You should check with whoever wrote that application on what the URL is, which acts as the entry point for the application. Typically it's just http://server:port/context-root. The context-root for the web-app will be listed in the application.xml of the .ear.
 
Dora Di Donato
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jaikiran,
thanks I think it doesn't function like a web application, inside the ear I have a folder META-INF whit this file :
jboss-deployment-structure-xml :
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">

<deployment>

<dependencies>

<module name="org.infinispan" slot="main"/>

<module name="org.hibernate" />

<module name="org.apache.commons.pool" />

<module name="org.apache.commons.configuration" />

<!-- <module name="com.accenture.amos.csm.utils.cipher" />-->

<module name="com.accenture.amos.metering.dispatchers" />

</dependencies>

</deployment>

<sub-deployment name="csm-dal.jar">

<dependencies>

<module name="org.infinispan" slot="main"/>

<module name="org.hibernate" />

<module name="org.apache.commons.pool" />

<module name="org.apache.commons.configuration" />

<!-- <module name="com.accenture.amos.csm.utils.cipher" />-->

<module name="com.accenture.amos.metering.dispatchers" />

</dependencies>

</sub-deployment>

<sub-deployment name="csm-dal.war">

<dependencies>

<module name="org.infinispan" slot="main"/>

<module name="org.hibernate" />

<module name="org.apache.commons.pool" />

<module name="org.apache.commons.configuration" />

<!-- <module name="com.accenture.amos.csm.utils.cipher" />-->

<module name="com.accenture.amos.metering.dispatchers" />

</dependencies>

</sub-deployment>

</jboss-deployment-structure>


what means it?


thank you

Dora
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's a JBoss AS/WildFly specific deployment descriptor. More details here https://docs.jboss.org/author/display/AS72/Class+Loading+in+AS7.

If you don't have an application.xml in the .ear's META-INF folder, then the context root of the web application is the name of the war without the .war suffix. The context root is even logged in the server.log or the server startup console log. I guess in your case the context root is csm-dal.
 
Dora Di Donato
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried but it doesn't function and I don't see no errors on the console log.


Dora
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic