[Installation, Configuration & DEPLOYMENT] - Re: Jboss AS 5 Deployment how-to
by PeterJ
What version of JBoss AS? I hope it is 5.1.0 or the file locations I am about to tell you are not correct.
Look in server/xxx/conf/bootstrap/profile.xml, the BootstrapProfileFactory bean. It has an applicationURIs property. Simply add a new entry for your directory. Example:
<bean name="BootstrapProfileFactory" class="org.jboss.system.server.profileservice.repository.StaticProfileFactory">
| . . .
| <property name="applicationURIs">
| <list elementClass="java.net.URI">
| <value>${jboss.server.home.url}deploy</value>
| </list>
| <list elementClass="java.net.URI">
| <value>file://path/to/your/directory</value>
| </list>
| </property>
| . . .
| </bean>
By default, the listed directories are scanned every 5 seconds. You can change that by editing the scanPeriod property for the HDScanner bean declared in server/xxx/deploy/hdscanner-jboss-beans.xml file.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247698#4247698
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247698
16 years, 8 months
[Installation, Configuration & DEPLOYMENT] - Cannot start multiple JBoss Windows services
by rschallack
I'm trying to install multiple JBoss services on Windows (one for each main web application we have â 2 currently). I get 2 of them installed and I can start one, but the other starts, then stops. I'm installing them using tweaked service.bat So I would install the first service as JBOSSSVC1 using service_1.bat that looks like this:
REM
REM VERSION, VERSION_MAJOR and VERSION_MINOR are populated
REM during the build with ant filter.
REM
set SVCNAME=JBASCHSVC
set SVCDISP=JBoss AS 1
set SVCDESC=JBoss Application Server 5.1.0 GA/Platform: Windows x86
set NOPAUSE=Y
set JBOSSOPT=-c app1 -b 192.168.0.1
set JBOSSSTOP=-n app1 -S 192.168.0.1
REM Suppress killing service on logoff event
set JAVA_OPTS=-Xrs -Djboss.service.binding.set=ports-default
REM Figure out the running mode
if /I "%1" == "install" goto cmdInstall
if /I "%1" == "uninstall" goto cmdUninstall
if /I "%1" == "start" goto cmdStart
if /I "%1" == "stop" goto cmdStop
if /I "%1" == "restart" goto cmdRestart
if /I "%1" == "signal" goto cmdSignal
echo Usage: service install^|uninstall^|start^|stop^|restart^|signal
goto cmdEnd
REM jbosssvc retun values
REM ERR_RET_USAGE 1
REM ERR_RET_VERSION 2
REM ERR_RET_INSTALL 3
REM ERR_RET_REMOVE 4
REM ERR_RET_PARAMS 5
REM ERR_RET_MODE 6
:errExplain
if errorlevel 1 echo Invalid command line parameters
if errorlevel 2 echo Failed installing %SVCDISP%
if errorlevel 4 echo Failed removing %SVCDISP%
if errorlevel 6 echo Unknown service mode for %SVCDISP%
goto cmdEnd
:cmdInstall
jbosssvc_ch.exe -imwdc %SVCNAME% "%DIRNAME%" "%SVCDISP%" "%SVCDESC%" service_1.bat
if not errorlevel 0 goto errExplain
echo Service %SVCDISP% installed
goto cmdEnd
:cmdUninstall
jbosssvc.exe -u %SVCNAME%
if not errorlevel 0 goto errExplain
echo Service %SVCDISP% removed
goto cmdEnd
:cmdStart
REM Executed on service start
del .r.lock 2>&1 | findstr /C:"being used" > nul
if not errorlevel 1 (
echo Could not continue. Locking file already in use.
goto cmdEnd
)
echo Y > .r.lock
jbosssvc.exe -p 1 "Starting %SVCDISP%" > run_1.log
call run.bat %JBOSSOPT% < .r.lock >> run_1.log 2>&1
jbosssvc_ch.exe -p 1 "Shutdown %SVCDISP% service" >> run_1.log
del .r.lock
goto cmdEnd
:cmdStop
REM Executed on service stop
echo Y > .s.lock
jbosssvc.exe -p 1 "Shutting down %SVCDISP%" > shutdown_1.log
call shutdown %JBOSSSTOP% < .s.lock >> shutdown_1.log 2>&1
jbosssvc.exe -p 1 "Shutdown %SVCDISP% service" >> shutdown_1.log
del .s.lock
goto cmdEnd
:cmdRestart
REM Executed manually from command line
REM Note: We can only stop and start
echo Y > .s.lock
jbosssvc.exe -p 1 "Shutting down %SVCDISP%" >> shutdown_1.log
call shutdown %JBOSSSTOP% < .s.lock >> shutdown_1.log 2>&1
del .s.lock
:waitRun
REM Delete lock file
del .r.lock > nul 2>&1
REM Wait one second if lock file exist
jbosssvc.exe -s 1
if exist ".r.lock" goto waitRun
echo Y > .r.lock
jbosssvc.exe -p 1 "Restarting %SVCDISP%" >> run_1.log
call run.bat %JBOSSOPT% < .r.lock >> run_1.log 2>&1
jbosssvc.exe -p 1 "Shutdown %SVCDISP% service" >> run_1.log
del .r.lock
goto cmdEnd
:cmdSignal
REM Send signal to the service.
REM Requires jbosssch.dll to be loaded in JVM
@if not ""%2"" == """" goto execSignal
echo Missing signal parameter.
echo Usage: service signal [0...9]
goto cmdEnd
:execSignal
jbosssvc.exe -k%2 %SVCNAME%
goto cmdEnd
:cmdEnd
I install the service and everything looks ok. If I try and install a second service (service2) for a different application (app2), it will not stay started. It will start then right away stop again. The event logs have no useful info. The run.log and shutdown.log files have nothing in them.
app2 is configured to start with the ports-01 switch turned on and has it's own service_2.bat file.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247691#4247691
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247691
16 years, 8 months
[Installation, Configuration & DEPLOYMENT] - Compatibility with JBoss AS 5.1.0 GA and 4.0.2
by nelsonf
Hello,
I would like to know if the JBoss 5.1.0GA is compatible with the EJB 2.1 specification.
I Want to migrate my application from version 4.0.2.
I tried to deploy my application on jboss 5 and got this errors:
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: cvc-complex-type.2.4.a: Invalid content was found starting with element 'jndi-name'. One of '{"http://java.sun.com/xml/ns/j2ee":ejb-ref-type}' is expected. @ vfszip:/usr/local/java/jboss-5.1.0.GA/server/postgres/deploy/erk-session-1.1-portal.jar/META-INF/ejb-jar.xml[18,16]
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
---
Caused by: org.xml.sax.SAXException: cvc-complex-type.2.4.d: Invalid content was found starting with element 'read-only'. No child element is expected at this point. @ vfszip:/usr/local/java/jboss-5.1.0.GA/server/postgres/deploy/erk-cmp.jar/META-INF/ejb-jar.xml[9316,20]
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.error(SaxJBossXBParser.java:426)
Any help will be appreciated.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247683#4247683
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247683
16 years, 8 months
[Installation, Configuration & DEPLOYMENT] - Migrating from Jboss4.0.5 to jboss 5.1.0 - Help needed
by mpadarsh
trying to deploy war file that was working in jboss 4.0.5 to jboss 5.1.0 but getting following error:
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed to parse schema for nsURI=, baseURI=null, schemaLocation=http://www.jboss.org/j2ee/dtd/jboss-web.dtd
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:189)
at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:166)
at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:137)
at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:121)
at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)
at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:188)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:348)
... 35 more
Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to parse schema for nsURI=, baseURI=null, schemaLocation=http://www.jboss.org/j2ee/dtd/jboss-web.dtd
at org.jboss.xb.binding.resolver.AbstractMutableSchemaResolver.resolve(AbstractMutableSchemaResolver.java:293)
at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:274)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)
... 43 more
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247681#4247681
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247681
16 years, 8 months