вторник, 10 января 2006 г.
|
| The problem is that the default JMS state manager MBean... Guest 07:56:32 |
| | The problem is that the default JMS state manager MBean that is loaded in JBoss 3.2.5 is the HQSL JDBCStateManager (and not the DynamicStateManager, as required). Changing the security domain for JBossMQ in login-config.xml to use the DynamicLoginModule isn't enough - you also need to change the loaded state manager MBean. So in order to use the DynamicLoginModule in JBoss 3.2.5, you need to follow these steps: 1) Modify the security domain for JBossMQ in the conf/login-config.xml file to: <!-- Security domain for JBossMQ --> <application-policy name = "jbossmq"> <authentication> <login-module code = "org.jboss.mq.sm.file.DynamicLoginModule" flag = "required"> <module-option name = "unauthenticatedIdentity">guest</module-option> <module-option name = "sm.objectname">jboss.mq:service=StateManager</module-option> </login-module> </authentication> </application-policy> 2) Rename the deploy/jms/hsqldb-jdbc-state-service.xml file to something without the ".xml" extension, so that it is not deployed when the server starts up (something like hsqldb-jdbc-state-service.orig, for example). This file contains the configuration which tells JBoss to load the HSQL JDBCStateManager mbean, which you don't want loaded. 3) Add the following lines to the deply/jms/jbossmq-service.xml file: <mbean code="org.jboss.mq.sm.file.DynamicStateManager" name="jboss.mq:service=StateManager"> <!-- This file is pulled from the configuration URL of the server --> <attribute name="StateFile">jbossmq-state.xml</attribute> </mbean> This now loads the DynamicStateManager into the state manager mbean instead, which gets around the ClassCastException. |
| | Add comment |
понедельник, 9 января 2006 г.
|
| java program to delete temp files... Guest 02:39:20 |
| | I am trying to develop a java program to delete temporary files from as400 server. Any assistance would be appreciated. Thanks. dr_ahcir@yahoo.com |
| | Add comment |
суббота, 7 января 2006 г.
|
| i have 400Gb hard drive it have sum bad sector i want to... Guest 12:13:55 |
| | i have 400Gb hard drive it have sum bad sector i want to repaired tell me how can i repaired it ?? my email is bhaijee_101@yahoo.com thanks muhammad Aamir |
| | Add comment |
понедельник, 2 января 2006 г.
|
how to migrate my codes from php to java programming language Nnekao 20:59:42 |
| | Hi all and Happy New Year! How can i migrate my codes from php programming language to java programming language.need a clear details |
| | Add comment |
четверг, 22 декабря 2005 г.
|
| Did you ever find a solution to this problem? I'm having... Guest 02:04:37 |
| | Did you ever find a solution to this problem? I'm having the same issue. |
| | Add comment |
среда, 21 декабря 2005 г.
|
| I have the same error?Can anyone help me? Guest 13:12:06 |
| | I have the same error? Can anyone help me? |
| | Add comment |
четверг, 15 декабря 2005 г.
|
| what is error 404? Guest 02:22:42 |
| | what is error 404? |
| | Add comment |
суббота, 3 декабря 2005 г.
|
| I cant get liitle vertical line to come up when typing in... Guest 21:17:00 |
| | I cant get liitle vertical line to come up when typing in something, quess its called an insertion line??? |
| | Add comment |
пятница, 2 декабря 2005 г.
|
how i connect the jsp login page 2 oracle AS login page? kalaiselvan 10:05:29 |
| | hi every body, plz help me , how i connect the jsp login page 2 the oracle application server login page, how i use the oracle api in jsp page, plz give some idea about that code experts plz help me by kalai |
| | Add comment |
вторник, 29 ноября 2005 г.
|
UJAC displaying images help needed Gavin Li 12:26:38 |
| | Hello, I am using xslt to transform my xml code into an UJAC template to display it in a pdf. I have got as far as managing to get everything to display except images. When I add the template to display an image it just breaks the pdf file and it wont even open: Error: There was an error opening this document. This file is damaged and could not be repaired. And if I remove the image tags then it creates the pdf file perfect with no hassles. In my filter I create an instance of DocumentPrinter and set the resource loader to my web path: DocumentPrinter documentPrinter = new DocumentPrinter(sr, documentProperties); documentPrinter.setResourceLoader(new FileResourceLoader(webPath)); I am thinking it has something to do with reading in the images from its path. Can anyone assist? |
| | Add comment |
понедельник, 28 ноября 2005 г.
|
| what is the concept of management Guest 15:08:09 |
| | what is the concept of management |
| | Add comment |
понедельник, 7 ноября 2005 г.
|
| Thanks a lot :). It worked great , now i can get the ejb... Guest 16:11:00 |
| | Thanks a lot . It worked great , now i can get the ejb 3.0's running. I saw one error though. After the bean call is over I see an exception in jboss console java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:168) ..................... ..................... at org.jboss.remoting.transport.socket.ServerSocketWrapper.checkConnection(ServerSocketWrapper.java:54) |
| | 2 answer | Add comment |
четверг, 3 ноября 2005 г.
|
| Within farm-service.xml is the following snippet. If you... Guest 15:11:12 |
| | Within farm-service.xml is the following snippet. If you prefix the name of the files to be deployed with a number - they get deployed in that order. I am not sure if when deployed the numbers get stripped off though? <!-- The URLComparator can be used to specify a deployment ordering for deployments found in a scanned directory. The class specified must be an implementation of java.util.Comparator, it must be able to compare two URL objects, and it must have a no-arg constructor. Two deployment comparators are shipped with JBoss: - org.jboss.deployment.DeploymentSorter Sorts by file extension, as follows: "sar", "service.xml", "rar", "jar", "war", "wsr", "ear", "zip", "*" - org.jboss.deployment.scanner.PrefixDeploymentSorter If the name portion of the url begins with 1 or more digits, those digits are converted to an int (ignoring leading zeroes), and files are deployed in that order. Files that do not start with any digits will be deployed last, and they will be sorted by extension as above with DeploymentSorter. --> <attribute name="URLComparator">org.jboss.deployment.DeploymentSorter</attribute> <!-- <attribute name="URLComparator">org.jboss.deployment.scanner.PrefixDeploymentSorter</attribute> --> If you swap over the URLComparator's this may sort out the problem for you. Hope this helps |
| | Add comment |
вторник, 1 ноября 2005 г.
|
| we have a science fair coming up and we are doing... Guest 19:13:10 |
| | we have a science fair coming up and we are doing half-life's but we don't know what a daughter elements and parent atoms is. please help us. |
| | 1 answer | Add comment |
пятница, 28 октября 2005 г.
|
JBoss-Eclipse problem Sandipan Kumar 14:41:38 |
| | Hi I am facing a problem with JBoss 3.2,MyEclipse 3.1,J2sdk1.4.2_05 and Oracle 8i,doing an simpleEjb Project(from laliluna tutorial). Here the details:- java: Namespace +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- DefaultDS (class: org.jboss.resource.adapter.jdbc.WrapperDataSource) +- SecurityProxyFactory (class: org.jboss.security.SubjectSecurityProxyFactory) +- DefaultJMSProvider (class: org.jboss.jms.jndi.JBossMQProvider) +- comp (class: javax.naming.Context) +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) +- JmsXA (class: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl) +- jaas (class: javax.naming.Context) |+- JmsXARealm (class: org.jboss.security.plugins.SecurityDomainContext) | +- jbossmq (class: org.jboss.security.plugins.SecurityDomainContext) | +- HsqlDbRealm (class: org.jboss.security.plugins.SecurityDomainContext) +- timedCacheFactory (class: javax.naming.Context)Failed to lookup: timedCacheFactory, errmsg=null +- TransactionPropagationContextExporter (class: org.jboss.tm.TransactionPropagationContextFactory) +- Mail (class: javax.mail.Session) +- StdJMSPool (class: org.jboss.jms.asf.StdServerSessionPoolFactory) +- TransactionPropagationContextImporter (class: org.jboss.tm.TransactionPropagationContextImporter) +- MyDS (class: org.jboss.resource.adapter.jdbc.WrapperDataSource) +- TransactionManager (class: org.jboss.tm.TxManager)Global JNDI Namespace +- jmx (class: org.jnp.interfaces.NamingContext) | +- invoker (class: org.jnp.interfaces.NamingContext) | | +- RMIAdaptor (proxy: $Proxy18 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor) | +- rmi (class: org.jnp.interfaces.NamingContext) | +- RMIAdaptor[link -> jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef) +- OIL2XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- HTTPXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) +- UserTransactionSessionFactory (proxy: $Proxy10 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory) +- HTTPConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- invokers (class: org.jnp.interfaces.NamingContext) | +- 0.0.0.0 (class: org.jnp.interfaces.NamingContext) | | +- pooled (class: org.jboss.invocation.pooled.interfaces.PooledInvokerProxy) | +- bandhana (class: org.jnp.interfaces.NamingContext) | | +- jrmp (class: org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy) | | +- http (class: org.jboss.invocation.http.interfaces.HttpInvokerProxy) +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction) +- RMIXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- UILXAConnectionFactory[link -> UIL2XAConnectionFactory] (class: javax.naming.LinkRef) +- UIL2XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- queue (class: org.jnp.interfaces.NamingContext) | +- A (class: org.jboss.mq.SpyQueue) | +- testQueue (class: org.jboss.mq.SpyQueue) | +- ex (class: org.jboss.mq.SpyQueue) | +- DLQ (class: org.jboss.mq.SpyQueue) | +- D (class: org.jboss.mq.SpyQueue) | +- C (class: org.jboss.mq.SpyQueue) | +- B (class: org.jboss.mq.SpyQueue) +- topic (class: org.jnp.interfaces.NamingContext) | +- testDurableTopic (class: org.jboss.mq.SpyTopic) | +- testTopic (class: org.jboss.mq.SpyTopic) | +- securedTopic (class: org.jboss.mq.SpyTopic) +- console (class: org.jnp.interfaces.NamingContext) | +- PluginManager (proxy: $Proxy19 implements interface org.jboss.console.manager.PluginManagerMBean) +- UIL2ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) +- UILConnectionFactory[link -> UIL2ConnectionFactory] (class: javax.naming.LinkRef) +- RMIConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) +- OIL2ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) +- UUIDKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory) oracle-ds.xml <datasources> <local-tx-datasource> <jndi-name>MyOracleDS</jndi-name> <connection-url>jdbc:oracle:thin:@athlon:1521:gblORCL</connection-url> <driver-class>oracle.jdbc.driver.OracleDriver</driver-class> <user-name>scott</user-name> <password>tiger</password> <type-mapping>Oracle8</type-mapping> </local-tx-datasource> </datasources> standardjbosscmp-jdbc.xml <jbosscmp-jdbc> <defaults> <datasource>java:/MyOracleDS</datasource> <datasource-mapping>Oracle8</datasource-mapping> .................... standardjaws.xml <jaws> <datasource>java:/MyOracleDS</datasource> <type-mapping>Oracle8</type-mapping> <debug>true</debug> ............... login-config.xml <!-- Security domain for JBossMQ --> <application-policy name = "jbossmq"> <authentication> <login-module code = "org.jboss.security.auth.{censored}.DatabaseServerLoginModule" flag = "required"> <module-option name = "unauthenticatedIdentity">scott</module-option> <module-option name = "dsJndiName">java:/MyOracleDS</module-option> <module-option name = "principalsQuery">SELECT PASSWD FROM JMS_USERS WHERE USERID=?</module-option> <module-option name = "rolesQuery">SELECT ROLEID, 'Roles' FROM JMS_ROLES WHERE USERID=?</module-option> </login-module> </authentication> </application-policy> <!-- Security domains for testing new jca framework --> <application-policy name = "OracleDBRealm"> <authentication> <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag = "required"> <module-option name = "principal">scott</module-option> <module-option name = "userName">scott</module-option> <module-option name = "password">tiger</module-option> <module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=MyOracleDS</module-option> </login-module> </authentication> </application-policy> ................... jboss.xml <jboss> <enterprise-beans> <!-- To add beans that you have deployment descriptor info for, add a file to your XDoclet merge directory called jboss-beans.xml that contains the <session></session>, <entity></entity> and <message-driven></message-driven> markup for those beans. --> <entity> <ejb-name>SimpleBean</ejb-name> <jndi-name>ejb/SimpleBeanHome</jndi-name> <local-jndi-name>ejb/SimpleBeanLocalHome</local-jndi-name> <method-attributes> </method-attributes> </entity> <!-- write a merge file jboss-webservices.ent for webservice-description --> </enterprise-beans> <resource-managers> <resource-manager> <res-name>(....)</res-name> <res-jndi-name>java:comp/env/jdbc/oracle</res-jndi-name> </resource-manager> </resource-managers> <!-- | for container settings, you can merge in jboss-container.xml | this can contain <invoker-proxy-bindings/> and <container-configurations/> --> </jboss> ejb-jar.xml <ejb-jar > <description><![CDATA[No Description.]]></description> <display-name>Generated by XDoclet</display-name> <enterprise-beans> <!-- Session Beans --> <!-- To add session beans that you have deployment descriptor info for, add a file to your XDoclet merge directory called session-beans.xml that contains the <session></session> markup for those beans. --> <!-- Entity Beans --> <entity > <description><![CDATA[SimpleBean EJB]]></description> <display-name>SimpleBean</display-name> <ejb-name>SimpleBean</ejb-name> <home>com.bandana.TestEjb.interfaces.SimpleBeanHome</home> <remote>com.bandana.TestEjb.interfaces.SimpleBean</remote> <local-home>com.bandana.TestEjb.interfaces.SimpleBeanLocalHome</local-home> <local>com.bandana.TestEjb.interfaces.SimpleBeanLocal</local> <ejb-class>com.bandana.TestEjb.ejb.SimpleBeanCMP</ejb-class> <persistence-type>Container</persistence-type> <prim-key-class>com.bandana.TestEjb.interfaces.SimpleBeanPK</prim-key-class> <reentrant>False</reentrant> <cmp-version>2.x</cmp-version> <abstract-schema-name>SimpleBean</abstract-schema-name> <cmp-field > <description><![CDATA[]]></description> <field-name>id</field-name> </cmp-field> <cmp-field > <description><![CDATA[]]></description> <field-name>name</field-name> </cmp-field> <!-- Write a file named ejb-finders-SimpleBean.xml if you want to define extra finders. --> </entity> jbosscmp-jdbc.xml <jbosscmp-jdbc> <defaults> <datasource>java:/MyOracleDS</datasource> <datasource-mapping>Oracle8</datasource-mapping> </defaults> <enterprise-beans> <!-- To add beans that you have deployment descriptor info for, add a file to your XDoclet merge directory called jbosscmp-jdbc-beans.xml that contains the <entity></entity> markup for those beans. --> <entity> <ejb-name>SimpleBean</ejb-name> <cmp-field> <field-name>id</field-name> <column-name>fid</column-name> </cmp-field> <cmp-field> <field-name>name</field-name> <column-name>fname</column-name> </cmp-field> <!-- jboss 3.2 features --> <!-- optimistic locking does not express the exclusions needed --> </entity> </enterprise-beans> </jbosscmp-jdbc> Another problem I am seeing that in jboss-3.2.2\server\default\conf there is the standardjbosscmp-jdbc.xml file. Here the datasources given are Oracle9i,Oracle8 and Oracle7.There is no Oracle8i.So what will i do? And how will i solve the problem ? please help. |
| | Add comment |
воскресенье, 23 октября 2005 г.
|
| i have same problem! it's appfuse's bug or not? Guest 09:31:53 |
| | i have same problem! it's appfuse's bug or not? |
| | Add comment |
пятница, 21 октября 2005 г.
|
| How did this happen? How can I fix this problem? Guest 09:37:31 |
| | How did this happen? How can I fix this problem? |
| | Add comment |
|
[Java.JavaServerFaces] krzsam 04:27:26 |
| | How can I get a 'ul' or 'li' html tag from JSF ? I don't know which JSF tag (h: or f could produce it. |
| | Add comment |
среда, 19 октября 2005 г.
|
[Eclipse/Ant] krzsam 11:54:10 |
| | I run packaging under Eclipse and i get error in Eclipse error log that says: java.net.SocketTimeoutException: Accept timed out at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(Unknown Source) at java.net.ServerSocket.implAccept(Unknown Source) at java.net.ServerSocket.accept(Unknown Source) at org.eclipse.ant.internal.ui.launchConfigurations.RemoteAntBuildListener$ServerConnection.run(RemoteAntBuildListener.java:97) What could be wrong with my Eclipse installation ? krzsam |
| | Add comment |
|
| Error message 'else' without 'if' Guest 11:51:56 |
| | I am new to Java Programming and currently have an error message that says > 'else' without 'if' I was wondering if anyone could give me any feedback as to what that means. It is driving me crazy because I can not figure out what it is saying. Thanks !! |
| | 1 answer | Add comment |
|
| Even I am facing the same problem in JBoss 4.0.2. Plz some... Guest 11:41:19 |
| | Even I am facing the same problem in JBoss 4.0.2. Plz some one help us solve this riddle. It is painful now. I have spent three days without locating the source of the problem. |
| | 1 answer | Add comment |
четверг, 13 октября 2005 г.
|
| You should always try to decouple business tear and web... Guest 20:30:07 |
| | You should always try to decouple business tear and web tear. It is OK for the web tear to be dependant on the business tear but not the way around. If you really need the classes from web-inf/classes I suggest you add them to business tear. |
| | Add comment |
|