[JBoss JIRA] (JBIDE-25804) Integration tests are not able to download eclipse
by Lukáš Valach (JIRA)
[ https://issues.jboss.org/browse/JBIDE-25804?page=com.atlassian.jira.plugi... ]
Lukáš Valach commented on JBIDE-25804:
--------------------------------------
I replaced the bash script which was responsible for processing of jbosstools-jenkins.properties \[1\] by groovy script \[2\]. Groovy script GetEclipseLink.groovy is stored in jenkins (Jenkins->Scriptler) because it needs a permission to set environment variable. The advantage is that now we can maintain single script instead of maintaining a copy of bash code in each job. Groovy script also don't have to be followed be "Inject environment variable" build step.
\[1\]
{code}
# If $ECLIPSE_URL is set, it will be used, otherwise URL from GitHub/jbosstools-jenkins.properties will be used.
# fetch eclipse tarball from jbosstools-jenkins.properties
curl -s -S -k https://raw.githubusercontent.com/jbosstools/jbosstools-build-ci/master/u... > jbosstools-jenkins.properties
downloadPhpURL=`grep -Po '(?<=downloadPhpURL=).*' jbosstools-jenkins.properties`
eclipseJeeURL=`grep -Po '(?<=eclipseJeeURL=).*' jbosstools-jenkins.properties`
if [ -z "$ECLIPSE_URL" ]
then
echo "\$ECLIPSE_URL is empty, a configuration from github/jbosstools-jenkins.properties will be used."
if [[ $a == "/*" ]]; then
#There is relative path in eclipseJeeURL, have to be connected with downloadPhpURL
echo "FINAL_ECLIPSE_URL=${downloadPhpURL}${eclipseJeeURL}" >> jbosstools-jenkins.properties
else
echo "FINAL_ECLIPSE_URL=${eclipseJeeURL}" >> jbosstools-jenkins.properties
fi
cat jbosstools-jenkins.properties
else
echo "\$ECLIPSE_URL is set."
echo "FINAL_ECLIPSE_URL=${ECLIPSE_URL}" >> jbosstools-jenkins.properties
cat jbosstools-jenkins.properties
fi
{code}
\[2\]
{code}
/**
* Finds and set link to eclipse.tar.gz into FINAL_ECLIPSE_URL parameter. If property ECLIPSE_URL is set (and isn't empty), its value will be used, otherwise URL will be taken from https://raw.githubusercontent.com/jbosstools/jbosstools-build-ci/master/u...
*
* This script uses some features of Hudson API which may requires additional permissions. See JBIDE-25515.
*
* @author Lukas Valach (lvalach(a)redhat.com)
*/
import hudson.model.ParametersAction;
import hudson.model.StringParameterValue;
final String eclipseUrlEnvVariable = 'ECLIPSE_URL'
final String finalEclipseUrlEnvVariable = 'FINAL_ECLIPSE_URL'
final String jbosstoolsJenkinsProperties = 'https://raw.githubusercontent.com/jbosstools/jbosstools-build-ci/master/u...'
def config = new HashMap();
def bindings = getBinding();
config.putAll(bindings.getVariables());
def out = config['out'];
// load ECLIPSE_URL property
final currentJobExecutable = Thread.currentThread().executable;
final eclipseUrl = currentJobExecutable.properties.get("envVars")[eclipseUrlEnvVariable];
// if ECLIPSE_URL is set and isn't empty then use its original value
if (eclipseUrl != null && !eclipseUrl.empty) {
printDebugMessage("Property " + eclipseUrlEnvVariable + " is set, so its value will be copied into " + finalEclipseUrlEnvVariable + " property.");
setJenkinsParameter(finalEclipseUrlEnvVariable,eclipseUrl);
return;
}
printDebugMessage("Configuration will be loaded from: " + jbosstoolsJenkinsProperties);
// load propeties from configuration file
Properties jbtProps = propertyFileFromUrl(jbosstoolsJenkinsProperties);
String downloadPhpURL = jbtProps.getProperty("downloadPhpURL");
String eclipseJeeURL = jbtProps.getProperty("eclipseJeeURL");
printDebugMessage("Property downloadPhpURL=" + downloadPhpURL);
printDebugMessage("Property eclipseJeeURL=" + eclipseJeeURL);
String finalDownloadUrl;
if (eclipseJeeURL.startsWith("/")) {
printDebugMessage("There is relative path in eclipseJeeURL property, so it have to be connected with downloadPhpURL.");
finalDownloadUrl = downloadPhpURL + eclipseJeeURL;
} else {
finalDownloadUrl = eclipseJeeURL;
}
setJenkinsParameter(finalEclipseUrlEnvVariable,finalDownloadUrl);
// read properties from properties file at given url
private static Properties propertyFileFromUrl(String url){
InputStream is = new URL(url).openConnection().getInputStream();
def props = new Properties();
props.load(is);
is.close();
return props;
}
// set value of jenkins parameter
private void setJenkinsParameter (String paramName , String paramValue){
def parameterAction = new ParametersAction(new StringParameterValue(paramName, paramValue));
printDebugMessage("Sets Jenkins paramter: [" + paramName + ":" + paramValue + "]");
Thread.currentThread().executable.addAction(parameterAction);
}
// print debug message
def printDebugMessage (message){
out.println "[GetEclipseLink.groovy] " + message;
}
{code}
> Integration tests are not able to download eclipse
> --------------------------------------------------
>
> Key: JBIDE-25804
> URL: https://issues.jboss.org/browse/JBIDE-25804
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: integration-tests
> Affects Versions: 4.5.3.AM3
> Reporter: Lukáš Valach
> Assignee: Lukáš Valach
> Fix For: 4.5.3.AM3
>
>
> There is a configuration file \[1\] which contains URL to latest Eclipse. Since 4.5.3.AM2 there is absolute path in eclipseJeeURL, but my test are able to work only with relative path. I have to adapt them.
> \[1\] https://raw.githubusercontent.com/jbosstools/jbosstools-build-ci/master/u...
> Next problem is that script getAndInstallEclipse.groovy is not albe to download eclipse from \[2\] (maybe because of HTTPS?)
> \[2\] https://ci.eclipse.org/packaging/job/oxygen.epp-tycho-build/455/artifact/...
> Affected jobs:
> https://dev-platform-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/Devstud...
> https://dev-platform-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/Devstud...
> https://dev-platform-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/Devstud...
> https://dev-platform-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/Devstud...
> https://dev-platform-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/Devstud...
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years
[JBoss JIRA] (JBIDE-25700) Hot deploy of Spring Boot on OpenShift is not working with OpenShift Online
by Aurélien Pupier (JIRA)
[ https://issues.jboss.org/browse/JBIDE-25700?page=com.atlassian.jira.plugi... ]
Aurélien Pupier commented on JBIDE-25700:
-----------------------------------------
[~dbokde] have you had time to work on it?
> Hot deploy of Spring Boot on OpenShift is not working with OpenShift Online
> ---------------------------------------------------------------------------
>
> Key: JBIDE-25700
> URL: https://issues.jboss.org/browse/JBIDE-25700
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.5.2.Final
> Reporter: Aurélien Pupier
> Assignee: Andre Dietisheim
> Priority: Critical
> Labels: online, springboot
> Fix For: 4.5.3.AM3
>
>
> neither with open.paas.redhat.com
> so only when using the CDK.
> it seems to be due to the fact that the user in the pod are not the same.
> Jeff said:
> {quote}
> For SpringBoot deployments, the application file is called a fat jar and it placed in the /deployments folder (images are upstream fabric8/s2i-java or imagestream redhat-openjdk18-openshift). In order to get live update the file is then unzipped to the /deployments folder leaded to new sub folders BOOT-INF and META-INF
> The user permissions on those folders are the following:
> /deployments: writable by user jboss and group root
> /deployments/BOOT-INF: writable by user jboss readable only by group root
> /deployments/META-INF: writable by user jboss readable only by group root
> The rsync process with create some sub folders under /deployments/BOOT-INF. The problem that we have is that the user that is assigned for the rsync operation (or when you open a terminal in the OpenShift console) is not jboss (as opposed to Minishift/CDK) and thus we have permissions errors during the rsync operation.
> {quote}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years
[JBoss JIRA] (JBIDE-25773) EAP 4.2 and EAP 5.2 shows an error when restarting
by Josef Kopriva (JIRA)
[ https://issues.jboss.org/browse/JBIDE-25773?page=com.atlassian.jira.plugi... ]
Josef Kopriva commented on JBIDE-25773:
---------------------------------------
Thank you for clarification [~rob.stryker]!
> EAP 4.2 and EAP 5.2 shows an error when restarting
> --------------------------------------------------
>
> Key: JBIDE-25773
> URL: https://issues.jboss.org/browse/JBIDE-25773
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: server
> Affects Versions: 4.5.3.AM2
> Environment: F27
> Red Hat JBoss Developer Studio
> Version: 11.3.0.AM2
> Build id: AM2-v20180301-2015-B2134
> Build date: 20180301-2015
> Reporter: Josef Kopriva
> Assignee: Rob Stryker
> Priority: Minor
> Fix For: 4.5.3.AM3
>
> Attachments: image-2018-03-06-10-33-06-923.png
>
>
> {code:java}
> null
> org.jboss.ide.eclipse.as.core
> Warning
> Tue Mar 06 10:32:47 CET 2018
> JBossTools was unable to resume the JBoss deployment scanner. Your deployment may not be recognized by the server. Please ensure your version of JBoss includes an unsecured JMX adapter.
> org.eclipse.core.runtime.CoreException: Error connecting to remote JMX. Please ensure your server is properly configured for JMX access.
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerJMXRunner.run(JBossServerJMXRunner.java:35)
> at org.jboss.ide.eclipse.as.core.server.internal.JBossLT6ModuleStateVerifier.getModuleState(JBossLT6ModuleStateVerifier.java:139)
> at org.jboss.ide.eclipse.as.core.server.internal.UpdateModuleStateJob.getModuleState(UpdateModuleStateJob.java:128)
> at org.jboss.ide.eclipse.as.core.server.internal.UpdateModuleStateJob.runWait(UpdateModuleStateJob.java:94)
> at org.jboss.ide.eclipse.as.core.server.internal.UpdateModuleStateJob.run(UpdateModuleStateJob.java:79)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
> Caused by: org.jboss.tools.jmx.core.JMXException: Error connecting to remote JMX. Please ensure your server is properly configured for JMX access.
> at org.jboss.ide.eclipse.as.jmx.integration.JBossJMXConnectionProviderModel.run(JBossJMXConnectionProviderModel.java:84)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerJMXRunner.run(JBossServerJMXRunner.java:32)
> ... 5 more
> Caused by: org.jboss.tools.jmx.core.JMXException: Error connecting to remote JMX. Please ensure your server is properly configured for JMX access.
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:228)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:161)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:136)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:131)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossJMXConnectionProviderModel.run(JBossJMXConnectionProviderModel.java:81)
> ... 6 more
> Caused by: java.lang.SecurityException: Failed to authenticate principal=admin, securityDomain=jmx-console
> at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:89)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
> at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:180)
> at sun.reflect.GeneratedMethodAccessor270.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
> at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
> at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:855)
> at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:422)
> at sun.reflect.GeneratedMethodAccessor269.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
> at sun.rmi.transport.Transport$2.run(Transport.java:202)
> at sun.rmi.transport.Transport$2.run(Transport.java:199)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.Transport.serviceCall(Transport.java:198)
> at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:567)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.access$400(TCPTransport.java:619)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:684)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:681)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:681)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:283)
> at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:260)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161)
> at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
> at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:133)
> at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:416)
> at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:248)
> at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:66)
> at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)
> at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
> at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)
> at com.sun.proxy.$Proxy83.getDomains(Unknown Source)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.createConnection(JBossServerConnection.java:249)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:210)
> ... 10 more
> {code}
> {code:java}
> null
> org.jboss.ide.eclipse.as.jmx.integration
> Error
> Tue Mar 06 10:32:47 CET 2018
> Error connecting to remote JMX. Please ensure your server is properly configured for JMX access.
> org.jboss.tools.jmx.core.JMXException: Error connecting to remote JMX. Please ensure your server is properly configured for JMX access.
> at org.jboss.ide.eclipse.as.jmx.integration.JBossJMXConnectionProviderModel.run(JBossJMXConnectionProviderModel.java:84)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerJMXRunner.run(JBossServerJMXRunner.java:32)
> at org.jboss.ide.eclipse.as.core.server.internal.JBossLT6ModuleStateVerifier.getModuleState(JBossLT6ModuleStateVerifier.java:139)
> at org.jboss.ide.eclipse.as.core.server.internal.UpdateModuleStateJob.getModuleState(UpdateModuleStateJob.java:128)
> at org.jboss.ide.eclipse.as.core.server.internal.UpdateModuleStateJob.runWait(UpdateModuleStateJob.java:94)
> at org.jboss.ide.eclipse.as.core.server.internal.UpdateModuleStateJob.run(UpdateModuleStateJob.java:79)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
> Caused by: org.jboss.tools.jmx.core.JMXException: Error connecting to remote JMX. Please ensure your server is properly configured for JMX access.
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:228)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:161)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:136)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:131)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossJMXConnectionProviderModel.run(JBossJMXConnectionProviderModel.java:81)
> ... 6 more
> Caused by: java.lang.SecurityException: Failed to authenticate principal=admin, securityDomain=jmx-console
> at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:89)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
> at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:180)
> at sun.reflect.GeneratedMethodAccessor270.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
> at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
> at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:855)
> at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:422)
> at sun.reflect.GeneratedMethodAccessor269.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
> at sun.rmi.transport.Transport$2.run(Transport.java:202)
> at sun.rmi.transport.Transport$2.run(Transport.java:199)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.Transport.serviceCall(Transport.java:198)
> at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:567)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.access$400(TCPTransport.java:619)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:684)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:681)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:681)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:283)
> at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:260)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161)
> at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
> at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:133)
> at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:416)
> at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:248)
> at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:66)
> at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)
> at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
> at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)
> at com.sun.proxy.$Proxy83.getDomains(Unknown Source)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.createConnection(JBossServerConnection.java:249)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:210)
> ... 10 more
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years
[JBoss JIRA] (JBIDE-25773) EAP 4.2 and EAP 5.2 shows an error when restarting
by Rob Stryker (JIRA)
[ https://issues.jboss.org/browse/JBIDE-25773?page=com.atlassian.jira.plugi... ]
Rob Stryker resolved JBIDE-25773.
---------------------------------
Fix Version/s: 4.5.3.AM3
Assignee: Rob Stryker
Resolution: Rejected
This is a user error.
EAP 5.2 and EAP 4.x require you to enable JMX. The user must hand-edit the jboss-as/server/default/conf/props/jmx-console-users.properties file, and then, in the server editor, enable JMX.
My tests have shown that if you fail to do this, even the normal "stop" fails. The errors you are showing in the log are from deployment scanners, and is unrelated to whether the server can successfully start or stop. You must instead look in the console while attempting to stop the server to see what's going wrong.
And what you find out there is the first attempt to stop fails, because the client cannot log in via jmx, because the server has not exposed a jmx user or you have not set the credentials in the server editor. The second attempt to stop will fail in the same way, HOWEVER, it may appear to succeed (process is terminated, server is 'stopped') because we force-terminate the server after the second failure.
So if your workflow is start the server, restart the server (fails), stop the server (fails but appears to work because it force-terminates the process) then you will be misled. You are not seeing the 'stop' succeed, but rather it has failed a second time and has performed a hard-terminate instead.
Since this is user-error, I am rejecting the jira.
> EAP 4.2 and EAP 5.2 shows an error when restarting
> --------------------------------------------------
>
> Key: JBIDE-25773
> URL: https://issues.jboss.org/browse/JBIDE-25773
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: server
> Affects Versions: 4.5.3.AM2
> Environment: F27
> Red Hat JBoss Developer Studio
> Version: 11.3.0.AM2
> Build id: AM2-v20180301-2015-B2134
> Build date: 20180301-2015
> Reporter: Josef Kopriva
> Assignee: Rob Stryker
> Priority: Minor
> Fix For: 4.5.3.AM3
>
> Attachments: image-2018-03-06-10-33-06-923.png
>
>
> {code:java}
> null
> org.jboss.ide.eclipse.as.core
> Warning
> Tue Mar 06 10:32:47 CET 2018
> JBossTools was unable to resume the JBoss deployment scanner. Your deployment may not be recognized by the server. Please ensure your version of JBoss includes an unsecured JMX adapter.
> org.eclipse.core.runtime.CoreException: Error connecting to remote JMX. Please ensure your server is properly configured for JMX access.
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerJMXRunner.run(JBossServerJMXRunner.java:35)
> at org.jboss.ide.eclipse.as.core.server.internal.JBossLT6ModuleStateVerifier.getModuleState(JBossLT6ModuleStateVerifier.java:139)
> at org.jboss.ide.eclipse.as.core.server.internal.UpdateModuleStateJob.getModuleState(UpdateModuleStateJob.java:128)
> at org.jboss.ide.eclipse.as.core.server.internal.UpdateModuleStateJob.runWait(UpdateModuleStateJob.java:94)
> at org.jboss.ide.eclipse.as.core.server.internal.UpdateModuleStateJob.run(UpdateModuleStateJob.java:79)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
> Caused by: org.jboss.tools.jmx.core.JMXException: Error connecting to remote JMX. Please ensure your server is properly configured for JMX access.
> at org.jboss.ide.eclipse.as.jmx.integration.JBossJMXConnectionProviderModel.run(JBossJMXConnectionProviderModel.java:84)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerJMXRunner.run(JBossServerJMXRunner.java:32)
> ... 5 more
> Caused by: org.jboss.tools.jmx.core.JMXException: Error connecting to remote JMX. Please ensure your server is properly configured for JMX access.
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:228)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:161)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:136)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:131)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossJMXConnectionProviderModel.run(JBossJMXConnectionProviderModel.java:81)
> ... 6 more
> Caused by: java.lang.SecurityException: Failed to authenticate principal=admin, securityDomain=jmx-console
> at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:89)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
> at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:180)
> at sun.reflect.GeneratedMethodAccessor270.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
> at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
> at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:855)
> at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:422)
> at sun.reflect.GeneratedMethodAccessor269.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
> at sun.rmi.transport.Transport$2.run(Transport.java:202)
> at sun.rmi.transport.Transport$2.run(Transport.java:199)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.Transport.serviceCall(Transport.java:198)
> at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:567)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.access$400(TCPTransport.java:619)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:684)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:681)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:681)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:283)
> at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:260)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161)
> at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
> at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:133)
> at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:416)
> at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:248)
> at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:66)
> at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)
> at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
> at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)
> at com.sun.proxy.$Proxy83.getDomains(Unknown Source)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.createConnection(JBossServerConnection.java:249)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:210)
> ... 10 more
> {code}
> {code:java}
> null
> org.jboss.ide.eclipse.as.jmx.integration
> Error
> Tue Mar 06 10:32:47 CET 2018
> Error connecting to remote JMX. Please ensure your server is properly configured for JMX access.
> org.jboss.tools.jmx.core.JMXException: Error connecting to remote JMX. Please ensure your server is properly configured for JMX access.
> at org.jboss.ide.eclipse.as.jmx.integration.JBossJMXConnectionProviderModel.run(JBossJMXConnectionProviderModel.java:84)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerJMXRunner.run(JBossServerJMXRunner.java:32)
> at org.jboss.ide.eclipse.as.core.server.internal.JBossLT6ModuleStateVerifier.getModuleState(JBossLT6ModuleStateVerifier.java:139)
> at org.jboss.ide.eclipse.as.core.server.internal.UpdateModuleStateJob.getModuleState(UpdateModuleStateJob.java:128)
> at org.jboss.ide.eclipse.as.core.server.internal.UpdateModuleStateJob.runWait(UpdateModuleStateJob.java:94)
> at org.jboss.ide.eclipse.as.core.server.internal.UpdateModuleStateJob.run(UpdateModuleStateJob.java:79)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
> Caused by: org.jboss.tools.jmx.core.JMXException: Error connecting to remote JMX. Please ensure your server is properly configured for JMX access.
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:228)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:161)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:136)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:131)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossJMXConnectionProviderModel.run(JBossJMXConnectionProviderModel.java:81)
> ... 6 more
> Caused by: java.lang.SecurityException: Failed to authenticate principal=admin, securityDomain=jmx-console
> at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:89)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
> at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:180)
> at sun.reflect.GeneratedMethodAccessor270.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
> at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
> at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:855)
> at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:422)
> at sun.reflect.GeneratedMethodAccessor269.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
> at sun.rmi.transport.Transport$2.run(Transport.java:202)
> at sun.rmi.transport.Transport$2.run(Transport.java:199)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.Transport.serviceCall(Transport.java:198)
> at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:567)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.access$400(TCPTransport.java:619)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:684)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:681)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:681)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:283)
> at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:260)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161)
> at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
> at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:133)
> at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:416)
> at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:248)
> at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:66)
> at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)
> at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
> at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)
> at com.sun.proxy.$Proxy83.getDomains(Unknown Source)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.createConnection(JBossServerConnection.java:249)
> at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:210)
> ... 10 more
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years
[JBoss JIRA] (JBDS-4684) Remove "standalone" from installation jar
by Denis Golovin (JIRA)
[ https://issues.jboss.org/browse/JBDS-4684?page=com.atlassian.jira.plugin.... ]
Denis Golovin commented on JBDS-4684:
-------------------------------------
It would work for me. I just need a link in download manager to work with when we release everything.
> Remove "standalone" from installation jar
> -----------------------------------------
>
> Key: JBDS-4684
> URL: https://issues.jboss.org/browse/JBDS-4684
> Project: Red Hat JBoss Developer Studio (devstudio)
> Issue Type: Enhancement
> Components: installer
> Affects Versions: 11.3.0.AM2
> Reporter: Josef Kopriva
> Assignee: Nick Boldt
> Fix For: 12.x
>
>
> Change jar filename from "devstudio-11.3.0.AM2-v20180301-2015-B2134-installer-standalone.jar" to "devstudio-11.3.0.AM2-v20180301-2015-B2134-installer.jar".
> I do not see a reason to have "standalone" in filename as we do not have jar with bundled EAP for some time.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years
[JBoss JIRA] (JBIDE-25707) "Access is denied" when publishing on OpenShift (CDK)
by Rob Stryker (JIRA)
[ https://issues.jboss.org/browse/JBIDE-25707?page=com.atlassian.jira.plugi... ]
Rob Stryker commented on JBIDE-25707:
-------------------------------------
I've opened https://github.com/jbosstools/jbosstools-openshift/pull/1691
I think this should fix it. In short, there are two APIs to find out this information. For AS and WF and EAP we assume the user can set and override these values in the UI on a per-module basis. For openshift server, the user cannot. So these values were hard-coded in the OpenShiftDeploymentOptionsController. However, some parts of the codebase still used IDeployableServer.getDeployFolder and getTempDeployFolder().
For AS / EAP / WF, the deployment options controller checks the same server variables as the IDeployableServer interface does, so there was no discrepancy. For openshift server, this was not the case.
Another possible workaround is that when a server is created, we set those values in the server object. However... since openshift doesn't have a "runtime", we'd need to set absolute paths on the filesystem, and these paths would become outdated if the server was renamed. It's more likely to cause problems. Instead, it's better to have our server's implementation point to the deployment options controller instead.
> "Access is denied" when publishing on OpenShift (CDK)
> -----------------------------------------------------
>
> Key: JBIDE-25707
> URL: https://issues.jboss.org/browse/JBIDE-25707
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift, server
> Affects Versions: 4.5.2.Final
> Environment: Win10
> Reporter: Josef Kopriva
> Assignee: Jeff MAURY
> Priority: Critical
> Fix For: 4.5.3.AM3
>
>
> Errors in error log:
> {code:java}
> !ENTRY org.jboss.ide.eclipse.as.core 4 1644298244 2018-02-13 11:51:11.164
> !MESSAGE Full publish failed for module jboss-kitchensink
> !SUBENTRY 1 org.jboss.ide.eclipse.as.wtp.core 4 1644298251 2018-02-13 11:51:11.164
> !MESSAGE Error copying file C:/Users/jbossqa/workspace_B2027/.metadata/.plugins/org.jboss.ide.eclipse.as.core/test@eap-app/deploy/ROOT.war/META-INF/MANIFEST.MF: Access is denied
> !SUBENTRY 1 org.jboss.ide.eclipse.as.wtp.core 4 1644298251 2018-02-13 11:51:11.164
> !MESSAGE Error copying file C:/Users/jbossqa/workspace_B2027/.metadata/.plugins/org.jboss.ide.eclipse.as.core/test@eap-app/deploy/ROOT.war/WEB-INF/classes/META-INF/persistence.xml: Access is denied
> !SUBENTRY 1 org.jboss.ide.eclipse.as.wtp.core 4 1644298251 2018-02-13 11:51:11.164
> !MESSAGE Error copying file C:/Users/jbossqa/workspace_B2027/.metadata/.plugins/org.jboss.ide.eclipse.as.core/test@eap-app/deploy/ROOT.war/WEB-INF/classes/import.sql: Access is denied
> !SUBENTRY 1 org.jboss.ide.eclipse.as.wtp.core 4 1644298251 2018-02-13 11:51:11.164
> !MESSAGE Error copying file C:/Users/jbossqa/workspace_B2027/.metadata/.plugins/org.jboss.ide.eclipse.as.core/test@eap-app/deploy/ROOT.war/WEB-INF/beans.xml: Access is denied
> !SUBENTRY 1 org.jboss.ide.eclipse.as.wtp.core 4 1644298251 2018-02-13 11:51:11.164
> !MESSAGE Error copying file C:/Users/jbossqa/workspace_B2027/.metadata/.plugins/org.jboss.ide.eclipse.as.core/test@eap-app/deploy/ROOT.war/WEB-INF/faces-config.xml: Access is denied
> !SUBENTRY 1 org.jboss.ide.eclipse.as.wtp.core 4 1644298251 2018-02-13 11:51:11.164
> !MESSAGE Error copying file C:/Users/jbossqa/workspace_B2027/.metadata/.plugins/org.jboss.ide.eclipse.as.core/test@eap-app/deploy/ROOT.war/WEB-INF/kitchensink-quickstart-ds.xml: Access is denied
> !SUBENTRY 1 org.jboss.ide.eclipse.as.wtp.core 4 1644298251 2018-02-13 11:51:11.164
> !MESSAGE Error copying file C:/Users/jbossqa/workspace_B2027/.metadata/.plugins/org.jboss.ide.eclipse.as.core/test@eap-app/deploy/ROOT.war/WEB-INF/templates/default.xhtml: Access is denied
> !SUBENTRY 1 org.jboss.ide.eclipse.as.wtp.core 4 1644298251 2018-02-13 11:51:11.164
> !MESSAGE Error copying file C:/Users/jbossqa/workspace_B2027/.metadata/.plugins/org.jboss.ide.eclipse.as.core/test@eap-app/deploy/ROOT.war/index.html: Access is denied
> !SUBENTRY 1 org.jboss.ide.eclipse.as.wtp.core 4 1644298251 2018-02-13 11:51:11.164
> !MESSAGE Error copying file C:/Users/jbossqa/workspace_B2027/.metadata/.plugins/org.jboss.ide.eclipse.as.core/test@eap-app/deploy/ROOT.war/index.xhtml: Access is denied
> !SUBENTRY 1 org.jboss.ide.eclipse.as.wtp.core 4 1644298251 2018-02-13 11:51:11.164
> !MESSAGE Error copying file C:/Users/jbossqa/workspace_B2027/.metadata/.plugins/org.jboss.ide.eclipse.as.core/test@eap-app/deploy/ROOT.war/resources/css/screen.css: Access is denied
> !SUBENTRY 1 org.jboss.ide.eclipse.as.wtp.core 4 1644298251 2018-02-13 11:51:11.164
> !MESSAGE Error copying file C:/Users/jbossqa/workspace_B2027/.metadata/.plugins/org.jboss.ide.eclipse.as.core/test@eap-app/deploy/ROOT.war/resources/gfx/asidebkg.png: Access is denied
> !SUBENTRY 1 org.jboss.ide.eclipse.as.wtp.core 4 1644298251 2018-02-13 11:51:11.164
> !MESSAGE Error copying file C:/Users/jbossqa/workspace_B2027/.metadata/.plugins/org.jboss.ide.eclipse.as.core/test@eap-app/deploy/ROOT.war/resources/gfx/banner.png: Access is denied
> !SUBENTRY 1 org.jboss.ide.eclipse.as.wtp.core 4 1644298251 2018-02-13 11:51:11.164
> !MESSAGE Error copying file C:/Users/jbossqa/workspace_B2027/.metadata/.plugins/org.jboss.ide.eclipse.as.core/test@eap-app/deploy/ROOT.war/resources/gfx/bkg-blkheader.png: Access is denied
> !SUBENTRY 1 org.jboss.ide.eclipse.as.wtp.core 4 1644298251 2018-02-13 11:51:11.164
> !MESSAGE Error copying file C:/Users/jbossqa/workspace_B2027/.metadata/.plugins/org.jboss.ide.eclipse.as.core/test@eap-app/deploy/ROOT.war/resources/gfx/headerbkg.png: Access is denied
> !SUBENTRY 1 org.jboss.ide.eclipse.as.wtp.core 4 1644298251 2018-02-13 11:51:11.164
> !MESSAGE Error copying file C:/Users/jbossqa/workspace_B2027/.metadata/.plugins/org.jboss.ide.eclipse.as.core/test@eap-app/deploy/ROOT.war/resources/gfx/rhjb_eap_logo.png: Access is denied
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years