You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by beyaNet Consultancy <be...@ntlworld.com> on 2004/01/16 20:53:53 UTC
missing jar file/s
Hi,
I wondered whether you could shine some light on this issue for me. I
have built an action which retrieves some data from a database, and am
now trying to compile the java file. I get the following error message:
GetUserDetail.java:4: package org.apache.avalon.framework.componet does
not exist
import org.apache.avalon.framework.componet.ComponentException;
^
GetUserDetail.java:5: package org.apache.avalon.framework.componet does
not exist
import org.apache.avalon.framework.componet.ComponentManager;
^
GetUserDetail.java:6: package org.apache.avalon.framework.componet does
not exist
import org.apache.avalon.framework.componet.ComponentSelector;
These are my definitions:
import org.apache.avalon.framework.componet.ComponentException;
import org.apache.avalon.framework.componet.ComponentManager;
import org.apache.avalon.framework.componet.ComponentSelector;
import org.apache.avalon.framework.activity.Disposable;
Now I know that this means that the packages I am pointing to do not
exist, but in my buildscript I have specified where the .jar file
lives, so i believe:
#!/bin/sh
echo
echo "Build Starting......."
echo "--------------------------"
export CATALINA_HOME="/Library/Tomcat"
export JAR_DIR=$CATALINA_HOME/webapps/cocoon/web-inf/lib
export CLASS_DIR=$CATALINA_HOME/webapps/cocoon/web-inf/classes
export CP=$JAR_DIR/excalibur-datasource-1.1.1.jar
export CP=$CP:$JAR_DIR/avalon-framework-4.1.4.jar
export CP=$CP:$JAR_DIR/cocoon-2.1.3.jar
export CP=$CP:$JAR_DIR/logkit-1.2.jar
echo "now compiling java doc..."
echo $CP
javac -d $CLASS_DIR -classpath $CP:$CLASSPATH $1
My question is this, if ComponentException, ComponentManager,
ComponentSelector, and Disposable do not live within
avalon-framework-4.1.4.jar, where do they live?
I am using cocoon version 2.1.3
Andrew
Re: missing jar file/s
Posted by Jorg Heymans <jh...@domek.be>.
>
> These are my definitions:
>
> import org.apache.avalon.framework.componet.ComponentException;
-------------------------------------^^^^^^^^
Looks like you're trying to import componet instead of component
> import org.apache.avalon.framework.componet.ComponentManager;
> import org.apache.avalon.framework.componet.ComponentSelector;
> import org.apache.avalon.framework.activity.Disposable;
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: missing jar file/s
Posted by beyaNet Consultancy <be...@ntlworld.com>.
Hi,
thanks for helping me so quickly. I am still getting the following
errors:
Build Starting.......
--------------------------
now compiling java doc...
/Library/Tomcat/webapps/cocoon/web-inf/lib/avalon-excalibur-vm12
-20020705.jar:/Library/Tomcat/webapps/cocoon/web-inf/lib/avalon-
framework-4.1.4.jar:/Library/Tomcat/webapps/cocoon/web-inf/lib/cocoon
-2.1.3.jar:/Library/Tomcat/webapps/cocoon/web-inf/lib/logkit-1.2.jar:/
Library/Tomcat/webapps/cocoon/web-inf/lib/excalibur-datasource
-1.1.1.jar
GetUserDetail.java:4: cannot resolve symbol
symbol : class ServiceException
location: package component
import org.apache.avalon.framework.component.ServiceException;
^
GetUserDetail.java:5: cannot resolve symbol
symbol : class ServiceManager
location: package component
import org.apache.avalon.framework.component.ServiceManager;
^
GetUserDetail.java:6: cannot resolve symbol
symbol : class ServiceSelector
location: package component
import org.apache.avalon.framework.component.ServiceSelector;
^
GetUserDetail.java:30: cannot resolve symbol
symbol : class ComponentSelector
location: class test.GetUserDetail
protected ComponentSelector dbselector;
^
GetUserDetail.java:31: cannot resolve symbol
symbol : class ComponentManager
location: class test.GetUserDetail
protected ComponentManager manager;
^
GetUserDetail.java:33: cannot resolve symbol
symbol : class ComponentManager
location: class test.GetUserDetail
public void compose(ComponentManager manager) throws
ComponentException
^
GetUserDetail.java:33: cannot resolve symbol
symbol : class ComponentException
location: class test.GetUserDetail
public void compose(ComponentManager manager) throws
ComponentException
^
GetUserDetail.java:39: cannot resolve symbol
symbol : class ComponentException
location: class test.GetUserDetail
protected final DataSourceComponent getDataSource(String pool)
throws ComponentException
^
GetUserDetail.java:35: cannot resolve symbol
symbol : class ComponentSelector
location: class test.GetUserDetail
this.dbselector = (ComponentSelector)
^
9 errors
Andrew
On 16 Jan 2004, at 20:15, Geoff Howard wrote:
> beyaNet Consultancy wrote:
>
>> Hi,
>> I wondered whether you could shine some light on this issue for me. I
>> have built an action which retrieves some data from a database, and
>> am now trying to compile the java file. I get the following error
>> message:
>> GetUserDetail.java:4: package org.apache.avalon.framework.componet
>> does not exist
>> import org.apache.avalon.framework.componet.ComponentException;
>> ^
>
> you misspelled "component" in all your packages in the avalon imports.
>
> if you copied this off a tutorial or something, let us/them know so it
> can be fixed.
>
> You know, eclipse never spells wrong.... ;)
>
> Geoff
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: missing jar file/s
Posted by Geoff Howard <co...@leverageweb.com>.
beyaNet Consultancy wrote:
> Hi,
>
> I wondered whether you could shine some light on this issue for me. I
> have built an action which retrieves some data from a database, and am
> now trying to compile the java file. I get the following error message:
>
> GetUserDetail.java:4: package org.apache.avalon.framework.componet does
> not exist
> import org.apache.avalon.framework.componet.ComponentException;
> ^
you misspelled "component" in all your packages in the avalon imports.
if you copied this off a tutorial or something, let us/them know so it
can be fixed.
You know, eclipse never spells wrong.... ;)
Geoff
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: missing jar file/s
Posted by Joerg Heinicke <jo...@gmx.de>.
On 16.01.2004 22:16, beyaNet Consultancy wrote:
> Joerg,
> it seems that the following are not depreciated:
>
>> import org.apache.avalon.framework.componet.ComponentException;
>> import org.apache.avalon.framework.componet.ComponentManager;
>> import org.apache.avalon.framework.componet.ComponentSelector;
They are: http://avalon.apache.org/framework/api/index.html.
The Service stuff is in another package, sorry for missing to mention
that: org.apache.avalon.framework.service.ServiceManager and so on.
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: missing jar file/s
Posted by beyaNet Consultancy <be...@ntlworld.com>.
Joerg,
it seems that the following are not depreciated:
> import org.apache.avalon.framework.componet.ComponentException;
> import org.apache.avalon.framework.componet.ComponentManager;
> import org.apache.avalon.framework.componet.ComponentSelector;
All works well now. Thanks for all of your help
Andrew
On 16 Jan 2004, at 20:12, Joerg Heinicke wrote:
>> import org.apache.avalon.framework.componet.ComponentException;
>> import org.apache.avalon.framework.componet.ComponentManager;
>> import org.apache.avalon.framework.componet.ComponentSelector;
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: missing jar file/s
Posted by Joerg Heinicke <jo...@gmx.de>.
On 16.01.2004 20:53, beyaNet Consultancy wrote:
> import org.apache.avalon.framework.componet.ComponentException;
> import org.apache.avalon.framework.componet.ComponentManager;
> import org.apache.avalon.framework.componet.ComponentSelector;
Furthermore the component stuff is deprecated and you should replace it
with ServiceException, ServiceManager and ServiceSelector.
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: missing jar file/s
Posted by Tony Collen <co...@umn.edu>.
beyaNet Consultancy wrote:
> Hi,
>
> I wondered whether you could shine some light on this issue for me. I
> have built an action which retrieves some data from a database, and am
> now trying to compile the java file. I get the following error message:
>
> GetUserDetail.java:4: package org.apache.avalon.framework.componet does
> not exist
> import org.apache.avalon.framework.componet.ComponentException;
> ^
> GetUserDetail.java:5: package org.apache.avalon.framework.componet does
> not exist
> import org.apache.avalon.framework.componet.ComponentManager;
> ^
> GetUserDetail.java:6: package org.apache.avalon.framework.componet does
> not exist
> import org.apache.avalon.framework.componet.ComponentSelector;
>
> These are my definitions:
>
> import org.apache.avalon.framework.componet.ComponentException;
^^^^^^^^
> import org.apache.avalon.framework.componet.ComponentManager;
^^^^^^^^
> import org.apache.avalon.framework.componet.ComponentSelector;
^^^^^^^^
> import org.apache.avalon.framework.activity.Disposable;
"component" vs "componet"
Tony
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org