JBoss Portal FAQ – часто задаваемые вопросы по JBoss Portal



Вопрос: Как сменить пароль на JMX Console или JBoss Web Console?
Ответ: How to change passoword of JMX-Console and Web-Console of JBoss AS?

Например:

cat /opt/Server/jboss-portal-2.7.2/server/default/deploy/management/console-mgr.sar/web-console.war/WEB-INF/classes/web-console-users.properties
# A sample users.properties file for use with the UsersRolesLoginModule
admin=admin

Вопрос: Как сделать redeployment приложения (ear/war/…) через twiddle.bat на JBoss Portal?
Ответ:
C:\JBOSS\jboss-portal-2.7.2\bin\twiddle.bat -s jnp://localhost:1099 -user=admin -password=admin invoke "jboss.system:service=MainDeployer" redeploy "file:C:/Projects/example-project/example-portlet/target/example-portlet.war"
Ссылки:

Вопрос: Как включить gzip сжатие для JBoss?
Решение:
cd /opt/Server/jboss-portal-2.7.2/server/default/deploy/jboss-web.deployer
nano server.xml

    <!-- A "Connector" represents an endpoint by which requests are received
         and responses are returned. Documentation at :
         Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
         Java AJP  Connector: /docs/config/ajp.html
         APR (HTTP/AJP) Connector: /docs/apr.html
         Define a non-SSL HTTP/1.1 Connector on port 8080
    -->
    <Connector port="8080" address="${jboss.bind.address}"   
         maxThreads="250" maxHttpHeaderSize="8192"
         emptySessionPath="true" protocol="HTTP/1.1"
         enableLookups="false" redirectPort="8443" acceptCount="100"
         connectionTimeout="20000" disableUploadTimeout="true"
         compression="force"
         compressionMinSize="512"
         noCompressionUserAgents=""
         compressableMimeType="text/html,text/xml,text/css,text/javascript"

         />


Ctrl + O
Ctrl + X

Question: When I start JBoss, I notice a "Broken Pipe" error in the server logs. What does this mean?
Answer:
You may notice something in the JBoss logs similar to the following:
2009-01-28 08:36:57,381 DEBUG
[org.jboss.naming.NamingService]
Error writing response to /127.0.0.1 <[http://127.0.0.1]>
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
This is most likely an anomalous and benign "problem". That is, it should not affect the operation of any applications deployed to JBoss. More information can be found at the following links:



...