[JBoss Tools] - Project Archives definition keeps disappearing
by Fletcher Chambers
Fletcher Chambers [https://community.jboss.org/people/chamfamdad] created the discussion
"Project Archives definition keeps disappearing"
To view the discussion, visit: https://community.jboss.org/message/817997#817997
--------------------------------------------------------------
Just got a new computer so I am trying to set up Eclipse and JBoss Tools to work on my project. I can't get anything to work. So I punt and install the bundled package from JBoss: JBoss Developer Studio 6.0.1.GA but I am still having the same problem. Here it is in a nutshell:
My Configuration
Windows 7, 64 bit
JBoss Developer Studio 6.0.1.GA
Java 1.7
Like I said it's a new machine, so I thought I would go with all up to date software.
1) Start a new Java project.
2) Add two folders: images and javascript
3) right click the project, select Configure > Add Project Archives Support. The Project Archives node will now be available under the project (assuming you are in the JBoss view)
4) right click Project Archives and select New Archive > JAR
5) name your archive test.war, also select Exploded archive resulting in a folder (no compression)
6) add two folders to your archive: images and javascript
7) build archive, check the disk and see that it actually works (i.e you get a test.war folder with two subfolders images and javascript).
8) close developer studio
9) open developer studio and check your archive and see that the folders you added are missing.
10) build archive and see that your folders are now missing from your war file
11) go to the disk and open the .packages file and see that your folders are still defined!
What am I missing? No matter what I try, eclipse/JBoss Developer Studio/etc doesn't seem to remember what is supposed to be in my archive.
Here is my .packages file, but it seems to be ignored when I close and reopen eclipse/JBoss Developer Studio:
<?xml version="1.0" encoding="UTF-8"?><packages version="1.3">
<package exploded="true" inWorkspace="true" name="test.war" todir="/testing project archives" type="jar">
<folder name="images">
<properties/>
</folder>
<folder name="javascript">
<properties/>
</folder>
<properties>
<property name="org.jboss.ide.eclipse.as.core.packages.ModuleIDPropertyKey" value="1368710637165118646283970390031483"/>
</properties>
</package>
<properties/>
</packages>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/817997#817997]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months
[Beginner's Corner] - Deploying a "folder" containing WEB-INF & co. and zul files
by liv227
liv227 [https://community.jboss.org/people/liv227] created the discussion
"Deploying a "folder" containing WEB-INF & co. and zul files"
To view the discussion, visit: https://community.jboss.org/message/818200#818200
--------------------------------------------------------------
Hello,
I am trying to deploy a folder on JBoss 7 !
when I pasted it in deployments nothing changed (the folder is names jawda.war ) so I tried to zip it into a war file (don't think it was a good idea, but it gave me an error log so ... )
Anyway here it is :
13:25:47,014 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) JBAS015051: Deployment content /opt/jboss-as/standalone/deployments/jawda.war appears to be incomplete and is not progressing toward completion. This content cannot be auto-deployed.
When I added a dodeploy file it returned this error:
13:35:48,727 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-36) MSC00001: Failed to start service jboss.deployment.unit."jawda.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."jawda.war".STRUCTURE: Failed to process phase STRUCTURE of deployment "jawda.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA (http://1.0.2.ga/)]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA (http://1.0.2.ga/)]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_17]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_17]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to mount deployment content
at org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:91) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.7.0_17]
at java.util.zip.ZipFile.<init>(ZipFile.java:214) [rt.jar:1.7.0_17]
at java.util.zip.ZipFile.<init>(ZipFile.java:144) [rt.jar:1.7.0_17]
at java.util.zip.ZipFile.<init>(ZipFile.java:158) [rt.jar:1.7.0_17]
at org.jboss.vfs.VFSUtils.unzip(VFSUtils.java:845) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.vfs.VFS.mountZipExpanded(VFS.java:536) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.vfs.VFS.mountZipExpanded(VFS.java:567) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.as.server.deployment.DeploymentMountProvider$Factory$ServerDeploymentRepositoryImpl.mountDeploymentContent(DeploymentMountProvider.java:97) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:87) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 6 more
13:35:48,737 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"jawda.war\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"jawda.war\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"jawda.war\""}}}}
13:36:33,849 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-42) MSC00001: Failed to start service jboss.deployment.unit."jawda.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."jawda.war".STRUCTURE: Failed to process phase STRUCTURE of deployment "jawda.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA (http://1.0.2.ga/)]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA (http://1.0.2.ga/)]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_17]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_17]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to mount deployment content
at org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:91) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.7.0_17]
at java.util.zip.ZipFile.<init>(ZipFile.java:214) [rt.jar:1.7.0_17]
at java.util.zip.ZipFile.<init>(ZipFile.java:144) [rt.jar:1.7.0_17]
at java.util.zip.ZipFile.<init>(ZipFile.java:158) [rt.jar:1.7.0_17]
at org.jboss.vfs.VFSUtils.unzip(VFSUtils.java:845)
at org.jboss.vfs.VFS.mountZipExpanded(VFS.java:536)
at org.jboss.vfs.VFS.mountZipExpanded(VFS.java:567)
at org.jboss.as.server.deployment.DeploymentMountProvider$Factory$ServerDeploymentRepositoryImpl.mountDeploymentContent(DeploymentMountProvider.java:97) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:87) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 6 more
13:36:33,857 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"jawda.war\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"jawda.war\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"jawda.war\""}}}}
I kindly request your assistance..
Thank you
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/818200#818200]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months
[JBoss Messaging] - createTopicConnection - username, password
by Hugo Boss
Hugo Boss [https://community.jboss.org/people/adfasdfasdfhjasdfhasddfhasdfaj] created the discussion
"createTopicConnection - username, password"
To view the discussion, visit: https://community.jboss.org/message/818006#818006
--------------------------------------------------------------
Hello,
i'm using JMS to distribute messages. All worked fine (subscribing, receiving) but when i receive a message and i call a service-method i got an AuthenticationException because i'm logged in as anonymous (all services are secured).
Ok, so i need to login myself... i think there are two possibilities... just do a login before i call the service out of the onMessage-method or to create the topicConnection with username and password. But both failed...
The programm always says something like unable to validate user: <username>. Here the exception:
2013-05-16 15:12:42,699 ERROR [org.hornetq.core.protocol.core.impl.HornetQPacketHandler] Failed to create session : HornetQException[errorCode=105 message=Unable to validate user: backoffice]
at org.hornetq.core.security.impl.SecurityStoreImpl.authenticate(SecurityStoreImpl.java:147)
at org.hornetq.core.server.impl.HornetQServerImpl.createSession(HornetQServerImpl.java:858)
at org.hornetq.core.protocol.core.impl.HornetQPacketHandler.handleCreateSession(HornetQPacketHandler.java:187)
at org.hornetq.core.protocol.core.impl.HornetQPacketHandler.handlePacket(HornetQPacketHandler.java:85)
at org.hornetq.core.protocol.core.impl.ChannelImpl.handlePacket(ChannelImpl.java:508)
at org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.doBufferReceived(RemotingConnectionImpl.java:556)
at org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:517)
at org.hornetq.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:534)
at org.hornetq.core.remoting.impl.invm.InVMConnection$1.run(InVMConnection.java:169)
at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:100)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
I don't know where jBoss is looking for the user, because the user exists (in the database) and the remote login from the clients works with this user.
Here the source of the creating of the connection to jms:
public void start(InitialContext iniCtx) throws NamingException, JMSException {
Object tmp = iniCtx.lookup("ConnectionFactory");
TopicConnectionFactory tcf = (TopicConnectionFactory) tmp;
tConn = tcf.createTopicConnection(USERNAME, PASSWORD);
//tConn = tcf.createTopicConnection();
tConn.setClientID(this.getClass().getName());
topic = (Topic) iniCtx.lookup(getTopicName());
tSession = tConn.createTopicSession(false, TopicSession.AUTO_ACKNOWLEDGE);
// subscriber = tSession.createDurableSubscriber(topic, getSubscriptionName(), getJMSTypeString(), false);
subscriber = tSession.createSubscriber(topic, getJMSTypeString(), true);
subscriber.setMessageListener(this);
tConn.start();
}
Here the login variant, but doesn't work either:
protected void login() throws LoginException {
LoginContext loginContext = new LoginContext("backofficexyz", new MyLoginCallBackHandler());
loginContext.login();
}
private class BemaLoginCallBackHandler implements CallbackHandler {
@Override
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
for (int i = 0; i < callbacks.length; i++) {
if (callbacks[i] instanceof TextOutputCallback) {
TextOutputCallback toc = (TextOutputCallback) callbacks[i];
switch (toc.getMessageType()) {
case TextOutputCallback.INFORMATION:
logger.info(toc.getMessage());
break;
case TextOutputCallback.ERROR:
logger.error(toc.getMessage());
break;
case TextOutputCallback.WARNING:
logger.warn(toc.getMessage());
break;
default:
throw new IOException("Unsupported message type: " + toc.getMessageType());
}
} else if (callbacks[i] instanceof NameCallback) {
NameCallback nc = (NameCallback) callbacks[i];
nc.setName(USERNAME);
} else if (callbacks[i] instanceof PasswordCallback) {
PasswordCallback pc = (PasswordCallback) callbacks[i];
pc.setPassword(PASSWORD.toCharArray());
} else {
throw new UnsupportedCallbackException(callbacks[i], "Unrecognized Callback");
}
}
}
}
Anybody an idea? JBoss Version is jBoss 7.1.4
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/818006#818006]
Start a new discussion in JBoss Messaging at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months