Re: Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-20 Thread Tim N
After sorting out the new dependencies (I think) 2 of the 3 web-apps are now running! One fails at startup with Caused by: java.lang.LinkageError: loader java.net.URLClassLoader @2328c243 attempted duplicate class definition for mypackage.MyUserDetailsService$$EnhancerBySpringCGLIB$$f761e392. (myp

RE: Tomcat 9.0.65

2022-12-20 Thread alik alikov
for local lunch we use proxy on js: proxy: {'/api/': { target: 'http://localhost:8080/', changeOrigin: false, },'/': { target: 'http://localhost:8080/lundase', changeOrigin: false } }, for normal lunch we use apache2.conf: RewriteCond %{REQUEST_URI} ^(/api/|/mapi/|/binary/|/rpc/invoker/) Rewrit

RE: Tomcat 9.0.65

2022-12-20 Thread alik alikov
private Context addWebapp(final Host host, final String url, final String name, final String path, final PluginDescriptor pluginDescriptor, final AddContextListener contextAddListened) { silence(host, url); final PluginManager manager = PluginManager.lookup(getClass().getClassLoader()); final C

Re: Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-20 Thread Tim N
Looks like this is due to a conflict with EE JARs added to replace those removed when moving from Java 8 to 17. On Wed, Dec 21, 2022 at 3:33 PM Tim N wrote: > Sorry - more of the stack-trace: > Caused by: java.lang.IllegalAccessError: failed to access class > com.sun.activation.registries.LogSup

Re: Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-20 Thread Tim N
Sorry - more of the stack-trace: Caused by: java.lang.IllegalAccessError: failed to access class com.sun.activation.registries.LogSupport from class javax.activation.MimetypesFileTypeMap (com.sun.activation.registries.LogSupport and javax.activation.MimetypesFileTypeMap are in unnamed module of loa

Re: Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-20 Thread Tim N
I tried this: List repositories = new ArrayList<>(); repositories.add(new ClassLoaderFactory.Repository(new File("/dir1").getAbsolutePath(), ClassLoaderFactory.RepositoryType.DIR)); repositories.add(new ClassLoaderFactory.Repository(new File("sub-mod1/target/classes").getAbsolutePath(), ClassLoade

Re: Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-20 Thread Tim N
> The custom class loader approach described in one of the answers is a > viable option. Thanks. > No. The same class loader hierarchy isn't constructed when running in > embedded mode. It looks like I would need to replicate all the classloading capabilities of Tomcat (e.g. loading classes from

Re: Tomcat 9.0.65

2022-12-20 Thread Mark Thomas
You'll need to provide: - The httpd proxy configuration - the context path - the servlet mapping(s) - the code that generates the problematic link - the URL of the request that triggers the problem Mark On 20/12/2022 07:37, alik alikov wrote: Hello I have some problems with trailing slashes.

RE: Install CA signed certificate on Tomcat 9

2022-12-20 Thread Janardhanan, Veni
Hi Chris, This is my configuration, when I access the Central Management Console, the browser shows site as ‘Not Secure’, please advise. Thanks, Veni From: Christopher Schultz Sent: Thursday, October 13, 2022 2:09 AM To: users@tomcat.apache.org Subject: Re