--
You received this message because you are subscribed to the Google Groups "Codehaus Cargo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codehaus-carg...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codehaus-cargo/f0963417-30b5-4ac8-9489-70be31254965n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codehaus-cargo/f64c9741-b35a-4ff6-925a-76d77fbe9801n%40googlegroups.com.
That's weird, I'm using java 17, and also set JAVA_HOME to openjdk17, as below:[centos@localhost uat_services]$ java -version
openjdk version "17.0.2" 2022-01-18
OpenJDK Runtime Environment (build 17.0.2+8-86)
OpenJDK 64-Bit Server VM (build 17.0.2+8-86, mixed mode, sharing)
[centos@localhost uat_services]$ echo $JAVA_HOME
/home/centos/apps/jdk-17.0.2About using classpath inside the dependency, I don't build the shared script/properties files to a jar, so I don't know how to set it as a folder.Is it possible for using classpath dependency with folder?Thanks,Truong Nguyen.On Fri, Jul 14, 2023 at 2:32 PM S. Ali Tokmen <nos...@alishomepage.com> wrote:Hi TruongUnsupported class file major version 61 means the JVM you're using is too old, 61 is the bytecode version for Java 17.I'm unsure if you saw my other note, https://codehaus-cargo.github.io/cargo/Application+Classpath.html might be easier that the -cp options.
On 14 Jul 2023 08:52, Nguyen Xuan Truong <nxtru...@gmail.com> wrote:
Hi Ali,I use the START_JVMARGS as below:
<container>
<timeout>2980000</timeout>
<containerId>jetty10x</containerId>
<artifactInstaller>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-distribution</artifactId>
<version>10.0.0.beta1</version>
</artifactInstaller>
<systemProperties>
<greenmail.auth.disabled>true</greenmail.auth.disabled>
<START_JVMARGS>-cp ${basedir}/target/test-classes/ -cp ${basedir}/src/robot/shared/classes/</START_JVMARGS>
</systemProperties>
</container>But I got the error about "Unsupported class file major version 61".I also attached the full stack trace for the location tag and classpath in the attachment.Please check them and let me know if you found something.Thanks,Truong Nguyen.On Fri, Jul 14, 2023 at 12:34 PM S. Ali Tokmen <nos...@alishomepage.com> wrote:Hi Truong
That is an interesting use case! Firat time I see the usage of paths in dependency elements, the typical has been to use JARs. Can you please share the full stack trace?
Anyhow, to your case: you could also use the
GeneralPropertySet.JVMARGS
andGeneralPropertySet.START_JVMARGS
container properties with a-classpath
(or-cp
) argument to have the associated classpath elements added to the container JVM's classpath.Regarda
To view this discussion on the web visit https://groups.google.com/d/msgid/codehaus-cargo/f1ac9df8-eaab-4871-b43d-54a264042a2en%40googlegroups.com.
--Impossible = I'm possible!!!--Impossible = I'm possible!!!
To view this discussion on the web visit https://groups.google.com/d/msgid/codehaus-cargo/303802dd-679a-4846-83ae-1e760f3a3896%40email.android.com.
Hi Nguyen
This is indeed simpler, attached is my fix proposal.
Can younalso run a mvn -version and check what JDK is used?
Regards
S. Ali Tokmen https://ali.tokmen.com/ https://contact.ali.tokmen.com/
To view this discussion on the web visit https://groups.google.com/d/msgid/codehaus-cargo/CAP-L5uEB%2Bi71e682wj5uy99chb_SqsWOg%2BRkoxfuLO-NnGvStw%40mail.gmail.com.
Hi Truong
Thank you for the detailed stack trace.
I noticed that you are selecting Jetty 10 beta 1 - Which is over 3 years old, and is a first beta (hence full of bugs). Do you really want to pursue that way, may I suggest to change it to 10.0.15 (latest version)?
Regards
S. Ali Tokmen https://ali.tokmen.com/ https://contact.ali.tokmen.com/
Hi Ali,
Can you also run a mvn -version and check what JDK is used?
To view this discussion on the web visit https://groups.google.com/d/msgid/codehaus-cargo/d68324c8-ec08-4ff2-990f-cd75b8c3569cn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codehaus-cargo/3e500e54-cbd2-43a1-c226-71c7f4cae5ba%40alishomepage.com.
Hi Truong
Excellent news! Perhaps for the sake of code cleanliness, you could also remove the JVM path that was added - So it doesn't cause confusions in the future.
Changing log parameters would be done following the instructions on https://eclipse.dev/jetty/documentation/jetty-10/operations-guide/index.html#og-server-logging-server (to specify the associated configuration files for logging the way you need) and https://codehaus-cargo.github.io/cargo/Configuration+files+option.html (to add them to the Jetty container configuration). When there is demand, we could also think of having the feature to choose to have the logs in the console as a Codehaus Cargo Jetty container configuration option, and would welcome contributions.
Regards
S. Ali Tokmen https://ali.tokmen.com/ https://contact.ali.tokmen.com/
To view this discussion on the web visit https://groups.google.com/d/msgid/codehaus-cargo/CAP-L5uEeY5Nog0LG1Qa_9tRWHfwFz6pmxGi7teWP6Uf8bXQQrw%40mail.gmail.com.
Hi Truong
Actually - This is simpler than I explained: simply change the cargo.jetty.modules
configuration property, and have it without console-capture
.
In other words, you'd set it to: server,http,http2c,annotations,plus,websocket,jsp,ext,deploy
Regards
S. Ali Tokmen https://ali.tokmen.com/ https://contact.ali.tokmen.com/
To view this discussion on the web visit https://groups.google.com/d/msgid/codehaus-cargo/558bf6a8-4481-0b64-2704-8b40c84ae3cf%40alishomepage.com.