[JBoss Messaging] - Configure JBoss Messaging with JAAS
by franbekh
Hello,
I'm currently moving our application from JBoss 4.2.3.GA to JBoss 5.0.1.GA. I have some problems in configuring JAAS with the new JBoss Messaging. Here my configuration:
- My application policy in login-config.xml
<application-policy name = "messaging">
<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://localhost:389</module-option>
<module-option name="java.naming.security.authentication">simple</module-option>
<module-option name="principalDNPrefix">cn=</module-option>
<module-option name="principalDNSuffix">XXXXXXXXX</module-option>
<module-option name="rolesCtxDN">XXXXX</module-option>
<module-option name="roleSearchFilter">(cn={0})</module-option>
<module-option name="roleAttributeID">UserRoles</module-option>
<module-option name="searchTimeLimit">5000</module-option>
<module-option name="searchScope">ONELEVEL_SCOPE</module-option>
</login-module>
</application-policy>
-> The jaas configuration work! I checked it by securing the web-console
here my settings in destination-service.xml
<mbean code="org.jboss.jms.server.destination.TopicService" name="jboss.messaging.destination:service=Topic,name=systemEventTopic" xmbean-dd="xmdesc/Topic-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer
jboss.messaging:service=PostOffice
Here my settings in messaging-jboss-beans.xml
<!-- default security configuration -->
<![CDATA[
]]>
changeit
java:/jaas/messaging
<!-- @JMX annotation to export the management view of this bean -->
@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.messaging:service=SecurityStore",exposedInterface=org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStoreMBean.class)
When I start jboss I get an exception that the user is not authenticated. Did I make a mistake in my configuration?
Thanks in advance,
Bernd
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214411#4214411
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214411
15 years, 10 months
[Persistence, JBoss/CMP, Hibernate, Database] - Problem with entity Beans
by sachin1506
<entity>
| <description>Entity Bean ( CMP )</description>
|
| <display-name>LoginDetails</display-name>
|
| <ejb-name>LoginDetails</ejb-name>
|
| <home>cdot.oss.clh.invoice.ioinvoice.ejb.entity.LoginDetailsHome</home>
|
| <remote>cdot.oss.clh.invoice.ioinvoice.ejb.entity.LoginDetails</remote>
| <local-home>cdot.oss.clh.invoice.ioinvoice.ejb.entity.LoginDetailsLocalHome</local-home>
| <local>cdot.oss.clh.invoice.ioinvoice.ejb.entity.LoginDetailsLocal</local>
| <ejb-class>cdot.oss.clh.invoice.ioinvoice.ejb.entity.LoginDetailsBean</ejb-class>
|
| <persistence-type>Container</persistence-type>
|
| <prim-key-class>java.lang.Long</prim-key-class>
|
| <reentrant>False</reentrant>
|
| <cmp-version>2.x</cmp-version>
|
| <abstract-schema-name>logindetails</abstract-schema-name>
|
| <cmp-field>
|
| <field-name>id</field-name>
|
| </cmp-field>
|
| <cmp-field>
|
| <field-name>password</field-name>
|
| </cmp-field>
|
| <cmp-field>
|
| <field-name>name</field-name>
|
| </cmp-field>
|
|
| <query>
|
| <query-method>
|
| <method-name>findAll</method-name>
|
| <method-params/>
|
| </query-method>
|
| <ejb-ql>select object(o) from logindetails o</ejb-ql>
|
| </query>
|
| <query>
|
| <query-method>
|
| <method-name>findPasswordById</method-name>
| <method-params>
| <method-param>java.lang.Long</method-param>
| </method-params>
| </query-method>
|
| <ejb-ql>select object(o) from logindetails o where o.id = ?1 </ejb-ql>
|
| </query>
|
| </entity>
This is my discriptor for bean "LoginDetails" but when ever i m going to cerate a row using create function it prints following exception
can any one help me plzz
Error checking if entity exists
| java.sql.SQLException: ORA-00921: unexpected end of SQL command
|
| at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
| at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
| at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
| at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
| at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:643)
| at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:1674)
| at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1870)
| at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:363)
| at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:314)
| at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:314)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCInsertPKCreateCommand.beforeInsert(JDBCInsertPKCreateCommand.java:79)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.execute(JDBCAbstractCreateCommand.java:136)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreManager.java:572)
| at org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:211)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedConnectionInterceptor.java:270)
| at org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:730)
| 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:324)
| at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1070)
| at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88)
| at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:204)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:215)
| at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88)
| at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:90)
| at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61)
| at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:341)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:128)
| at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:85)
| at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
| at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:478)
| at org.jboss.ejb.Container.invoke(Container.java:729)
| 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:324)
| at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
| at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:97)
| at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:90)
| at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
| at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
| at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:173)
| at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
| at $Proxy1882.create(Unknown Source)
| at org.apache.jsp.General.Succ_jsp._jspService(Succ_jsp.java:97)
| at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
| at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
| at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
| at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
| at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
| at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:158)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:103)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
| at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:444)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
| at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
| at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
| at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
| at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
| at java.lang.Thread.run(Thread.java:534)
|
I am using jboss 3.2.6
I dont know what this problem is .?? As i m writing first Bean by myself but its not working
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214408#4214408
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214408
15 years, 10 months
[Datasource Configuration] - Deploy yo JBoss from IDE Jdeveloper
by Asha84
Hai all,
I'm using JBoss 4.2.2GA version. IDE used is oracle jdeveloper for enterprise java applications based on ejb2.Database used is Mysql.
I have created ear from the IDE oracle jdeveloper .Copied the ear to Jboss deploy directory and manually made jboss-cmp-jdbc.xml and added it along with ejb-jar.xml and deployed successfully. My problem is I cudn't deploy my ear directly to jboss from jdeveloper.
The error appearing is
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column 't0_Opnewregistration.regNo' in 'field list'. Opnewregistration is one of the ejbs used and regNo is fieldname.
Once i add jboss-cmp-jdbc.xml, deployment has no problem.But i want to deploy the ear directly from the IDE jdeveloper without any manual configurations
Please help me to solve this issue
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214406#4214406
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214406
15 years, 10 months
[Clustering/JBoss] - Cluster setup
by krishnan366
Hi,
I've two instances of jboss 5.0.0 GA up and running in two different machines.
I am using EJB 3.0 stateless session beans to access jboss cache . I do have the @Clustered annotation in my bean.I am using HA_JNDI to invoke the remote ejb from client.
When using both the instances of the server , the cache is getting replicated in both the instances , but on server start up both the nodes does does not seem to recognise each other.. From the server logs I see
07:21:15,536 INFO [DEPartition] Number of cluster members: 1
| 07:21:15,536 INFO [DEPartition] Other members: 0
The entire setup works like a cluster , like if one of the node is down , the request is routed to the other server..etc.. but just the message seems to be incorrect.
I ran the tests mentioned in the community ( JGroups Probe and Draw) . It does display both the nodes..
How do I actually verify if this setup is correct? and if the cluster is correctly configured.?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214405#4214405
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214405
15 years, 10 months
[JBoss Tools (users)] - Re: Warning when using multilanguage
by six-p4ck
in help/about eclipse/configuration details/view error log, i have a log of 700ko with a lot of:
| !ENTRY org.eclipse.wst.validation 4 0 2009-02-25 15:20:25.299
| !MESSAGE Marker id 78304 not found.
| !STACK 1
| org.eclipse.core.internal.resources.ResourceException: Marker id 78304 not found.
| at org.eclipse.core.internal.resources.Marker.checkInfo(Marker.java:56)
| at org.eclipse.core.internal.resources.Marker.getAttribute(Marker.java:97)
| at org.eclipse.wst.validation.internal.TaskListUtility.getValidationTasks(TaskListUtility.java:245)
| at org.eclipse.wst.validation.internal.TaskListUtility.getValidationTasks(TaskListUtility.java:286)
| at org.eclipse.wst.validation.internal.TaskListUtility.getValidationTasks(TaskListUtility.java:333)
| at org.eclipse.wst.validation.internal.TaskListUtility.removeTaskSubset(TaskListUtility.java:426)
| at org.eclipse.wst.validation.internal.TaskListUtility.removeAllTasks(TaskListUtility.java:406)
| at org.eclipse.wst.validation.internal.TaskListUtility.removeAllTasks(TaskListUtility.java:402)
| at org.eclipse.wst.validation.internal.TaskListUtility.removeAllTasks(TaskListUtility.java:390)
| at org.eclipse.wst.validation.internal.operations.WorkbenchReporter.removeAllMessages(WorkbenchReporter.java:129)
| at org.eclipse.wst.validation.internal.operations.ValidationOperation.removeOldMessages(ValidationOperation.java:1048)
| at org.eclipse.wst.validation.internal.operations.ValidationOperation.launchJobs(ValidationOperation.java:1305)
| at org.eclipse.wst.validation.internal.operations.ValidationOperation.validate(ValidationOperation.java:795)
| at org.eclipse.wst.validation.internal.operations.ValidationOperation.run(ValidationOperation.java:614)
| at org.eclipse.wst.validation.internal.operations.ValidationBuilder.build(ValidationBuilder.java:170)
| at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633)
| at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
| at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
| at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
| at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
| at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
| at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
| at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
| at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
| at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
| at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
| at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
| !SUBENTRY 1 org.eclipse.core.resources 4 376 2009-02-25 15:20:25.299
| !MESSAGE Marker id 78304 not found.
|
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214402#4214402
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214402
15 years, 10 months