iAS and Pet Store not working
We've installed iAS 6.0 SP2 and are trying to establish Oracle
connectivity using the Java Pet Store.
I've followed the instructions step by step (registered JDBC drivers,
modified XML, registered application, etc.,
etc., and have even rebuilt/redeployed the application.
When I try to access the first page, I get the message "Document
contained no data" (kjs log follows).
Any clues as to what is happening? I wonder if my XML definitions for
Oracle, etc. are wrong. BTW, the
sample "fortune" application works fine, so I know iAS is relatively
fine.
Thanks for any pointers.
[05/Jul/2001 10:14:00:5] info: --
[05/Jul/2001 10:14:00:5] info: webTierEntryPoint: init
[05/Jul/2001 10:14:00:5] info: --
[05/Jul/2001 10:14:00:5] error: Exception: SERVLET-execution_failed:
Error in executing servlet webTierEntryPoint: javax.xml.parsers
..FactoryConfigurationError:
com.sun.xml.parser.DocumentBuilderFactoryImpl
Exception Stack Trace:
javax.xml.parsers.FactoryConfigurationError:
com.sun.xml.parser.DocumentBuilderFactoryImpl
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Error.<init>(Error.java:41)
at
javax.xml.parsers.FactoryConfigurationError.<init>(FactoryConfigurationEr ror.java:68)
at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.jav a:80)
at
com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.loadDocument(Scre enFlowXmlDAO.java:67)
at
com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.loadScreenDefinit ionMappings(ScreenFlowXmlDAO.java:99)
at
com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowManager.init(Compiled
Code)
at
com.sun.j2ee.blueprints.petstore.control.web.MainServlet.getScreenFlowManager(M ainServlet.java:96)
at
com.sun.j2ee.blueprints.petstore.control.web.MainServlet.init(MainServlet.java: 37)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.netscape.server.servlet.servletrunner.ServletRepository.loadServlet(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletRepository.createInstance(Unkn own
Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.createServletInfo(Compi led
Code)
at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Compiled
Code)
at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
[05/Jul/2001 10:14:00:5] error: APPLOGIC-caught_exception: Caught
Exception:
java.lang.ClassCastException:
javax.xml.parsers.FactoryConfigurationError
at
com.netscape.server.servlet.servletrunner.ServletRunner.reportError(Compiled
Code)
at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Compiled
Code)
at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
Thomas J. Cozzolino
Director, Advanced Technology and Media Lab
+1 610.834.9696 X-2027
TCozzolino@Answerthink.com
[4140 byte] By [
] at [2007-11-25 4:49:05]

Hi,
I have deployed petstore application and established connectivity with Oracle using type 2 driver, successfully on
iAS 6.0 SP2. Its true that you need to register the JDBC drivers and two modified XML files. One thing I am not clear
that have you modified any (servlet or any other, except those two XML files.) code? Since it is a sample appplication,
I suggest you to make no modifications to the code.
I observed that FactoryConfigurationError is thrown when a problem with configuration with the Parser Factories
exists, when the class of a parser factory specified in the system properties cannot be found or instantiated. Could you
clarify whether any changes you made. If no changes it is supposed to work just fine.
Thanks
Rakesh
"Thomas J. Cozzolino" wrote:
> We've installed iAS 6.0 SP2 and are trying to establish Oracle
> connectivity using the Java Pet Store.
> I've followed the instructions step by step (registered JDBC drivers,
> modified XML, registered application, etc.,
> etc., and have even rebuilt/redeployed the application.
>
> When I try to access the first page, I get the message "Document
> contained no data" (kjs log follows).
> Any clues as to what is happening? I wonder if my XML definitions for
> Oracle, etc. are wrong. BTW, the
> sample "fortune" application works fine, so I know iAS is relatively
> fine.
>
> Thanks for any pointers.
>
> [05/Jul/2001 10:14:00:5] info: --
> [05/Jul/2001 10:14:00:5] info: webTierEntryPoint: init
> [05/Jul/2001 10:14:00:5] info: --
> [05/Jul/2001 10:14:00:5] error: Exception: SERVLET-execution_failed:
> Error in executing servlet webTierEntryPoint: javax.xml.parsers
> .FactoryConfigurationError:
> com.sun.xml.parser.DocumentBuilderFactoryImpl
> Exception Stack Trace:
> javax.xml.parsers.FactoryConfigurationError:
> com.sun.xml.parser.DocumentBuilderFactoryImpl
> at java.lang.Throwable.fillInStackTrace(Native Method)
> at java.lang.Throwable.fillInStackTrace(Compiled Code)
> at java.lang.Throwable.<init>(Compiled Code)
> at java.lang.Error.<init>(Error.java:41)
> at
> javax.xml.parsers.FactoryConfigurationError.<init>(FactoryConfigurationEr ror.java:68)
>
> at
> javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.jav a:80)
>
> at
> com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.loadDocument(Scre enFlowXmlDAO.java:67)
>
> at
> com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.loadScreenDefinit ionMappings(ScreenFlowXmlDAO.java:99)
>
> at
> com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowManager.init(Compiled
> Code)
> at
> com.sun.j2ee.blueprints.petstore.control.web.MainServlet.getScreenFlowManager(M ainServlet.java:96)
>
> at
> com.sun.j2ee.blueprints.petstore.control.web.MainServlet.init(MainServlet.java: 37)
>
> at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> at
> com.netscape.server.servlet.servletrunner.ServletRepository.loadServlet(Unknown
> Source)
> at
> com.netscape.server.servlet.servletrunner.ServletRepository.createInstance(Unkn own
> Source)
> at
> com.netscape.server.servlet.servletrunner.ServletRunner.createServletInfo(Compi led
> Code)
> at
> com.netscape.server.servlet.servletrunner.ServletRunner.execute(Compiled
> Code)
> at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
> at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
> at com.kivasoft.thread.ThreadBasic.run(Native Method)
> at com.kivasoft.thread.ThreadBasic.run(Native Method)
> at com.kivasoft.thread.ThreadBasic.run(Native Method)
> at com.kivasoft.thread.ThreadBasic.run(Native Method)
> at com.kivasoft.thread.ThreadBasic.run(Compiled Code)
> at java.lang.Thread.run(Compiled Code)
>
> [05/Jul/2001 10:14:00:5] error: APPLOGIC-caught_exception: Caught
> Exception:
> java.lang.ClassCastException:
> javax.xml.parsers.FactoryConfigurationError
> at
> com.netscape.server.servlet.servletrunner.ServletRunner.reportError(Compiled
> Code)
> at
> com.netscape.server.servlet.servletrunner.ServletRunner.execute(Compiled
> Code)
> at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
> at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
> at com.kivasoft.thread.ThreadBasic.run(Native Method)
> at com.kivasoft.thread.ThreadBasic.run(Native Method)
> at com.kivasoft.thread.ThreadBasic.run(Native Method)
> at com.kivasoft.thread.ThreadBasic.run(Native Method)
> at com.kivasoft.thread.ThreadBasic.run(Compiled Code)
> at java.lang.Thread.run(Compiled Code)
>
>
>
> Thomas J. Cozzolino
> Director, Advanced Technology and Media Lab
> +1 610.834.9696 X-2027
> TCozzolino@Answerthink.com
at 2007-6-29 8:54:28 >
