You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Matthew Woodworth <wo...@cisco.com> on 2002/04/24 18:54:50 UTC

FW: newbie sample app question (2nd try)

Friends,

I sent this last night but I didn't get any answers.  Maybe my email was too
long?  I'm going to try to shorten it a bit with hopes that somebody can
help me.

Thanks in advance,
Matt W.

-----Original Message-----
From: Matthew Woodworth [mailto:woodworth@cisco.com]
Sent: Tuesday, April 23, 2002 5:15 PM
To: turbine-user@jakarta.apache.org
Subject: newbie sample app question


Friends,

Today is my first day with Turbine and I'm trying to get the sample app
working.  I think that my problem has something to do with getting the
database set up correctly.

In my build.properties file I made these changes:  (real values replaced
with "private")
I'm pretty sure this is the only change I made to the default values.
========================================================
database = oracle

databaseUrl = jdbc:oracle:oci8:@private
databaseDriver = oracle.jdbc.driver.OracleDriver
databaseUser = private
databasePassword = private
databaseHost = private.cisco.com
========================================================

When I run ant init I get this in my velocity log:
========================================================
<snipped various successful messages>
Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : initialization starting.
Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : adding VMs from VM
library template : VM_global_library.vm
Tue Apr 23 16:44:16 EDT 2002  [error] ResourceManager : unable to find
resource 'VM_global_library.vm' in any resource loader.
Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : error using  VM library
template VM_global_library.vm :
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'VM_global_library.vm'
Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : allowInline = true : VMs
can be defined inline in templates
Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : allowInlineToOverride =
false : VMs defined inline may NOT replace previous VM definitions
Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : allowInlineLocal = false
: VMs defined inline will be  global in scope if allowed.
Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : messages on  : VM system
will output logging messages
Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : initialization complete.
Tue Apr 23 16:44:16 EDT 2002   [info] Velocity successfully started.
Tue Apr 23 16:44:16 EDT 2002   [info] ResourceManager : found
sql/db-init/Control.vm with loader
org.apache.velocity.runtime.resource.loader.FileResourceLoader
Tue Apr 23 16:44:16 EDT 2002  [error] ResourceManager : unable to find
resource 'sql/db-init/oracle/windows.vm' in any resource loader.
Tue Apr 23 16:44:16 EDT 2002  [error] Method parse threw exception for
reference $generator in template sql/db-init/Control.vm at  [2,1]
========================================================

Another symptom is that all the code in the org.mycompany.newapp.om package
wasn't generated.  That caused the three .java files that import those
classes to fail to compile.

Can anybody help me?

Thanks in advance,
Matt W.

PS  A quick google search shows me that several people have had this problem
before.  However, I didn't see any answers.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Resolved: RE: FW: newbie sample app question (2nd try)

Posted by Matthew Woodworth <wo...@cisco.com>.
Friends,

I eventually found the answer to my problems here:
http://www.mail-archive.com/turbine-user@jakarta.apache.org/msg03033.html  I
found this yesterday but it took me awhile to know my way around Turbine
well enough to use the answer.

Thank you for your help.
Matt W.

PS  So there is no chance that the sample app will work "out of the box"
with Oracle.  Maybe we can improve the project to include the windows.vm
file for Oracle.  Especially if even a blank file will work.

-----Original Message-----
From: Brian Lawler [mailto:bplawler@pacbell.net]
Sent: Wednesday, April 24, 2002 6:10 PM
To: Turbine Users List
Subject: Re: FW: newbie sample app question (2nd try)


Does "ant init" complete successfully?  If not, can you send the output of
the build process itself?

On Wed, 24 Apr 2002 12:54:50 -0400
Matthew Woodworth <wo...@cisco.com> wrote:

