[jbosstools-issues] [JBoss JIRA] (JBIDE-14697) User library fileset cannot be modified

Rastislav Wagner (JIRA) issues at jboss.org
Tue Mar 25 04:33:12 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-14697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12955908#comment-12955908 ] 

Rastislav Wagner commented on JBIDE-14697:
------------------------------------------

Another one:

STEP: prepare two library filesets, lets say myLib1, myLib2 via preferences (Java -> Build Path -> User Libraries)
STEP: add some external JARs to myLib1, leave myLib2 empty
STEP: create project with archives support
STEP: create some archive in the project
STEP: add new user library fileset in the archive (myLib1)
STEP: deploy archive on AS/EAP (I used EAP 6.1)
ASSERT: myLib1 is deplyed on server, I can see it in deployments folder and the deployed JAR contains added external libraries
STEP: select myLib1 in archives explorer, invoke its context menu and select Edit fileset
STEP: in "User Library Fileset Wizard" dialog select myLib2, confirm it
FAIL: there is still myLib1 in archives explorer, not myLib2 as it should be
STEP: build archive
ASSER: myLib1 is changed to myLib2
FAIL: exception is thrown
message:
{code}
Could not delete /files/RedHat/JBoss/AS/with spaces/jboss-eap-6.1/standalone/deployments/pr2.jar. May be locked by another process.
{code}
stack trace:
{code}
An exception stack trace is not available.
{code}


message:
{code}
Error copying file /files/RedHat/JBoss/AS/with spaces/jboss-eap-6.1/standalone/deployments/pr2.jar: /files/RedHat/JBoss/AS/with spaces/jboss-eap-6.1/standalone/deployments/pr2.jar (Is a directory)
{code}

stack trace:
{code}
java.io.FileNotFoundException: /files/RedHat/JBoss/AS/with spaces/jboss-eap-6.1/standalone/deployments/pr2.jar (Is a directory)
	at java.io.FileOutputStream.open(Native Method)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:165)
	at org.jboss.ide.eclipse.as.core.util.FileUtil.writeTo(FileUtil.java:295)
	at org.jboss.ide.eclipse.as.core.util.FileUtil.writeTo(FileUtil.java:289)
	at org.jboss.ide.eclipse.as.wtp.core.server.behavior.LocalFilesystemController.copyFile(LocalFilesystemController.java:100)
	at org.jboss.ide.eclipse.as.wtp.core.server.behavior.LocalFilesystemController.moveTempFile(LocalFilesystemController.java:161)
	at org.jboss.ide.eclipse.as.wtp.core.server.behavior.LocalFilesystemController.copyFile(LocalFilesystemController.java:124)
	at org.jboss.ide.eclipse.as.wtp.core.server.behavior.LocalFilesystemController.copyFile(LocalFilesystemController.java:82)
	at org.jboss.tools.as.core.server.controllable.subsystems.internal.StandardFileSystemPublishController.handleBinaryModule(StandardFileSystemPublishController.java:326)
	at org.jboss.tools.as.core.server.controllable.subsystems.internal.StandardFileSystemPublishController.publishModule(StandardFileSystemPublishController.java:276)
	at org.jboss.ide.eclipse.as.wtp.core.server.behavior.ControllableServerBehavior.publishModule(ControllableServerBehavior.java:134)
	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:1091)
	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:1183)
	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:987)
	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774)
	at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3154)
	at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

{code}


                
> User library fileset cannot be modified
> ---------------------------------------
>
>                 Key: JBIDE-14697
>                 URL: https://issues.jboss.org/browse/JBIDE-14697
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: archives
>    Affects Versions: 4.1.0.Beta1
>            Reporter: Jaroslav Jankovič
>            Assignee: Rastislav Wagner
>             Fix For: 4.2.0.Beta2
>
>
> STEP: prepare two library filesets, lets say myLib1, myLib2 via preferences (Java -> Build Path -> User Libraries)
> STEP: create project with archives support
> STEP: create some archive in the project
> STEP: add new user library fileset in the archive (myLib1)
> STEP: select myLib1 in archives explorer, invoke its context menu and select Edit fileset
> STEP: in "User Library Fileset Wizard" dialog select myLib2, confirm it
> FAIL: there is still myLib in archives explorer, not myLib2 as it should be

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the jbosstools-issues mailing list