This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Cloud Application Architecture Patterns: Designing, Building, and Modernizing for the Cloud and have Kyle Brown, Bobby Woolf and Joseph Yodor on-line!
See this thread for details.

John Molitor

Ranch Hand
+ Follow
since Nov 08, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by John Molitor

using an ant task to run wsdl2Java. Runs fine on desktop using Sun's 1.6 jdk. Get this error running on AIX (IBM Java 6). Any ideas?
FATAL ERROR: 'com.ibm.xylem.types.TagType'
[java] org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: javax.xml.transform.TransformerConfigurationException: com.ibm.xtq.xslt.jaxp.HandledRuntimeException: com.ibm.xylem.types.TagType
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
[java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[java] at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[java] at java.lang.reflect.Method.invoke(Method.java:611)
[java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[java] at org.apache.tools.ant.Task.perform(Task.java:348)
[java] at org.apache.tools.ant.Target.execute(Target.java:390)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:411)
[java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
[java] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
[java] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
[java] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[java] at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[java] at java.lang.reflect.Method.invoke(Method.java:611)
[java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[java] at org.apache.tools.ant.Task.perform(Task.java:348)
[java] at org.apache.tools.ant.Target.execute(Target.java:390)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:411)
[java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
[java] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
[java] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
[java] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[java] at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[java] at java.lang.reflect.Method.invoke(Method.java:611)
[java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[java] at org.apache.tools.ant.Task.perform(Task.java:348)
[java] at org.apache.tools.ant.Target.execute(Target.java:390)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:411)
[java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
[java] at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
[java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
[java] at org.apache.tools.ant.Main.runBuild(Main.java:801)
[java] at org.apache.tools.ant.Main.startAnt(Main.java:218)
[java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
[java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: javax.xml.transform.TransformerConfigurationException: com.ibm.xtq.xslt.jaxp.HandledRuntimeException: com.ibm.xylem.types.TagType
[java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
[java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
[java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[java] at java.lang.reflect.Method.invoke(Method.java:611)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
[java] ... 46 more
[java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: javax.xml.transform.TransformerConfigurationException: com.ibm.xtq.xslt.jaxp.HandledRuntimeException: com.ibm.xylem.types.TagType
[java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:534)
[java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:260)
[java] ... 54 more
[java] Caused by: javax.xml.transform.TransformerConfigurationException: com.ibm.xtq.xslt.jaxp.HandledRuntimeException: com.ibm.xylem.types.TagType
[java] at com.ibm.xtq.xslt.jaxp.AbstractTransformerFactory.newTransformer(Unknown Source)
[java] at org.apache.axis2.util.XSLTTemplateProcessor.parse(XSLTTemplateProcessor.java:146)
[java] at org.apache.axis2.util.XSLTTemplateProcessor.parse(XSLTTemplateProcessor.java:117)
[java] at org.apache.axis2.wsdl.codegen.writer.FileWriter.parse(FileWriter.java:175)
[java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeFile(AxisServiceBasedMultiLanguageEmitter.java:2567)
[java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeCallBackHandlers(AxisServiceBasedMultiLanguageEmitter.java:1128)
[java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:497)
[java] ... 55 more
[java] Caused by: com.ibm.xtq.xslt.jaxp.HandledRuntimeException: com.ibm.xylem.types.TagType
[java] at com.ibm.xtq.xslt.jaxp.ConfigurationErrorHandler.report(Unknown Source)
[java] at com.ibm.xtq.utils.Reporter.report(Unknown Source)
[java] at com.ibm.xtq.ast.parsers.xslt.XSLTParser.reportError(Unknown Source)
[java] at com.ibm.xtq.xslt.drivers.XSLTCompiler.compile(Unknown Source)
[java] at com.ibm.xtq.xslt.jaxp.compiler.TransformerFactoryImpl.createTemplates(Unknown Source)
[java] ... 62 more
I need to open folder on a network share when a user clicks on a link. Users will be using IE7, IE8. The users need the ability to then open, delete, and add files to the share. Any suggestions on how to best do this? Thanks
I am having issues opening tables that have a CLOB as a column in the row. The CLOB's size, on an average is 140K. SQL Develper just chokes and hangs when I click on the data tab. It will eventually come back, but as soon as I scroll or click on a value, it locks up again. Any recommendations on how to fix this issue? I have tried using TOAD and it works well.
16 years ago
I am running Eclipse 3.2, and getting java.lang.OutOfMemory errors. After a few errors eclEmma dumps out with no coverage data. Any thoughts? Here's the dump:
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
java.lang.RuntimeException: EMMA failed to dump coverage data: java.lang.OutOfMemoryError
at com.vladium.emma.rt.RTCoverageDataPersister.dumpCoverageData(RTCoverageDataPersister.java:71)
at com.vladium.emma.rt.RTExitHook.run(RTExitHook.java:32)
at java.lang.Thread.run(Thread.java:534)
OutOfMemoryError occured on server
OutOfMemoryError occured on server
16 years ago
Any idea on what is causing this issue? I'm sure I'm just not seeing something.
I have an MDB that is processing a message. The MDB <trans-attribute>Required</trans-attribute>. In my onMessage method I am calling an EJB, that is configured to have the <trans-attribute>Required</trans-attribute>. It appears that when I get a rollback, I am getting:

Jun 16, 2008 1:05:21 PM GMT - <Error> [JTA] Xid=BEA1-7C654A4460DCF18EDD60(1071138940),Status=Rolled back. [Reason=Unknown],HeuristicErrorCode=XA_HEURHAZ,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=30,XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResou (1) Jun 16, 2008 1:05:25 PM GMT

HEre is my config sniipet:
<JDBCConnectionPool Name="oracleOciPool" Targets="@GUI_CLUSTER_NAME@,@BATCH_CLUSTER_NAME@"
InitialCapacity="@DB_POOL_MIN@" MaxCapacity="@DB_POOL_MAX@" CapacityIncrement="@DB_POOL_INCREMENT@"
LoginDelaySeconds="1" ShrinkingEnabled="@DB_POOL_SHRINKING@"
ShrinkPeriodMinutes="30" RefreshMinutes="30"
TestConnectionsOnCreate="true" TestConnectionsOnReserve="false"
TestFrequencySeconds="900" TestTableName="dual"
StatementCacheSize="100"
Properties="user=@DB_USER@;password=@DB_PASSWORD@;protocol=oci"
DriverName="oracle.jdbc.driver.OracleDriver" URL="jdbc racle ci:@@DB_INSTANCE@"/>
<JDBCTxDataSource Name="oraclePool" JNDIName="oraclePool" PoolName="oracleOciPool"
Targets="@GUI_CLUSTER_NAME@,@BATCH_CLUSTER_NAME@" EnableTwoPhaseCommit="@TWO_PHASE_COMMIT@"/>
<JMSConnectionFactory JNDIName="ConnectionFactory" Name="ConnectionFactory" Targets="@BATCH_CLUSTER_NAME@"
DefaultDeliveryMode="Non-Persistent" UserTransactionsEnabled="true" XAConnectionFactoryEnabled="true"/>
<JMSServer Name="@JMS_SERVER_NAME@" Targets="@BATCH_MANAGED_SERVER_1_NAME@">
Thanks.
Sorry I don't remember for sure. I know I had an issue with driver jar (ojdbc14.jar).
config.xml snippet:
Properties="user=@DB_USER@;password=@DB_PASSWORD@;protocol=oci8"
DriverName="oracle.jdbc.driver.OracleDriver" URL="jdbc:oracle:oci8:@@DB_INSTANCE@"/>

startweblogic snippet:
set PRE_CLASSPATH=ojdbc14.jar

I think there was also an issue with the protocol/url, need to use oci8.
Hope this helps.
Yes we got our issue resolved. Thanks.
The error is actually occurring in the ejbc task.
17 years ago
When I run this using the source set to 1.4, everything runs fine. When I switch to 1.5, I get a Illegal Name : com/jones/car/CarEJBBean ClassNotFoundException. Any ideas?
17 years ago
I am getting this error in my struts application and I am at a loss on what to do. Any suggestions?
2008-02-01 15:30:06,536 ExecuteThread: '9' for queue: 'default' ERROR org.apache.struts.taglib.tiles.InsertTag - ServletException in '/jsp/layout/otherScreensLayout.jsp': No form found under 'dummyForm' in locale 'en_US' javax.servlet.ServletException: No form found under 'dummyForm' in locale 'en_US'
at weblogic.servlet.jsp.PageContextImpl.handlePageException(Ljava/lang/Throwable V(PageContextImpl.java:323)
17 years ago
Thank you , thank you, and thank you!
17 years ago
Currently, we have a process that uses the commons-file upload library to pull a .cvs file into our webapp. There is currently a parser that was written to parse the .csv file. Can fileupload upload an .xls file, and then use poi to reconstruct the file and process the data in the cells by row?
17 years ago
I am looking to do two things.
1. My webapp has an upload link, which when clicked, the user supplies a file name. Then they click upload, and I want my app to pick up the file from the specified location, which in most cases is the user's PC.
2. Once I have the excel file uploaded, I need to process the data from the file inot my application, for storage in a database.

Thanks for all the responses, but I am still not clear on what I need to do.
17 years ago
I have a situation where a user fills in an excel spreadsheet and then we need to upload it from their PC into our java welboigc app running on AIX. I have heard commons file upload bantered about, requiring changing the xls to a csv document (don't want the user to have to do this). I also have heard POI mentioned as well, but not sure if POI can upload from a PC to my web app. Any suggestions?
17 years ago
What makes your book stand out from the crowd of the endless number of java programming books?
17 years ago