[RESOLVIDO] Null Pointer Exception com Interface

ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/CertificadoDigital].[Faces Servlet]] (http--127.0.0.1-8080-2) Servlet.service() for servlet Faces Servlet threw exception: java.lang.NullPointerException at certificate.controle.UserCertControle.cadastrar(UserCertControle.java:29) [classes:] at certificate.bean.UserCertBean.cadastrar(UserCertBean.java:32) [classes:] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_38] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_38] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_38] at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_38] at org.apache.el.parser.AstValue.invoke(AstValue.java:262) [jbossweb-7.0.13.Final.jar:] at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278) [jbossweb-7.0.13.Final.jar:] at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105) [jsf-impl-2.1.7-jbossorg-2.jar:] at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final] at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) [jsf-impl-2.1.7-jbossorg-2.jar:] at javax.faces.component.UICommand.broadcast(UICommand.java:315) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final] at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final] at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final] at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81) [jsf-impl-2.1.7-jbossorg-2.jar:] at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.7-jbossorg-2.jar:] at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-2.1.7-jbossorg-2.jar:] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:] at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:] at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_38]

Acho que estou comendo bola em alguma parte da arquitetura do projeto. O erro ocorre quando chamo a interface na classe controler.

Segue as classes:

xhtml

[code]

<h:head>
Cadastro e Emissão de Certificado
</h:head>

<h:body>
<h:form>
<h:messages></h:messages>
<h:panelGrid columns=“2”>

				<h:outputLabel for="username" value="Username"></h:outputLabel> 
				<h:inputText id="username" value="#{userCertBean.userCertModel.username}" size="20" maxlength="50" required="true" requiredMessage="Nome do usuário"></h:inputText>
				  					
				<h:outputLabel for="password" value="Password"></h:outputLabel>
				<h:inputSecret id="password" value="#{userCertBean.userCertModel.password}" size="20" maxlength="50" required="true" requiredMessage="Senha"></h:inputSecret>
				  											
				<h:outputLabel for="cn" value="Common Name"></h:outputLabel>
				<h:inputText id="cn" value="#{userCertBean.userCertModel.CN}" size="20" maxlength="50" required="true" requiredMessage="Nome completo"></h:inputText>
			 					
				<h:outputLabel id="lblLocalidade" for="localidade" value="Localidade" ></h:outputLabel>
				<h:selectOneMenu id="localidade" value="#{userCertBean.userCertModel.l}">
				   	<f:selectItem itemValue="BragancaPaulista" itemLabel="Bragança Paulista" />
				   	<f:selectItem itemValue="Piracaia" itemLabel="Piracaia" />
				   	<f:selectItem itemValue="Atibaia" itemLabel="Atibaia" />
				   	<f:selectItem itemValue="BomJesusdosPerdoes" itemLabel="Bom Jesus dos Perdões" />
				   	<f:selectItem itemValue="NazarePaulista" itemLabel="Nazaré Paulista" />
				</h:selectOneMenu>					
									
				<h:outputLabel for="campus" value="Campus" ></h:outputLabel>
				<h:selectOneMenu id="campus" value="#{userCertBean.userCertModel.o}">
				   	<f:selectItem itemValue="BragancaPaulista" itemLabel="Bragança Paulista" />					   	
				</h:selectOneMenu>
									
				<h:outputLabel for="tipoUsuario" value="Tipo de Usuário" ></h:outputLabel>
				<h:selectOneMenu id="tipoUsuario" value="#{userCertBean.userCertModel.ou}">
				   	<f:selectItem itemValue="Administrativo" itemLabel="Administrativo" />
				   	<f:selectItem itemValue="Aluno" itemLabel="Aluno" />
				   	<f:selectItem itemValue="Professor" itemLabel="Professor" />
				</h:selectOneMenu>	
				  					
				<h:outputLabel for="tokenType" value="Tipo de Token"></h:outputLabel>
					<h:selectOneMenu id="tokenType" value="#{userCertBean.userCertModel.tokenType}">
					<f:selectItem itemValue="p12" itemLabel="#PKCS12" />
				</h:selectOneMenu>	
											
				<h:outputLabel for="email" value="Email" size="20"></h:outputLabel>
				<h:inputText id="email" value="#{userCertBean.userCertModel.e}" size="20" maxlength="50" required="true" requiredMessage="E-mail"></h:inputText>
			</h:panelGrid>					
			
		<h:panelGrid columns="2">			
			<h:commandButton action="#{userCertBean.cadastrar}"  value="Cadastrar"></h:commandButton>
			
			<h:commandButton value="voltar"></h:commandButton>
		</h:panelGrid>		 
