[Management, JMX/JBoss] - To change the "Connector" address
by Vjger
Hi.
>From the 4.2.x version, the default "connector" address isn't /0.0.0.0 but /127.0.0.1
I would try to change this value using the web-console.
So, I open System -> JMX Beans -> jboss.web and click on jboss.web:type=Connector,port=8080,address=%2F127.0.0.1
In the right view I've the "address" textfield editable.
So, I change with /0.0.0.0 and I click on Apply Changes.
The right page is reloaded and the new address is correct but, my server, in truth, isn't exposed too toward external clients.
In fact, if I change page clicking on another MBean and after on the Connector Bean, I read /127.0.0.1 again.
Where is my mistake?
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069206#4069206
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069206
18Â years, 8Â months
[JBoss Portal] - European characters
by Mokh
Hi All !
I have a problem
We have an application that uses JBoss Portal ver.2.4.
We need to enter text via a form and then show this text on the page.
The problem is that we need users to input characters in French, German etc. - not only standard Latin symbols.
So... when we submit the form via web 2.0 (ajax, prototype library) - everything works OK.
The special western european characters are sent to the server correctly and are shown correctly on the page.
BUT! When we send the form via a simple submit button with complete page reloading, the special characters are lost...
the following approaches has been tried but they don't work :
1. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
2. <% response.setHeader("Content-Type", "text/html;charset=UTF-8"); %>
3. accept-charset="UTF-8" on the form
Can anyone help me solve this problem?
How to deal with simple web1.0 forms?
Any help is appreciated.
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069201#4069201
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069201
18Â years, 8Â months
[EJB 3.0] - Re: Storing Password as MD5 Hash
by karl.martens
An alternative to appending something to the encrypted password string that you can check to determine if the password requires encryption or not is to change the access method from PROPERTY to FIELD (map the fields instead of the getter method).
This will allow the persistence provider to inject the value as stored in the database on the field and allow you to define behaviour to the getter and setter methods independently; allowing you to encrypt the data. Each entity can only have a single access method; so you'll have to make the same change for all your mapped columns in this entity.
For a two-way hash my preference is to create a user type that encrypts and decrypts the data as it is sent to or retrieved from the database. (Hibernate specific)
| @Column(name = "password", nullable = false, length = 255)
| private String password;
|
| public String getPassword() {
| return this.password;
| }
|
|
| public void setPassword(String password) {
| this.password = Util.createPasswordHash("MD5", Util.BASE64_ENCODING, null, null, password);
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069197#4069197
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069197
18Â years, 8Â months
[Installation, Configuration & DEPLOYMENT] - Drools 4 on GlassFish
by MichaelMuo
I do have the problem with deployment of drools-jbrms.war file.
More concretely:
JDK: 1.6.0_02
Drooles: drools-4.0.0-brms
GlassFish: v2-b50g
The error is:
[#|2007-07-31T10:03:48.444-0400|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=13;_ThreadName=Timer-6;/srv/glassfish/domains/domain1/autodeploy/drools-jbrms.war;_RequestID=d7b67b65-dc75-498e-81ea-bf37145211ce;|"DPL8004: file open failure; file = /srv/glassfish/domains/domain1/autodeploy/drools-jbrms.war"|#]
[#|2007-07-31T10:03:48.470-0400|INFO|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=13;_ThreadName=Timer-6;|[AutoDeploy] The copy operation for /srv/glassfish/domains/domain1/autodeploy/drools-jbrms.war into the auto-deploy directory may still be in progress or the file may be corrupt; will retry periodically until at least Tue Jul 31 10:04:18 EDT 2007|#]
[#|2007-07-31T10:03:50.390-0400|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=13;_ThreadName=Timer-6;/srv/glassfish/domains/domain1/autodeploy/drools-jbrms.war;_RequestID=d7b67b65-dc75-498e-81ea-bf37145211ce;|"DPL8004: file open failure; file = /srv/glassfish/domains/domain1/autodeploy/drools-jbrms.war"|#]
[#|2007-07-31T10:03:52.387-0400|INFO|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=13;_ThreadName=Timer-6;|[AutoDeploy] Selecting file /srv/glassfish/domains/domain1/autodeploy/drools-jbrms.war for autodeployment.|#]
[#|2007-07-31T10:03:56.276-0400|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=13;_ThreadName=Timer-6;Deployment descriptor file WEB-INF/web.xml in archive [drools-jbrms].;54;11;The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".;_RequestID=d7b67b65-dc75-498e-81ea-bf37145211ce;|"DPL8015: Invalid Deployment Descriptors in Deployment descriptor file WEB-INF/web.xml in archive [drools-jbrms].
Line 54 Column 11 -- The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)"."|#]
[#|2007-07-31T10:03:56.281-0400|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=13;_ThreadName=Timer-6;The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".;_RequestID=d7b67b65-dc75-498e-81ea-bf37145211ce;|"DPL8005: Deployment Descriptor parsing failure : The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)"."|#]
[#|2007-07-31T10:03:56.442-0400|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=13;_ThreadName=Timer-6;_RequestID=d7b67b65-dc75-498e-81ea-bf37145211ce;|Exception occured in J2EEC Phaseorg.xml.sax.SAXParseException: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [drools-jbrms] Line 54 Column 11 -- Deployment descriptor file WEB-INF/web.xml in archive [drools-jbrms]. The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:378)
at com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:423)
at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:157)
at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:179)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:187)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:905)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:276)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:294)
at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:555)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
at $Proxy1.invoke(Unknown Source)
at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:564)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployJavaEEArchive(AutoDeployer.java:545)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:492)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:267)
at com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeployTask.run(AutoDeployControllerImpl.java:374)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: org.xml.sax.SAXParseException: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:298)
at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:220)
at com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescriptor(Archivist.java:480)
at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:305)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:213)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:763)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:744)
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:349)
... 32 more
|#]
[#|2007-07-31T10:03:56.450-0400|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=13;_ThreadName=Timer-6;Error loading deployment descriptors for module [drools-jbrms] Line 54 Column 11 -- Deployment descriptor file WEB-INF/web.xml in archive [drools-jbrms]. The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
;_RequestID=d7b67b65-dc75-498e-81ea-bf37145211ce;|"DPL8011: autodeployment failure while deploying the application : Error loading deployment descriptors for module [drools-jbrms] Line 54 Column 11 -- Deployment descriptor file WEB-INF/web.xml in archive [drools-jbrms]. The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
"|#]
[#|2007-07-31T10:03:56.452-0400|INFO|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=13;_ThreadName=Timer-6;|[AutoDeploy] Autodeploy failed : /srv/glassfish/domains/domain1/autodeploy/drools-jbrms.war.|#]
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069194#4069194
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069194
18Â years, 8Â months