Giter Club home page Giter Club logo

Comments (4)

artembilan avatar artembilan commented on May 30, 2024

some test fails as show below

That's not true by your maven report:

Results :
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0
...
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.983 s

What you see there in log are intentional exceptions do demonstrate the error handling process. And you even can see there Failure Demonstration words.

Investigating everything rest...

But, please, study the GitHub Commenting for the future to simplify readers life.

from spring-integration-samples.

dilzfiesta avatar dilzfiesta commented on May 30, 2024

My bad, thanks for pointing it out !

Although the generated uber jar did failed with the below exception, can you please help me with that.

Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 55 in XML document from class path resource [META-INF/spring/integration/tcpClientServerDemo-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schema/integration/ip/spring-integration-ip.xsd; lineNumber: 55; columnNumber: 75; src-resolve: Cannot resolve the name 'integration:smartLifeCycleAttributeGroup' to a(n) 'attribute group' component.

Thanks.

from spring-integration-samples.

artembilan avatar artembilan commented on May 30, 2024

M-m-m. Not sure how maven-shade-plugin works, but you should be sure that you run the proper jar.
Which really is uber and includes spring-integration-core artifact.
Right now we see that it is a case since we don't see XSD in classpath.

Maybe you really should use the original jar like it sounds in logs:

[INFO] Replacing /Users/gyro/Documents/workspace-sts-3.7.3.RELEASE/spring-integration-samples/basic/tcp-client-server/target/uber-tcp-client-server-4.3.0.BUILD-SNAPSHOT.jar with /Users/gyro/Documents/workspace-sts-3.7.3.RELEASE/spring-integration-samples/basic/tcp-client-server/target/tcp-client-server-4.3.0.BUILD-SNAPSHOT-shaded.jar
[INFO] ------------------------------------------------------------------------

?

Note: since it's not an issue of the project, but some your customization, you should ask similar questions on the StackOverflow (spring-integration tag) first of all.

from spring-integration-samples.

dilzfiesta avatar dilzfiesta commented on May 30, 2024

maven-share-plugin automatically includes all the dependencies while generating the jar. If not included, below error popups up while packaging and running.

Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/core/env/PropertySource
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2693)
    at java.lang.Class.privateGetMethodRecursive(Class.java:3040)
    at java.lang.Class.getMethod0(Class.java:3010)
    at java.lang.Class.getMethod(Class.java:1776)
    at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
    at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: org.springframework.core.env.PropertySource
    at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 7 more

I will double check and try to post this question on StackOverflow.
Thanks.

from spring-integration-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.