</h:form>

</h:body>

[/code]

Bean

[code]package certificate.bean;

import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.SignatureException;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

import org.ejbca.core.model.ca.caadmin.CADoesntExistsException;

import certificate.controle.UserCertControle;
import certificate.model.UserCertModel;

@ManagedBean
@RequestScoped
public class UserCertBean {

public UserCertBean()
{
		
}

private UserCertModel userCertModel = new UserCertModel();		

public String cadastrar () throws InvalidKeyException, NoSuchAlgorithmException, NoSuchProviderException, SignatureException, InvalidAlgorithmParameterException, CADoesntExistsException
{			
	UserCertControle addUserCertcontrole = new UserCertControle();
	
	addUserCertcontrole.cadastrar(userCertModel);		
	
	return "Sucesso";
}
	
public UserCertModel getUserCertModel() {
	return userCertModel;
}

public void setUserCertModel(UserCertModel userCertModel) {
	this.userCertModel = userCertModel;
}

}[/code]

Model

[code]package certificate.model;

public class UserCertModel {

private String tokenType;
private String username;
private String password;
private String CN;
private String L;
private String E;
private String O;
private String path;
private String OU;

public String getTokenType() {
	return tokenType;
}
public void setTokenType(String tokenType) {
	this.tokenType = tokenType;
}
public String getUsername() {
	return username;
}
public void setUsername(String username) {
	this.username = username;
}
public String getPassword() {
	return password;
}
public void setPassword(String password) {
	this.password = password;
}
public String getCN() {
	return CN;
}
public void setCN(String cN) {
	CN = cN;
}
public String getL() {
	return L;
}
public void setL(String l) {
	L = l;
}
public String getE() {
	return E;
}
public void setE(String e) {
	E = e;
}
public String getO() {
	return O;
}
public void setO(String o) {
	O = o;
}
public String getPath() {
	return path;
}
public void setPath(String path) {
	this.path = path;
}
public String getOu() {
	return OU;
}
public void setOu(String OU) {
	this.OU = OU;
}

}
[/code]

Controlador

[code]package certificate.controle;

import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.SignatureException;

import org.ejbca.core.model.ca.caadmin.CADoesntExistsException;

import certificate.interfaces.UserCertInterface;
import certificate.model.UserCertModel;

public class UserCertControle {

UserCertInterface userCertInterface;

UserCertModel userCertModel = new UserCertModel();	

public String cadastrar(UserCertModel userCertModel) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchProviderException, SignatureException, InvalidAlgorithmParameterException, CADoesntExistsException
{
	return userCertInterface.addUserCert(userCertModel);
}

}
[/code]

Interface

[code]package certificate.interfaces;

import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.SignatureException;

import org.ejbca.core.model.ca.caadmin.CADoesntExistsException;

import certificate.model.UserCertModel;

public interface UserCertInterface {

public String addUserCert (UserCertModel userCertModel) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchProviderException, SignatureException, InvalidAlgorithmParameterException, CADoesntExistsException;

}
[/code]

E essa é a classe que implementa a interface

EJBCAAPI

package certificate.api;

import java.io.FileInputStream;
import java.io.IOException;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.SignatureException;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certificate;
import java.sql.SQLException;

