I tried to install FAB in servicemix 4.5.2. When I tried to add the below feature
mvn:org.fusesource.fuse/fuse-fuse/7.0.1.fuse-084/xml/features, I got the below exception
Could not add Feature Repository:
java.lang.RuntimeException: URL [mvn:org.fusesource.fuse/fuse-fuse/7.0.1.fuse-084/xml/features] could not be resolved.
Please verify that the feature repository URL is correct and that your network connection works fine.
Then as suggested, I added the repo repo.fusesource.com/nexus/content/groups/public in etc/org.ops4j.pax.url.mvn.cfg. But no good things happened.
I added the feature from Fabric8 features:addUrl mvn:io.fabric8/fabric8-karaf/1.1.0.CR5/xml/features and it is successfully added. But when i install the fabric features, It is throwing below exception
karaf#root> features:install fabric-bundle
Error executing command: Can not resolve feature:
Unsatisfied requirement(s):
---------------------------
package:(&(package=jline)(version>=2.11.0)(!(version>=3.0.0)))
Fabric8 :: FAB (deprecated) :: OSGi
package:(&(package=org.apache.karaf.shell.console)(version>=2.3.0)(!(version>=3.0.0)))
Fabric8 :: FAB (deprecated) :: OSGi
package:(&(package=org.apache.felix.fileinstall)(version>=3.3.0)(!(version>=4.0.0)))
Fabric8 :: FAB (deprecated) :: OSGi
You cannot install FAB in ServiceMix.
FAB is part of JBoss Fuse and you should use JBoss Fuse with FAB.
Mind that FAB has been deprecated in JBoss Fuse 6.2 onwards (fabric8 1.1 onwards). See
http://fabric8.io/gitbook/faqGeneral.html
FAB is being replaced with OSGi resolver
https://github.com/fabric8io/fabric8/blob/master/docs/osgiResolver.md
Related
Trying to upgrade the springboot application which uses spring kafka to version 2.9.3 from 2.8.4.
I have followed the instructions here to pulldown kafka-client version 3.2.3 as a separate dependency.
My dependencies looks like this
implementation("org.springframework.kafka:spring-kafka:2.9.3") {
exclude group: "org.apache.kafka", module: "kafka-streams"
exclude group: "org.apache.kafka", module: "kafka-clients"
}
implementation("org.apache.kafka:kafka-clients:3.2.3")
testImplementation("org.springframework.kafka:spring-kafka-test:2.9.3")
When I try to kick off a test which makes use of EmbeddedKafka.
I am getting this NoClassDefFound error
Caused by: java.lang.NoClassDefFoundError: org/apache/kafka/common/requests/AlterIsrRequest$Builder
at kafka.server.KafkaServer.startup(KafkaServer.scala:313)
at kafka.utils.TestUtils$.createServer(TestUtils.scala:177)
at kafka.utils.TestUtils$.createServer(TestUtils.scala:172)
at kafka.utils.TestUtils.createServer(TestUtils.scala)
at org.springframework.kafka.test.EmbeddedKafkaBroker.afterPropertiesSet(EmbeddedKafkaBroker.java:350)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800)
... 87 more
Caused by: java.lang.ClassNotFoundException: org.apache.kafka.common.requests.AlterIsrRequest$Builder
at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 94 more
I think I am missing a dependency?
You have a version mis-match between the kafka-clients and other kafka jars. All kafka jars must be the same version since the server uses classes from the clients jar.
I don't see AlterIsrRequest in jars since 3.1.2 - so it looks like, somehow, you have older kafka server jars on the class path.
spring-kafka-test:2.9.3 should pull in 3.2.3 transitively.
Since you are using Spring Boot, it will pull in 3.1.2 instead.
See the documentation (https://docs.spring.io/spring-kafka/docs/2.9.3/reference/html/#update-deps) for how to override the dependencies when using Spring Boot.
sudo juju bootstrap --constraints tags=juju mymaas maas-controller
Creating Juju controller "maas-controller" on mymaas
Looking for packaged Juju agent version 2.3.7 for amd64
Launching controller instance(s) on mymaas...
ERROR failed to bootstrap model: cannot start bootstrap instance: failed to acquire node: unexpected: ServerError: 400 BAD REQUEST ({"tags": ["No such tag(s): 'juju'."]})
Please refer to: https://docs.jujucharms.com/2.5/en/reference-constraints
This is an issue with tagging in MAAS as well as not using supported tags:
tags=juju mymaas maas-controller
This will specifically look for all servers with all of the tags:
juju
mymaas
maas-controller
Unless your maas controller has a server with all of those tags attached to it it will not find any servers and error out saying it cannot acquire a node with those tags, as it did.
Make the constraints match the supported standard, i.e. resource constraints.
Or, use a non-supported feature that I use when I deploy charms to maas and use the hostname.
juju bootstrap --to hostname.superdomain.com
this will search maas (assuming you have set it up correctly) for that hostname specifically and use it to bootstrap.
I am trying to run my war file using xsbt-web-plugin. My war itself does not contain tomcat-jdbc-pool jar and javax-servlet-api. I tried using container configuration. But sbt complains configuration does not exist.
If I use provided configuration, webapp-runner fails.
I am sure I am missing something. But unable to figure it out.
WARNING: Failed to register in JMX: [javax.naming.NamingException: Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: org.apache.tomcat.jdbc.pool.DataSourceFactory]]
What version of xsbt-web-plugin are you using? Can you post the contents of your sbt build configuration?
The Tomcat plugin in xsbt-web-plugin relies on webapp-runner, which does not appear to bundle the tomcat-jdbc library. You can add it via containerLibs in Tomcat:
enablePlugins(TomcatPlugin)
containerLibs in Tomcat += "org.apache.tomcat" % "tomcat-jdbc" % "8.5.15"
I am testing JBoss AS 7 prior to deployment with a .war file of an app running in a different server.
I get this error when I try to log onto the database via the app:
SEVERE [] (http--0.0.0.0-8080-4) java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException
java.lang.ClassNotFoundException: org.apache.commons.codec.DecoderException from [Module "deployment.app.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:220)
In some forums, they suggest adding the commons-codec jar, but I already have it in JBoss, right? (in here: jboss-as-7.1.1.Final/modules/org/apache/commons/codec/main/commons-codec-1.4.jar)
OSGi is not activated, frankly I have no idea to what purpose it serves, but when I try to activate it it messes with my war as it fails to deploy...
I have JDK, but no JRE if that's any help.
JBoss AS 7 does not use OSGi by default for modular class loading. It uses JBoss Modules so this has nothing to do with OSGi.
What you need to do if you want to use the commons-codec provided with JBoss AS 7 is add a dependency to your deployment.
Modules are not visible by your artefact classes automatically. You have three possibilities:
Define a global module in your standalone.xml
http://javahowto.blogspot.de/2012/09/how-to-create-global-modules-in-jboss.html
This module will be used by all artefacts you are deploying on Jboss.
Put it into your war artefact, into the lib folder. You can do that with Maven.
Define an explicit dependency within your Manifest. https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7
Section Dependencies: Manifest Entries
I use Flex for a short time, use a bit pushed to my client for a solution-oriented monitoring.
Background:
Platform:
Windows XP
Eclipse 3.4 Ganymede
Flex Builder 3.0.2 Licenced
JDK 1.6_20
Firefox 3.6
Flash Player 9 (Debug version)
Server: OSGI (Eclipse equinox) an
instance of jetty service allows HTTP
requests
Requirements:
Make debugger in ActionScript by putting "BreakPoint" to assess the contents of variables.
Problem:
The code does not stop at breakpoint, worse, if a breakpoint is enabled, the module flex does not start.
Actions:
Reinstall all the dev environment (Eclipse, Flex Builder, Flash Player): KO
Removing repo maven modules and complete rebuilds: KO
Restarting Windows: °) KO
Logs:
this is what the log contains just after launching the platform (modules) in debug mode.
java.lang.NullPointerException
Has com.adobe.flexbuilder.debug.breakpoints.FlexLineBreakpoint.findSourceFiles (FlexLineBreakpoint.java: 388)
Has com.adobe.flexbuilder.debug.breakpoints.FlexLineBreakpoint.instantiate (FlexLineBreakpoint.java: 442)
Has com.adobe.flexbuilder.debug.model.FlexDebugTarget.breakpointAdded (FlexDebugTarget.java: 981)
Has com.adobe.flexbuilder.debug.model.FlexDebugTarget $ FdbThread.installDeferredBreakpoints (FlexDebugTarget.java: 631)
Has com.adobe.flexbuilder.debug.model.FlexDebugTarget $ FdbThread.advanceStateMachine (FlexDebugTarget.java: 662)
Has com.adobe.flexbuilder.debug.model.FlexDebugTarget FdbThread.access $ $ 6 (FlexDebugTarget.java: 636)
Has com.adobe.flexbuilder.debug.model.FlexDebugTarget $ 1.run (FlexDebugTarget.java: 738)
Has org.eclipse.core.runtime.SafeRunner.run (SafeRunner.java: 37)
Has org.eclipse.core.runtime.Platform.run (Platform.java: 880)
Has com.adobe.flexbuilder.debug.model.FlexDebugTarget $ FdbThread.eventLoop (FlexDebugTarget.java: 718)
Has com.adobe.flexbuilder.debug.model.FlexDebugTarget $ FdbThread.run (FlexDebugTarget.java: 779)
at java.lang.Thread.run (Thread.java: 619)
The cause described in the comment by the author of this question (user361222) is correct.
I have 2 additional tips:
after you change the container swf to debug version, you should clear IE caches. I meet problem after I change container swf to debug version, I still cannot debug, but after I clear browser cache, it works.
You don't have to use "nemo440" to see it the swf is debug version. You can right click the flash GUI of your container swf(should before the child swf loading), if the debug menu in the context menu is enabled, the swf is debug version.
If before the child swf load the "debug" menu is disable, but after the child swf load the debug menu is enable, then you must have the issue.
You could try updating your debug player to see if that has an affect.
http://www.adobe.com/support/flashplayer/downloads.html
Where does that log come from? Is it an eclipse log? Or something you see on the server? Is Eclipse crashing?
When you use the 'term' Module are you referring to Flex Modules ( http://livedocs.adobe.com/flex/3/langref/mx/modules/Module.html ) or are you using the term more generically?
If using Modules; have you tried to test the module separate from the rest of the application? Create an application that is the Module instead of using the ModuleLoader. Does that have an affect?
Which version of the Flex SDK are you using? Can you upgrade to 3.5 or 4.0 ?
A work around is to do following :
Export preferences and exit Eclipse
Delete .metadata folder
Launch Eclipse and recreate the workspace
Import preferences.
It works all the time.
Be sure to use the 32bits version of Firefox...
Got the same issue and i resolved it by installing win32 version of Firefox...