[Management, JMX/JBoss] - jmxconsole help
by geolev
I have an existing application using JBoss that I want to setup jmxconsole on. I copied the following:
...\jboss\server\all\deploy\httpha-invoker.sar to ...\jboss\server\myapp\deploy\http-invoker.sar and
...\jboss\server\all\deploy\jbossweb-tomcat55.sar to ...\jboss\server\myapp\deploy\jbossweb-tomcat55.sar.
I restarted my app and I can now see the jmx console via http://localhost:8080/jmx-console/ but when I try to access my app via http://localhost/auth/Login.jsp, I get the following error:
HTTP Status 404 - /auth/Login.jsp
| --------------------------------------------------------------------------------
| type Status report
| message /auth/Login.jsp
| description The requested resource (/auth/Login.jsp) is not available.
| --------------------------------------------------------------------------------
| Apache Tomcat/5.5.17
|
If I remove ...\jboss\server\myapp\deploy\http-invoker.sar and ...\jboss\server\myapp\deploy\jbossweb-tomcat55.sar, and restart the application, I can then access the application as before but I can't access jmx console.
What am I doing wrong? How do I configure it so that both the jmx console works and my app works?
Thanks for any help,
George
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042933#4042933
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042933
17 years, 4 months
[Security & JAAS/JBoss] - Need help with DynamicLoginConfig
by bbernie
Hi.
I am trying to configure a very simple LDAP security domain for testing purposes.
This is my login-conig.xml file:
| <?xml version='1.0'?>
| <!DOCTYPE policy PUBLIC
| "-//JBoss//DTD JBOSS Security Config 3.0//EN"
| "http://www.jboss.org/j2ee/dtd/security_config.dtd">
|
| <policy>
| <application-policy name="ldapTest">
| <authentication>
| <login-module code="org.jboss.security.auth.spi.LdapLoginModule"
| flag="required">
| <module-option name="java.naming.factory.initial">
| com.sun.jndi.ldap.LdapCtxFactory
| </module-option>
| <module-option name="java.naming.provider.url">
| ldap://ldapserver:389/
| </module-option>
| <module-option name="java.naming.security.authentication">
| simple
| </module-option>
| <module-option name="principalDNPrefix">uid=</module-option>
| <module-option name="principalDNSuffix">
| ,ou=People,dc=domain,dc=net
| </module-option>
|
| <module-option name="rolesCtxDN">
| ou=NetGroup,dc=domain,dc=net
| </module-option>
| <module-option name="uidAttributeID">uniqueMember</module-option>
| <module-option name="matchOnUserDN">true</module-option>
| <module-option name="roleAttributeID">cn</module-option>
| <module-option name="roleAttributeIsDN">false </module-option>
| </login-module>
| </authentication>
| </application-policy>
| </policy>
|
I have tried placing this file in META-INF, but jboss only finds the security domain when it is defined in the global login-config.xml file.
I know that the answer to the problem is to configure DynamicLoginConfig to look for my login-config.xml file. The problem is that I can not DynamicLoginConfig working properly.
I created a jboss-service.xml file in META-INF with the following contents:
| <server>
|
| <mbean code="org.jboss.security.auth.login.DynamicLoginConfig"
| name="jboss:service=DynamicLoginConfig">
| <attribute name="AuthConfig">META-INF/login-config.xml</attribute>
|
| <depends optional-attribute-name="LoginConfigService">
| jboss.security:service=XMLLoginConfig
| </depends>
|
| <depends optional-attribute-name="SecurityManagerService">
| jboss.security:service=JaasSecurityManager
| </depends>
| </mbean>
|
| </server>
|
|
However, Jboss still will not load the login-config.xml file as expected.
I then continued my search on this issue, and discovered that I needed a jboss-app.xml file to load the jboss-service.xml I created. I created one like so:
| <?xml version="1.0" encoding="UTF-8"?>
| <jboss-app>
| <module>
| <service>META-INF/jboss-service.xml</service>
| </module>
| </jboss-app>
|
I have tried deploying this package with jboss-app.xml file in both META-INF and in the root of the package, and either way, I can not get Jboss to load the package specific login-config.xml file.
Am I missing anything else?
Any assistance will be greatly appreciated.
Thank you in advance for any help you can offer.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042931#4042931
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042931
17 years, 4 months
[JBoss Seam] - Re: While Seam is great, is any weakness of this framework?
by Delphi's Ghost
anonymous wrote : The thing I don't like about seam-gen, is that I feel like my applications gets to have lots of code I don't quite understand... ...
Hey, this isn't app fuse ;-)
I had the exact same problem with app fuse, so I understand your concern, but seam-gen creates very little code and it is mostly config stuff, almost all of which is documented in the pdf reference guide.
The only generated code is the authenticator.java which is simply a class with an empty authenticate function. Beyond that, it is just configuration stuff.
I do agree with you on the aspect of understanding some of the security stuff, but that mostly comes from me not knowing drools & security.
My only other criticism comes from the silent failures. Where something doesn't work, but it won't say why. You create a page, click a link, and nothing happens, no log generated on the server, nothing, or you are using a datatable, and click a link to go to a new page and find the datamodelselection is either null or the first item. Those are the problems which make you pull your hair out and at the end are usually annoyingly simple and obvious. Then again, thats probably not so much seam specific as I'm sure other frameworks have the same problem.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042930#4042930
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042930
17 years, 4 months
[Persistence, JBoss/CMP, Hibernate, Database] - Firebird Portal Problem
by visnaidu
Hello all,
I changed the PortalDS from the default Hypersonic to Firebird. I also forced the dialect in the hibernate.cfg.xml for Instance, Portal, Portlet, User and CMS to FirebirdDialect. The datasource deploys fine but the tables required for Portal are not created automatically at startup as they should be.
However I can go to the JMX console (http://localhost:8080/jmx-console/) and call up each one of the following MBeans :
# service=Hibernate
# service=Hibernate,type=CMS
# service=Hibernate,type=Instance
# service=Hibernate,type=PortalObject
# service=Hibernate,type=Portlet
and then invoke createSchema() and createContent() by clicking on the respective buttons. This action creates the required schemas and populates the tables with data and all is well.
Is this approach correct for Firebird as a datasource or should the schemas be created at startup.
Thank you.
====
JBoss Portal 2.4.0 and 2.6.0-CR1 bundled downloads
Firebird 2.0.1
Jaybird 2.1.1
JDK1.5.0_10
Windows XP SP2
====
portal-firebird-ds.xml
<local-tx-datasource>
<jndi-name>PortalDS</jndi-name> <connection-url>jdbc:firebirdsql://vsn-nx7010:3050/${jboss.server.data.dir}${/}fbtest.fdb</connection-url>
<driver-class>org.firebirdsql.jdbc.FBDriver</driver-class>
<user-name>SYSDBA</user-name>
masterkey
<min-pool-size>5</min-pool-size>
<max-pool-size>20</max-pool-size>
<track-statements/>
<type-mapping>Firebird</type-mapping>
</local-tx-datasource>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042928#4042928
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042928
17 years, 4 months