import org.ejbca.core.ejb.ca.caadmin.CaSessionRemote;
import org.ejbca.core.model.SecConst;
import org.ejbca.core.model.ca.caadmin.CA;
import org.ejbca.core.model.ca.caadmin.CADoesntExistsException;
import org.ejbca.core.model.log.Admin;
import org.ejbca.core.model.ra.UserDataConstants;
import org.ejbca.core.model.ra.UserDataVO;
import org.ejbca.core.model.util.EjbRemoteHelper;
import org.ejbca.ui.cli.batch.BatchMakeP12;

import certificate.interfaces.UserCertInterface;
import certificate.model.UserCertModel;

public class ApiEjbca implements UserCertInterface{
	
	Admin admin = new Admin(Admin.TYPE_RA_USER);//Usado para pegar o AdminSession
	EjbRemoteHelper ejb = new EjbRemoteHelper(); 
	CaSessionRemote caSession = ejb.getCaSession();
	Boolean status = false;
	UserDataVO userdata = new UserDataVO();	
	//CertificateRequestSession certRequest = ejb.getCertficateRequestSession();	
	//Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());		
	
	public String emitirCert(String tokenType, UserDataVO userdata, String username, String password, String path) 
	{	
		if (tokenType == "p12")
		{
			userdata.setTokenType(SecConst.TOKEN_SOFT_P12);
		} else if (tokenType == "jks")
			{
			userdata.setTokenType(SecConst.TOKEN_SOFT_JKS);
			}		
		
		try
		{
			ejb.getUserAdminSession().addUser(admin, userdata, true);		
			
			BatchMakeP12 batch = new BatchMakeP12();		 	  
			batch.setMainStoreDir(path);		 
			batch.createAllNew();
	
			status = true;
		
		}catch (Exception e) {  
            e.printStackTrace();  
       } 
		
		if(status == true)
		{		
			try {
				ApiSignServer signserver = new ApiSignServer();
				signserver.criaWorker(username, password);
			} catch (SQLException e) {				
				e.printStackTrace();
			}	
			
			return "Sucesso";
		}else
			
			return "Falha";
	}
	
	@Override
	public String addUserCert(UserCertModel userCertModel) throws InvalidKeyException,
			NoSuchAlgorithmException, NoSuchProviderException,
			SignatureException, InvalidAlgorithmParameterException, CADoesntExistsException {	
		
		String DN = "CN=" + userCertModel.getCN() + ", E=" + userCertModel.getE() + ", O=" + userCertModel.getO() + ", OU=" + userCertModel.getOu() + ", L=" + userCertModel.getL() + ", C=BR";
				
		CA CaInfo = caSession.getCA(admin, userCertModel.getOu());
		int caid = CaInfo.getCAId();
		userdata.setUsername(userCertModel.getUsername());
		userdata.setPassword(userCertModel.getPassword());
		userdata.setDN(DN);
		userdata.setCAId(caid);
		userdata.setEmail(userCertModel.getE());
		userdata.setType(SecConst.USER_ENDUSER);		
		userdata.setStatus(UserDataConstants.STATUS_NEW);
		userdata.setEndEntityProfileId(SecConst.EMPTY_ENDENTITYPROFILE);
		userdata.setCertificateProfileId(SecConst.CERTPROFILE_FIXED_ENDUSER); 	
		
		System.out.println("Username: " + userdata.getUsername());
		System.out.println("Password: " + userdata.getPassword());
		System.out.println("DN: " + userdata.getDN());
		System.out.println("CaId: " + userdata.getCAId());
		System.out.println("E-mail: " + userdata.getEmail());
		System.out.println("Type: " + userdata.getType());
		System.out.println("Status: " + userdata.getStatus());
		System.out.println("End Entity Profile ID: " + userdata.getEndEntityProfileId());
		System.out.println("Certificata Profile ID: " + userdata.getCertificateProfileId());
		//return emitirCert(userCertModel.getTokenType(), userdata, userCertModel.getUsername(), userCertModel.getPassword(), userCertModel.getPath());
		
		return "Sucesso";
	}
	
