You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Peter Courcoux <pe...@courcouxhall.co.uk> on 2001/11/17 00:37:05 UTC

App deployment on Tomcat-3.2.1

Hi all,

I am trying to deploy my first tdk2.1 generated app onto a running tomcat
servlet container. The app runs OK in the tdk catalina container. On
tomcat the app seems to find templates and, as it doesn't complain,
I presume screen action classes. However, I get an exception thrown
whenever an 'action' class is required. The extract from the log follows.
I have two questions. Firstly, could anyone point me in the right
direction of some documentation which may help solve this or give me some
pointers.

Secondly, images are not being found from the /images directory.
I'm sure I've seen something about this somewhere but I can't find it now.
Where do image files go?

All help gratefully appreciated.

TIA

Peter Courcoux

Log Extract begins.



[Fri Nov 16 23:24:25 GMT 2001] -- ERROR -- Turbine.handleException:

	Requested Action not found: AssLoginAction
	Turbine looked in the following modules.packages path:
	[org.netproz.members.modules, org.apache.turbine.flux.modules,
org.apache.turbine.modules]

[Fri Nov 16 23:24:25 GMT 2001] -- ERROR --
	Exception:  java.lang.ClassNotFoundException:

	Requested Action not found: AssLoginAction
	Turbine looked in the following modules.packages path:
	[org.netproz.members.modules, org.apache.turbine.flux.modules,
org.apache.turbine.modules]

	Stack Trace follows:
	java.lang.ClassNotFoundException:

	Requested Action not found: AssLoginAction
	Turbine looked in the following modules.packages path:
	[org.netproz.members.modules, org.apache.turbine.flux.modules,
org.apache.turbine.modules]

	at
org.apache.turbine.modules.ActionLoader.getInstance(ActionLoader.java:174)
	at
org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
	at
org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:143)
	at org.apache.turbine.modules.Page.build(Page.java:90)
	at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:123)
	at org.apache.turbine.Turbine.doGet(Turbine.java:447)
	at org.apache.turbine.Turbine.doPost(Turbine.java:537)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java:286)
	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:539)



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


Re: [torque] Bug in OM Generation

Posted by Kelvin Tan <ke...@relevanz.com>.
Forgot to add that this was found using the current CVS build of Torque.

----- Original Message -----
From: Kelvin Tan <ke...@relevanz.com>
To: Turbine Users List <tu...@jakarta.apache.org>
Sent: Saturday, November 17, 2001 8:33 PM
Subject: [torque] Bug in OM Generation


> Think I've found one...
>
> In the schema file, I'm mapping one local reference key as a foreign key
> twice (I don't even know if I'm supposed to. I'm just trying it out)
>
> <column name="foo" ...>
>
> <foreign-key foreignTable="barTable">
>   <reference local="foo" foreign="bar">
> </foreign-key>
> <foreign-key foreignTable="barTable">
>   <reference local="foo" foreign="bar2">
> </foreign-key>
>
> Running ant builds fine. SQL is generated and OM is generated. However
when
> I attempt to compile, the compiler complains. Specifically, with only
> foreign-key of bar, and only foreign-key of bar2, everything is ok. But
when
> I add both bar and bar2 as foreign keys, the BaseBar2 object doesn't
> compile.
>
> Examining the code, the problem <b>seems</b> to be in the setId(StringKey
v)
> method, a snippet from the actual code:
>
>               // update associated AclEntry
>               if (collAclEntrys != null )
>               {
>                   for (int i=0; i<collAclEntrys.size(); i++)
>                   {
>                       ((AclEntry)collAclEntrys.get(i))
>                           .set${colFK.JavaName}(v);
>                   }
>               }
>
> The offender is where Velocity was supposed to fill in the value for
> $colFK.JavaName but didn't.
>
> I'd write a test-case, but the darned test-cases don't even pass when
> everything is working (Win9x)...Will help with anything else though.
>
> Regards,
> Kelvin
>
>
>
>
>
>
> --
> 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>


[torque] Bug in OM Generation

Posted by Kelvin Tan <ke...@relevanz.com>.
Think I've found one...

In the schema file, I'm mapping one local reference key as a foreign key
twice (I don't even know if I'm supposed to. I'm just trying it out)

<column name="foo" ...>

<foreign-key foreignTable="barTable">
  <reference local="foo" foreign="bar">
</foreign-key>
<foreign-key foreignTable="barTable">
  <reference local="foo" foreign="bar2">
</foreign-key>

Running ant builds fine. SQL is generated and OM is generated. However when
I attempt to compile, the compiler complains. Specifically, with only
foreign-key of bar, and only foreign-key of bar2, everything is ok. But when
I add both bar and bar2 as foreign keys, the BaseBar2 object doesn't
compile.

Examining the code, the problem <b>seems</b> to be in the setId(StringKey v)
method, a snippet from the actual code:

              // update associated AclEntry
              if (collAclEntrys != null )
              {
                  for (int i=0; i<collAclEntrys.size(); i++)
                  {
                      ((AclEntry)collAclEntrys.get(i))
                          .set${colFK.JavaName}(v);
                  }
              }

The offender is where Velocity was supposed to fill in the value for
$colFK.JavaName but didn't.

I'd write a test-case, but the darned test-cases don't even pass when
everything is working (Win9x)...Will help with anything else though.

Regards,
Kelvin






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


Re: Torque Performance

Posted by Jason van Zyl <jv...@zenplex.com>.
On 11/16/01 11:09 PM, "Kelvin Tan" <ke...@relevanz.com> wrote:

> Hi,
> 
> Does anyone have any experience to share with regards to the performance of
> Torque, compared to other OR frameworks (Castor, Osage, Toplink, Cocobase
> come to mind), as well as with native SQL code?

Don't know yet. We are working on a testbed at the moment and as part of the
testbed some simple benchmarks will be added.
 
> Though Torque has only recently been decoupled (and not even formally so)

There is no release, no. Not until the testbed is finished (I feel like I'm
repeating myself).

> from Turbine, I understand there's a reasonably healthy group of developers
> who use it stand-alone...so any experience would be appreciated.
> 
> If any benchmarks have been done, that'd be great too...
> 
> Thanks
> 
> Regards,
> Kelvin
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

-- 

jvz.

Jason van Zyl

http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons



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


Torque Performance

Posted by Kelvin Tan <ke...@relevanz.com>.
Hi,

Does anyone have any experience to share with regards to the performance of
Torque, compared to other OR frameworks (Castor, Osage, Toplink, Cocobase
come to mind), as well as with native SQL code?

Though Torque has only recently been decoupled (and not even formally so)
from Turbine, I understand there's a reasonably healthy group of developers
who use it stand-alone...so any experience would be appreciated.

If any benchmarks have been done, that'd be great too...

Thanks

Regards,
Kelvin


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