Problem with Java Studio Creator and Tomcat Server

Hi Gays ,

I have problem:

here is the error from tomcat 5

com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: java.lang.RuntimeException: java.sql.SQLException: statement handle not executed: getMetaData

com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java: 601)

com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.ja va:316)

com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87 )

com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)

com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)

javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)

com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)

if i develop application on my pc ( java studio creator with sun apps bundlled) is working perfectly,

but i migrated application to Tomcat Server ( Database the same - Oracle 10 g)

i can't show value ( as text) from datasoruce ( is in SessionBean1)

(Category-.>Subcat->Items->details( url from items table[items.jsp])

this is a working url "/faces/testpage.jsp?auk_id=31 "

( working with sun apps server , but not on Tomcat 5)

below prerender method in details.java and fragment of details.jsp

--

public void prerender() {

try {

String idauk = (getExternalContext().getRequestParameterMap().get("auk_id").toString());

System.out.println("wartosc auk_id " + idauk);

if (idauk != null) {

getSessionBean1().getDetailsRowSet().setObject(1,idauk);

}

getSessionBean1().getDetailsDataProvider().refresh();

details.jsp

xml version="1.0" encoding="UTF-8"?>

<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">

<jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>

<f:view>

<ui:page binding="#{testpage.page1}" id="page1">

<ui:html binding="#{testpage.html1}" id="html1">

<ui:head binding="#{testpage.head1}" id="head1">

<ui:link binding="#{testpage.link1}" id="link1" url="/resources/stylesheet.css"/>

</ui:head>

<ui:body binding="#{testpage.body1}" id="body1" style="-rave-layout: grid">

<ui:form binding="#{testpage.form1}" id="form1">

<ui:staticText binding="#{testpage.staticText1}" id="staticText1" style="position: absolute; left: 120px; top: 96px" text="#{SessionBean1.testDataProvider.value['Name']}"/>

</ui:form>

</ui:body>

</ui:html>

</ui:page>

</f:view>

</jsp:root>

Help People ! Any Ideas I'm stuck, why is working with Sun Servet but not with Tomcat and only just thing ?

Thanks in advance for helping me to resolve the night problem :)

[3064 byte] By [kuka_poland] at [2007-11-26 10:20:13]
# 1

1. Using Oracle 10g with JSC sucks:)

For Oracle database use Oracle JDeveloper:)

2. This eroor looks like a problem with tomcat configuration.

3. Mi硂 縠 w Polsce z Creatorem meczy si?te?kto?poza mn?)

Pozdrawiam:) Mo縠 za硂縴my jaki?klub uzytkownik體?

Mariusz

sapere@vp.pl

Mariuszek at 2007-7-7 2:18:21 > top of Java-index,Development Tools,Java Tools...
# 2

Hi I found solution, i puted on the page a table -component (with brand new automaticly created dataprovider) , then i set properties visible= false for table, and now I can bind statictext with database field and deploy on tomcat server .

But i think it is not a elegant solution in page source i habe noused-code.

Have Any another Ideas. HELP PEOPLE !!!!

Mariuszek: I use Creator.because right now I can see result of my job and i can qickly change ideas ,

I tried with JDeveleper but i did'nt find this functionality (wich version do you prefered ?) , unfortunately i have to deploy my application on Tomcat. This is my study project, and i make this to become a Master of Techinal Univeristy ;), Deadline time is 30 th September :(

greetings

kuka_poland at 2007-7-7 2:18:21 > top of Java-index,Development Tools,Java Tools...
# 3
I don't believe the error is in the part you've shown us.PS. I believe "Hi gays" in your first message was a mistake ;)
mglowacki at 2007-7-7 2:18:21 > top of Java-index,Development Tools,Java Tools...
# 4

Hi Everone !

First of all

Yes, it was a mistake :)

Why don't you belive me :) ?

I'm on the installing glassfish now, I try with this server :P

It must be something wrong between Tomcat and DataProvider and row-values for single fields.I don't know why, - I'm rookie with JSF and JSC too :)

whatever i try now with glassfish - with the same code ouf course.

Will see ;)

greetings

P.S Sorry for my english :)

kuka_poland at 2007-7-7 2:18:21 > top of Java-index,Development Tools,Java Tools...