logo
down
shadow

struts 2 NoSuchFieldError PROTOTYPE in TomCat on Fedora


struts 2 NoSuchFieldError PROTOTYPE in TomCat on Fedora

By : eps004
Date : October 17 2020, 03:08 PM
I think the issue was by ths following , It seems /com/opensymphony/xwork2/inject/Scope.class has been overridden by an older one than Jun 18, 2015. At this date DEFAULT is changed to PROTOTYPE according to this commit but it seems an older one class is loaded.
code :


Share : facebook icon twitter icon
Hibernate NoSuchFieldError INSTANCE but only with Struts 1?

Hibernate NoSuchFieldError INSTANCE but only with Struts 1?


By : Eric Verhoeven
Date : March 29 2020, 07:55 AM
wish helps you It looks like you have several versions of Hibernate jars in the classpath.
How do I run a Tomcat-Spring/Struts 2-Quartz task outside of Tomcat?

How do I run a Tomcat-Spring/Struts 2-Quartz task outside of Tomcat?


By : joecode
Date : March 29 2020, 07:55 AM
I wish this help you Apparently, the simplest way to go about this is to create a standalone Java application that calls the bean method you're executing in Quartz:
code :
import org.springframework.context.*;
import org.springframework.context.support.*;

public class SomeJob {

    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
        MyBean myBean = (MyBean) ctx.getBean("myBean");
        myBean.someMethod();
    }

}
When trying to deploy to tomcat, Caused by: java.lang.NoSuchFieldError: NULL

When trying to deploy to tomcat, Caused by: java.lang.NoSuchFieldError: NULL


By : Geovanny
Date : March 29 2020, 07:55 AM
around this issue You are mixing Spring versions and you are mixing Spring Security Versions (3.1.3 and 3.1.4), Spring Security 3.1 has a dependency on Spring 3.0 whereas you are trying to use 3.1. Spring WS 2.1 depends on Spring 3.2... So you have a whole mixture going on.
I would suggest upgrading to Spring 3.2.4 (the latest version) and use a properties element to determine the version instead of specifing it for each dependency. Next to that I also suggest using tag to force dependencies on a certain version. And finally (or maybe firstly) I suggest the use of the maven-enforcer-plugin with a dependency convergence rule, this will break the build if there are conflicting versions of certain dependencies.
code :
<build>
   <plugins>
       <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-enforcer-plugin</artifactId>
            <version>1.3.1</version>
            <executions>
                <execution>
                    <id>enforce-banned-dependencies</id>
                    <goals>
                        <goal>enforce</goal>
                    </goals>
                    <configuration>
                        <rules>
                            <DependencyConvergence/>
                            <bannedDependencies>
                                <searchTransitive>true</searchTransitive>
                                <excludes>
                                    <exclude>commons-logging:commons-logging</exclude>
                                    <exclude>org.slf4j:slf4j-simple</exclude>
                                </excludes>
                            </bannedDependencies>
                        </rules>
                        <fail>true</fail>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>    
</build>
<properties>
    <spring-framework.version>3.2.4.RELEASE</spring-framework.version>
    <spring-security.version>3.1.4.RELEASE</spring-security.version>
    <spring-ws.version>2.1.3.RELEASE</spring-ws.version>
</properties>

<dependencies>
    <dependency>
        <groupId>org.springframework.security<groupId>
        <artifactId>spring-security-web</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.security<groupId>
        <artifactId>spring-security-config</artifactId>
    </dependency>
