SHARE
TWEET

Untitled

a guest Jul 23rd, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import org.springframework.beans.factory.annotation.Autowired;
  2. import org.springframework.stereotype.Service;
  3.  
  4. import javax.ws.rs.GET;
  5. import javax.ws.rs.Path;
  6. import javax.ws.rs.PathParam;
  7. import javax.ws.rs.Produces;
  8. import javax.ws.rs.core.MediaType;
  9.  
  10. @Path("/validate_login")
  11. @Service
  12. public class ValidateUserLoginService {
  13.  
  14.     @Autowired
  15.     private UserService userService;
  16.  
  17.     @GET
  18.     @Path("/{login}")
  19.     @Produces({MediaType.TEXT_HTML})
  20.     public boolean validate(@PathParam("login")String login){
  21.        return userService.loginExist(login);
  22.     }
  23. }
  24.      
  25. SEVERE: Unable to process Jar entry [module-info.class] from Jar [jar:file:/C:/Users/stanislav.alekseev/IdeaProjects/flowershop/target/flowershop/WEB-INF/lib/jakarta.ws.rs-api-2.1.5.jar!/] for annotations
  26. org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19
  27.     at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:133)
  28.     at org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPool.java:60)
  29.     at org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:209)
  30.      
  31. <
  32.  
  33.     servlet>
  34.             <servlet-name>jersey-servlet</servlet-name>
  35.             <init-param>
  36.                 <param-name>jersey.config.server.provider.packages</param-name>
  37.                 <param-value>com.accenture.flowershop.rest</param-value>
  38.             </init-param>
  39.             <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
  40.             <load-on-startup>1</load-on-startup>
  41.         </servlet>
  42.         <servlet-mapping>
  43.             <servlet-name>jersey-servlet</servlet-name>
  44.             <url-pattern>/rest/*</url-pattern>
  45.         </servlet-mapping>
  46.      
  47. <dependency>
  48.       <groupId>org.glassfish.jersey.containers</groupId>
  49.       <artifactId>jersey-container-servlet</artifactId>
  50.       <version>2.28</version>
  51.     </dependency>
  52.  
  53.     <dependency>
  54.       <groupId>org.glassfish.jersey.media</groupId>
  55.       <artifactId>jersey-media-json-jackson</artifactId>
  56.       <version>2.28</version>
  57.     </dependency>
  58.  
  59.     <dependency>
  60.       <groupId>org.glassfish.jersey.ext</groupId>
  61.       <artifactId>jersey-spring4</artifactId>
  62.       <version>2.28</version>
  63.     </dependency>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top