	public PrivateKey getPrivKey() throws CertificateException, IOException, KeyStoreException
	{
	    // begin private key 
	      
		KeyStore ks = KeyStore.getInstance("PKCS12");
	    String keyStorePass = "mar72063480";
	    PrivateKey privKey = null;
	    
	    try {			
	    	ks.load(new FileInputStream("C:/Users/Marcos/Desktop/p12/MPFontana.p12"), keyStorePass.toCharArray());		    
	 	    
	    	String alias = ks.aliases().nextElement(); 	
	 	   	
	 	   	privKey = (PrivateKey) ks.getKey(alias, keyStorePass.toCharArray());	
	 	   	
		} catch (Exception ex) {
		    ex.printStackTrace();
		} 
	    // end private key 
		return privKey;
	
	}
	
	public PublicKey getPubKey() throws CertificateException, IOException, KeyStoreException
	{
		// begin public key 
	      
	      FileInputStream fis = new FileInputStream("C:/Users/Marcos/Desktop/p12/MPFontana.crt");  
	      CertificateFactory certF = CertificateFactory.getInstance("X.509");  
	      X509Certificate cert = (X509Certificate)certF.generateCertificate(fis);     
	      PublicKey pubKey = cert.getPublicKey();  
	      fis.close();  
	      
	   // end public key 
		return pubKey;  
	}
}

faltou fazer a injecao de dependencia dessa interface:

return userCertInterface.addUserCert(userCertModel); 

[quote=igor_ks]faltou fazer a injecao de dependencia dessa interface:

return userCertInterface.addUserCert(userCertModel); 

Fiz sim, esta na classe controle.

[quote][code]
package certificate.controle;

import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.SignatureException;

import org.ejbca.core.model.ca.caadmin.CADoesntExistsException;

import certificate.interfaces.UserCertInterface;
import certificate.model.UserCertModel;

public class UserCertControle {

UserCertInterface userCertInterface;  
  
UserCertModel userCertModel = new UserCertModel();    
  
public String cadastrar(UserCertModel userCertModel) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchProviderException, SignatureException, InvalidAlgorithmParameterException, CADoesntExistsException  
{  
    return userCertInterface.addUserCert(userCertModel);  
} 

}
[/code]
[/quote]

vc esta usando cdi? se sim coloca o @inject co UserCertInterface userCertInterface

outra coisa se vc esta usando injeção de dependência não pode dar new na classe se não o conteiner não vai injetar nada nessa classe e vc vai tomar um nullPointer

[quote=DaniloAndrade][quote][code]
package certificate.controle;

import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.SignatureException;

import org.ejbca.core.model.ca.caadmin.CADoesntExistsException;

import certificate.interfaces.UserCertInterface;
import certificate.model.UserCertModel;

public class UserCertControle {

UserCertInterface userCertInterface;  
  
UserCertModel userCertModel = new UserCertModel();    
  
public String cadastrar(UserCertModel userCertModel) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchProviderException, SignatureException, InvalidAlgorithmParameterException, CADoesntExistsException  
{  
    return userCertInterface.addUserCert(userCertModel);  
} 

}
[/code]
[/quote]

vc esta usando cdi? se sim coloca o @inject co UserCertInterface userCertInterface

outra coisa se vc esta usando injeção de dependência não pode dar new na classe se não o conteiner não vai injetar nada nessa classe e vc vai tomar um nullPointer

[/quote]

Para ser bem sincero, não cogitei usar Injeção de Dependência, pois não conheço sua implementação, porém o que estou tentando fazer, venha ser necessário o uso dele. Onde ficaria esse @inject?

exemplo

@ManagedBean    // alterar para usar anotatação cdi "@Named"
@RequestScoped  // alterar para usar anotatação do cdi "@RequestScoped"  
public class UserCertBean {    
     @inject
     private UserCertControle userCertcontrole;


    public UserCertBean()    
    {    
                
    }    
        
    private UserCertModel userCertModel = new UserCertModel();          
        
