Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Fwd: Re: Jetty 9 - Building the setUID Module v1.0.2

Hey there,

got it working now. The Maven Project setup was not correct. Attached is the respective patch.

Best regards,
René
 



-------- Original-Nachricht --------
Betreff: Re: [jetty-users] Jetty 9 - Building the setUID Module v1.0.2
Datum: Thu, 04 Sep 2014 09:06:18 +0200
Von: René Hartwig <Rene.Hartwig@xxxxxxxxxxxxxxxxxxxx>
Antwort an: JETTY user mailing list <jetty-users@xxxxxxxxxxx>
An: JETTY user mailing list <jetty-users@xxxxxxxxxxx>


Hi Jesse,

ok thanks - the full debug log is attached. The Java Version is the latest (1.8.0_20) Java 8 Version from Oracle.
I'll have a look at the config and see what I can adjust - according to the log this is the only error occuring. This is the content of the target directory:

What confuses me most, is the fact, that there's only this one c-file - where are the others, the included h-file for instance (I am not very familiar with c and compiling it with maven) ?


Best regards,
René


Mit freundlichen Grüßen / Best regards,

René Hartwig
Senior Developer

Befine Solutions AG - The Cryptshare Company
Bebelstraße 17
79108 Freiburg
Germany

Tel: +49 (0) 761 38913 0
Fax: +49 (0) 761 38913 115


E-Mail: Rene.Hartwig@xxxxxxxxxxxxxxxxxxxx
Internet: http://www.cryptshare.com

=========================================================================

Your attachments are too large or too confidential for e-mail?
Get to know Cryptshare!

http://www.cryptshare.com

=========================================================================



Amtsgericht Freiburg HRB 6144
Vorstand Mark Forrest, Dominik Lehr
Aufsichtsratsvorsitzender Thilo Braun


 

Am 03.09.2014 17:56, schrieb Jesse McConnell:
Make sure you are using a sane java version (as in a recent one) and attach the whole build log....can't tell what is going on with what is provided.

typically issues here are related to different operating systems with things in different locations and I suspect there is an error somewhere else in the process that isn't failing the build correctly, these sorts of things are notoriously not that portable 

I suspect if it is that then you'll need to add a profile for the operating system and adjust things accordingly...and then you are welcome to contribute that back :)

jesse

--
jesse mcconnell
jesse.mcconnell@xxxxxxxxx


On Wed, Sep 3, 2014 at 8:02 AM, René Hartwig <Rene.Hartwig@xxxxxxxxxxxxxxxxxxxx> wrote:
Hi there,

I just upgraded Jetty from v.8.1.7 to 9.0.4 which is working fine so far. Additionally I had the setUID module included with the two c-libs for 32bit and 64bit openSuSE systems. Now that I changed to v.9 using the pre-compiled module doesn't seem to work - I' am getting an UnsatisfiedLinkError as this fellow here:
http://dev.eclipse.org/mhonarc/lists/jetty-users/msg04497.html

So I tried to compile it by myself as suggested in your documentation (http://www.eclipse.org/jetty/documentation/9.2.2.v20140723/setuid.html - I know, its not the same v9 version - I am going to correct that). Unfortunately I do not get it compiled and am wondering what's wrong. As far as I understand it, this is a problem with the project setup.
I checked out the respective Maven project (http://git.eclipse.org/c/jetty/org.eclipse.jetty.toolchain.git/) and am now trying to build it using Maven. When doing so, I am getting the following error:

[INFO] Configured Artifact: org.eclipse.jetty.toolchain.setuid:jetty-setuid-native:1.0.2:jar
[INFO] Unpacking /opt/dev/projects/jetty-toolchain/jetty-setuid/jetty-setuid-native/target/classes to /opt/dev/projects/jetty-toolchain/jetty-setuid/libsetuid-linux/target/generated with includ
es  and excludes
org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
        at org.codehaus.plexus.archiver.AbstractUnArchiver.validate(AbstractUnArchiver.java:174)
        at org.codehaus.plexus.archiver.AbstractUnArchiver.extract(AbstractUnArchiver.java:107)
        at org.apache.maven.plugin.dependency.AbstractDependencyMojo.unpack(AbstractDependencyMojo.java:258)
        at org.apache.maven.plugin.dependency.fromConfiguration.UnpackMojo.unpackArtifact(UnpackMojo.java:117)
        at org.apache.maven.plugin.dependency.fromConfiguration.UnpackMojo.execute(UnpackMojo.java:94)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)



Any help would be much appreciated.

Thanks and regards,
René

--

Mit freundlichen Grüßen / Best regards,

René Hartwig
Senior Developer

Befine Solutions AG - The Cryptshare Company
Bebelstraße 17
79108 Freiburg
Germany

Tel: +49 (0) 761 38913 0
Fax: +49 (0) 761 38913 115


E-Mail: Rene.Hartwig@xxxxxxxxxxxxxxxxxxxx
Internet: http://www.cryptshare.com

=========================================================================

Your attachments are too large or too confidential for e-mail?
Get to know Cryptshare!

http://www.cryptshare.com

=========================================================================



Amtsgericht Freiburg HRB 6144
Vorstand Mark Forrest, Dominik Lehr
Aufsichtsratsvorsitzender Thilo Braun


 


_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users



_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users



>From 816080ff5695302a1ef77f79b87fa7fc5333ff09 Mon Sep 17 00:00:00 2001
From: Simon Erhardt <simon.erhardt@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 12 Sep 2014 11:01:48 +0200
Subject: [PATCH] Repaired the configuration of native-maven-plugin for javah
 in libsetuid-linux.

---
 jetty-setuid/libsetuid-linux/pom.xml | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/jetty-setuid/libsetuid-linux/pom.xml b/jetty-setuid/libsetuid-linux/pom.xml
index 3a2a25d..b87c173 100644
--- a/jetty-setuid/libsetuid-linux/pom.xml
+++ b/jetty-setuid/libsetuid-linux/pom.xml
@@ -44,6 +44,10 @@
         <extensions>true</extensions>
         <configuration>
           <javahOS>linux</javahOS>
+	  <javahClassNames>
+	    <className>org.eclipse.jetty.setuid.SetUID</className>
+	  </javahClassNames>
+	  <javahOutputDirectory>target/generated</javahOutputDirectory>
           <compilerStartOptions>
             <compilerStartOption>-fPIC -O</compilerStartOption>
           </compilerStartOptions>
@@ -67,12 +71,6 @@
           <execution>
             <id>javah</id>
             <phase>generate-sources</phase>
-            <configuration>
-              <classNames>
-                <className>org.eclipse.jetty.setuid.SetUID</className>
-              </classNames>
-              <outputDirectory>target/generated</outputDirectory>
-            </configuration>
             <goals>
               <goal>javah</goal>
             </goals>
-- 
1.8.1.2

Back to the top