Duvida Jboss...iniciante

olá,

nunca trabalhei com Jboss mas ouvi dizer que tem tomcat embutido e fiz o download

jboss-4.2.1.GA , instalei e está rodando e agora queria configurar para usar uma porta diferente 8080 coo faço isso ???

E outra coisa qdo criar um war aonde jogo para rodar ???

Pois antes só usava Tomcat …

se alguém puder me ajudar …

obs…estranho que fiz um teste de todas as paginas ficarem no contexto junto com index.jsp funciona …porque???

abs

Cara, nao sei como eh no JBoss, mas no Tomcat tem um arquivo chamado server.xml no diretorio conf.

Edita ele e procura Connector port=“8080” ai eh so trocar 8080 para 80.

//Daniel

Mudar:

  <!-- A HTTP/1.1 Connector on port 8080 -->
      <Connector port="8080" address="${jboss.bind.address}"
         maxThreads="250" strategy="ms" maxHttpHeaderSize="8192"
         emptySessionPath="true"
         enableLookups="false" redirectPort="8443" acceptCount="100"
         connectionTimeout="20000" disableUploadTimeout="true"/>

No arquivo:

\jboss-xxx.GA\server\all\deploy\jbossweb-tomcat55.sar\server.xml

caro fernando,

não tem jbossweb-tomcat55.sar esse diretório no JBOSS que instalei será

que instalei o programa certo ???

o que tem é isso :

ejb3.deployer
httpha-invoker.sar
jboss-aop-jdk50.deployer
jboss-bean.deployer
jboss-web.deployer
jboss-web-cluster.sar
jbossws.sar
jms …etc menos esse

[quote=paribe]caro fernando,

não tem jbossweb-tomcat55.sar esse diretório no JBOSS que instalei será

que instalei o programa certo ???

o que tem é isso :

ejb3.deployer
httpha-invoker.sar
jboss-aop-jdk50.deployer
jboss-bean.deployer
jboss-web.deployer
jboss-web-cluster.sar
jbossws.sar
jms …etc menos esse

[/quote]

vai no terminal eh da um find.

find . -name ‘server.xml’

ou usa o search do ruindows.

//Daniel

Olá,

com TomCat eu conheço agora queria usar JBOSS e estou com esse problema…

o unico arquivo que achou o conteudo com 8080 é esse e não tem nada com TOMCAT …

jboss-service.xml


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server>
<!-- $Id: jboss-service.xml 35473 2005-08-30 17:38:39Z jmoran $ -->

<server>

  <!-- The HTTP invoker service configration
  -->
  <mbean code="org.jboss.invocation.http.server.HttpInvoker"
    name="jboss:service=invoker,type=http">
     <!-- Use a URL of the form http://<hostname>:8080/invoker/EJBInvokerServlet
      where <hostname> is InetAddress.getHostname value on which the server
      is running.
      -->
     <attribute name="InvokerURLPrefix">http://</attribute>
     <attribute name="InvokerURLSuffix">:8080/invoker/EJBInvokerServlet</attribute>
     <attribute name="UseHostName">true</attribute>
  </mbean>

  <mbean code="org.jboss.invocation.http.server.HttpInvokerHA"
    name="jboss:service=invoker,type=httpHA">
     <!-- Use a URL of the form http://<hostname>:8080/invoker/EJBInvokerHAServlet
      where <hostname> is InetAddress.getHostname value on which the server
      is running.
      -->
     <attribute name="InvokerURLPrefix">http://</attribute>
     <attribute name="InvokerURLSuffix">:8080/invoker/EJBInvokerHAServlet</attribute>
     <attribute name="UseHostName">true</attribute>
  </mbean>

   <!-- Expose the Naming service interface via HTTP -->
   <mbean code="org.jboss.invocation.http.server.HttpProxyFactory"
      name="jboss:service=invoker,type=http,target=Naming">
      <!-- The Naming service we are proxying -->
      <attribute name="InvokerName">jboss:service=Naming</attribute>
      <!-- Compose the invoker URL from the cluster node address -->
      <attribute name="InvokerURLPrefix">http://</attribute>
      <attribute name="InvokerURLSuffix">:8080/invoker/JMXInvokerServlet</attribute>
      <attribute name="UseHostName">true</attribute>
      <attribute name="ExportedInterface">org.jnp.interfaces.Naming</attribute>
      <attribute name="JndiName"></attribute>
      <attribute name="ClientInterceptors">
          <interceptors>
             <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>
             <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
             <interceptor>org.jboss.naming.interceptors.ExceptionInterceptor</interceptor>
             <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
          </interceptors>
      </attribute>
   </mbean>

   <!-- Expose the Naming service interface via clustered HTTP. This maps
   to the ReadOnlyJNDIFactory servlet URL
   -->
   <mbean code="org.jboss.invocation.http.server.HttpProxyFactory"
      name="jboss:service=invoker,type=http,target=Naming,readonly=true">
      <attribute name="InvokerName">jboss:service=Naming</attribute>
      <attribute name="InvokerURLPrefix">http://</attribute>
      <attribute name="InvokerURLSuffix">:8080/invoker/readonly/JMXInvokerServlet</attribute>
      <attribute name="UseHostName">true</attribute>
      <attribute name="ExportedInterface">org.jnp.interfaces.Naming</attribute>
      <attribute name="JndiName"></attribute>
      <attribute name="ClientInterceptors">
          <interceptors>
             <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>
             <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
             <interceptor>org.jboss.naming.interceptors.ExceptionInterceptor</interceptor>
             <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
          </interceptors>
      </attribute>
   </mbean>

   <!-- Expose the HA Naming service interface via HTTP -->
   <mbean code="org.jboss.invocation.http.server.HttpProxyFactory"
      name="jboss:service=invoker,type=http,target=HAJNDI">
      <!-- The Naming service we are proxying -->
      <attribute name="InvokerName">jboss:service=HAJNDI</attribute>
      <!-- Compose the invoker URL from the cluster node address -->
      <attribute name="InvokerURLPrefix">http://</attribute>
      <attribute name="InvokerURLSuffix">:8080/invoker/JMXInvokerHAServlet</attribute>
      <attribute name="UseHostName">true</attribute>
      <attribute name="ExportedInterface">org.jnp.interfaces.Naming</attribute>
      <attribute name="JndiName"></attribute>
      <attribute name="ClientInterceptors">
          <interceptors>
             <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>
             <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
             <interceptor>org.jboss.naming.interceptors.ExceptionInterceptor</interceptor>
             <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
          </interceptors>
      </attribute>
   </mbean>
</server>

Cara, o nome das pastas muda pq minha versão é diferente da sua, se vc procurar por *.xml na pasta do jboss vc acha o server.xml, não é aquele q vc postou não…

[]'s

Leia esta matéria que encontrei quem sabe o ajudará http://blog.beyond-os.net/2008/04/jboss-portal-com-porta-e-ip-diferente