You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by John Reitano <jr...@perquia.com> on 2001/03/12 23:28:25 UTC

java compilation error

Hi,

I'm getting java compilation error when trying to create a peer app with
Turbine for the first time.  The values in newapp.props are:

turbine.app.name=internal
turbine.app.view=velocity
#turbine.app.type=simple
turbine.app.type=peer
target.package=com.perquia.web.internal
target.directory=com/perquia/web/internal

and the error message is:

    [javac] Compiling 4 source files to
/home/john/tdk/webapps/internal/WEB-INF/classes
    [javac]
/home/john/tdk/webapps/internal/WEB-INF/src/java/com/perquia/web/internal/mo
dules/actions/SQL.java:65: Class com.perquia.web.internal.om.Rdf not found
in import.
    [javac] import com.perquia.web.internal.om.Rdf;
    [javac]        ^

Do I need to set my CLASSPATH to fix this problem?

Thanks,
John


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


RE: java compilation error

Posted by John Reitano <jr...@perquia.com>.
hi jason,

i'm using ORACLE.  the only solution I know is to omit the drop table
statement the first time through and then put it back on subsequent calls.

-john

> -----Original Message-----
> From: jvanzyl [mailto:jvanzyl]On Behalf Of Jason van Zyl
> Sent: Monday, March 12, 2001 6:38 PM
> To: turbine-user@jakarta.apache.org
> Subject: Re: java compilation error
>
>
> John Reitano wrote:
>
> > woops.  i left out init.  that fixed the problem.  thank you
> for pointing it
> > out!
> >
> > i now have another problem--maybe you could point me in the
> right direction.
> > it's that the database scripts always fail the first time i
> create an app --
> > since they try to drop non-existent tables.  is there a way to
> make the sql
> > scripts check for the table before dropping them?
> >
> > i can also post this question to the list.
> >
> >
>
> Which database are you using? I have tried the scripts with postgres and
> mysql and they work fine the first time. I have not tried
> hypersonic myself.
>
> The database scripts are generated from templates, so if you are having
> particular problems with a database and you know a solution then send
> it my way and I will incorporate the fixes into the templates that
> generate the scripts for database creation.
>
>
> --
> jvz.
>
> Jason van Zyl
> jvanzyl@periapt.com
>
> http://jakarta.apache.org/velocity
> http://jakarta.apache.org/turbine
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: java compilation error

Posted by Jason van Zyl <jv...@periapt.com>.
John Reitano wrote:

> woops.  i left out init.  that fixed the problem.  thank you for pointing it
> out!
>
> i now have another problem--maybe you could point me in the right direction.
> it's that the database scripts always fail the first time i create an app --
> since they try to drop non-existent tables.  is there a way to make the sql
> scripts check for the table before dropping them?
>
> i can also post this question to the list.
>
>

Which database are you using? I have tried the scripts with postgres and
mysql and they work fine the first time. I have not tried hypersonic myself.

The database scripts are generated from templates, so if you are having
particular problems with a database and you know a solution then send
it my way and I will incorporate the fixes into the templates that
generate the scripts for database creation.


--
jvz.

Jason van Zyl
jvanzyl@periapt.com

http://jakarta.apache.org/velocity
http://jakarta.apache.org/turbine




---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


RE: java compilation error

Posted by John Reitano <jr...@perquia.com>.
woops.  i left out init.  that fixed the problem.  thank you for pointing it
out!

i now have another problem--maybe you could point me in the right direction.
it's that the database scripts always fail the first time i create an app --
since they try to drop non-existent tables.  is there a way to make the sql
scripts check for the table before dropping them?

i can also post this question to the list.

thanks,
john


> -----Original Message-----
> From: jvanzyl [mailto:jvanzyl]On Behalf Of Jason van Zyl
> Sent: Monday, March 12, 2001 3:05 PM
> To: turbine-user@jakarta.apache.org
> Subject: Re: java compilation error
>
>
> John Reitano wrote:
>
> > Hi,
> >
> > I'm getting java compilation error when trying to create a peer app with
> > Turbine for the first time.  The values in newapp.props are:
> >
> > turbine.app.name=internal
> > turbine.app.view=velocity
> > #turbine.app.type=simple
> > turbine.app.type=peer
> > target.package=com.perquia.web.internal
> > target.directory=com/perquia/web/internal
>
> Did you run
>
> /build-project.sh init
>
> After the app was generated?
>
> If so then there is a problem with the TDK and I will  fix it. Can
> you let me know what you did exactly so I can track the problem
> down. Thanks.
>
>
>
> >
> >
> > and the error message is:
> >
> >     [javac] Compiling 4 source files to
> > /home/john/tdk/webapps/internal/WEB-INF/classes
> >     [javac]
> >
> /home/john/tdk/webapps/internal/WEB-INF/src/java/com/perquia/web/i
> nternal/mo
> > dules/actions/SQL.java:65: Class
> com.perquia.web.internal.om.Rdf not found
> > in import.
> >     [javac] import com.perquia.web.internal.om.Rdf;
> >     [javac]        ^
> >
> > Do I need to set my CLASSPATH to fix this problem?
> >
> > Thanks,
> > John
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
> --
> jvz.
>
> Jason van Zyl
> jvanzyl@periapt.com
>
> http://jakarta.apache.org/velocity
> http://jakarta.apache.org/turbine
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: java compilation error

Posted by Jason van Zyl <jv...@periapt.com>.
John Reitano wrote:

> Hi,
>
> I'm getting java compilation error when trying to create a peer app with
> Turbine for the first time.  The values in newapp.props are:
>
> turbine.app.name=internal
> turbine.app.view=velocity
> #turbine.app.type=simple
> turbine.app.type=peer
> target.package=com.perquia.web.internal
> target.directory=com/perquia/web/internal

Did you run

./build-project.sh init

After the app was generated?

If so then there is a problem with the TDK and I will  fix it. Can
you let me know what you did exactly so I can track the problem
down. Thanks.



>
>
> and the error message is:
>
>     [javac] Compiling 4 source files to
> /home/john/tdk/webapps/internal/WEB-INF/classes
>     [javac]
> /home/john/tdk/webapps/internal/WEB-INF/src/java/com/perquia/web/internal/mo
> dules/actions/SQL.java:65: Class com.perquia.web.internal.om.Rdf not found
> in import.
>     [javac] import com.perquia.web.internal.om.Rdf;
>     [javac]        ^
>
> Do I need to set my CLASSPATH to fix this problem?
>
> Thanks,
> John
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org

--
jvz.

Jason van Zyl
jvanzyl@periapt.com

http://jakarta.apache.org/velocity
http://jakarta.apache.org/turbine




---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org