Java.lang.nosuchmeThoderror: 'java.util.map jakarta.servlet.sessionCookonfig.getattributes ()Java

Java-Forum
Anonymous
 Java.lang.nosuchmeThoderror: 'java.util.map jakarta.servlet.sessionCookonfig.getattributes ()

Post by Anonymous »

Ich verwende die Spring -Boot -Kriegsdatei, um eine Webanwendung aufzurufen. Die Serverstiefel einwandfrei. Wenn ich die URL im Browser öffne, erhalte ich diese Ausnahme in den Spring -Boot -Protokollen. Das Internet scheint nicht eine Lösung für dieses Problem zu haben, weil dieses Problem mit Jakarta < /p>

Code: Select all

java.lang.NoSuchMethodError: 'java.util.Map jakarta.servlet.SessionCookieConfig.getAttributes()'
at org.apache.catalina.core.ApplicationSessionCookieConfig.createSessionCookie(ApplicationSessionCookieConfig.java:227)
at org.apache.catalina.connector.Request.doGetSession(Request.java:2971)
at org.apache.catalina.connector.Request.getSession(Request.java:2384)
at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:639)
at jakarta.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:221)
at jakarta.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:221)
at jakarta.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:221)
at org.springframework.security.web.context.HttpSessionSecurityContextRepository.saveContextInHttpSession(HttpSessionSecurityContextRepository.java:169)
at org.springframework.security.web.context.HttpSessionSecurityContextRepository.saveContext(HttpSessionSecurityContextRepository.java:152)
at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:125)
at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:101)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374)
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:179)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374)
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374)
at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.java:170)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374)
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:227)
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:221)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374)
< /code>
Hier ist mein pom.xml < /pbr /> 

4.0.0

org.springframework.boot
spring-boot-starter-parent
3.0.6
  

com.sample
sample
0.0.1-SNAPSHOT
war
sample
Demo project for Spring Boot

20



org.springframework.boot
spring-boot-starter



org.springframework.boot
spring-boot-starter-test
test




com.google.code.gson
gson


com.stripe
stripe-java
22.5.1


org.slf4j
slf4j-simple


org.projectlombok
lombok
provided




commons-io
commons-io
2.11.0



org.springframework.boot
spring-boot-starter-json



org.aspectj
aspectjweaver
runtime



commons-fileupload
commons-fileupload
1.5



org.springframework.security
spring-security-core



org.springframework.security
spring-security-config



org.springframework.security
spring-security-web



org.springframework
spring-web



org.junit.jupiter
junit-jupiter-api
test




org.springframework.boot
spring-boot-starter


org.springframework.boot
spring-boot-starter-logging






org.springframework.boot
spring-boot-starter-log4j2




org.springframework
spring-webmvc



org.apache.httpcomponents
httpclient



org.apache.httpcomponents
httpmime



org.glassfish.hk2
osgi-resource-locator
2.5.0-b42




org.json
json
20160810



com.paypal.sdk
paypal-core
1.7.2



com.paypal.sdk
rest-api-sdk
1.13.0



com.paypal.sdk
adaptivepaymentssdk
2.9.117



org.quartz-scheduler
quartz



com.paypal.sdk
permissionssdk
2.6.109



org.jsoup
jsoup
1.10.2



commons-lang
commons-lang
2.6



commons-logging
commons-logging
1.2



mysql
mysql-connector-java
8.0.30


org.glassfish.jaxb
jaxb-runtime



jakarta.xml.bind
jakarta.xml.bind-api




com.sun.xml.bind
jaxb-impl
runtime




jakarta.mail
jakarta.mail-api




org.hibernate.orm
hibernate-core




org.springframework.boot
spring-boot-starter-web


org.springframework.boot
spring-boot-starter-tomcat
provided


org.apache.tomcat.embed
tomcat-embed-jasper



jakarta.servlet
jakarta.servlet-api
provided



jakarta.servlet.jsp
jakarta.servlet.jsp-api
3.0.0
provided



org.glassfish.web
jakarta.servlet.jsp.jstl




jakarta.servlet.jsp.jstl
jakarta.servlet.jsp.jstl-api



mysql
mysql-connector-java
8.0.30




org.codehaus.mojo
hibernate3-maven-plugin
2.2


generate-xml-files1
generate-resources

hbm2cfgxml






hbm2cfgxml
jdbcconfiguration
target/hibernate/hbm2cfgxml



src/main/resources/database.properties
true
false
resources
true
true




org.apache.derby
derby
10.5.3.0_1


cglib
cglib-nodep
2.2.2



mysql
mysql-connector-java
8.0.30








