|
From: <sa...@nc...> - 2013-03-07 09:07:44
|
hi,
i am trying to instal ejbca in my ubuntu , first i used JBoss version 5
and everything worked right, but now i need to use JBoss version 4 , but
it failed from the begining "ant bootstrap" and i get the following error
"
root@sara-VirtualBox:/home/sara/sara/ejbca# ant bootstrap
Buildfile: /home/sara/sara/ejbca/build.xml
[echo] No custom changes to merge.
[echo] appserver.home: /home/sara/sara/jboss
[echo] appserver.type: jboss
testforgnujava:
bootstrap:
failinproduction-ca:
fail-unless-appserver-detected:
testforgnujava:
display-properties:
[echo]
[echo] ---------- EJBCA 4.0.9 (r14066) CONFIGURATION PROPERTIES
----------
[echo] appserver.type = jboss
[echo] appserver.home = /home/sara/sara/jboss
[echo] ocsp.defaultresponder = CN=AdminCA1,O=EJBCA Sample,C=SE
[echo] ocsp.signaturealgorithm = SHA1WithRSA;SHA1WithECDSA;SHA1WithDSA
[echo] datasource.jndi-name = EjbcaDS
[echo] datasource.jndi-name-prefix = java:/
[echo] database.name = mysql
[echo] database.url =
jdbc:mysql://127.0.0.1:3306/ejbca?characterEncoding=UTF-8
[echo] database.driver = com.mysql.jdbc.Driver
[echo] database.username = ejbca
[echo] database.password = ejbca
[echo] weblogic-oracle-columntype =
[echo] mail.jndi-name = java:/EjbcaMail
[echo] mail.from = ejb...@do...
[echo] mail.user = ejbca_user
[echo] mail.password =
[echo] mail.smtp.host = localhost
[echo] mail.smtp.port = 25
[echo] mail.smtp.auth = false
[echo] mail.debug = false
[echo] httpserver.pubhttp = 8080
[echo] httpserver.pubhttps = 8442
[echo] httpserver.privhttps = 8443
[echo] httpsserver.hostname = localhost
[echo] httpsserver.password = ${httpsserver.password}
[echo] web.contentencoding = UTF-8
[echo] web.renewalenabled = false
[echo] ejbcaws.enabled = true
[echo] cmp.allowraverifypopo = false
[echo] cmp.defaultca =
[echo] cmp.extractusernamecomponent =
[echo] cmp.operationmode = normal
[echo] cmp.responseprotection = signature
[echo] cmp.ra.authenticationsecret =
[echo] cmp.ra.namegenerationscheme = DN
[echo] cmp.ra.namegenerationparameters = CN
[echo] cmp.ra.namegenerationprefix =
[echo] cmp.ra.namegenerationpostfix =
[echo] cmp.ra.endentityprofile = EMPTY
[echo] cmp.ra.certificateprofile = ENDUSER
[echo] cmp.ra.caname = AdminCA1
[echo] cmp.tcp.enabled = false
[echo] cmp.tcp.portno = 829
[echo] cmp.tcp.logdir = ./log
[echo] cmp.tcp.conffile =
[echo] xkms.enabled = false
[echo] xkms.serviceport = 8080
[echo]
ejbca.ear.module-dependencies:
ejbca-util:
-check.clover:
with.clover:
compile-util:
build-util:
ejbca-entity:
-check.clover:
with.clover:
compile-external-deps:
compile:
handlepersistence:
[copy] Copying 1 file to
/home/sara/sara/ejbca/modules/ejbca-entity/build/META-INF
[copy] Copying 1 file to
/home/sara/sara/ejbca/modules/ejbca-entity/build-va/META-INF
[copy] Copying 1 file to
/home/sara/sara/ejbca/modules/ejbca-entity/build-test/META-INF
handleorm:
[copy] Copying 1 file to
/home/sara/sara/ejbca/modules/ejbca-entity/build/META-INF
[copy] Copying 1 file to
/home/sara/sara/ejbca/modules/ejbca-entity/build-test/META-INF
build:
[jar] Building jar: /home/sara/sara/ejbca/modules/dist/ejbca-entity.jar
ejbca-ejb-interface:
-check.clover:
with.clover:
ejbca-util:
-check.clover:
with.clover:
compile-util:
build-util:
ejbca-entity:
-check.clover:
with.clover:
compile-external-deps:
compile:
handlepersistence:
[copy] Copying 1 file to
/home/sara/sara/ejbca/modules/ejbca-entity/build/META-INF
[copy] Copying 1 file to
/home/sara/sara/ejbca/modules/ejbca-entity/build-va/META-INF
[copy] Copying 1 file to
/home/sara/sara/ejbca/modules/ejbca-entity/build-test/META-INF
handleorm:
[copy] Copying 1 file to
/home/sara/sara/ejbca/modules/ejbca-entity/build/META-INF
[copy] Copying 1 file to
/home/sara/sara/ejbca/modules/ejbca-entity/build-test/META-INF
build:
compile-ejb3:
[javac] Compiling 101 source files to
/home/sara/sara/ejbca/modules/ejbca-ejb-interface/ejb3build
[javac]
/home/sara/sara/ejbca/modules/ejbca-ejb-interface/src/org/ejbca/core/ejb/ra/UserAdminSession.java:24:
package javax.persistence does not exist
[javac] import javax.persistence.PersistenceException;
[javac] ^
[javac]
/home/sara/sara/ejbca/modules/ejbca-ejb-interface/src/org/ejbca/core/ejb/ra/UserAdminSession.java:72:
cannot find symbol
[javac] symbol : class PersistenceException
[javac] location: interface org.ejbca.core.ejb.ra.UserAdminSession
[javac] throws PersistenceException,
AuthorizationDeniedException, UserDoesntFullfillEndEntityProfile,
WaitingForApprovalException,
[javac] ^
[javac]
/home/sara/sara/ejbca/modules/ejbca-ejb-interface/src/org/ejbca/core/ejb/ra/UserAdminSession.java:101:
cannot find symbol
[javac] symbol : class PersistenceException
[javac] location: interface org.ejbca.core.ejb.ra.UserAdminSession
[javac] PersistenceException, WaitingForApprovalException,
CADoesntExistsException, EjbcaException;
[javac] ^
[javac]
/home/sara/sara/ejbca/modules/ejbca-ejb-interface/src/org/ejbca/core/ejb/ra/UserAdminSession.java:127:
cannot find symbol
[javac] symbol : class PersistenceException
[javac] location: interface org.ejbca.core.ejb.ra.UserAdminSession
[javac] PersistenceException, WaitingForApprovalException,
CADoesntExistsException, EjbcaException;
[javac] ^
[javac]
/home/sara/sara/ejbca/modules/ejbca-ejb-interface/src/org/ejbca/core/ejb/ra/CertificateRequestSession.java:27:
package javax.persistence does not exist
[javac] import javax.persistence.PersistenceException;
[javac] ^
[javac]
/home/sara/sara/ejbca/modules/ejbca-ejb-interface/src/org/ejbca/core/ejb/ra/CertificateRequestSession.java:73:
cannot find symbol
[javac] symbol : class PersistenceException
[javac] location: interface
org.ejbca.core.ejb.ra.CertificateRequestSession
[javac] public IResponseMessage processCertReq(Admin admin,
UserDataVO userdata, IRequestMessage req, Class responseClass) throws
PersistenceException,
[javac]
^
[javac]
/home/sara/sara/ejbca/modules/ejbca-ejb-interface/src/org/ejbca/core/ejb/ra/CertificateRequestSession.java:91:
cannot find symbol
[javac] symbol : class PersistenceException
[javac] location: interface
org.ejbca.core.ejb.ra.CertificateRequestSession
[javac] KeyStoreException, NoSuchAlgorithmException,
InvalidAlgorithmParameterException, PersistenceException;
[javac]
^
[javac]
/home/sara/sara/ejbca/modules/dist/ejbca-entity.jar(org/ejbca/core/ejb/authorization/AuthorizationTreeUpdateData.class):
warning: Cannot find annotation method 'name()' in type
'javax.persistence.Table': class file for javax.persistence.Table not
found
[javac]
/home/sara/sara/ejbca/modules/dist/ejbca-entity.jar(org/ejbca/core/ejb/approval/ApprovalData.class):
warning: Cannot find annotation method 'name()' in type
'javax.persistence.Table'
[javac]
/home/sara/sara/ejbca/modules/dist/ejbca-entity.jar(org/ejbca/core/ejb/services/ServiceData.class):
warning: Cannot find annotation method 'name()' in type
'javax.persistence.Table'
[javac] Note:
/home/sara/sara/ejbca/modules/ejbca-ejb-interface/src/org/ejbca/core/ejb/JndiHelper.java
uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 7 errors
[javac] 3 warnings
BUILD FAILED
/home/sara/sara/ejbca/build.xml:54: The following error occurred while
executing this line:
/home/sara/sara/ejbca/build.xml:764: The following error occurred while
executing this line:
/home/sara/sara/ejbca/modules/build.xml:95: The following error occurred
while executing this line:
/home/sara/sara/ejbca/modules/ejbca-ejb-interface/build.xml:64: Compile
failed; see the compiler error output for details.
Total time: 6 seconds
"
thank you for your support
regards,
Sara Ibrahim
|