Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!

anas ibraheem

Greenhorn
+ Follow
since Oct 01, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by anas ibraheem

hello

i am new to web services , i have developed a small web service using jax-ws and i want clients of this web service to send user name and password in each soap message they send to my service , so how can i do that with https and basic authentication , is it the same as securing any web page or does it require any addiational stuff that i should know about .

thank you
9 years ago
hi all

i am tryieng to deploy an ear to JBoss 5.1.0GA : now when i start the application server i get the following but even whith this the server starts normally
org.jboss.deployers.spi.DeploymentException: Error deploying: file:/C:/jboss-5.1.0.GA/server/default/conf/bootstrap/logging.xml
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:136)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.initBootstrapMDs(ProfileServiceBootstrap.java:433)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:250)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalStateException: ClassLoader has not been set

org.jboss.deployers.spi.DeploymentException: Error deploying: file:/C:/jboss-5.1.0.GA/server/default/conf/bootstrap/vfs.xml
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:136)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.initBootstrapMDs(ProfileServiceBootstrap.java:433)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:250)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalStateException: ClassLoader has not been set

===========================================================================

no i want to deploy the ear and when i do that i get the following Error


=============================================================================

org.jboss.deployers.spi.DeploymentException: Error determining structure: AmpEP.ear
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure.determineStructure(DeclaredStructure.java:89)
at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)
at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)
at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)
at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)
at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1004)
at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)
at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:390)
at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:300)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.addDeployment(MainDeployerAdapter.java:86)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:344)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: C:\jboss-5.1.0.GA\server\default\deploy\AmpEP.ear (The process cannot access the file because it is being used by another process)
at org.jboss.virtual.plugins.context.AbstractExceptionHandler.handleZipEntriesInitException(AbstractExceptionHandler.java:39)
at org.jboss.virtual.plugins.context.helpers.NamesExceptionHandler.handleZipEntriesInitException(NamesExceptionHandler.java:63)
at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:626)
at org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:773)
at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChild(ZipEntryContext.java:817)
at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.createChildHandler(ZipEntryHandler.java:191)
at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:684)
at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:165)
at org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandler.java:107)
at org.jboss.virtual.VirtualFile.getChild(VirtualFile.java:481)
at org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure.determineStructure(DeclaredStructure.java:64)
... 20 more
Caused by: java.io.FileNotFoundException: C:\jboss-5.1.0.GA\server\default\deploy\AmpEP.ear (The process cannot access the file because it is being used by another process)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.zip.ZipFile.<init>(ZipFile.java:131)
at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.ensureZipFile(ZipFileWrapper.java:175)
at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.acquire(ZipFileWrapper.java:245)
at org.jboss.virtual.plugins.context.zip.ZipEntryContext.initEntries(ZipEntryContext.java:484)
at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:619)
... 28 more
I really dont know whats happening , but its really weard and i dont think that my ear is corrupt , i think it might be somthing on the Application server not working correctly.
Any way please help me in this .... i am loosing it .
thanks
9 years ago
hi
yes my Friend ... every day new things . actully this tool is supposed to create packaged files war , jar ,rar and ear ...

thanks
9 years ago
thank you for yoyr reply

i am sure there is a packager tool located under bin ... and as a prove please check this link which describes this tool

http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Tools8.html

thanks
9 years ago
hi every body

i have some JARs and WARs and i need to package them in one single EAR , now i know there are diffrent ways to do that but the one i am interested in is the packager tool that you can find under JDK\bin . but each time i use i get a screen that looks like paint and nothing happens , also no EAR is created :

c:\dep > packager -enterpriseArchive AasWeb.war:binxml.jar:application.xml anas anas.ear


any hints
thanks
9 years ago
thank you martijn

i think this would be a perfect solution .. i will try it and get back to you .

thanks
9 years ago
thank you ani for your reply

so what you mea, i should replace the JBOSS_HOME property to GLASSFISH_HOME ... i will show you a snipet of the build.xml file


<project name="AmpEP" default="build">

<property environment="env"/>
<property name="jboss_home" value="${env.JBOSS_HOME}" />
<property name="sun_jdk_root" value="${env.JAVA_HOME}"/>
<target name="init">
<condition property="jboss_home_set">
<available file="${jboss_home}" />
</condition>
<condition property="java_home_set">
<available file="${sun_jdk_root}" />
</condition>
<fail unless="jboss_home_set" message="Please set JBOSS_HOME to a valid location in your environment"/>
<fail unless="java_home_set" message="Please set JAVA_HOME to a valid location in your environment"/>
</target>

<property name="dist" location="dist"/>
<property name="ear" location="ear"/>
<property name="extlib" location="lib"/>
<property name="Build-status" value="Development"/>
<property name="exploded" location="ampep-exploded"/>



thank you ani ...
9 years ago
hi all

i have a web application that i want to build in netbeans IDE , this existing project has a build file and i want to build the enviroment using this build file and the ant build ,also i want to use glassfish v3 as my application server , so i used the netbeans wizard to build this web application from existing source but it always give me this error when i tey to clean and build the application "please JBOSS_HOME" , so it seems that the build file is built to deploy under jboss ... what should i do "i am also new to Ant build files "

any help please
9 years ago