aspose file tools*
The moose likes JBoss/WildFly and the fly likes deployment with jboss 6.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "deployment with jboss 6.1" Watch "deployment with jboss 6.1" New topic
Author

deployment with jboss 6.1

Dora Di Donato
Ranch Hand

Joined: Nov 27, 2009
Posts: 78
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
soundar rajan
Greenhorn

Joined: May 08, 2013
Posts: 16
Can you please post the exception trace what you have in the server.log?
James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1020
    
    5

Dora

Please refer to this post: UseCodeTags

I have added code tags to your original post on this occasion.
James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1020
    
    5

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

Joined: Nov 27, 2009
Posts: 78
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
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10101
    
164

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.

[My Blog] [JavaRanch Journal]
Dora Di Donato
Ranch Hand

Joined: Nov 27, 2009
Posts: 78
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
Marshal

Joined: Jul 20, 2005
Posts: 10101
    
164

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

Joined: Nov 27, 2009
Posts: 78
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
Marshal

Joined: Jul 20, 2005
Posts: 10101
    
164

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

Joined: Nov 27, 2009
Posts: 78
I tried but it doesn't function and I don't see no errors on the console log.


Dora
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: deployment with jboss 6.1