    public String cadastrar () throws InvalidKeyException, NoSuchAlgorithmException, NoSuchProviderException, SignatureException, InvalidAlgorithmParameterException, CADoesntExistsException    
    {               
        //UserCertControle addUserCertcontrole = new UserCertControle();  // se vc esta usando injeção não deve dar new e portando não deveria esta instanciando a classe aqui  
            
        userCertcontrole.cadastrar(userCertModel);           
            
        return "Sucesso";    
    }    
            
    public UserCertModel getUserCertModel() {    
        return userCertModel;    
    }    
    
    public void setUserCertModel(UserCertModel userCertModel) {    
        this.userCertModel = userCertModel;    
    }    
}  

e essa classe ficaria assim

package certificate.controle;    
    
import java.security.InvalidAlgorithmParameterException;    
import java.security.InvalidKeyException;    
import java.security.NoSuchAlgorithmException;    
import java.security.NoSuchProviderException;    
import java.security.SignatureException;    
    
import org.ejbca.core.model.ca.caadmin.CADoesntExistsException;    
    
import certificate.interfaces.UserCertInterface;    
import certificate.model.UserCertModel;    
    
public class UserCertControle {    
     @inject   
    private UserCertInterface userCertInterface;    
        
        
        
    public String cadastrar(UserCertModel userCertModel) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchProviderException, SignatureException, InvalidAlgorithmParameterException, CADoesntExistsException    
    {    
        return userCertInterface.addUserCert(userCertModel);    
    }   
}   

isso se vc for usar cdi

agora se vc não esta usando nenhum conteiner de injeção de dependência ai vc tem que instancia-las manualmente

package certificate.controle;    
    
import java.security.InvalidAlgorithmParameterException;    
import java.security.InvalidKeyException;    
import java.security.NoSuchAlgorithmException;    
import java.security.NoSuchProviderException;    
import java.security.SignatureException;    
    
import org.ejbca.core.model.ca.caadmin.CADoesntExistsException;    
    
import certificate.interfaces.UserCertInterface;    
import certificate.model.UserCertModel;    
    
public class UserCertControle {    
        
    UserCertInterface userCertInterface;    //precisa ser instanciado
        
    UserCertModel userCertModel = new UserCertModel();      
        
    public String cadastrar(UserCertModel userCertModel) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchProviderException, SignatureException, InvalidAlgorithmParameterException, CADoesntExistsException    
    {    
        return userCertInterface.addUserCert(userCertModel);    
    }   
}   

[quote=DaniloAndrade]agora se vc não esta usando nenhum conteiner de injeção de dependência ai vc tem que instancia-las manualmente

[code]
package certificate.controle;

import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.SignatureException;

import org.ejbca.core.model.ca.caadmin.CADoesntExistsException;

import certificate.interfaces.UserCertInterface;
import certificate.model.UserCertModel;

public class UserCertControle {

UserCertInterface userCertInterface;    //precisa ser instanciado
    
UserCertModel userCertModel = new UserCertModel();      
    
public String cadastrar(UserCertModel userCertModel) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchProviderException, SignatureException, InvalidAlgorithmParameterException, CADoesntExistsException    
{    
    return userCertInterface.addUserCert(userCertModel);    
}   

}
[/code][/quote]

Então, mas ela já esta sendo instanciadaa na classe controle e esta me retornando o Null Point. Se eu não acionar a Interface e checar o objeto, o mesmo se encontra com todos os atributos “cheios”. De uma olhada no start up do conteiner, esta com umas mensagens Warns, mas creio que não seja nada que provoque este erro.

