Benoit,
Thank you for getting this figured out. I've never used an executable
jar in a java command. So I had no clue about these restrictions. But
good to know.
I've moved back to spring temporarily. But I'm interested in changing
back to jpa-guice now that this appears to be resolved.
FYI I opened https://github.com/apache/james-project/pull/684 to clarify
this issue.
On 08/10/2021 15:48, btell...@apache.org wrote:
> Problem sorted out:
>
> https://stackoverflow.com/questions/1708534/can-i-use-the-classpath-to-override-a-file-in-a-jar-that-is-being-run
>
> In short you can't ov
Problem sorted out:
https://stackoverflow.com/questions/1708534/can-i-use-the-classpath-to-override-a-file-in-a-jar-that-is-being-run
In short you can't override the classpath of the manifest file of the
target jar.
However you could specify manually the classpath and the target Main class
sudo
Benoit,
I am still dead in the water. I've spent the entire day trying things
and digging into the code.
- It works fine on the same build with the spring version
- If FAILS on WINDOWS as well as Linux
- Other jars in the same folder are loaded without problem
I've tried putting the driver fi
Benoit,
Update to my earlier post below:
- Uploaded spring implementation to a parallel directory on the same
server I'm setting up guice implementation on
- Tested out-of-the-box. Server started clean.
- Edited james-database.properties and changed to mysql
- Copied the mysql driver to lib f
Benoit,
No success yet. I started over completely clean:
-- Refreshed latest master from git, rebuilt clean and re-deployed to my
server.
-- Created keystore using password in sample-configuration files.
-- Out of the box, it started clean.
-- I renamed james-database.properties to *.save and
Have you tried puttil the driver JAR in james-server-jpa-app.lib, maybe?
On 04/10/2021 12:02, Jerry Malcolm wrote:
>
> On 10/3/2021 11:36 PM, Jerry Malcolm wrote:
>>
>> On 10/3/2021 11:14 PM, btell...@apache.org wrote:
>>> Hello,
>>>
>>> Extra driver needs to be explicitly added to the classpath.
On 10/3/2021 11:36 PM, Jerry Malcolm wrote:
On 10/3/2021 11:14 PM, btell...@apache.org wrote:
Hello,
Extra driver needs to be explicitly added to the classpath.
java -Djdk.tls.ephemeralDHKeySize=2048 \
-classpath 'james-server-jpa-app.lib/*:/path/to/driver.jar' \
-javaagent:/roo
On 10/3/2021 11:14 PM, btell...@apache.org wrote:
Hello,
Extra driver needs to be explicitly added to the classpath.
java -Djdk.tls.ephemeralDHKeySize=2048 \
-classpath 'james-server-jpa-app.lib/*:/path/to/driver.jar' \
-javaagent:/root/libs/openjpa-3.1.2.jar \
-Dlogback.conf
Hello,
Extra driver needs to be explicitly added to the classpath.
java -Djdk.tls.ephemeralDHKeySize=2048 \
-classpath 'james-server-jpa-app.lib/*:/path/to/driver.jar' \
-javaagent:/root/libs/openjpa-3.1.2.jar \
-Dlogback.configurationFile=/root/conf/logback.xml \
-Dworking.d
I have a different issue in my migration from spring to jpa-guice. I
absolutely cannot get james/java to locate my jdbc driver. I copied a
working driver from my spring server and the associated
james-database.properties to my jpa-guice server. I played around with
classpaths and ended up pu
11 matches
Mail list logo