> Friends,
>
> I sent this last night but I didn't get any answers.  Maybe my email was
too
> long?  I'm going to try to shorten it a bit with hopes that somebody can
> help me.
>
> Thanks in advance,
> Matt W.
>
> -----Original Message-----
> From: Matthew Woodworth [mailto:woodworth@cisco.com]
> Sent: Tuesday, April 23, 2002 5:15 PM
> To: turbine-user@jakarta.apache.org
> Subject: newbie sample app question
>
>
> Friends,
>
> Today is my first day with Turbine and I'm trying to get the sample app
> working.  I think that my problem has something to do with getting the
> database set up correctly.
>
> In my build.properties file I made these changes:  (real values replaced
> with "private")
> I'm pretty sure this is the only change I made to the default values.
> ========================================================
> database = oracle
>
> databaseUrl = jdbc:oracle:oci8:@private
> databaseDriver = oracle.jdbc.driver.OracleDriver
> databaseUser = private
> databasePassword = private
> databaseHost = private.cisco.com
> ========================================================
>
> When I run ant init I get this in my velocity log:
> ========================================================
> <snipped various successful messages>
> Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : initialization
starting.
> Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : adding VMs from VM
> library template : VM_global_library.vm
> Tue Apr 23 16:44:16 EDT 2002  [error] ResourceManager : unable to find
> resource 'VM_global_library.vm' in any resource loader.
> Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : error using  VM
library
> template VM_global_library.vm :
> org.apache.velocity.exception.ResourceNotFoundException: Unable to find
> resource 'VM_global_library.vm'
> Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : allowInline = true :
VMs
> can be defined inline in templates
> Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : allowInlineToOverride
=
> false : VMs defined inline may NOT replace previous VM definitions
> Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : allowInlineLocal =
false
> : VMs defined inline will be  global in scope if allowed.
> Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : messages on  : VM
system
> will output logging messages
> Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : initialization
complete.
> Tue Apr 23 16:44:16 EDT 2002   [info] Velocity successfully started.
> Tue Apr 23 16:44:16 EDT 2002   [info] ResourceManager : found
> sql/db-init/Control.vm with loader
> org.apache.velocity.runtime.resource.loader.FileResourceLoader
> Tue Apr 23 16:44:16 EDT 2002  [error] ResourceManager : unable to find
> resource 'sql/db-init/oracle/windows.vm' in any resource loader.
> Tue Apr 23 16:44:16 EDT 2002  [error] Method parse threw exception for
> reference $generator in template sql/db-init/Control.vm at  [2,1]
> ========================================================
>
> Another symptom is that all the code in the org.mycompany.newapp.om
package
> wasn't generated.  That caused the three .java files that import those
> classes to fail to compile.
>
> Can anybody help me?
>
> Thanks in advance,
> Matt W.
>
> PS  A quick google search shows me that several people have had this
problem
> before.  However, I didn't see any answers.
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
Brian Lawler


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: FW: newbie sample app question (2nd try)

Posted by Brian Lawler <bp...@pacbell.net>.
Does "ant init" complete successfully?  If not, can you send the output of
the build process itself?

On Wed, 24 Apr 2002 12:54:50 -0400
Matthew Woodworth <wo...@cisco.com> wrote:

> Friends,
> 
> I sent this last night but I didn't get any answers.  Maybe my email was too
> long?  I'm going to try to shorten it a bit with hopes that somebody can
> help me.
> 
> Thanks in advance,
> Matt W.
> 
> -----Original Message-----
> From: Matthew Woodworth [mailto:woodworth@cisco.com]
> Sent: Tuesday, April 23, 2002 5:15 PM
> To: turbine-user@jakarta.apache.org
> Subject: newbie sample app question
> 
> 
> Friends,
> 
> Today is my first day with Turbine and I'm trying to get the sample app
> working.  I think that my problem has something to do with getting the
> database set up correctly.
> 
> In my build.properties file I made these changes:  (real values replaced
> with "private")
> I'm pretty sure this is the only change I made to the default values.
> ========================================================
> database = oracle
> 
> databaseUrl = jdbc:oracle:oci8:@private
> databaseDriver = oracle.jdbc.driver.OracleDriver
> databaseUser = private
> databasePassword = private
> databaseHost = private.cisco.com
> ========================================================
> 
> When I run ant init I get this in my velocity log:
> ========================================================
> <snipped various successful messages>
> Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : initialization starting.
> Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : adding VMs from VM
> library template : VM_global_library.vm
> Tue Apr 23 16:44:16 EDT 2002  [error] ResourceManager : unable to find
> resource 'VM_global_library.vm' in any resource loader.
> Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : error using  VM library
> template VM_global_library.vm :
> org.apache.velocity.exception.ResourceNotFoundException: Unable to find
> resource 'VM_global_library.vm'
> Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : allowInline = true : VMs
> can be defined inline in templates
> Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : allowInlineToOverride =
> false : VMs defined inline may NOT replace previous VM definitions
> Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : allowInlineLocal = false
> : VMs defined inline will be  global in scope if allowed.
> Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : messages on  : VM system
> will output logging messages
> Tue Apr 23 16:44:16 EDT 2002   [info] Velocimacro : initialization complete.
> Tue Apr 23 16:44:16 EDT 2002   [info] Velocity successfully started.
> Tue Apr 23 16:44:16 EDT 2002   [info] ResourceManager : found
> sql/db-init/Control.vm with loader
> org.apache.velocity.runtime.resource.loader.FileResourceLoader
> Tue Apr 23 16:44:16 EDT 2002  [error] ResourceManager : unable to find
> resource 'sql/db-init/oracle/windows.vm' in any resource loader.
> Tue Apr 23 16:44:16 EDT 2002  [error] Method parse threw exception for
> reference $generator in template sql/db-init/Control.vm at  [2,1]
> ========================================================
> 
> Another symptom is that all the code in the org.mycompany.newapp.om package
> wasn't generated.  That caused the three .java files that import those
> classes to fail to compile.
> 
> Can anybody help me?
> 
> Thanks in advance,
> Matt W.
> 
> PS  A quick google search shows me that several people have had this problem
> before.  However, I didn't see any answers.
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>


-- 
Brian Lawler


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>