I have installed a custom service, A modified LuceneSearchService.

Now the problem is that when standalone testing with junit, all works 
100%, Initialisation, indexing and searching, just as expected, however 
the fun starts when when trying to get it to run in the web container 
under a normal Turbine app.

I get an InstantiationException, saying that the class could not be 
found, and to check that I have installed my classes and jars.  Now the 
thing is that I use the same TurbineResource.properties file when 
testing, all jars are under WEB-INF/lib, all classes are under WEB-
INF/classes. I also have a couple of pull tools that are working under 
the web container so, so turbine it is finding these AOK.

My modules.packages is set to the root of my package path

module.packages=mysouthwest,org.apache.turbine.flux.modules

My service resides in the mysouthwest.services.search package
while my pulltools reside in mysouthwest.tools

Do I have to put the full package path for my service ? Seeing that the 
pull tools are found I would think not.

I am currently using the tdk2.2-b1, of which I have developed and 
deployed previous apps successfully, although not a service, do I need 
to upgrade?

this is from the Junit Test
[Sat Sep 21 22:54:03 WST 2002] -- INFO -- Start Initializing service 
(early): SearchService
[Sat Sep 21 22:54:03 WST 2002] -- INFO -- Finish Initializing service 
(early): SearchService


this is from webb app under Tomcat4.0
[Sat Sep 21 23:48:19 WST 2002] -- INFO -- Start Initializing service 
(early): SearchService
[Sat Sep 21 23:48:19 WST 2002] -- ERROR -- 
        Exception:  org.apache.turbine.services.InstantiationException: 
Failed to instantiate service SearchService
        Stack Trace follows:
        java.lang.ClassNotFoundException: 
mysouthwest.services.search.TurbineSearchService
        at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1406)
        at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1254)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:120)
        at 
org.apache.turbine.services.BaseInitableBroker.getInitableInstance
(BaseInitableBroker.java:258)
rethrown as org.apache.turbine.services.InstantiationException: Class 
mysouthwest.services.search.TurbineSearchService is unavailable. Check 
your jars and classes.


regards,

Stephen...





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to