geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Alheiros (JIRA)" <j...@apache.org>
Subject [jira] Updated: (GERONIMO-3104) Fails silently after a non-successful JBoss 4 datasource import.
Date Tue, 17 Apr 2007 16:24:15 GMT

     [ https://issues.apache.org/jira/browse/GERONIMO-3104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Alheiros updated GERONIMO-3104:
--------------------------------------

    Description: 
I tried to import a JBoss 4 oracle-ds.xml file and after selected one and clicked next, nothing
happened (not even an error message was shown).
I'm running Geronimo version with Tomcat.

Looking at the log file, I could realize that an error occurred when parsing the oracle-ds.xml
file:

The oracle-ds.xml file content follows bellow:
<pre>
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
	<local-tx-datasource>
		<jndi-name>test01</jndi-name>
		<connection-url>jdbc:oracle:thin:@test01:1521:sid</connection-url>
		<driver-class>oracle.jdbc.OracleDriver</driver-class>
		<user-name>username</user-name>
		<password>password</password>
		<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
		<!--pooling parameters-->
		<min-pool-size>2</min-pool-size>
		<max-pool-size>2</max-pool-size>
		<blocking-timeout-millis>1000</blocking-timeout-millis>
		<idle-timeout-minutes>1</idle-timeout-minutes>
		<new-connection-sql>select 1 as newConnectionQuery from dual</new-connection-sql>
		<check-valid-connection-sql>select 1 as getFromPoolQuery from dual</check-valid-connection-sql>
		<set-tx-query-timeout/>
		<query-timeout>300</query-timeout>
	</local-tx-datasource>
</datasources>
</pre>
The exception I got in the geronimo.out file follows bellow:
<pre>
java.io.IOException
        at org.apache.geronimo.converter.jboss.JBoss4DatabaseConverter.convert(JBoss4DatabaseConverter.java:61)
        at org.apache.geronimo.console.databasemanager.wizard.DatabasePoolPortlet.processImport(DatabasePoolPortlet.java:501)
        at org.apache.geronimo.console.databasemanager.wizard.DatabasePoolPortlet.processImportUpload(DatabasePoolPortlet.java:484)
        at org.apache.geronimo.console.databasemanager.wizard.DatabasePoolPortlet.processAction(DatabasePoolPortlet.java:250)
        at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:229)
        at org.apache.pluto.core.PortletServlet.doPost(PortletServlet.java:163)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
        at org.apache.pluto.core.PortletServlet.service(PortletServlet.java:153)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
        at org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:120)
        at org.apache.pluto.invoker.impl.PortletInvokerImpl.action(PortletInvokerImpl.java:68)
        at org.apache.pluto.PortletContainerImpl.processPortletAction(PortletContainerImpl.java:164)
        at org.apache.pluto.portalImpl.core.PortletContainerWrapperImpl.processPortletAction(PortletContainerWrapperImpl.java:82)
        at org.apache.pluto.portalImpl.Servlet.doGet(Servlet.java:227)
        at org.apache.pluto.portalImpl.Servlet.doPost(Servlet.java:267)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
        at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:338)
        at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:517)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
        at java.lang.Thread.run(Thread.java:613)
Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at org.apache.geronimo.converter.jboss.JBoss4DatabaseConverter.convert(JBoss4DatabaseConverter.java:55)
        ... 38 more
</pre>

  was:
I tried to import a JBoss 4 oracle-ds.xml file and after selected one and clicked next, nothing
happened (not even an error message was shown).
I'm running Geronimo version with Tomcat.

Looking at the log file, I could realize that an error occurred when parsing the oracle-ds.xml
file:

The oracle-ds.xml file content follows bellow:
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
	<local-tx-datasource>
		<jndi-name>test01</jndi-name>
		<connection-url>jdbc:oracle:thin:@test01:1521:sid</connection-url>
		<driver-class>oracle.jdbc.OracleDriver</driver-class>
		<user-name>username</user-name>
		<password>password</password>
		<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
		<!--pooling parameters-->
		<min-pool-size>2</min-pool-size>
		<max-pool-size>2</max-pool-size>
		<blocking-timeout-millis>1000</blocking-timeout-millis>
		<idle-timeout-minutes>1</idle-timeout-minutes>
		<new-connection-sql>select 1 as newConnectionQuery from dual</new-connection-sql>
		<check-valid-connection-sql>select 1 as getFromPoolQuery from dual</check-valid-connection-sql>
		<set-tx-query-timeout/>
		<query-timeout>300</query-timeout>
	</local-tx-datasource>
</datasources>

The exception I got in the geronimo.out file follows bellow:

