[JBoss JIRA] (JBIDE-10903) Deploy folder sometimes not added to JBoss deployment path list
by Daniel Atallah (JIRA)
Daniel Atallah created JBIDE-10903:
--------------------------------------
Summary: Deploy folder sometimes not added to JBoss deployment path list
Key: JBIDE-10903
URL: https://issues.jboss.org/browse/JBIDE-10903
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: JBossAS/Servers
Affects Versions: 3.3.0.M5
Environment: Windows 7 / Eclipse Indigo SR1 / JBoss 4.2.3
Reporter: Daniel Atallah
Assignee: Rob Stryker
A number of people in my team have run into intermittent issues where when the Server is started, the deploy folder that is specified in the Server "Deployment" tab doesn't seem to ever get added to the list of locations that JBoss looks for stuff to deploy.
We're using a custom deploy folder (it's an ordinary directory on a local drive).
The normal course of operations is that JBoss starts up successfully and outputs the following line:
{noformat}19:41:06,117 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)] Started in 15s:550ms{noformat}
Then, if things work successfully, a few seconds later the following output appears and my EAR is deployed (my custom deploy folder is "C:/export/spare/Devl-JBoss/development/dev/deploy"):
{noformat}19:41:14,948 INFO [EARDeployer] Init J2EE application: file:/C:/export/spare/Devl-JBoss/development/dev/deploy/Foo.ear/{noformat}
If things don't work successfully, the second line never appears and the server just sits there without any of the deployed resources being available.
Not being familiar with how the JBoss Tools integration works, it looks to me that JBoss Tools is somehow waiting for the Server to start up fully before adding the deploy folder and in the cases where it doesn't work, it never notices that the Server has started up so it never adds the deploy folder.
I've tried setting the server logging to TRACE level and when it isn't working, the custom deploy folder doesn't appear anywhere in the log output.
This issue is intermittent, I haven't been able to identify any specific scenarios under which it is triggered.
When it does happen, sometimes restarting the server will resolve it, but other times we need to do a "Clean" publish to the server, and sometimes even that will not fix the issue (more than once deleted my workspace .metadata and started clean to get it working).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months
[JBoss JIRA] (JBIDE-10232) exploded deploy does not work on windows because of use of File#renameTo
by Jim Sellers (Created) (JIRA)
exploded deploy does not work on windows because of use of File#renameTo
------------------------------------------------------------------------
Key: JBIDE-10232
URL: https://issues.jboss.org/browse/JBIDE-10232
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: JBossAS/Servers
Environment: JBossAS Tools: Version: 2.3.0.v20111104-1515-H45-M4
Java version: 1.5.0_22, vendor: Sun Microsystems Inc.
Java home: C:\devtools\java\jdk1.5.0_22\jre
Default locale: en_CA, platform encoding: Cp1252
OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"
Reporter: Jim Sellers
Assignee: Rob Stryker
Setup: in a project on windows with an ear / war / jar in an exploded format and having started the server in debug mode. If you make any changes to a file in the jar, the jar will be rebuilt and try to be deployed. This seems to work but it pops up an error dialog box *every time*. The error message looks like the following:
{code}
Error renaming C:\devtools\jboss\jboss-4.2.3.GA\server\default\tmp\jbosstoolsTemp\tmp2587902707203199490.jar to C:\devtools\jboss\jboss-4.2.3.GA\server\default\deploy\MyExampleEAR.ear\MyExampleWAR.war\WEB-INF\lib\MyDependantJar-2.3-SNAPSHOT.jar.
This may be caused by your server's temporary deploy directory being on a different filesystem than the final destination.
You may adjust these settings in the server editor.
{code}
For the method org.jboss.ide.eclipse.as.core.server.xpl.PublishCopyUtil#safeRename(File,File,int) it calls File#renameTo(File) for moving the file from the temp directory to WEB-INF/lib. From the javadocs for renameTo it says that this might not work if the file in the destination already exists.
Possible fixes:
# before calling the rename, try to delete on the destination file ( to.delete() )
# org.apache.commons.io.FileUtils#moveFile(File,File) tries to call the renameTo and if that fails it falls back to coping the file to the destination.
{code:JAVA|title=Sample Unit test}
/* This test needs to be run on windows. */
@Test
public void testCopyForWindows() throws IOException {
File from = File.createTempFile("source", ".txt");
File to = File.createTempFile("target", ".txt");
File[] files = {from, to};
for (File file : files) {
// set for cleanup
file.deleteOnExit();
assertTrue("file should exist" + file.getAbsolutePath(), file.exists());
assertTrue("file should be writable" + file.getAbsolutePath(), file.canWrite());
}
// if safeRename was not private!
assertTrue("should have been able to rename the file", safeRename(from, to, 10));
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months
[JBoss JIRA] (JBIDE-10218) Run button in toolbar needs to run the newly generated project
by Burr Sutter (Created) (JIRA)
Run button in toolbar needs to run the newly generated project
--------------------------------------------------------------
Key: JBIDE-10218
URL: https://issues.jboss.org/browse/JBIDE-10218
Project: Tools (JBoss Tools)
Issue Type: Bug
Reporter: Burr Sutter
The Run icon in the Eclipse toolbar is where a new developer (new to JBoss Tools) expects to go directly after he has generated a new project from either File-New or JBoss Central by using one of the archetypes or project examples/quickstarts.
This means the generated project needs to be highlighted in the Project Explorer and the Run button should "just work".
There is also an issue with Run vs Debug - if the server is in "debug mode" then Run should just assume that is OK and not prompt the user.
Run on Server should be the default so the user can use a single click on OK
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months
[JBoss JIRA] (JBIDE-11073) OpenShift Express Tool: Create a way to invoke rhc-port-forward functionality which enables users to debug their cloud environments with their local tools
by Nam Duong (JIRA)
Nam Duong created JBIDE-11073:
---------------------------------
Summary: OpenShift Express Tool: Create a way to invoke rhc-port-forward functionality which enables users to debug their cloud environments with their local tools
Key: JBIDE-11073
URL: https://issues.jboss.org/browse/JBIDE-11073
Project: Tools (JBoss Tools)
Issue Type: Enhancement
Components: openshift
Environment: OpenShift Express Tools (on Eclipse)
Reporter: Nam Duong
Assignee: Andre Dietisheim
If an OpenShift node that's hosting the user's app is running mysql on port 3306 on 126.0.2.17, you can't access that externally. You need to ssh into the node to run mysql or you need to embed phpmyadmin. rhc-port-forward allows you to access that port and other available ports.
Usage: /usr/bin/rhc-port-forward
Forward remote ports to the workstation
-l|--rhlogin rhlogin Red Hat login (RHN or OpenShift login with OpenShift Express access) (Default: nduong+mac(a)redhat.com)
-a|--app Target application (required)
-p|--password password RHLogin password (optional, will prompt)
-d|--debug Print Debug info
-h|--help Show Usage info
--config path Path of alternate config file
--timeout # Timeout, in seconds, for connection
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months
[JBoss JIRA] (JBIDE-10783) [ESB Dependency Tool] Link to ESB editor
by Brian Fitzpatrick (JIRA)
Brian Fitzpatrick created JBIDE-10783:
-----------------------------------------
Summary: [ESB Dependency Tool] Link to ESB editor
Key: JBIDE-10783
URL: https://issues.jboss.org/browse/JBIDE-10783
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: esb
Affects Versions: 3.3.0.Beta1
Reporter: Brian Fitzpatrick
Assignee: Brian Fitzpatrick
Fix For: 3.3.0.Final
Though the ability to browse a diagram is helpful, it would also be nice if you could double-click (or some action) to open the ESB editor with the part you clicked on in the graphical view automatically selected in the editor.
(From Len: One thing that comes to mind quickly - if the user selects/double clicks on an element in the graphical display, it's likely that users will expect that the editor will open for that element.)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months
[JBoss JIRA] Created: (JBIDE-9824) When in zip mode, changing a web project's servlet file inside an ear project does not initiate a proper zipped publish
by Rob Stryker (JIRA)
When in zip mode, changing a web project's servlet file inside an ear project does not initiate a proper zipped publish
-----------------------------------------------------------------------------------------------------------------------
Key: JBIDE-9824
URL: https://issues.jboss.org/browse/JBIDE-9824
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: JBossAS/Servers
Affects Versions: 3.3.0.M3
Reporter: Rob Stryker
Assignee: Rob Stryker
Fix For: 3.3.0.M4
Given:
1) Create a server, set to not publish automatically, and publish zip style
2) An EAR project
3) A child WAR project
4) A servlet inside the child .war project
5) Add the ear to the server, full publish
6) Change the war's servlet
7) Perform an incremental publish manually
8) Verify zip has been recreated (FAIL)
Problem seems to stem in the following location:
AltMethodZippedJSTPublisher.java, line 93:
} else if( publishType != IJBossServerPublisher.NO_PUBLISH ) {
This line does not take into account that the CHILD modules might have changed, and thus also need updating.
This jira will require a unit test.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months
[JBoss JIRA] (JBIDE-10704) Add Server XPath Error when adding a server
by Martin Malina (JIRA)
Martin Malina created JBIDE-10704:
-------------------------------------
Summary: Add Server XPath Error when adding a server
Key: JBIDE-10704
URL: https://issues.jboss.org/browse/JBIDE-10704
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: JBossAS/Servers
Affects Versions: 3.3.0.M5
Environment: jbdevstudio-product-universal-5.0.0.v201112150534M-H62-M5.jar
Mac OS X 10.7 Lion
Reporter: Martin Malina
Assignee: Rob Stryker
Fix For: 3.3.0.Beta1
When adding a server runtime for the first time in a workspace there is an error that appears for a second and then disappears again and everything seems ok.
See the screencast here: http://screencast.com/t/3kIRPSUs
The error says:
'Add Server XPath Details' has encountered a problem.
An internal error occurred during: "Add Server XPath Details"
Note that this happens on the M5 build with both EAP 6.0 DR11 and JBoss AS 7.1 CR1b
This is in the log:
!ENTRY org.eclipse.core.jobs 4 2 2012-01-25 10:37:32.660
!MESSAGE An internal error occurred during: "Add Server XPath Details".
!STACK 0
java.lang.NullPointerException
at org.jboss.ide.eclipse.as.core.extensions.descriptors.XPathQuery.setEffectiveBaseDir(XPathQuery.java:111)
at org.jboss.ide.eclipse.as.core.extensions.descriptors.XPathQuery.setCategory(XPathQuery.java:254)
at org.jboss.ide.eclipse.as.core.extensions.descriptors.XPathCategory.addQuery(XPathCategory.java:105)
at org.jboss.ide.eclipse.as.core.extensions.descriptors.XPathModel.loadDefaults(XPathModel.java:297)
at org.jboss.ide.eclipse.as.core.extensions.descriptors.XPathModel.handleAddJBoss7XPaths(XPathModel.java:90)
at org.jboss.ide.eclipse.as.core.extensions.descriptors.XPathModel.access$0(XPathModel.java:89)
at org.jboss.ide.eclipse.as.core.extensions.descriptors.XPathModel$1.run(XPathModel.java:81)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months
[JBoss JIRA] (JBIDE-10469) Can't install JBoss AS Server adapters from Juno JavaEE M3
by Fred Bricon (Created) (JIRA)
Can't install JBoss AS Server adapters from Juno JavaEE M3
----------------------------------------------------------
Key: JBIDE-10469
URL: https://issues.jboss.org/browse/JBIDE-10469
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: JBossAS/Servers
Affects Versions: 3.3.0.M4
Environment: Windows 7, Juno JavaEE M3
Reporter: Fred Bricon
Assignee: Rob Stryker
Priority: Blocker
In Juno JavaEE M3,
* go to the server view
* create a new server
* click on download additional server adapters
* select the JBoss AS Tools server adapter
* click next
The installation can not proceed due to :
{noformat}
Cannot complete the install because one or more required items could not be found.
Software being installed: JBossAS Tools 2.3.0.v20111104-1515-H45-M4 (org.jboss.ide.eclipse.as.feature.feature.group 2.3.0.v20111104-1515-H45-M4)
Missing requirement: JBossAS Tools 2.3.0.v20111104-1515-H45-M4 (org.jboss.ide.eclipse.as.feature.feature.group 2.3.0.v20111104-1515-H45-M4) requires 'org.eclipse.core.boot 0.0.0' but it could not be found
{noformat}
On IRC, Rob said :
{quote}
(17:20:34) rawbdor: i can see features/org.jboss.ide.eclipse.as.feature/feature.xml: <import plugin="org.eclipse.core.boot" />
(17:20:38) rawbdor: but i dont know why it has that
{quote}
We should see if org.eclipse.core.boot is still needed. If not, see if removing it makes AS Tools installable/functional on Juno.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months