</dependencies>
<!-- Other dependencies go here -->
<dependencyManagement>
    <dependencies>
        <!-- Spring -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-aop</artifactId>
            <version>${spring-framework.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-aspects</artifactId>
            <version>${spring-framework.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-beans</artifactId>
            <version>${spring-framework.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <version>${spring-framework.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context-support</artifactId>
            <version>${spring-framework.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
            <version>${spring-framework.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>commons-logging</groupId>
                    <artifactId>commons-logging</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-expression</artifactId>
            <version>${spring-framework.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-jdbc</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-jms</artifactId>
            <version>${spring-framework.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>commons-logging</groupId>
                    <artifactId>commons-logging</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-orm</artifactId>
            <version>${spring-framework.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-oxm</artifactId>
            <version>${spring-framework.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-tx</artifactId>
            <version>${spring-framework.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-web</artifactId>
            <version>${spring-framework.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-webmvc</artifactId>
            <version>${spring-framework.version}</version>
        </dependency>
        <!-- Spring Security -->
    <dependency>
    <groupId>org.springframework.security</groupId>
    <artifactId>spring-security-web</artifactId>
    <version>${spring-security.version}</version>
    </dependency>
    <dependency>
    <groupId>org.springframework.security</groupId>
    <artifactId>spring-security-config</artifactId>
    <version>${spring-security.version}</version>
    </dependency>
        <!-- Spring WS -->
        <dependency>
            <groupId>org.springframework.ws</groupId>
            <artifactId>spring-ws-core</artifactId>
            <version>${spring-ws.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>commons-logging</groupId>
                    <artifactId>commons-logging</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.springframework.ws</groupId>
            <artifactId>spring-ws-support</artifactId>
            <version>${spring-ws.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>commons-logging</groupId>
                    <artifactId>commons-logging</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
NoSuchFieldError: QUALIFIED when integrating web service in Tomcat project

NoSuchFieldError: QUALIFIED when integrating web service in Tomcat project


By : Carles Pla
Date : March 29 2020, 07:55 AM
wish help you to fix your issue You need to remove: XmlSchema-1.4.7.jar
CXF 2.7.x would require the 2.x version of XmlSchema (which you have: xmlschema-core-2.1.0.jar) but it's picking up the 1.4.7 version.
java.lang.NoSuchFieldError: REFLECTION during Tomcat deploying

java.lang.NoSuchFieldError: REFLECTION during Tomcat deploying


By : Aurelio Gandarillas
Date : March 29 2020, 07:55 AM
hop of those help? There could be conflicts in the jars as imported by your application and as that are already present in the lib folder of tomcat directory. Remove the duplicate jars from the lib folder tomcat directory. That may resolve the issue.
Related Posts Related Posts :
  • How to create a jar with tests and run it from another version of project?
  • SelectOutput malfunctioning
  • How to display time in HHhMM a format in java ?
  • Is this the right way to change the charset of a String?
  • Apache-poi Restrict the user to select only the values of drop down list
  • Junit4 with Parameterized Test
  • How to print server responses using LoggingFeature in Dropwizard 1.0.2?
  • rabbitmq setting requeue in spring xd
  • Evaluator Expression: How to know if the input is wrong
  • Drawing a JLabel with X,Y coordinate of the center
  • How to check when a bookmark placed inside a cell?
  • Access fields in class
  • What are all the events captured by Websphere JAVA_DUMP_OPTS conditions?
  • About compile servlets from command line: the provided solution didn't work
  • RegEx to extract text between tags in Java
  • JSON ObjectMapper with javac "-parameters" behaves when run via maven, not via InteliJ IDEA
  • datepickerdialog hide calendar and change my date picker view to standard mode
  • How to create config properties for tinylog at runtime with User preferences
  • MessageArrived MQTT paho library
  • Why java doesn't allow to create instance of inner class?
  • Getting NullPointerException while using Lambda expression
  • Reading values from a text file and separating into String and double
  • Gson: skip different fields with different gsons
  • Java this in parent and child not working as expected
  • Java Android - close application (notifications) after swiping in recents
  • I am using Authorize.net payment gateway and doing transaction through Direct Post Method,is it possible to just validat
  • Java Agent wont load into JVM
  • android error: The RealmClass annotation does not support nested classes
  • Hadoop: There are 0 datanodes running and no nodes & cannot connect to namenode
  • Return Response arraylist and 1 attribute
  • Java, why do my lines always white out in BlueJ?
  • starting apache drill process with java API?
  • Configuring a Maven plugin twice in a pom.xml
  • How to work with Lombok?
  • How to parse list of object from Json Object
  • Adding certificate in .cer format into to .bks keystore
  • String array initialization using for loop
  • Dynamic element inside several 'li'
  • Unable to upload a file to Spring REST service via RestTemplate
  • Scala: Why java.lang.IllegalArgumentException: Cannot format given Object as a Date?
  • How does CoreOS allocates memory to a Docker container?
  • Repaint never reaches paintComponent();
  • Instantiating a generic class in a generic class
  • Case insensitive path startsWIth endsWith
  • Deleting directory in finally block?
  • How to include resources from src/main/java
  • Cant assign found item to variable as array
  • add(T) in List cannot be applied to Java.lang.Number
  • Spring Data JPA Many to Many with extra column
  • How to index a boolean @Field in Hibernate Search if the field is not in the db table
  • Modify and access value outside a thread class
  • How to skip @Param in @Query if is null or empty in Spring Data JPA
  • Using AssertJ, how do I perform complex assertions on the contents of a list?
  • Get the corner value of dienantion array in java
  • How can I delete the available state in a local cache?
  • Can't get rid of the ugly border around ImageButton
  • Togglez feature activation based on input parameters from call
  • Passing confirmation to JSP from servlet, getting errors
  • How to check the date and timestamp is before 20mins
  • Java: How does a call to the super class constructor inside of a child class constructor work?
  • shadow
    Privacy Policy - Terms - Contact Us © soohba.com