Felix 4.4.0 Web Console Configurations - apache-felix

Felix Web Console -> Configurations doesn't work.
I've started Apache Felix 4.4.0 with bundles:
org.apache.felix.eventadmin-1.3.2.jar
commons-io-2.4.jar
osgi.cmpn-4.2.jar
org.apache.felix.http.bundle-2.2.2.jar
commons-fileupload-1.3.1.jar
org.apache.felix.fileinstall-3.2.6.jar
org.apache.felix.configadmin-1.8.0.jar
org.apache.felix.webconsole-4.2.2-all.jar
My problems:
Web Console starts but when I select 'Status -> Configurations' I get: 'Status: No Configurations available'.
'OSGi -> Configuration' view doesn't work.
I get the same with: g! deploy org.apache.felix.webconsole.
Thanks for help
zibi

Related

Couldn't find type java.sql.Date. Are you missing a dependency on your classpath?

I'm trying to run my application in Spring Boot using MongoDB with spring-data but I can't because IntelliJ shows me this error during build:
Error:java: Couldn't find type java.sql.Date. Are you missing a
dependency on your classpath?
I'm using mongo java driver version 3.8.2, spring boot 2.1 and project is in Java 11. I have no idea what is wrong here could someone help me please?
Settings -> Build, Execution, Deployment -> Build Tools -> Maven/Gradle -> Runner -> tic on "Delegate IDE build/run actions"
IDEA > File > Settings > Build, Execution, Deployment > Compiler > Annotation Processors
click/select the module in which you're encountering the troubles (middle part of the settings window)
ensure "Obtain processors from project classpath" is ticked (unselect custom "Processor path" option)
the problem came from this settings:
Please uncheckUser'--release' option for cross-compilation(Java 9 and later), it's a common source of problem with the library Date

how to debug play framework 2.5 in eclipse

Enviroment
OS : OS X EL Capitan
IDE: Luna Release (4.4.0)
Activator : activator-dist-1.3.10.
My step.
--> But at the last step, I can't connect to vm. Wating for vm connect at port 999.
Please help me !
In your debug configuration you have to set Connection Type to Standard (Socket Attach) (in the screenshot you have selected Standard (Socket Listen).
open your eclipse
Navigate to Help->eclipsemarketplace
Search scala
Then install two plugins:-
1) ScalaStyle 0.7.0
2) Scala Ide 4.2.x
run below command in console from your project directory
Note: before debug first run this command
activator -jvm-debug 9999 run
now right click on project
go to
Debug as -> debug configuration click new and insert project name
set port number to 9999
now select Scala debugger(socket attach)(Scala debugger will come only if you have installed those plugin mentioned above) from dropdown
and click on debug

TestNG [6.9.12] fails to load in Eclipse Mars [4.5.2] -- org.eclipse.core.runtime.CoreException

Expected behaviour
Should be possible to launch test via Run As -> TestNG ; also
should be able to add new Run configuration for TestNG
Actual behaviour
Plug-in org.testng.eclipse was unable to load class org.testng.eclipse.launch.TestNGTabGroup.
Exception:org.eclipse.core.runtime.CoreException: Plug-in org.testng.eclipse was unable to load class org.testng.eclipse.ui.TestNGQuickFixProcessor.
cannot be found by org.testng.eclipse_6.9.12.201607091356
Exception:org.eclipse.core.runtime.CoreException: Plug-in org.testng.eclipse was unable to load class org.testng.eclipse.ui.TestNGQuickFixProcessor.
Steps to reproduce
Install Eclipse Mars-2, 4.5.2
Install TestNG plugin from the Marketplace
Select an executable class
Attempt to "Run As TestNG"
Attempt to Run -> Run Configurations -> TestNG -> New
Running Configuration
Plugin Version: 6.9.12 [via eclipse marketplace]
(Optional) Operating System: Windows-10
An issue already exists on the project: https://github.com/cbeust/testng-eclipse/issues/272

gwt : URL was not found. eclpse/

What i have to do to proper run my app under eclipse as a web app ?
My application is working fine under tomcat but when i start this in eclipse using 'run as web app' then i've got many massages like this :
'The requested URL /com.xxx.xxx.xxx/xxxx was not found on this server.'
Those messages are from firebug plugin.
please help.
In eclipse check Run Configuration .
Do right click of project : Run As->Run Configuration->Web Application->Arguments
-remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -startupUrl Gwtdevtest.html -logLevel INFO -codeServerPort 9997 -port 8888 -war D:\project_backup\sample-workspace2.0\gwtdevtest\war com.test.gwtdev.Gwtdevtest
As per your project path and module, do changes in arguments.

Eclipse 3.5.2 Does Not Hit Breakpoints when Remote Debugging on Tomcat 6ยป

This is a local-to-local debug setup, from an Eclipse instance to Tomcat on localhost.
I've tried starting tomcat from both /etc/init.d/tomcat6 start and from /usr/share/tomcat6/bin/catalina.sh jpda start (ie from the startup command and from CATALINA_HOME command), no change in result.
The JAVA_OPTS to Tomcat are
JAVA_OPTS="-Djava.awt.headless=true
-Xmx256m -XX:+UseConcMarkSweepGC -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8888,server=y,suspend=n"
Eclipse project is a simple Scala Lift (2.8.1/2.3) web project generated from the default Lift Maven archetype (this has worked in debug before, so it's not the archetype's fault).
Eclipse Remote Debugging configuration is default, except port changed to 8888. Source path includes project directory.
Maven is used for build/deploy, so a mvn clean and mvn tomcat:redeploy is done after breakpoints are set.
Remote Debug session is launched, connects to Tomcat as seen in screenshot.
Tomcat does seem to be in debug mode, as evidenced by catalina.out:
16:19:37.865 [http-127.0.0.1-8080-1]
DEBUG comet_trace - AJAX Request:
C8436967E450AD62D37654BBB3B5FCB9
Map(F27626326198LU12KZ -> List(foo), q
-> List(f0), limit -> List(10), timestamp -> List(1306271977857))
16:19:37.866 [http-127.0.0.1-8080-1]
DEBUG comet_trace - AJAX Response:
C8436967E450AD62D37654BBB3B5FCB9
PlainTextResponse(,List(),200)
16:19:37.870 [http-127.0.0.1-8080-1]
INFO net.liftweb.util.TimeHelpers -
Service request (GET)
/bsa2/search/ajax_request returned
200, took 11 Milliseconds
16:19:44.312 [http-127.0.0.1-8080-1] DEBUG
comet_trace - AJAX Request:
C8436967E450AD62D37654BBB3B5FCB9
Map(F27626326198LU12KZ -> List(foo), q
-> List(), limit -> List(10), timestamp -> List(1306271984133))
Web site is accessed with browser on the normal Tomcat URL (eg http://localhost:8080/test/cleanproject).
No breakpoint is ever reached.