[jboss-user] [Beginners Corner] - JavaMail JNDI Problem
I am trying to setup the example jar from javamail1.4 within JBoss, but, I keep having problems linking my war to the appropriate JNDI value or setting the JNDI resource explicitly. I'm using JBoss4.0.3RC1 The following is the error: | ... 62 more | 10:39:12,031 ERROR [MainDeployer] Could not start deployment: file:/C:/jboss-4.0 | .3SP1-FRESH/server/default/deploy/javamail.war | org.jboss.deployment.DeploymentException: Error during deploy; - nested throwabl | e: (javax.naming.NamingException: resource-ref: MySession has no valid JNDI bind | ing. Check the jboss-web/resource-ref.) | I'm not sure what is meant by the jboss-web/resource-ref. I've taken a guess that it means a jboss-web.xml file, but, then again, I'm not sure which jboss-web.xml file I'm supposed edit. web.xml | | MySession | javax.mail.Session | java:/NetaMail | Container | | default/deploy/mail-service.xml | | java:/NetaMail | ### | ### | | | | | | | | | | | | | | | | | | | | | | |jboss:service=Naming | | | and I tried the server/default/deploy/jmx-console.war/WEB-INF/jboss-web.xml but to no avail: | | MySession | javax.mail.Session | java:/NetaMail | Container | | Can anyone tell me where I'm messing up? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171585#4171585 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171585 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: JavaMail JNDI Problem
Well a little more snooping payed off I noticed on startup the jmx console deployment was throwing an error about finding my entry into the jboss-web.xml and not finding it in the web.xml. So that got me thinking that perhaps this war file needs a jboss-web.xml and indeed it did. | WEB-INF | |- web.xml | |- jboss-web.xml | Both contain: | | java:NetaMail | javax.mail.Session | java:/NetaMail | Container | | And alls well that ends well... Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171599#4171599 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171599 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Enum attributes in Entity Beans ...
"dsouza" wrote : Ok, I tested it again for Oracle and it did work, however I did run into some other problems. | | SOME SECURITY | | I have a cactus test suite that inserts/updates/deletes entities in the database to make sure they're working and that they have the appropriate permissions. So in order to test the use of enums in an entity I used one of my entity tests (for an entity that needs an enum). | | Basically I have this line of code in my test suite: | | | interfaceMessage.setMessageType(InterfaceMessageType.WARNING); | | | where InterfaceMessageType is my enum. If I change the line to | | | interfaceMessage.setMessageType(InterfaceMessageType.ERROR); | | | and redeploy without restarting JBOSS, I get the following exception: | | | | org.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of entity.iface.InterfaceMessage.setMessageType | | at org.hibernate.tuple.PojoEntityTuplizer.setPropertyValuesWithOptimizer(PojoEntityTuplizer.java:209) | | at org.hibernate.tuple.PojoEntityTuplizer.setPropertyValues(PojoEntityTuplizer.java:179) | | at org.hibernate.persister.entity.BasicEntityPersister.setPropertyValues(BasicEntityPersister.java:2981) | | ... | | Caused by: net.sf.cglib.beans.BulkBeanException: entity.enums.InterfaceMessageType | | at entity.iface.InterfaceMessage$$BulkBeanByCGLIB$$48beb320.setPropertyValues() | | at org.hibernate.tuple.PojoEntityTuplizer.setPropertyValuesWithOptimizer(PojoEntityTuplizer.java:206) | | ... 84 more | | Caused by: java.lang.ClassCastException: entity.enums.InterfaceMessageType | | ... 86 more | | | | If I restart JBOSS everything works fine (until I change the code again). I really have no idea why this is happening but I thought maybe something from mixing the latest hibernate cvs with the ejb 3 beta release, but then again I guess it's unlikely since hibernate handles the persistence. Any ideas of what might be causing this? | | Another problem is that the latest cvs broke some of my other code. Maybe it's something that's really changed for good and I'm not up to date yet, but I'm getting the following exception: | | | | org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=brain/24, BranchQual=, localId=24] status=STATUS_NO_TRANSACTION; - nested throwable: (java.lang.ClassCastException: java.util.ArrayList) | | | | java.lang.RuntimeException: org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=brain/24, BranchQual=, localId=24] status=STATUS_NO_TRANSACTION; - nested throwable: (java.lang.ClassCastException: java.util.ArrayList) | | at org.jboss.aspects.tx.TxPolicy.handleEndTransactionException(TxPolicy.java:185) | | at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:167) | | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:74) | | ... | | | | Looks like some problem in using ArrayList in OneToMany or ManyToMany relationships. Just thought you should know in case it's a new bug or something. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961438#3961438 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961438 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - DatabaseMetaData and HTTP connections
Hi, I began working with the con.getMetaData() object today and soon after began getting the following: org.jboss.deployment.DeploymentException: Too many open files; - nested throwable: (java.io.IOException: Too many open files) | at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:352) | 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.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127) | at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) | at $Proxy31.init(Unknown Source) | at org.jboss.deployment.MainDeployer.init(MainDeployer.java:843) | at org.jboss.deployment.MainDeployer.init(MainDeployer.java:863) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:780) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753) | at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:324) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) | at $Proxy9.deploy(Unknown Source) | at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319) | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:489) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182) | Caused by: java.io.IOException: Too many open files | at java.io.FileInputStream.open(Native Method) | at java.io.FileInputStream.(FileInputStream.java:106) | at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:301) | ... 37 more Anyone know the cause? Here's the code which causes the problem: public DbTable getTable(String ds, String tbl) throws SQLException, NamingException, LookupException{ | DbTable table = null; | Connection con = null; | ResultSet rs = null; | DatabaseMetaData meta = null; | String[] types = {"TABLE"}; | try { | con = AppHelper.getConnection(ds); | meta = con.getMetaData(); | rs = meta.getTables(con.getCatalog(), null, "%"+tbl+"%", types); | if(!rs.next()) { | throw new LookupException("Unable to find specified table:"+tbl); | } | String name; | int count = 3; | do { | name = rs.getString(count); | if(name.equals(tbl)) { | table = new DbTable(name); | readTableColumns(meta, table); | break; | } | }while(rs.next()); | }finally { | AppHelper.c
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: DatabaseMetaData and HTTP connections
The same code fails again with a: [Microsoft][SQLServer 2000 Driver for JDBC]Error setting up static cursor cache. Any Ideas? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023868#4023868 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023868 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: DatabaseMetaData and HTTP connections
Looks to be the fault of the Microsoft SQL Server 2000 Driver. I shoulda realized because it had given me troubles early on. Don't use the 2000 driver use the 2005 driver. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023929#4023929 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023929 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Rpc client
you need to drop 4.0.2 as it does not support complex data types. 4.0.3SP1 works. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031212#4031212 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031212 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Jar Isolation Not Working
All, I've been up and down this road many times, but, I've finally come to the conclusion that the Jar Isolation mechanism posted in the documents does not work. Here's why: I've flipped the flag UseJbossWebLoader found in server\default\deploy\jbossweb-tomcat55.sar\META-INF\jboss-service.xml to read: | false | I have two apps which require three of the same jar files. If both apps exist in the deploy directory at the same time and JBoss is restarted I get an array of LinkageError's and ClassCastException errors. However, if one single app containing the three redundant jar files is deployed alone. And if that app is navigated completly through. Then if the next app is deployed the applications work. This just leads me to believe that the isolation isn't handled correctly and that app2 is actually using classes from the app1 deployment. What do you think? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971093#3971093 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971093 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: Jar Isolation Not Working
don't know. we don't use it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971098#3971098 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971098 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: Jar Isolation Not Working
Thanks for the suggestion. It looks like this still may be an issue with both 4.0.2 and 4.0.4.GA. Unless the problem is with my packaging and/or Manifest.mf CLASSPATH references. Anyone know of any resources which describe basic packaging procedures which allow ejb jar files and war files to communicate smoothly? Here's what I found searching on JIRA: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=61036 http://jira.jboss.com/jira/browse/JBAS-1549?vote=vote http://www.jboss.com/index.html?module=bb&op=viewtopic&t=80758 http://jira.jboss.com/jira/browse/JBAS-3086?vote=vote After those readings I found I really hadn't setup my environment for full isolation. So after changing the server/default/deploy/ear-deploy.xml attribute's to read: | true | true | I realize this statement was incorrect on the initial post: anonymous wrote : | However, if one single app containing the three redundant jar files is deployed alone. And if that app is navigated completly through. Then if the next app is deployed the applications work. | Now I start getting the old ClassCastException and I'm guessing it's because of the isolation? Is this right? | java.lang.ClassCastException | at com.security.delegate.SecurityAuthenticator.getSecurityAuthenticator(SecurityAuthenticator.java:104) | at com.security.delegate.SecurityAuthenticator.authenticate(SecurityAuthenticator.java:41) | at com.portal.action.LoginAction.execute(Unknown Source) | at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) | Could anyone please comment on my current deployment? | - .ear 1 | | --- application.xml | | --- security-ejb.jar // shared by app 2 | | --- util-client.jar // shared by app 2 | | --- calendar-client.jar // shared by app 2 | | --- portal-main.jar | | --- portal-ejb.jar// uses util-client.jar and portal-main.jar | | --- portal.war // uses all shared libraries | The application.xml just lists all the archives as their respective module. I have no classpath reference within the war archive or any of the others. App2.ear is setup almost identically only the portal is a reg app. Thanks alot, g View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971337#3971337 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971337 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - SQL Trace output concern with mapped DS
I have two datasource mappings pointed at the same server-database combination. The two are used by different applications as to differentiate between testing and release code. Each datasource has their own respective login to the database, but, use the same group of classes to access the db. I just released a new version of one of my apps and found that at times it appears to be confusing the datasource choice. i.e., I tell it to use ds1, however, it looks to be using ds2. I'm running JBossAS-4.0.2 on a W2K box against SQLServer2K. Here's the connection object: | ... | | /** | * | * Handles connections to multiple databases. | */ | public class AppHelper | { |private static AppHelper appHelperInstance = null; |public static final String SC_DEFAULT_DS_CON = Constants.DEFAULT_DS_CON_VALUE; | public static final String SC_CATS_DS_MAIN = Constants.CATS_DS_MAIN_VALUE; | |... | |// |/** | * Static method used to retrieve an instance of the object (or to create | * a new instance, if none exists.) | * @return AppHelper app helper instance | */ |public static synchronized AppHelper getInstance() { | logger.debug("entering getInstance()"); |appHelperInstance = (null == appHelperInstance) ? |new AppHelper() : appHelperInstance; | logger.debug("leaving getInstance()"); |return appHelperInstance; |} | |private AppHelper(){ | logger.debug("creating the AppHelper Singleton"); | logger.debug("leaving AppHelper Singleton"); |} | | ... | |synchronized public Connection getConnection(String ds)throws NamingException, SQLException |{ |logger.debug("entering getConnection()"); |logger.info("get connection for "+ds); | |DataSource dataSource = initializeDataSource(ds); | |Connection conn = null; | |try { | conn = dataSource.getConnection(); | logger.info("connection:"+conn.toString()); |} catch (NullPointerException e) { | logger.error("caught np exception getting connection from cached resource!"); | logger.info("attempting to restart the datasource..."); | /* | * If the dataSource has been shutdown or perhaps | * the database server has been restarted, then, these | * exception handlers will restart the datasource... | * NOTE: All works fine if a user is in the middle of using the app, | * however, since the Security relies on JBoss CMP then | * are unable to authenticate | */ | conn = resetDataSource(ds); | logger.info("connection established!"); |} catch (SQLException e) { | logger.error("caught sql exception getting connection from cached resource!"); | logger.info("sql ex->"+e.getMessage()); | logger.info("attempting to restart the datasource..."); | /* | * If the dataSource has been shutdown or perhaps | * the database server has been restarted, then, these | * exception handlers will restart the datasource... | * NOTE: All works fine if a user is in the middle of using the app, | * however, since the Security relies on JBoss CMP then | * are unable to authenticate | */ | conn = resetDataSource(ds); | logger.info("connection established!"); |} | | //conn.setAutoCommit(true); | logger.debug("leaving getConnection()"); |return conn; |} | | ... | | } | | A call that switches ds: | con = AppHelper.getInstance().getConnection( | AppHelper.SC_DEFAULT_DS_CON); | // appears not to use the default ds con | ps = con.prepareStatement( | "UPDATE TempNewTest SET" + | "TC = ? " + | "WHERE SessionID = ? " + | "AND TC = ?"); | The Constants static lookup: | static { | try { | resourceBundle = ResourceBundle.getBundle("util"); | | DEFAULT_DS_CON_VALUE = resourceBundle.getString(DEFAULT_DS_CON); | CATS_DS_MAIN_VALUE = resourceBundle.getString(CATS_DS_MAIN); |
[jboss-user] [JCA/JBoss] - Re: SQL Trace output concern with mapped DS
Weston, Thanks for the reply. The AppHelper works like a ServiceLocator. One place to call and get whichever ds is needed. I added the Singleton thought it made sense. :) I began caching the ds references early on and realized that was a bad choice, so, the reset is basically an old call that I never changed. Here's the AppHelper with the excluded methods: |public static synchronized AppHelper getInstance() { | logger.debug("entering getInstance()"); |appHelperInstance = (null == appHelperInstance) ? |new AppHelper() : appHelperInstance; | logger.debug("leaving getInstance()"); |return appHelperInstance; |} | |private AppHelper(){ | logger.debug("creating the AppHelper Singleton"); | logger.debug("leaving AppHelper Singleton"); |} | |private DataSource initializeDataSource(String dataSourceJNDI) throws NamingException{ | logger.debug("entering initializeDataSource()"); | DataSource dataSource = null; |try{ | InitialContext ic = new InitialContext(); | dataSource = (DataSource) ic.lookup(dataSourceJNDI); |}catch (NamingException ne){ |throw new NamingException("NamingException while looking" + |" up DataSource Connection " |+ ": \n" + ne.getMessage()); |} | logger.debug("leaving initializeDataSource()"); | return dataSource; |} | |synchronized public Connection getConnection(String ds)throws NamingException, SQLException |{ |logger.debug("entering getConnection()"); |logger.info("get connection for "+ds); | |DataSource dataSource = initializeDataSource(ds); | |Connection conn = null; | |try { | conn = dataSource.getConnection(); | logger.info("connection:"+conn.toString()); |} catch (NullPointerException e) { | logger.error("caught np exception getting connection from cached resource!"); | logger.info("attempting to restart the datasource..."); | /* | * If the dataSource has been shutdown or perhaps | * the database server has been restarted, then, these | * exception handlers will restart the datasource... | * NOTE: All works fine if a user is in the middle of using the app, | * however, since the Security relies on JBoss CMP then | * are unable to authenticate | */ | conn = resetDataSource(ds); | logger.info("connection established!"); |} catch (SQLException e) { | logger.error("caught sql exception getting connection from cached resource!"); | logger.info("sql ex->"+e.getMessage()); | logger.info("attempting to restart the datasource..."); | /* | * If the dataSource has been shutdown or perhaps | * the database server has been restarted, then, these | * exception handlers will restart the datasource... | * NOTE: All works fine if a user is in the middle of using the app, | * however, since the Security relies on JBoss CMP then | * are unable to authenticate | */ | conn = resetDataSource(ds); | logger.info("connection established!"); |} | | //conn.setAutoCommit(true); | logger.debug("leaving getConnection()"); |return conn; |} | |private Connection resetDataSource(String dataSourceJNDI)throws NamingException, SQLException{ | // try and restart it | DataSource ds = initializeDataSource(dataSourceJNDI); | return ds.getConnection(); |} | The data source's are: | | | DefaultDS | | jdbc:microsoft:sqlserver://:1433;DatabaseName=Main;SelectMethod=cursor | com.microsoft.jdbc.sqlserver.SQLServerDriver | reg | | SELECT * FROM Site(NOLOCK) WHERE SiteID = 179 | | 5 | 10 | | | MS SQLSERVER2000 | | 0 | | | And the other: | | | CATS_DS_MAIN | | jdbc:microsoft:sqlserver://:1433;DatabaseName=Main;SelectMethod=cursor | com.microsoft.jdbc.sqlserver.SQLServerDriver | | PortalCatsEncryptDBPassword | | SELECT * FROM Site(NOLOCK) WHERE SiteID = 179 | |
[jboss-user] [JCA/JBoss] - Re: SQL Trace output concern with mapped DS
Weston, WOW! What a sneaky little bugger that was. Thanks for the tips. Removing the Singleton was the way to go as it now does what was expected. Thanks. Graham View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973423#3973423 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973423 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: does jboss support deployment of multiple .ear files con
I think it is. see: [url] http://www.jboss.com/index.html?module=bb&op=viewtopic&t=90506 [/url] View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974622#3974622 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974622 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: Jar Isolation Not Working
Anyone? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975857#3975857 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975857 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: Jar Isolation Not Working
Thanks. Sorry 'bout the forum, seemed right at the time. That http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration reads abit clunky, but, makes sense after the hundreth time. So, basically, you just need to add the meta-inf/jboss-app.xml to a deployment and at least the ear isolation is achieved. | | |myapp:loader=myapp.ear | | | Thanks again, I was about to give up and fully resent the modules I created. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976124#3976124 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976124 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - StatelessSession -> DAO leaves open transactions
I've been using a pretty simple setup where a StatelessSession bean coordinates calls to various DAO's to perform inserts and updates. I began noticing a while back that many of my apps connections leave open transactions and am begining to wonder if I've misunderstood something about the transactional manager and the way it handles its exception handling. I use JBossAS 4.0.2 on a W2K machine running against W2K SQLServer. The session beans are setup to utilize the containers CMT. | public void updatePersonInfoInTemp(int personId, ArrayList tests)throws GeneralFailureException{ | RegistrationDAO dao = new RegistrationDAO(); | try { | TestInfo test = null; | for(int i=0; ihttp://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977969#3977969 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977969 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: StatelessSession -> DAO leaves open transactions
Help!! Sal, I'm dyin over here. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978664#3978664 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978664 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: StatelessSession -> DAO leaves open transactions
It looks to be an old jdbc driver problem. The last TSQL statement executed was: exec sp_closecursor;1. Found on the web that an old ms sql 2000 jdbc driver would fail. I switched to the new 2005 driver and all looks to be in order. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979701#3979701 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979701 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - SoapFaultException using anyType
I'm attempting to access a web-service on a clients machine, but, receive one of the vaguest errors ever: | 2007-10-17 11:44:18,875 INFO [STDOUT:140] javax.xml.rpc.soap.SOAPFaultException: SoapMapper:Can't create mapper inside 'anyType' of type anySimpleType in namespace http://www.w3.org/2001/XMLSchema. | 2007-10-17 11:44:18,875 INFO [STDOUT:140] at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:360) | 2007-10-17 11:44:18,875 INFO [STDOUT:140] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:224) | 2007-10-17 11:44:18,875 INFO [STDOUT:140] at com.comira.ScheduleSoapPort_Stub.getCandidateScheduleData(ScheduleSoapPort_Stub.java:170) | I'm not sure what is causing the problem and was hoping someone could help. I'm using jwsdp1.3, jboss-4.0.3SP1, jdk1.4.2_13. Thanks, Graham View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096253#4096253 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096253 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: SoapFaultException using anyType
Can anyone tell me which version of JBoss works with jdk1.4.2 and supports the anyType type element? This seemed to state that there was a problem with rpc encoded web-services: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032888#4032888 I've tried to change them to literal, but, have been unsuccessful.. And this says that it's fixed, but, it doesn't say which version to use: http://jira.jboss.com/jira/browse/JBWS-1595 Thanks. Graham Here's the wsdl. If you see anything that might be causing the problem please let me know: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
[jboss-user] [JBossWS] - Re: SoapFaultException using anyType
looks like it's fixed in jbossws-native-2.0.0.GA and above View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096335#4096335 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096335 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: SoapFaultException using anyType
Not so sure... Still can't get it to work... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098595#4098595 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098595 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - WSTools to generate jaxrpc-mapping.xml file?
I am trying to connect to a microsoft ws using JBoss-4.0.5.GA and JBossWS-2.0.0.GA. I executed wsconsume to generate the classes, but, was not able to use wstools to generate the artifacts, i.e., jaxrpc-mapping.xml. I get the following error when executing the command: | Exception in thread "main" java.lang.NoSuchMethodError: javax.wsdl.xml.WSDLLocator.close()V | at org.jboss.ws.tools.wsdl.JBossWSDLReaderImpl.readWSDL(JBossWSDLReaderImpl.java:2367) | at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:127) | at org.jboss.ws.tools.WSDLToJava.convertWSDL2Java(WSDLToJava.java:119) | at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:298) | at org.jboss.ws.tools.WSTools.process(WSTools.java:147) | at org.jboss.ws.tools.WSTools.generate(WSTools.java:69) | at org.jboss.ws.tools.WSTools.generate(WSTools.java:123) | at org.jboss.ws.tools.WSTools.main(WSTools.java:58) | Any help on which version of the jar file that it's requesting? I've tried wsdl4j.jar that ships with JBossWS, wsdl4j-1.5.2.jar and wsdl4j-1.6.1.jar with no success. Deploying without the mapping file I believe confuses JBoss and it throws the following error: | 2007-10-24 16:03:55,015 ERROR [STDERR] javax.xml.ws.soap.SOAPFaultException: WSDLReader:None of the matching operations for soapAction http://actcenters.com/ALMVTC/action/Schedule.getCandidateScheduleData could successfully load the incoming request. Potential typemapper problem | 2007-10-24 16:03:55,015 ERROR [STDERR] at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:69) | 2007-10-24 16:03:55,015 ERROR [STDERR] at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException(SOAP11BindingJAXWS.java:109) | 2007-10-24 16:03:55,015 ERROR [STDERR] at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:553) | 2007-10-24 16:03:55,015 ERROR [STDERR] at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:371) | 2007-10-24 16:03:55,015 ERROR [STDERR] at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243) | 2007-10-24 16:03:55,015 ERROR [STDERR] at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164) | 2007-10-24 16:03:55,015 ERROR [STDERR] at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150) | 2007-10-24 16:03:55,015 ERROR [STDERR] at $Proxy63.getCandidateScheduleData(Unknown Source) | Any help is appreciated. Graham View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098607#4098607 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098607 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WSTools to generate jaxrpc-mapping.xml file?
the conflict is between jwsdl4j.jar and jbossall-client.jar. the jbossall-client.jar doesn't have the close method. added the jwsdl4j.jar higher in the import scheme. It executes but now I get: | log4j:WARN No appenders could be found for logger (org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory). | log4j:WARN Please initialize the log4j system properly. | Exception in thread "main" org.apache.xerces.xni.XNIException: Parser should stop: [domain:http://ww | w.w3.org/TR/1998/REC-xml-19980210]::[key=ContentIllegalInProlog]::Message=Content is not allowed in | prolog. | at org.jboss.ws.metadata.wsdl.xmlschema.JBossXSErrorHandler.fatalError(JBossXSErrorHandler.j | ava:78) | at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) | at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) | at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) | at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source) | at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) | at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.parse(Unknown Source) | at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.parse(Unknown Source) | at org.apache.xerces.impl.xs.opti.SchemaDOMParser.parse(Unknown Source) | at org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown Source) | at org.apache.xerces.impl.xs.traversers.XSDHandler.resolveSchema(Unknown Source) | at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknown Source) | at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source) | at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source) | at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source) | at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:182) | at org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:391) | at org.jboss.ws.tools.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:172) | at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:128) | at org.jboss.ws.tools.WSDLToJava.convertWSDL2Java(WSDLToJava.java:119) | at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:298) | at org.jboss.ws.tools.WSTools.process(WSTools.java:147) | at org.jboss.ws.tools.WSTools.generate(WSTools.java:69) | at org.jboss.ws.tools.WSTools.generate(WSTools.java:123) | at org.jboss.ws.tools.WSTools.main(WSTools.java:58) | C:\projects-cal-ws\act-ws-scheduler\client> | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098622#4098622 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098622 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WSTools to generate jaxrpc-mapping.xml file?
So, the call to WSTools is not necessary? That's what I was hoping to find out. Does this also mean that we no longer need a mapping file? If not, how is the mapping file generated? WSTools? The reason I even tried to generate artifacts with the WSTools is to solve this error: | 2007-10-25 11:42:57,765 ERROR [STDERR] javax.xml.ws.soap.SOAPFaultException: WSDLReader:None of the matching operations for soapAction http://actcenters.com/ALMVTC/action/Schedule.getCandidateScheduleData could successfully load the incoming request. Potential typemapper problem | 2007-10-25 11:42:57,765 ERROR [STDERR] at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:69) | 2007-10-25 11:42:57,765 ERROR [STDERR] at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException(SOAP11BindingJAXWS.java:109) | 2007-10-25 11:42:57,765 ERROR [STDERR] at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:553) | 2007-10-25 11:42:57,765 ERROR [STDERR] at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:371) | 2007-10-25 11:42:57,765 ERROR [STDERR] at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243) | 2007-10-25 11:42:57,765 ERROR [STDERR] at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164) | 2007-10-25 11:42:57,765 ERROR [STDERR] at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150) | 2007-10-25 11:42:57,765 ERROR [STDERR] at $Proxy60.getCandidateScheduleData(Unknown Source) | which is called via: | public Event perform(HttpServletRequest request) throws HTMLActionException { | logger.info("entering perform"); | String sEnrollId = "0", | sSSN = "-4069", | sClientPWD ="123", | sClientId = "042"; | | String req = ""+ | ""+ | "" + sEnrollId + ""+ | "" + sSSN + "" + | ""; | | ALMVTC alm = new ALMVTC(); | ScheduleSoapPort ssp = alm.getScheduleSoapPort(); | | Object resp = null; | | try { | resp = ssp.getCandidateScheduleData((Object)req); | //resp = ssp.serviceCheck(req); | logger.info("the response for the candidates:"+resp); | } catch (Exception e) { | // TODO Auto-generated catch block | e.printStackTrace(); | } | | logger.info("leaving perform"); | return null; | } | Not sure if this will help but the full stack trace can be found here: http://graham-king.blogspot.com/2007/10/full-stack-trace-for-jboss-mssql.html View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098990#4098990 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098990 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WSTools to generate jaxrpc-mapping.xml file?
Can anyone help me solve this problem? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099462#4099462 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099462 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: JBoss-4.0.5.GA with JBossWS-native-2.0.0.GA to IIS
Is JBOSS the problem? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100747#4100747 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100747 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - JBoss, WebServices and Microsoft SOAP3.0
Is there a specific version of JBoss and the jwsdp that must be used to be compatible with Microsoft's SOAP Toolkit 3.0? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100801#4100801 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100801 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user