Précédent   Forum du club des développeurs et IT Pro > Java > Serveurs, conteneurs, et Java EE > Websphere
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse
 
Outils de la discussion
Publicité
'
Vieux 20/07/2012, 14h09   #1
samiamiya
Invité de passage
 
Femme
Étudiant
Inscription : mars 2012
Messages : 29
Détails du profil
Informations personnelles :
Sexe : Femme
Localisation : Maroc

Informations professionnelles :
Activité : Étudiant
Secteur : High Tech - Éditeur de logiciels

Informations forums :
Inscription : mars 2012
Messages : 29
Points : 4
Points : 4
Par défaut Compute Grid V6: PMGR1012E: The current backend id ORACLE_V10_1,

Bonjour,

j'utilise Websphere extended compute grid v6 et oracle v10g
je génère mon ear avec un script ant, ce dernier me génère projet.ear et projet.deployed.ear(générer par ejbdeploy)
quand je deploie projet.deployed.ear dans websphere v7 j'ai l erreur suivante

Citation:
CNTR0019E: EJB threw an unexpected (non-declared) exception during invocation of method "findByPrimaryKey". Exception data: com.ibm.ejs.container.ContainerEJBException: EJB failed to initialize. ; nested exception is: com.ibm.ws.exception.WsEJBException: nested exception is: com.ibm.ws.ejbpersistence.utilpm.PersistenceManagerException: PMGR1012E: The current backend id ORACLE_V10_1, does not match the data source connected to

merci pour l aide
samiamiya est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/07/2012, 15h28   #2
sinok
Modérateur
 
Avatar de sinok
 
Inscription : août 2004
Messages : 8 644
Détails du profil
Informations personnelles :
Âge : 33
Localisation : France, Paris (Île de France)

Informations forums :
Inscription : août 2004
Messages : 8 644
Points : 12 452
Points : 12 452
La datasource configurée dans WebSphere ne correspond pas à ton SGBD
__________________
Hey, this is mine. That's mine. All this is mine. I'm claiming all this as mine. Except that bit. I don't want that bit. But all the rest of this is mine. Hey, this has been a really good day. I've eaten five times, I've slept six times, and I've made a lot of things mine. Tomorrow, I'm gonna see if I can't have sex with something.
sinok est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/07/2012, 16h11   #3
samiamiya
Invité de passage
 
Femme
Étudiant
Inscription : mars 2012
Messages : 29
Détails du profil
Informations personnelles :
Sexe : Femme
Localisation : Maroc

Informations professionnelles :
Activité : Étudiant
Secteur : High Tech - Éditeur de logiciels

Informations forums :
Inscription : mars 2012
Messages : 29
Points : 4
Points : 4
j'ai créée un fournisseur jdbc oracle xa et je lui ai associer une data source j'ai déjà tester et j'ai réussi a avoir les enregistrement de ma table.

voici le script aint que j utilise:
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<project name="packagePostAgApp" default="run">
 
    <import file="imports/packageApp.xml"/>
 
	<property name="appName" value="PostAgenceBatch" />	
	<property name="package.props" value="${basedir}/../props.packaging/PostAgenceBatch.props" />	
	<property name="batch.jar" value="${basedir}/../lib/${appName}.jar" />
	<property name="dbvendor" value="ORACLE_V10G" />
 
    <target name="jar">
        <echo message="Creating jar file ${batch.jar}"/>
    	<jar jarfile="${batch.jar}">
 
		   <fileset dir="${basedir}/../bin"> 
			   	<include name="com/ibm/websphere/batch/samples/bds/*.class" />
		   		<include name="com/ibm/ws/batch/util/RunJob/*.class" />
			   	<include name="ma/eai/batch/**/*.class" />
		     	<include name="ma/eai/batch/ovo/**/*.class" />
		   </fileset>
 
		   <fileset dir="${basedir}/../src" >
			   	<include name="com/ibm/websphere/batch/samples/bds/*.java" />
		   		<include name="com/ibm/ws/batch/util/RunJob/*.java" />
			   	<include name="ma/eai/batch/**/*.java" />
		  	 	<include name="ma/eai/batch/ovo/**/*.java" />
		   		<include name="META-INF/persistence.xml" />
  	       </fileset>
 
		</jar>
	</target>
 
    <target name="run" depends="jar,packageApp">    
	</target>
 
</project>
et c'est le packageApp.xml
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
 
<project name="packageApp" default="packageApp">
 <import file="getPlatform.xml"/>
	<import file="../config/WASConfig.xml" />
 
	<property name="eclipse.tmp" value="${basedir}/../tmp" />
 
    <target name="message">    	
     	<echo message="Packaging ${appName} for Compute Grid Test Server"/>
	  <echo message="Test Server configuration: ${WAS_profile_home}"/>
    </target>    	
 
    <target name="makeEAR">    	
    	<property name="batch.jar" value="../lib/${appName}.jar" />
    	<property name="inputEARFile" value="${basedir}/../export/${appName}.ear" />
    	<property name="outputEARFile" value="${basedir}/../export/${appName}.deployed.ear" />
 
        <condition property="packaging.props.present">
        	<available file="${package.props}" />
		</condition>
        <fail message="Cannot install:  packaging properties file ${package.props} does not exist." unless="packaging.props.present"/>
 
		<echo message="Packaging batch artifacts from archive ${batch.jar}" /> 
	    <java classname="com.ibm.ws.batch.packager.WSBatchPackager" classpath="${basedir}/../lib/batchpackager.jar">
	    	<arg value="-properties=${package.props}">
	    	</arg>
	    </java>
	</target>
 
	<target name="packageApp" depends="checkIfHomeSet, message, makeEAR, getPlatform">
		<condition property="ejbdeploy" value="ejbdeploy.bat">
    	    <equals arg1="${platform}" arg2="windows"/>
	    </condition>
		<condition property="ejbdeploy" value="ejbdeploy.sh">
    	    <equals arg1="${platform}" arg2="unix"/>
	    </condition>	
 
		<echo message="Running EJBDeploy ..."/>
 
		<exec executable="${WAS_profile_home}/bin/${ejbdeploy}">
	    	<arg value="${inputEARFile}"/>
	    	<arg value="${eclipse.tmp}"/>
    		<arg value="${outputEARFile}"/>
    		<arg value="-debug"/>
    		<arg value="-complianceLevel"/>
    		<arg value="5.0"/>
			<arg value="-dbvendor"/>
			<arg value="${dbvendor}"/>
		</exec>
	</target>
 
</project>
samiamiya est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Cette discussion est résolue.
Outils de la discussion

Navigation rapide


Fuseau horaire GMT +2. Il est actuellement 10h25.


 
 
 
 
Partenaires

Hébergement Web