JBoss - principy

Michal Palicka michal.palicka na cleverlance.com
Středa Červenec 30 18:01:35 CEST 2003


Dobry den!

(1)
Datove zdroje se definuji pomoci XML souboru,
ktere se rovnez vkladaji do adresare "deploy".
Standardne je v baliku JBossu prilozen
definicni soubor "hsqldb-ds.xml" (Hypersonic), 
ktery vam muze poslouzit jako priklad, jak nadefinovat
datovy zdroj pro Oracle 9.

(2)
Predpokladam, ze problem je v tom, ze JBoss nevi, 
jak ma vas adresar zavest do serveru. Zkuste adresar
"test" prejmenovat na "test.war". Deployer by mel podle
pripony poznat, ze se jedna o webovy modul a rozbehnout 
ho.

mp.

----- Original Message ----- 
From: "Jiri Chaloupka" <konf na chalu.cz>
To: "Java" <konference na java.cz>
Sent: Wednesday, July 30, 2003 4:58 PM
Subject: JBoss - principy


> Zdravim,
> pohravam si tu s JBossem (3.2.1 + Jetty) a zatim trochu tapu...
> 
> kdyz se pouziva ve spojeni s Oracle DB (9iR2), vyedituje se 
> "standardjbosscmp-jdbc.xml":
> <jbosscmp-jdbc>
>   
>    <defaults>
>       <datasource>jdbc:oracle:oci8</datasource>
>       <datasource-mapping>Oracle9i</datasource-mapping>
> 
> Jak mu reknu pod jakym uctem a v jakem schematu to pracuje? nebo to dela 
> pouze podporu pro java.sql.* a bezi to jen na pozadi?
> 
> Ve "standardjaws.xml" Oracle 9 vubec neni, proc?
> 
> 
> Deployovani aplikace - udelal jsem adresar se strukturou waru v 
> netbeansech i v eclipse, nic v nem nebylo, jen jeden index.jsp a adresar 
> web-inf s web.xml a nahral jej do adresare deploy. Jbos jej nespusti, v 
> logu je:
> 
> 2003-07-30 16:53:45,638 INFO  [org.jboss.deployment.MainDeployer] 
> Starting deployment of package: 
> file:/D:/jboss_jetty/jboss-3.2.1/server/default/deploy/test/
> 2003-07-30 16:53:45,638 DEBUG [org.jboss.deployment.MainDeployer] 
> Starting deployment (init step) of package at: 
> file:/D:/jboss_jetty/jboss-3.2.1/server/default/deploy/test/
> 2003-07-30 16:53:45,638 DEBUG [org.jboss.deployment.MainDeployer] No 
> deployer found for url: 
> file:/D:/jboss_jetty/jboss-3.2.1/server/default/deploy/test/
> 2003-07-30 16:53:45,638 INFO  [org.jboss.deployment.MainDeployer] 
> deployment waiting for deployer: 
> file:/D:/jboss_jetty/jboss-3.2.1/server/default/deploy/test/
> 2003-07-30 16:53:45,638 DEBUG [org.jboss.deployment.MainDeployer] 
> Watching new file: 
> file:/D:/jboss_jetty/jboss-3.2.1/server/default/deploy/test/
> 2003-07-30 16:53:45,638 INFO  [org.jboss.deployment.MainDeployer] 
> Deployment of package: 
> file:/D:/jboss_jetty/jboss-3.2.1/server/default/deploy/test/ is waiting 
> for an appropriate deployer.
> 2003-07-30 16:53:45,638 DEBUG 
> [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: 
> file:/D:/jboss_jetty/jboss-3.2.1/server/default/deploy/test/ -> 
> file:/D:/jboss_jetty/jboss-3.2.1/server/default/deploy/test/
> 2003-07-30 16:53:45,638 ERROR 
> [org.jboss.deployment.scanner.URLDeploymentScanner] MBeanException: 
> Exception in MBean operation 'checkIncompleteDeployments()'
> Cause: Incomplete Deployment listing:
> Packages waiting for a deployer:
> [org.jboss.deployment.DeploymentInfo na a12931fc { 
> url=file:/D:/jboss_jetty/jboss-3.2.1/server/default/deploy/test/ }
>   deployer: null
>   status: null
>   state: INIT_WAITING_DEPLOYER
>   watch: file:/D:/jboss_jetty/jboss-3.2.1/server/default/deploy/test/
>   lastDeployed: 1059576825638
>   lastModified: 1059576826000
>   mbeans:
> ]Incompletely deployed packages:
> [org.jboss.deployment.DeploymentInfo na a12931fc { 
> url=file:/D:/jboss_jetty/jboss-3.2.1/server/default/deploy/test/ }
>   deployer: null
>   status: null
>   state: INIT_WAITING_DEPLOYER
>   watch: file:/D:/jboss_jetty/jboss-3.2.1/server/default/deploy/test/
>   lastDeployed: 1059576825638
>   lastModified: 1059576826000
>   mbeans:
> ]MBeans waiting for classes:
>   <none>
> MBeans waiting for other MBeans:
>   <none>
> 
> Proc? vysvetli mi nekdo?
> 
> Diky
> Jirka
> 


Další informace o konferenci Konference