[jboss-user] [Installation, Configuration & Deployment] - global web access to fckeditor
I'm moving my web apps from Tomcat to jBoss. One of tools that I used in all applications on Tomcat was fckeditor. It was installed at ../webapps/fckeditor and was available to all applications from /fckeditor. What is the equivalent in jBoss? Installing to ../deploy/fckeditor does not work. Renaming the directory to fckeditor.war does work, but I find this a bit odd. I read in another post about installing fckeditor in the ROOT application. Not sure how this would work and how other applications would see it. So, I suppose my question would be: looking for recommendations or best practices on how to provide a .js library (such as fckeditor) to all installed web applications in jBoss (5.1.0 GA). Thanks, Bob. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267088#4267088 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267088 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginner's Corner] - Re: 'table does not exist' error after changing default data
Update for jBoss 5.1 The instructions for moving messaging/JMS/persistance to a database other than HSQL(example below is Oracle) on jBoss 5.1 are: 1) remove file server/xxx/deploy/messaging/hsqldb-persistence-service.xml 2) copy docs/examples/jms/oracle-persistance-service* to server/xxx/deploy/messaging 3) restart jBoss. *Note that this file no longer needs to be edited. The DataSourceBinding is already set to DefaultDS. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261607#4261607 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261607 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginner's Corner] - Re: 'table does not exist' error after changing default data
Thanks for the response. I think I'm getting there. JBoss version is 4.2.3 on server in question. For information on changing the default datasource, I used the Installation and Getting Started Guide. http://www.jboss.org/file-access/default/members/jbossas/freezone/docs/Installation_And_Getting_Started_Guide/5/pdf/Installation_And_Getting_Started_Guide.pdf Unfortunately, there's no mention of JMS in this document. I also referenced the following (and translated to Oracle) http://www.jboss.org/community/wiki/SetUpAMysqlDatasource but must admit that I skipped the JMS part (as I was initially attempting to bring up jBoss without messaging, before I realized this would leave me without the admin consoles). I have since found: http://www.jboss.org/file-access/default/members/jbossas/freezone/docs/Administration_And_Configuration_Guide/5/html/alternative_DBs.html and more specifically http://www.jboss.org/file-access/default/members/jbossas/freezone/docs/Administration_And_Configuration_Guide/5/html/ch13s08s01.html I have followed the advice of these documents and replaced the hsqldb-jdbc2-service.xml with oracle-jdbc2-service.xml Note that the document you reference: http://www.jboss.org/community/wiki/ConfigDefaultDSJBossMQDB is similar, but does not indicate that the oracle-jdbc2-service.xml must also be edited, changing OracleDS to DefaultDS (if the DefaultDS is redefined). If you don't make this change, which I initially missed, there are no database errors on startup, but the JMS_TRANSACTIONS and JMS_MESSAGES tables do not get created. Once this change is made, the startup looks the same from the log file, and the JMS_TRANSACTIONS and JMS_MESSAGES tables are created in Oracle. Of course, this is all for 4.2. I believe the change for 5.1 is simlar, but the file names and locations of the -service.xml files are different. Thanks, Bob. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261586#4261586 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261586 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginner's Corner] - Re: 'table does not exist' error after changing default data
I have turned on audiiting in Oracle. The results are: OWNER OBJ_NAMEACTION_NAME - JBOSS JMS_USERS CREATE TABLE JBOSS JMS_ROLES CREATE TABLE JBOSS JMS_SUBSCRIPTIONS CREATE TABLE JBOSS JMS_ROLES SESSION REC JBOSS JMS_USERS SESSION REC JBOSS JMS_TRANSACTIONSSELECT It would appear that the table that is missing is JMS_TRANSACTIONS. Note that the other three tables have a CREATE TABLE attempt (which will only be successful the first time), then a SELECT. JMS_TRANSACTIONS is never created, so the SELECT statement always fails. I have verified this by created a dummy JMS_TRANSACTIONS table. The error in the log file has changed to: ... Caused by: java.sql.SQLException: ORA-00904: "TXID": invalid identifier ... So obviously TXID is at least one of the column names in JMS_TRANSACTIONS. Can someone please post the schema for JMS_TRANSACTIONS. Thanks, Bob. PS Might also want to raise this issue in the appropriate place to get a CREATE TABLE statement added. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261364#4261364 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261364 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: Web Configuration with all admin tools
Well, it appears as if this question is moot. When adding the Admin Console to the 'web' configuration, there is nothing to manage, so perhaps I'm going down the wrong path by starting with 'web' and building up. I've also started with 'default' and attempted to take away services, but haven't been successful with that either. Perhaps the question is more along the lines of: 'Where can I find information about configurations and services.' I would like to develop a configuration that is lighter than 'default', I only need a web servlet container, but with some adminstration tools. Thanks, Bob. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4260164#4260164 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4260164 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Web Configuration with all admin tools
I'd like to use a configuration based on the 'web' configuration, but add the other two admin tools: Admin console, and web-console (jmx-console already comes bundled). I've added admin-console.war and management/* from the 'default' config to the 'web' config. Admin console works, but web-console does not. The following errors are probably related and appear at startup: 10:33:13,096 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): | | DEPLOYMENTS MISSING DEPENDENCIES: | Deployment "jboss.admin:service=PluginManager" is missing the following dependencies: | Dependency "jboss.jmx:name=Invoker,protocol=jrmp,service=proxyFactory,type=adaptor" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jmx:name=Invoker,protocol=jrmp,service=proxyFactory,type=adaptor' **") | Deployment "jboss.web.deployment:war=/web-console" is missing the following dependencies: | Dependency "jboss.admin:service=PluginManager" (should be in state "Create", but is actually in state "Configured") | | DEPLOYMENTS IN ERROR: | Deployment "jboss.jmx:name=Invoker,protocol=jrmp,service=proxyFactory,type=adaptor" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jmx:name=Invoker,protocol=jrmp,service=proxyFactory,type=adaptor' ** What else do I need to add to add to the 'web' configuration to make the web-console work? If there is a document somewhere that tells how to add/remove services (and the interdependencies) that would help also. Thanks, Bob. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4260150#4260150 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4260150 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginner's Corner] - Re: 'table does not exist' error after changing default data
Thanks for the response, Unfortunately, all I know is what"s in the log file, as quoted above. So, all I can say is that it happens sometime during startup. As well, the Oracle error processor doesn't tell you what table it can"t read. Not much help. Bob View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259973#4259973 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259973 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginner's Corner] - 'table does not exist' error after changing default databse
I've changed the default database (DefaultDS) to Oracle as per instructions elsewhere. jBoss comes up and works. Tables, with what look like sample entries, are created in Oracle. However, the startup logs show an error attempting to access (25 times) a table that does not exist. Any ideas? Thanks, Bob - 09:49:48,870 WARN [JDBCSupport] SQLException caught, SQLState 42000 code:942- assuming deadlock detected, try:25 java.sql.SQLException: ORA-00942: table or view does not exist at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272) at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:626) at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:182) at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:500) at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:942) at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:532) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1037) at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2905) at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:2946) at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:342) at org.jboss.messaging.core.impl.JDBCPersistenceManager$1ReserveIDBlockRunner.doTransaction(JDBCPersistenceManager.java:407) ...snipped for brevity... at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461) at org.jboss.Main.boot(Main.java:221) at org.jboss.Main$1.run(Main.java:556) at java.lang.Thread.run(Thread.java:619) 09:49:48,872 ERROR [JDBCSupport] Retried 25 times, now giving up 09:49:48,875 ERROR [ExceptionUtil] ServerPeer[0] startService java.lang.IllegalStateException: Failed to execute transaction at org.jboss.messaging.core.impl.JDBCSupport$JDBCTxRunner2.executeWithRetry(JDBCSupport.java:544) at org.jboss.messaging.core.impl.JDBCPersistenceManager.reserveIDBlock(JDBCPersistenceManager.java:477) at org.jboss.messaging.core.impl.IDManager.getNextBigBlock(IDManager.java:87) at org.jboss.messaging.core.impl.IDManager.start(IDManager.java:74) at org.jboss.jms.server.ServerPeer.startService(ServerPeer.java:310) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259690#4259690 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259690 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginner's Corner] - Re: javax.naming.NameNotFoundException: jdbc not bound
anonymous wrote : You can have the app directly look up "java:/MyDatasource" instead of using "jdbc/MyDatasource". In that case you do not need any of the web.xml or jboss-web.xml entries. I'd already made that change in our source code as a temporary fix. Guess we'll keep it :-) Thanks for the quick response. Bob. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259231#4259231 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259231 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginner's Corner] - Re: javax.naming.NameNotFoundException: jdbc not bound
I've been referred here from my own similar query: http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259203#4259203 >From what I can gather from this thread, a web.xml and jboss-web.xml must >exist in the WEB-INF directory of every application that wants to access the >globally defined datasource: *.ds.xml. It would appear the purpose of the these two files is to map a Java EE Environment Naming Context (enc) 'local' entry (ie java:/comp/env/jdbc/MyDataSource) to a jBossNS 'global' naming entry (ie java:/MyDataSource). Have I got this right? Now, is there a way to globally define this mapping for all jBoss web applications in a similar fashion that the *-ds.xml datasource is globally defined? I would like to deliver an application that does not have jBoss specific configuration entries in the web.xml and does not need a jboss-web.xml file. I know there are applications (I've installed at least one) that work with jBoss that only need the *-ds.xml deployed. What's the trick? Thanks, Bob. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259216#4259216 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259216 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI and Naming] - Re: Looking for standard jndi/jdbc java connection syntax
Thanks for the reply and for the link. I'll post follow up questions in that thread. bob. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259203#4259203 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259203 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI and Naming] - Looking for standard jndi/jdbc java connection syntax
Deploying java servlet code on jBoss for the first time and am having trouble with jndi/jdbc database connection. Code from long running Tomcat/Resin deployments look like: Context init = new InitialContext(); | Context ctx = (Context)init.lookup("java:comp/env"); | DataSource ds = (DataSource) ctx.lookup("jdbc/" + dbName); // dbname defined in Tomcat server.xml With jBoss the above code gives: javax.naming.NameNotFoundException: jdbc not bound error. As per http://www.jboss.org/community/wiki/WhyDoIGetNameNotFoundException I have changed the last line to: DataSource ds = (DataSource) ctx.lookup("java:/" + dbName); // dbname defined in *-ds.xml for jBoss and this works. However, I would like to find a solution that works on both servers. I've looked through the JNDI Wiki and FAQ as suggested in the Sticky, but there's nothing obvious jumping out at me as to what I need to do. Thanks, Bob. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259007#4259007 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259007 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user