Kim,

On 25.06.2012, at 12:11, Kim Quang Đặng <[email protected]> wrote:

> I not found "/lib" folder in Felix home folder ( /opt/matterhorn/felix ). And 
> I try create folder "/lib" , and re-run 
> export MAVEN_OPTS='-Xms256m -Xmx960m -XX:PermSize=64m -XX:MaxPermSize=256m'
> cd /opt/matterhorn/matterhorn_1.3.0
> mvn clean install -DdeployTo=/opt/matterhorn/felix/matterhorn
> 
> , but nothing to change, i still get error sample. :( 

so even after running mvn clean install 
-DdeployTo=/opt/matterhorn/felix/matterhorn there are no jar files in 
/opt/matterhorn/felix/matterhorn and also not in /opt/matterhorn/felix/lib?

> When step run Matterhorn
> 
> sh /opt/matterhorn/felix/bin/start_matterhorn.sh 
> 
> then I get the error message:
> 
> Auto-properties start: file:lib/org.apache.felix.scr-1.6.0.jar 
> (org.osgi.framework.BundleException: Unable to cache bundle: 
> file:lib/org.apache.felix.scr-1.6.0.jar - java.io.FileNotFoundException: 
> lib/org.apache.felix.scr-1.6.0.jar (No such file or directory))
> Auto-properties start: file:lib/org.apache.felix.eventadmin-1.2.12.jar 
> (org.osgi.framework.BundleException: Unable to cache bundle: 
> file:lib/org.apache.felix.eventadmin-1.2.12.jar - 
> java.io.FileNotFoundException: lib/org.apache.felix.eventadmin-1.2.12.jar (No 
> such file or directory))
> Auto-properties start: file:lib/org.apache.felix.metatype-1.0.4.jar 
> (org.osgi.framework.BundleException: Unable to cache bundle: 
> file:lib/org.apache.felix.metatype-1.0.4.jar - java.io.FileNotFoundException: 
> lib/org.apache.felix.metatype-1.0.4.jar (No such file or directory))
> Auto-properties start: file:lib/org.apache.felix.http.bundle-2.0.4.jar 
> (org.osgi.framework.BundleException: Unable to cache bundle: 
> file:lib/org.apache.felix.http.bundle-2.0.4.jar - 
> java.io.FileNotFoundException: lib/org.apache.felix.http.bundle-2.0.4.jar (No 
> such file or directory))
> ...

if the libraries in question are there, then it's time to check one more thing: 
take a look at conf/system.properties and see how these libraries are 
referenced.  Most likely, it will look something like:

 file:lib/org.springframework.osgi.core-1.2.1.jar

which means, that the references are relative to Felix' working directory, 
which in turn requires you to start Matterhorn from the Felix directory itself. 
To be 100% sure, either add a "cd /opt/matterhorn/felix" to the start script, 
or change the paths in system.properties to file:/opt/matterhorn/felix/lib/....

Tobias
_______________________________________________
Matterhorn-users mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn-users

Reply via email to