< /code>
So starte ich die Spring -Boot -App < /p>
java -Dserver.port=8081 -Dserver.path=c:\\temp -jar sample.war org.springframework.boot.loader.WarLauncher
< /code>
Hier ist der Abhängigkeitsbaum.  Es verwendet Servlet 6.0 < /p>
     com.sample:sample:war:0.0.1-SNAPSHOT
+- org.springframework.boot:spring-boot-starter-test:jar:3.0.6:test
|  +- org.springframework.boot:spring-boot-test:jar:3.0.6:test
|  +- org.springframework.boot:spring-boot-test-autoconfigure:jar:3.0.6:test
|  +- com.jayway.jsonpath:json-path:jar:2.7.0:test
|  |  \- net.minidev:json-smart:jar:2.4.10:test
|  |     \- net.minidev:accessors-smart:jar:2.4.9:test
|  |        \- org.ow2.asm:asm:jar:9.3:test
|  +- org.assertj:assertj-core:jar:3.23.1:test
|  +- org.hamcrest:hamcrest:jar:2.2:test
|  +- org.junit.jupiter:junit-jupiter:jar:5.9.2:test
|  |  +- org.junit.jupiter:junit-jupiter-params:jar:5.9.2:test
|  |  \- org.junit.jupiter:junit-jupiter-engine:jar:5.9.2:test
|  |     \- org.junit.platform:junit-platform-engine:jar:1.9.2:test
|  +- org.mockito:mockito-core:jar:4.8.1:test
|  |  +- net.bytebuddy:byte-buddy-agent:jar:1.12.23:test
|  |  \- org.objenesis:objenesis:jar:3.2:test
|  +- org.mockito:mockito-junit-jupiter:jar:4.8.1:test
|  +- org.skyscreamer:jsonassert:jar:1.5.1:test
|  |  \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
|  +- org.springframework:spring-core:jar:6.0.8:compile
|  |  \- org.springframework:spring-jcl:jar:6.0.8:compile
|  +- org.springframework:spring-test:jar:6.0.8:test
|  \- org.xmlunit:xmlunit-core:jar:2.9.1:test
+- com.google.code.gson:gson:jar:2.9.1:compile
+- com.stripe:stripe-java:jar:22.5.1:compile
+- org.slf4j:slf4j-simple:jar:2.0.7:compile
|  \- org.slf4j:slf4j-api:jar:2.0.7:compile
+- org.projectlombok:lombok:jar:1.18.26:compile
+- commons-io:commons-io:jar:2.11.0:compile
+- org.springframework.boot:spring-boot-starter-json:jar:3.0.6:compile
|  +- org.springframework:spring-web:jar:6.0.8:compile
|  +- com.fasterxml.jackson.core:jackson-databind:jar:2.14.2:compile
|  |  +- com.fasterxml.jackson.core:jackson-annotations:jar:2.14.2:compile
|  |  \- com.fasterxml.jackson.core:jackson-core:jar:2.14.2:compile
|  +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.14.2:compile
|  +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.14.2:compile
|  \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.14.2:compile
+- org.aspectj:aspectjweaver:jar:1.9.19:runtime
+- commons-fileupload:commons-fileupload:jar:1.5:compile
+- org.springframework.security:spring-security-core:jar:6.0.3:compile
|  +- org.springframework.security:spring-security-crypto:jar:6.0.3:compile
|  +- org.springframework:spring-aop:jar:6.0.8:compile
|  +- org.springframework:spring-beans:jar:6.0.8:compile
|  +- org.springframework:spring-context:jar:6.0.8:compile
|  +- org.springframework:spring-expression:jar:6.0.8:compile
|  \- io.micrometer:micrometer-observation:jar:1.10.6:compile
|     \- io.micrometer:micrometer-commons:jar:1.10.6:compile
+- org.springframework.security:spring-security-config:jar:6.0.3:compile
+- org.springframework.security:spring-security-web:jar:6.0.3:compile
+- org.junit.jupiter:junit-jupiter-api:jar:5.9.2:test
|  +- org.opentest4j:opentest4j:jar:1.2.0:test
|  +- org.junit.platform:junit-platform-commons:jar:1.9.2:test
|  \- org.apiguardian:apiguardian-api:jar:1.1.2:test
+- org.springframework.boot:spring-boot-starter:jar:3.0.6:compile
|  +- org.springframework.boot:spring-boot:jar:3.0.6:compile
|  +- org.springframework.boot:spring-boot-autoconfigure:jar:3.0.6:compile
|  +- jakarta.annotation:jakarta.annotation-api:jar:2.1.1:compile
|  \- org.yaml:snakeyaml:jar:1.33:compile
+- org.springframework.boot:spring-boot-starter-log4j2:jar:3.0.6:compile
|  +- org.apache.logging.log4j:log4j-slf4j2-impl:jar:2.19.0:compile
|  |  \- org.apache.logging.log4j:log4j-api:jar:2.19.0:compile
|  +- org.apache.logging.log4j:log4j-core:jar:2.19.0:compile
|  \- org.apache.logging.log4j:log4j-jul:jar:2.19.0:compile
+- org.springframework:spring-webmvc:jar:6.0.8:compile
+- org.apache.httpcomponents:httpclient:jar:4.5.14:compile
|  +- org.apache.httpcomponents:httpcore:jar:4.4.16:compile
|  \- commons-codec:commons-codec:jar:1.15:compile
+- org.apache.httpcomponents:httpmime:jar:4.5.14:compile
+- org.glassfish.hk2:osgi-resource-locator:jar:2.5.0-b42:compile
+- org.json:json:jar:20160810:compile
+- com.paypal.sdk:paypal-core:jar:1.7.2:compile
+- com.paypal.sdk:rest-api-sdk:jar:1.13.0:compile
+- com.paypal.sdk:adaptivepaymentssdk:jar:2.9.117:compile
+- org.quartz-scheduler:quartz:jar:2.3.2:compile
|  \- com.mchange:mchange-commons-java:jar:0.2.15:compile
+- com.paypal.sdk:permissionssdk:jar:2.6.109:compile
+-  org.jsoup:jsoup:jar:1.10.2:compile
+- commons-lang:commons-lang:jar:2.6:compile
+- commons-logging:commons-logging:jar:1.2:compile
+- mysql:mysql-connector-java:jar:8.0.30:compile
|  \- com.google.protobuf:protobuf-java:jar:3.19.4:compile
+- org.glassfish.jaxb:jaxb-runtime:jar:4.0.2:compile
|  \- org.glassfish.jaxb:jaxb-core:jar:4.0.2:compile
|     +- org.eclipse.angus:angus-activation:jar:2.0.0:runtime
|     +- org.glassfish.jaxb:txw2:jar:4.0.2:compile
|     \- com.sun.istack:istack-commons-runtime:jar:4.1.1:compile
+- jakarta.xml.bind:jakarta.xml.bind-api:jar:4.0.0:compile
|  \- jakarta.activation:jakarta.activation-api:jar:2.1.1:compile
+- com.sun.xml.bind:jaxb-impl:jar:4.0.2:runtime
|  \- com.sun.xml.bind:jaxb-core:jar:4.0.2:runtime
+- jakarta.mail:jakarta.mail-api:jar:2.1.1:compile
+- org.hibernate.orm:hibernate-core:jar:6.1.7.Final:compile
|  +- jakarta.persistence:jakarta.persistence-api:jar:3.1.0:compile
|  +- jakarta.transaction:jakarta.transaction-api:jar:2.0.1:compile
|  +- org.jboss.logging:jboss-logging:jar:3.5.0.Final:runtime
|  +- org.hibernate.common:hibernate-commons-annotations:jar:6.0.6.Final:runtime
|  +- org.jboss:jandex:jar:2.4.2.Final:runtime
|  +- com.fasterxml:classmate:jar:1.5.1:runtime
|  +- net.bytebuddy:byte-buddy:jar:1.12.23:runtime
|  +- jakarta.inject:jakarta.inject-api:jar:2.0.0:runtime
|  \- org.antlr:antlr4-runtime:jar:4.10.1:runtime
+- org.springframework.boot:spring-boot-starter-web:jar:3.0.6:compile
+- org.springframework.boot:spring-boot-starter-tomcat:jar:3.0.6:compile
|  +- org.apache.tomcat.embed:tomcat-embed-core:jar:10.1.8:compile
|  +- org.apache.tomcat.embed:tomcat-embed-el:jar:10.1.8:compile
|  \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:10.1.8:compile
+- org.apache.tomcat.embed:tomcat-embed-jasper:jar:10.1.8:compile
|  \- org.eclipse.jdt:ecj:jar:3.33.0:compile
+- jakarta.servlet:jakarta.servlet-api:jar:6.0.0:compile
+- jakarta.servlet.jsp:jakarta.servlet.jsp-api:jar:3.0.0:compile
+- org.glassfish.web:jakarta.servlet.jsp.jstl:jar:3.0.1:compile
+- jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api:jar:3.0.0:compile
|  \- jakarta.el:jakarta.el-api:jar:5.0.0:compile
\- org.eclipse.jetty:apache-jsp:jar:11.0.15:compile
+- org.eclipse.jetty:jetty-util:jar:11.0.15:compile
+- org.mortbay.jasper:apache-jsp:jar:10.0.14:compile
|  +- org.eclipse.jetty.toolchain:jetty-schemas:jar:5.2:compile
|  \- org.mortbay.jasper:apache-el:jar:10.0.14:compile
\- org.eclipse.jetty.toolchain:jetty-jakarta-servlet-api:jar:5.0.2:compile

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post