Login Loop - TFS Plugin - Eclipse Oxygen - eclipse

Getting the following error when trying to connect to a VSTS server through the Eclipse TFS plugin.
I get the OAuth2 window that asks for my credentials.
When i type in my email hernando.hoyos#axa-equitable.com i get redirected and an IE window quickly opens then closes.
This is what the log says but i dont really understand the error.
Anyone any ideas?
Thanks in advance,
2017-03-08 12:00:10,957 INFO [main]
(com.microsoft.tfs.core.config.httpclient.DefaultHTTPClientFactory)
HttpClient configured for https://app.vssps.visualstudio.com,
authenticating with JWT token 2017-03-08 12:00:11,526 WARN [main]
(com.microsoft.tfs.core.httpclient.HttpMethodBase) Cookie rejected:
"$Version=0;
VstsSession={"PersistentSessionId":"4f82d81f-9717-4f3f-8e20-90ea99355026","PendingAuthenticationSessionId":"00000000-0000-0000-0000-000000000000","CurrentAuthenticationSessionId":"00000000-0000-0000-0000-000000000000"};
$Path=/; $Domain=.visualstudio.com". Domain attribute
".visualstudio.com" violates RFC 2109: host minus domain may not
contain any dots 2017-03-08 12:00:11,527 INFO [main]
(com.microsoft.alm.auth.pat.VstsPatAuthenticator) Retrieving
PersonalAccessToken for uri:https://axa-us.visualstudio.com with
name:TEE: https://axa-us.visualstudio.com on: USLINY2PC09F8KW, and
with scope:, prompt behavior: AUTO 2017-03-08 12:00:13,316 WARN
[main] (com.microsoft.tfs.client.common.credentials.CredentialsHelper)
Failed to authenticate interactively with web browser. This requires
either JavaFX or SWT based web browser control: 2017-03-08
12:00:13,316 WARN [main]
(com.microsoft.tfs.client.common.credentials.CredentialsHelper) 1.
JavaFX web browser control is only supported on Oracle Java SE 7
update 6 or higher, Oracle Java SE 8, or OpenJDK 8 runtime (Please
note you may need to compile OpenJFX project yourself). 2017-03-08
12:00:13,316 WARN [main]
(com.microsoft.tfs.client.common.credentials.CredentialsHelper) 2. To
launch SWT browser with a specific XULRunner, please set the value of
Java system property 'org.eclipse.swt.browser.XULRunnerPath' to the
full path of the specific XULRunner. 2017-03-08 12:00:13,316 INFO
[CancellableCommandThread-92]
(com.microsoft.tfs.client.common.ui.config.UITransportRequestHandler)
Credentials dialog has been cancelled by the user. 2017-03-08
12:00:13,316 WARN [CancellableCommandThread-92]
(com.microsoft.tfs.core.TFSConfigurationServer) Error getting data
provider
com.microsoft.tfs.core.ws.runtime.exceptions.TransportRequestHandlerCanceledException:
User canceled transport request handling at
com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequest(SOAPService.java:475)
at
ms.ws._LocationWebServiceSoap12Service.connect(_LocationWebServiceSoap12Service.java:385)
at
com.microsoft.tfs.core.clients.framework.location.internal.LocationWebServiceProxy.connect(LocationWebServiceProxy.java:58)
at
com.microsoft.tfs.core.clients.framework.location.LocationService.connect(LocationService.java:719)
at
com.microsoft.tfs.core.TFSConfigurationServer.getServerDataProvider(TFSConfigurationServer.java:254)
at
com.microsoft.tfs.core.TFSConnection.authenticate(TFSConnection.java:788)
at
com.microsoft.tfs.client.common.ui.commands.ConnectToConfigurationServerCommand.doRun(ConnectToConfigurationServerCommand.java:164)
at
com.microsoft.tfs.client.common.framework.command.Command.run(Command.java:92)
at
com.microsoft.tfs.client.common.framework.command.RunnableCommandAdapter.run(RunnableCommandAdapter.java:95)
at java.lang.Thread.run(Unknown Source)

The solution is Using Eclipse Mars or Eclipse Neon.

I installed eclipse Oxygen today and I installed the TFS plugin this site: http://dl.microsoft.com/eclipse/tfs and it is working well.
Window > Install new software > http://dl.microsoft.com/eclipse/tfs

Related

Unable to start aplication server from Intershop Studio