10:12:45,532 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015009: Scan found incompletely copied file content for deployment C:\Projeto\jboss-as-7.1.1.Final\standalone\deployments\CertificadoDigital.war. Deployment changes will not be processed until all content is complete. 10:12:45,759 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "CertificadoDigital.war" 10:12:46,522 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\antlr-2.7.6.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,525 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\batik-anim.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,527 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\batik-awt-util.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,530 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\batik-bridge.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,532 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\batik-codec.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,535 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\batik-css.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,537 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\batik-dom.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,540 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\batik-ext.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,542 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\batik-gvt.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,545 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\batik-parser.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,547 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\batik-script.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,549 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\batik-svg-dom.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,552 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\batik-svggen.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,554 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\batik-transcoder.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,557 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\batik-util.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,560 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\batik-xml.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,562 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\bcmail-jdk16-145.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,565 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\bcprov-jdk16-145.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,567 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\bctsp-jdk16-145.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,570 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\cert-cvc.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,572 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\commons-collections-3.2.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,574 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\commons-configuration-1.6.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,577 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\commons-lang-2.5.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,579 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\commons-logging-1.1.1.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,582 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\concurrent.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,584 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\dom4j-1.6.1.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,587 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\ejb3-persistence.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,589 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\ejbca-interface.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,592 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\ejbca-util.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,594 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\hibernate-annotations.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,596 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\hibernate-commons-annotations.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,599 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\hibernate-core.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,601 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\hibernate-entitymanager.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,604 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\hibernate-search-3.1.1.GA.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,607 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\hibernate-validator-3.1.0.GA.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,609 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\javassist-3.4.GA.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,612 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jboss-aop-client.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,615 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jboss-aspect-jdk50-client.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,617 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jboss-client.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,620 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jboss-common-core.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,622 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jboss-ejb3-common-client.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,625 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jboss-ejb3-core-client.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,627 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jboss-ejb3-ext-api-impl.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,629 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jboss-ejb3-ext-api.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,632 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jboss-ejb3-proxy-clustered-client.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,635 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jboss-ejb3-proxy-impl-client.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,637 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jboss-ejb3-proxy-spi-client.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,640 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jboss-ejb3-security-client.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,642 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jboss-integration.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,644 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jboss-javaee.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,647 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jboss-logging-jdk.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,649 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jboss-logging-log4j.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,652 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jboss-logging-spi.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,654 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jboss-remoting.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,657 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jboss-security-spi.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,659 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jboss-serialization.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,661 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jbossall-client.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,663 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jbosssx-client.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,665 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jnp-client.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,667 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\jta-1.1.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,669 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\ldap.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,671 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\log4j-1.2.16.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,673 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\lucene-core-2.4.1.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,675 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\serializer-2.7.1.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,677 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\slf4j-api-1.5.2.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,680 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\slf4j-log4j12.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,682 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\xalan-2.7.1.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,684 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\xerces.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,686 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\xml-apis-ext.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,688 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\xml-apis.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:46,690 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry lib\xmlsec-1.4.3.jar in "/C:/Projeto/jboss-as-7.1.1.Final/bin/content/CertificadoDigital.war/WEB-INF/lib/ejbca-ejb-cli.jar" does not point to a valid jar for a Class-Path reference. 10:12:47,199 WARN [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Tomcat6InjectionProvider:org.apache.catalina.util.DefaultAnnotationProcessor' for service type 'com.sun.faces.spi.injectionprovider' 10:12:47,202 WARN [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Jetty6InjectionProvider:org.mortbay.jetty.plus.annotation.InjectionCollection' for service type 'com.sun.faces.spi.injectionprovider' 10:12:47,671 INFO [org.apache.catalina.core.StandardContext] (MSC service thread 1-5) The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored. 10:12:47,674 INFO [org.apache.catalina.core.StandardContext] (MSC service thread 1-5) The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored. 10:12:47,719 INFO [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-5) Inicializando Mojarra 2.1.7-jbossorg-1 (20120227-1401) para o contexto '/CertificadoDigital' 10:12:48,202 INFO [org.hibernate.validator.util.Version] (MSC service thread 1-5) Hibernate Validator 4.2.0.Final 10:12:48,417 INFO [org.jboss.web] (MSC service thread 1-5) JBAS018210: Registering web context: /CertificadoDigital 10:12:48,908 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018559: Deployed "CertificadoDigital.war"

vc olho o comentario

se vc não instanciar o

UserCertInterface userCertInterface;

ele estara nullo quando vc

fizer isso

return userCertInterface.addUserCert(userCertModel);    

se vc debuggar seu codigo vc vai ver que o userCertInterface esta nullo

[quote=DaniloAndrade]vc olho o comentario

se vc não instanciar o

UserCertInterface userCertInterface;

ele estara nullo quando vc

fizer isso

return userCertInterface.addUserCert(userCertModel);    

se vc debuggar seu codigo vc vai ver que o userCertInterface esta nullo[/quote]

Cara mas em OO, não se instancia Interfaces.

[quote=DaniloAndrade]vc olho o comentario

se vc não instanciar o

UserCertInterface userCertInterface;

ele estara nullo quando vc

fizer isso

return userCertInterface.addUserCert(userCertModel);    

se vc debuggar seu codigo vc vai ver que o userCertInterface esta nullo[/quote]

Exatamente, está nulo, mas uma Interface não pode ser instanciada segundo as convenções de OO.

é velho, vc ta na roça mesmo, rsrsr

vc deve ter uma classe que implementa essa interface

use ela pra instanciar a interface que esta nula

java ainda não faz magica

e isso que vc falou que em OO não se instancia interface não é bem verdade , vc pode instanciar contanto que vc a implemente.

em swing vc faz muito isso quando adiciona um ActionListener a um jbutton ou algum outro componete swing

pesquise sobre classes anonimas

[quote=DaniloAndrade]é velho, vc ta na roça mesmo, rsrsr

vc deve ter uma classe que implementa essa interface

use ela pra instanciar a interface que esta nula

java ainda não faz magica

e isso que vc falou que em OO não se instancia interface não é bem verdade , vc pode instanciar contanto que vc a implemente.

em swing vc faz muito isso quando adiciona um ActionListener a um jbutton ou algum outro componete swing

pesquise sobre classes anonimas
[/quote]

Pois é, mas eu tenho uma classe implementendo essa interface, já tinha colocado ela na descrição, é a ApiEjbca

[code]public class ApiEjbca implements UserCertInterface{

Admin admin = new Admin(Admin.TYPE_RA_USER);//Usado para pegar o AdminSession  
EjbRemoteHelper ejb = new EjbRemoteHelper();   
CaSessionRemote caSession = ejb.getCaSession();  
Boolean status = false;  
UserDataVO userdata = new UserDataVO();   
//CertificateRequestSession certRequest = ejb.getCertficateRequestSession();      
//Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());         
  
public String emitirCert(String tokenType, UserDataVO userdata, String username, String password, String path)   
{     
    if (tokenType == "p12")  
    {  
        userdata.setTokenType(SecConst.TOKEN_SOFT_P12);  
    } else if (tokenType == "jks")  
        {  
        userdata.setTokenType(SecConst.TOKEN_SOFT_JKS);  
        }         
      
    try  
    {  
        ejb.getUserAdminSession().addUser(admin, userdata, true);         
          
        BatchMakeP12 batch = new BatchMakeP12();                
        batch.setMainStoreDir(path);           
        batch.createAllNew();  
  
        status = true;  
      
    }catch (Exception e) {    
        e.printStackTrace();    
   }   
      
    if(status == true)  
    {         
        try {  
            ApiSignServer signserver = new ApiSignServer();  
            signserver.criaWorker(username, password);  
        } catch (SQLException e) {                
            e.printStackTrace();  
        }     
          
        return "Sucesso";  
    }else  
          
        return "Falha";  
}  
  
@Override  
public String addUserCert(UserCertModel userCertModel) throws InvalidKeyException,  
        NoSuchAlgorithmException, NoSuchProviderException,  
        SignatureException, InvalidAlgorithmParameterException, CADoesntExistsException {     
      
    String DN = "CN=" + userCertModel.getCN() + ", E=" + userCertModel.getE() + ", O=" + userCertModel.getO() + ", OU=" + userCertModel.getOu() + ", L=" + userCertModel.getL() + ", C=BR";  
              
    CA CaInfo = caSession.getCA(admin, userCertModel.getOu());  
    int caid = CaInfo.getCAId();  
    userdata.setUsername(userCertModel.getUsername());  
    userdata.setPassword(userCertModel.getPassword());  
    userdata.setDN(DN);  
    userdata.setCAId(caid);  
    userdata.setEmail(userCertModel.getE());  
    userdata.setType(SecConst.USER_ENDUSER);          
    userdata.setStatus(UserDataConstants.STATUS_NEW);  
    userdata.setEndEntityProfileId(SecConst.EMPTY_ENDENTITYPROFILE);  
    userdata.setCertificateProfileId(SecConst.CERTPROFILE_FIXED_ENDUSER);     
      
    System.out.println("Username: " + userdata.getUsername());  
    System.out.println("Password: " + userdata.getPassword());  
    System.out.println("DN: " + userdata.getDN());  
    System.out.println("CaId: " + userdata.getCAId());  
    System.out.println("E-mail: " + userdata.getEmail());  
    System.out.println("Type: " + userdata.getType());  
    System.out.println("Status: " + userdata.getStatus());  
    System.out.println("End Entity Profile ID: " + userdata.getEndEntityProfileId());  
    System.out.println("Certificata Profile ID: " + userdata.getCertificateProfileId());  
    //return emitirCert(userCertModel.getTokenType(), userdata, userCertModel.getUsername(), userCertModel.getPassword(), userCertModel.getPath());  
      
    return "Sucesso";  
}  
  
public PrivateKey getPrivKey() throws CertificateException, IOException, KeyStoreException  
{  
    // begin private key   
        
    KeyStore ks = KeyStore.getInstance("PKCS12");  
    String keyStorePass = "mar72063480";  
    PrivateKey privKey = null;  
      
    try {             
        ks.load(new FileInputStream("C:/Users/Marcos/Desktop/p12/MPFontana.p12"), keyStorePass.toCharArray());            
          
        String alias = ks.aliases().nextElement();    
          
        privKey = (PrivateKey) ks.getKey(alias, keyStorePass.toCharArray());      
          
    } catch (Exception ex) {  
        ex.printStackTrace();  
    }   
    // end private key   
    return privKey;  
  
}  
  
public PublicKey getPubKey() throws CertificateException, IOException, KeyStoreException  
{  
    // begin public key   
        
      FileInputStream fis = new FileInputStream("C:/Users/Marcos/Desktop/p12/MPFontana.crt");    
      CertificateFactory certF = CertificateFactory.getInstance("X.509");    
      X509Certificate cert = (X509Certificate)certF.generateCertificate(fis);       
      PublicKey pubKey = cert.getPublicKey();    
      fis.close();    
        
   // end public key   
    return pubKey;    
}  

} [/code]

blz, mas se vc não instanciar ele o java não vai fazer sozinho.


public class UserCertControle {        
            
    UserCertInterface userCertInterface = new ApiEjbca();    //precisa ser instanciado    
            
    UserCertModel userCertModel = new UserCertModel();          
            
    public String cadastrar(UserCertModel userCertModel) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchProviderException, SignatureException, InvalidAlgorithmParameterException, CADoesntExistsException        
    {        
        return userCertInterface.addUserCert(userCertModel);        
    }       
}      

o java não faz magica

[quote=DaniloAndrade]blz, mas se vc não instanciar ele o java não vai fazer sozinho.


public class UserCertControle {        
            
    UserCertInterface userCertInterface = new ApiEjbca();    //precisa ser instanciado    
            
    UserCertModel userCertModel = new UserCertModel();          
            
    public String cadastrar(UserCertModel userCertModel) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchProviderException, SignatureException, InvalidAlgorithmParameterException, CADoesntExistsException        
    {        
        return userCertInterface.addUserCert(userCertModel);        
    }       
}      

o java não faz magica
[/quote]

Era isso mesmo, era só instanciar o new EjbcaApi. Não tinha feito pq nunca tinha feito esse tipo de implementação, mas muito obrigado Danilo!