java.io.IOException
        at org.apache.geronimo.converter.jboss.JBoss4DatabaseConverter.convert(JBoss4DatabaseConverter.java:61)
        at org.apache.geronimo.console.databasemanager.wizard.DatabasePoolPortlet.processImport(DatabasePoolPortlet.java:501)
        at org.apache.geronimo.console.databasemanager.wizard.DatabasePoolPortlet.processImportUpload(DatabasePoolPortlet.java:484)
        at org.apache.geronimo.console.databasemanager.wizard.DatabasePoolPortlet.processAction(DatabasePoolPortlet.java:250)
        at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:229)
        at org.apache.pluto.core.PortletServlet.doPost(PortletServlet.java:163)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
        at org.apache.pluto.core.PortletServlet.service(PortletServlet.java:153)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
        at org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:120)
        at org.apache.pluto.invoker.impl.PortletInvokerImpl.action(PortletInvokerImpl.java:68)
        at org.apache.pluto.PortletContainerImpl.processPortletAction(PortletContainerImpl.java:164)
        at org.apache.pluto.portalImpl.core.PortletContainerWrapperImpl.processPortletAction(PortletContainerWrapperImpl.java:82)
        at org.apache.pluto.portalImpl.Servlet.doGet(Servlet.java:227)
        at org.apache.pluto.portalImpl.Servlet.doPost(Servlet.java:267)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
        at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:338)
        at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:517)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
        at java.lang.Thread.run(Thread.java:613)
Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at org.apache.geronimo.converter.jboss.JBoss4DatabaseConverter.convert(JBoss4DatabaseConverter.java:55)
        ... 38 more



> Fails silently after a non-successful JBoss 4 datasource import.
> ----------------------------------------------------------------
>
>                 Key: GERONIMO-3104
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3104
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console
>    Affects Versions: 2.0-M3
>            Reporter: Daniel Alheiros
>
> I tried to import a JBoss 4 oracle-ds.xml file and after selected one and clicked next,
nothing happened (not even an error message was shown).
> I'm running Geronimo version with Tomcat.
> Looking at the log file, I could realize that an error occurred when parsing the oracle-ds.xml
file:
> The oracle-ds.xml file content follows bellow:
> <pre>
> <?xml version="1.0" encoding="UTF-8"?>
> <datasources>
> 	<local-tx-datasource>
> 		<jndi-name>test01</jndi-name>
> 		<connection-url>jdbc:oracle:thin:@test01:1521:sid</connection-url>
> 		<driver-class>oracle.jdbc.OracleDriver</driver-class>
> 		<user-name>username</user-name>
> 		<password>password</password>
> 		<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
> 		<!--pooling parameters-->
> 		<min-pool-size>2</min-pool-size>
> 		<max-pool-size>2</max-pool-size>
> 		<blocking-timeout-millis>1000</blocking-timeout-millis>
> 		<idle-timeout-minutes>1</idle-timeout-minutes>
> 		<new-connection-sql>select 1 as newConnectionQuery from dual</new-connection-sql>
> 		<check-valid-connection-sql>select 1 as getFromPoolQuery from dual</check-valid-connection-sql>
> 		<set-tx-query-timeout/>
> 		<query-timeout>300</query-timeout>
> 	</local-tx-datasource>
> </datasources>
> </pre>
> The exception I got in the geronimo.out file follows bellow:
> <pre>
> java.io.IOException
>         at org.apache.geronimo.converter.jboss.JBoss4DatabaseConverter.convert(JBoss4DatabaseConverter.java:61)
>         at org.apache.geronimo.console.databasemanager.wizard.DatabasePoolPortlet.processImport(DatabasePoolPortlet.java:501)
>         at org.apache.geronimo.console.databasemanager.wizard.DatabasePoolPortlet.processImportUpload(DatabasePoolPortlet.java:484)
>         at org.apache.geronimo.console.databasemanager.wizard.DatabasePoolPortlet.processAction(DatabasePoolPortlet.java:250)
>         at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:229)
>         at org.apache.pluto.core.PortletServlet.doPost(PortletServlet.java:163)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>         at org.apache.pluto.core.PortletServlet.service(PortletServlet.java:153)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
>         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
>         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
>         at org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:120)
>         at org.apache.pluto.invoker.impl.PortletInvokerImpl.action(PortletInvokerImpl.java:68)
>         at org.apache.pluto.PortletContainerImpl.processPortletAction(PortletContainerImpl.java:164)
>         at org.apache.pluto.portalImpl.core.PortletContainerWrapperImpl.processPortletAction(PortletContainerWrapperImpl.java:82)
>         at org.apache.pluto.portalImpl.Servlet.doGet(Servlet.java:227)
>         at org.apache.pluto.portalImpl.Servlet.doPost(Servlet.java:267)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>         at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
>         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
>         at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:338)
>         at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:517)
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
>         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
>         at java.lang.Thread.run(Thread.java:613)
> Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
>         at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
>         at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
>         at org.apache.geronimo.converter.jboss.JBoss4DatabaseConverter.convert(JBoss4DatabaseConverter.java:55)
>         ... 38 more
> </pre>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message