After upgrading Intershop project from version 7.10.29.2 to 7.10.38.9-LTS (using Responsive Starter Store 32.2.3) application server can't be started from Intershop Studio any more.
I noticed that the server launch configuration classpath for tools.jar points to the wrong place (${IS_HOME}/engine/jdk/lib/tools.jar instead %JAVA_HOME%/lib/tools.jar) but I was unable to change the classpath permanently - all changes in classpath configuration are ignored without any warning or error after applying them.
Jun 13, 2022 10:16:21 AM org.apache.tomcat.util.scan.StandardJarScanner processURLs
WARNING: Failed to scan [file:/C:/DEV/intershop-ci/sources/projects/webshop/build/server/local/engine/jdk/lib/tools.jar] from classloader hierarchy
java.io.FileNotFoundException: C:\DEV\intershop-ci\sources\projects\webshop\build\server\local\engine\jdk\lib\tools.jar (The system cannot find the path specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:228)
at java.util.zip.ZipFile.(ZipFile.java:157)
It could be related to the selected Version field in the "Server and Developer Home" configuration. You can find that preference dialog in Window->Preferences->Intershop Studio

jBPM process is never exported into jar with Build & Deploy (KIE workbench 6.5.0)

I am working on a project in which I have defined a simple jBPM process.
When I try to Build & Deploy this project the generated (k)jar seems correct but the defined business process is never exported: I need to include it manually by dropping it into the jar.
What is needed to to build, export and deploy a business process in KIE workbench?
The org.drools and org.jbpm were included at some time just to find out if that would force a succesful exportation of my business process, but it did not. Perhaps I need to include another build plugin, but according to documentation the current one should be sufficient.
I am working on a Wildfly 10.
The build log in console:
09:27:09,084 INFO [org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder] (Thread-154) Incremental build request received for: default://master#myRepository/myProject/src/main/resources/META-INF/kmodule.xml (updated).
09:27:09,224 INFO [org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder] (EJB default - 8) Incremental build request being processed: PathImpl{uri='default://master#myRepository/myProject', fileName='myProject', attrs={}} (updated).
09:27:10,697 WARN [org.drools.compiler.kie.builder.impl.AbstractKieModule] (EJB default - 8) No files found for KieBase default
09:27:10,698 INFO [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (EJB default - 8) KieModule was added: MemoryKieModule[releaseId=myOrganization:myProject:1.0.0-SNAPSHOT]
09:27:11,724 INFO [AssetMgmt] (default task-33) Auto approve for user: Drools
09:27:11,725 INFO [AssetMgmt] (default task-33) Operation : Build and deploy project
09:27:11,725 INFO [AssetMgmt] (default task-33) Repository : myRepository/myProject
09:27:11,725 INFO [AssetMgmt] (default task-33) Project : null
09:27:11,734 INFO [org.guvnor.asset.management.backend.handlers.AssetMgmtStartWorkItemHandler] (default task-33) Start asset management process: BuildProject
09:27:13,311 WARN [org.drools.compiler.kie.builder.impl.AbstractKieModule] (EJB default - 2) No files found for KieBase default
09:27:13,311 INFO [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (EJB default - 2) KieModule was added: MemoryKieModule[releaseId=myOrganization:myProject:1.0.0-SNAPSHOT]
09:27:19,316 WARN [org.drools.compiler.kie.builder.impl.AbstractKieModule] (EJB default - 4) No files found for KieBase default
09:27:19,317 INFO [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (EJB default - 4) KieModule was added: MemoryKieModule[releaseId=myOrganization:myProject:1.0.0-SNAPSHOT]
09:27:23,176 INFO [stdout] (EJB default - 4) Deploy of myOrganization:myProject:1.0.0-SNAPSHOT into runtime is skipped
Many thanks in advance.
This question is also exposed on the jBPM usage forum.
Code source is available on github.
Maven build kjar is available on github.
EDITS:
- I removed the code of my pom.xml since it is now available on GitHub.
- I can only post a maximum of two links, so I removed the link to the isue on the jBPM usage forum.
- I included the log output of the build.
I have encountered the error.
The error is that the process contained a rule task without assigning a ruleflow-group. This error was not detected during building & deploying but I detected it by coincidence in the console of Wildfly. Once I assigned a ruleflow-group to the task the process was exported.
I think this error should be elevated to the workbench messages since the user is not alarmed.
I updated the projects on GitHub.
Thank you.

WSO2IS 5.1.0 - IWA not working in Internet Explorer - com.sun.jna.platform.win32.Win32Exception: The token supplied to the function is invalid

We are using WSO2 identity server for user authentication in our product suite. Recently we have upgraded its version from 5.0.0 to 5.1.0.
After upgrading to WSO2 identity server 5.1.0 version we are getting following exception when we enable IWA (Integrated Windows Authentication)
TID: [-1234] [] [2016-07-21 18:46:52,606] DEBUG {waffle.servlet.spi.NegotiateSecurityFilterProvider} - security package: Negotiate, connection id: fe80:0:0:0:f1da:6adb:d83e:18d6%6:64966
TID: [-1234] [] [2016-07-21 18:46:52,622] DEBUG {waffle.servlet.spi.NegotiateSecurityFilterProvider} - token buffer: 1629 byte(s)
TID: [-1234] [] [2016-07-21 18:46:52,675] ERROR {org.apache.catalina.core.StandardWrapperValve} - Servlet.service() for servlet [bridgeservlet] in context with path [/] threw exception
com.sun.jna.platform.win32.Win32Exception: The token supplied to the function is invalid
at waffle.windows.auth.impl.WindowsAuthProviderImpl.acceptSecurityToken(WindowsAuthProviderImpl.java:137)
at waffle.servlet.spi.NegotiateSecurityFilterProvider.doFilter(NegotiateSecurityFilterProvider.java:102)
at waffle.servlet.spi.SecurityFilterProviderCollection.doFilter(SecurityFilterProviderCollection.java:116)
at org.wso2.carbon.identity.application.authenticator.iwa.servlet.IWAServelet.doPost(IWAServelet.java:89)
at org.wso2.carbon.identity.application.authenticator.iwa.servlet.IWAServelet.doGet(IWAServelet.java:64)
After searching for the problem on Google we came across following post.
https://github.com/dblock/waffle/issues/107
It looks like there was some issue in the earlier version of Waffle library which is resolved in 1.7.4 version.
WSO2 Identity server 5.1.0 comes with Waffle library version 1.6.0 (waffle-jna_1.6.0.wso2v4.jar).
Now my question is do we have any WSO2 Identity server patch available which includes the latest Waffle library (version 1.7.4 or above)?
Can we simply download the latest version of Waffle and put into “wso2is-5.1.0\repository\components\plugins” folder? Will it work?
We need to see if it resolves the above stated problem. We are unable to find any other solution to this issue.
Putting the new version in the plugins folder won't work. You'll need to follow these steps,
Get the waffle 1.7.4 wrapped as an OSGi bundle. You can refer this pom file which does the same for 1.6 version. Make sure the versions are properly updated in the new pom file.
Build from the pom file you created above to get the OSGi bundle
Put it into repository\components\dropins\ folder and restart the IS
[Validation Step][Optional] Start IS in OSGI console with wso2server.bat -DosgiConsole. Once the server is up run ss in the osgi console and locate the bundle id for org.wso2.carbon.identity.application.authenticator.iwa (This will be an integer below ~500). And then b <bundle_id> and make sure it binds the 1.7 versions of waffle packages.

Fail to start MobileFirst development server

I have the following environment:
Windows 7 64-bit OS;
Eclipse Kepler SR2 32-bit + JDK 1.7 32-bit;
MobileFirst Platform Studio 6.3 20150106-1717
When I opened my eclipse I clicked on the green play button to start the development server, I got the following errors; or if I create a simple project and attempt to deploy it on the dev server, same errors come out; or if I delete the server and create a new one and then try to start it; or if I install 64-bit eclipse with 64-bit Java 7:
com.ibm.ws.kernel.boot.LaunchException: Caught unexpected exception java.lang.IllegalArgumentException: URI has an authority component
at com.ibm.ws.kernel.boot.internal.KernelBootstrap.rethrowException(KernelBootstrap.java:418)
at com.ibm.ws.kernel.boot.internal.KernelBootstrap.go(KernelBootstrap.java:183)
at com.ibm.ws.kernel.boot.Launcher.createPlatform(Launcher.java:131)
at com.ibm.ws.kernel.boot.Launcher.main(Launcher.java:55)
at com.ibm.ws.kernel.boot.cmdline.EnvCheck.main(EnvCheck.java:52)
Caused by: java.lang.IllegalArgumentException: URI has an authority component
at java.io.File.<init>(Unknown Source)
at com.ibm.ws.kernel.boot.cmdline.Utils.getInstallDir(Utils.java:38)
at com.ibm.ws.kernel.productinfo.ProductInfo.getAllProductInfo(ProductInfo.java:53)
at com.ibm.ws.kernel.boot.internal.KernelBootstrap.getProductInfoDisplayName(KernelBootstrap.java:395)
at com.ibm.ws.kernel.boot.internal.KernelBootstrap.go(KernelBootstrap.java:119)
... 3 more
Listening for transport dt_socket at address: 10777
CWWKE0005E: The runtime environment could not be launched.
CWWKE0018E: An exception occurred while launching the runtime environment: java.lang.IllegalArgumentException: URI has an authority component
I tried everything but no luck, so please diagnose this issue, thanks.
This is unrelated to MobileFirst Platform, and may be instead related to the problem described in the following IBM tech note: http://www-01.ibm.com/support/docview.wss?uid=swg21584343
It is unclear from the question and comments if the workspace is in a different network drive than the Eclipse folder. If yes, consider placing both in the the same "physical location".
I did realize my system location was out of sync thus I did open the jvm.options file and copy pasted the below configuration
-Dibm.worklight.admin.db.type=DERBY
-Dfile.encoding=UTF-8
-Duser.language=en
-Duser.country=US
-Djava.awt.headless=true
-Dwas.debug.mode=true
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=10777
-Dcom.ibm.websphere.ras.inject.at.transform=true
-Dcom.ibm.ws.jmx.connector.client.rest.readTimeout=180000
-Dibm.worklight.admin.db.type=DERBY
-Xmx1024m
-Dos.name=Windows
-DwlSyncStart=false
-Dibm.worklight.rhino.debug=transport=socket,address=9000
Which worked in my case , all the best.

Liferay + jboss

I am trying start jboss and I have an error. I use jboss 7.1.1 and Liferay. What is wrong?
12:25:26,707 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBA
S015877: Stopped deployment ROOT.war in 235420ms
12:25:35,754 ERROR [stderr] (com.liferay.portal.kernel.deploy.auto.AutoDeploySca
nner) Exception in thread "com.liferay.portal.kernel.deploy.auto.AutoDeployScann
er" java.lang.NoClassDefFoundError: org/apache/tools/ant/types/resources/FailFas
t
12:25:35,785 ERROR [stderr] (com.liferay.portal.kernel.deploy.auto.AutoDeploySca
nner) at org.apache.tools.ant.types.resources.BaseResourceCollectionContainer.
iterator(BaseResourceCollectionContainer.java:142)
12:25:35,801 ERROR [stderr] (com.liferay.portal.kernel.deploy.auto.AutoDeploySca
nner) at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:135)
12:25:35,801 ERROR [stderr] (com.liferay.portal.kernel.deploy.auto.AutoDeploySca
nner) at com.liferay.util.ant.ExpandTask.expand(ExpandTask.java:33)
12:25:35,801 ERROR [stderr] (com.liferay.portal.kernel.deploy.auto.AutoDeploySca
nner) at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.
java:955)
12:25:35,801 ERROR [stderr] (com.liferay.portal.kernel.deploy.auto.AutoDeploySca
nner) at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.
java:889)
12:25:35,801 ERROR [stderr] (com.liferay.portal.kernel.deploy.auto.AutoDeploySca
nner) at com.liferay.portal.tools.deploy.BaseDeployer.autoDeploy(BaseDeployer.
java:198)
Step 1: To setup machine for Liferay development first of all you will need to download and install all required software as described below.
JAVA (JDK & JRE)
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Eclipse IDE
http://www.eclipse.org/downloads/
Liferay JBOSS bundle (Community Edition or Enterprise Edition as per your requirements and preferences), Liferay Tomcat bundle (For server run time selection), Liferay Plugin SDK (For Development of plugins like hooks, portlets, themes etc.
http://www.liferay.com/downloads/liferay-portal/available-releases
Apache Ant (For build and deployment of projects).
Step 2: Now set environment variables in your machine.
Set JAVA_HOME
Set JBOSS_HOME
Set LIFERAY_HOME
Set ANT_HOME
Step 3: Open Eclipse and install Liferay IDE.
Go to Help -> Eclipse Marketplace
Search for "Liferay".
Install Liferay IDE and restart eclipse.
Step 4: To configure Liferay Plugin-SDK
Go to Window -> Preferences -> Liferay
Add Liferay Plugin-SDK
Here you will option to update build.<username>.properties file. Select
prompt.
That's it your system is ready with development environment for Liferay.
Step 6: In Liferay Plugin-SDK folder there will be a file called
build.username.properties
Set path of server to refer JBOSS directory.
Step 7:Create new Liferay Plugin Project.
Inside that Create New Portlet Project.
Select Liferay Portal Runtime as Tomcat, because Eclipse doesn't provide
runtime for JBOSS Application server so use some tricky way to deal with it.
After clicking on finish it will ask for updating build.<username>.properties file.
Select "No" option.
Okay Now you are done with project creation and Setting deployment server
as JBOSS.
Step 8: Deploy Liferay Portlet Project.
Step 9: Run standalone.bat from bin directory of JBOSS
For more details follow this blog http://liferaywithjboss.blogspot.in/.
Let me know if you need more details for the same.
Check your jboss-deployment-structure.xml file in ROOT.war/WEB-INF/ location to see any of the dependency modules mentioned in there uses ant-*.jars. The issue could be due to multiple jars with the same classname in the classpath.
new liferay versions provide a wildfly bundle... this could be a starting point, neverthelesse ClassNotFound typically originates from missing jars in that special context, whether physically or suppressed by the jboss modul-system ( starting is here the deployment-structure file, or even worse the module directory of your installation)
but in the end a guy like me decides often to get a new working environment before diving into that voluntarily...