|
From: Tomas G. <to...@pr...> - 2012-11-29 08:05:38
|
Hi,
If you want to develop JEE applications I think you need to study and learn more about JEE. Perhaps you should attend some JEE course and study some books?
Unforunately I think it will be hard to find someone with enough time to walk you through the concepts of JEE applications, application servers and class loaders in this forum.
Kind regards,
Tomas
Marcos Fontana <mar...@ho...> skrev:
>I was doing like this:
>
>I’ve a Project that will do some operations from EJBCA using JSF pages.
>
>I created some packages to hold my classes like certificate.model,
>certificate.controler, certificate.bean, and some others.
>
>In the certificate.model, I created the CertificateModel class, that
>hold the operations about creation of user and certificates, using the
>interface CertificateRequestSession. All here works fine in a java
>aplication, but not in JSF.
>
>I studied JSF in the University, but nothing to how use some API inside
>the project. So is from this all of my questions about this type of
>implementation.
>
>I tryed a lot to create a Web Service, using Apache Axis2, but i got a
>port conflict when the server goes UP, even if I change the port on
>configurations XML.
>
>So if you can gimme a hand, I will be a lot of pleased with you.
>
>Thanks
>
>
>
>De: Tomas Gustavsson
>Enviado: 28 de novembro de 2012 07:13
>Para: ejb...@li..., Marcos Fontana
>Assunto: RE: [Ejbca-develop] Error NoClassDefFoundError
>
>
>RE: [Ejbca-develop] Error NoClassDefFoundError
>perhaps you can explain how you project looks like. It's hard to guess
>what your jar and class files look like.
>
>Packaging EJBCA classes into war files is nothing strange and has been
>done before.
>
>Cheers,
>Tomas
>
>
>-----Original message-----
>From: Marcos Fontana <mar...@ho...>
>Sent: Monday 26th November 2012 12:58
>To: ejb...@li...
>Subject: Re: [Ejbca-develop] Error NoClassDefFoundError
>
>
>
>
>So, where shoud i look to find the right places to put the jars in the
>aplication server?
>
>
>
>
>--------------------------------------------------------------------------------------------------------------------------------------
>Application server class loaded works differently. You have to pack
>things correctly, and place external jar files in correct places.
>
>On 11/26/2012 11:58 AM, Marcos Fontana wrote:
>> Hi Tomas,
>> In the test class that worked fine, the classes are in the default
>> package. In the real aplication, the class is in certificate.model.
>> I done everything the same, even the imports. I never done nothing in
>> the class path of war file, even in the test case.
>>
>>
>--------------------------------------------------------------------------------------------------------------------------------------
>> Hi,
>>
>> How do you package your application? It seems to me that the missing
>> class is not included in the classpath of your war file.
>>
>> Cheers,
>> Tomas
>>
>> On 11/22/2012 08:00 PM, Marcos Fontana wrote:
>>> Enviado do Email do Windows
>>> *De:* Marcos Paulo Fontana
>>> *Enviado:* ?22? de ?novembro? de ?2012 ?16?:?57
>>> *Para:* mar...@ho...
>>> *Assunto:* ejb...@li...
>>>
>>> Hi,
>>>
>>> When I?m trying to create a certificate directly on the main in
>java,
>>> like following code, I can do it normaly, the user and certificate
>are
>>> created well.
>>>
>>> *public**static**void*main(String[] args)
>*throws*InvalidKeyException,
>>> NoSuchAlgorithmException, NoSuchProviderException,
>SignatureException,
>>> InvalidAlgorithmParameterException, SecurityException, IOException,
>>> CertificateEncodingException {
>>>
>>>
>>>
>Security./addProvider/(*new*org.bouncycastle.jce.provider.BouncyCastleProvider());
>>>
>>> CertificateRequestSession teste =
>>> InterfaceCache./getCertficateRequestSession/();
>>>
>>> Admin admin =
>*new*Admin(Admin./TYPE_CACOMMANDLINE_USER/);
>>>
>>> UserDataVO userdata = *new*UserDataVO();
>>>
>>> String username = "yMariano";
>>>
>>> String password = "a1b2c3";
>>>
>>> String DN = "E=y...@ho...,CN=Yara
>>> mariano, OU=Administrativo,O=IFSP,L=Piracaia,C=BR";
>>>
>>> *int*caid = 1963139164;
>>>
>>> String email = "yar...@ho...";
>>>
>>> userdata.setUsername(username);
>>>
>>> userdata.setPassword(password);
>>>
>>> userdata.setDN(DN);
>>>
>>> userdata.setCAId(caid);
>>>
>>> userdata.setEmail(email);
>>>
>>> userdata.setType(SecConst./USER_ENDUSER/);
>>>
>>>
>userdata.setTokenType(SecConst./TOKEN_SOFT_BROWSERGEN/);
>>>
>>> userdata.setStatus(UserDataConstants./STATUS_NEW/);
>>>
>>>
>>> userdata.setEndEntityProfileId(SecConst./EMPTY_ENDENTITYPROFILE/);
>>>
>>>
>>>
>userdata.setCertificateProfileId(SecConst./CERTPROFILE_FIXED_ENDUSER/);
>>>
>>> String pkcs10 =
>>>
>*new*String(Base64./encode/(NonEjbTestTools./generatePKCS10Req/("CN="+username,
>>> password)));
>>>
>>> *try*{
>>>
>>> teste.processCertReq(admin, userdata, pkcs10,
>>> SecConst./CERT_REQ_TYPE_PKCS10/, *null*,
>SecConst./CERT_REQ_TYPE_PKCS10/);
>>>
>>> } *catch*(Exception ex) {
>>>
>>> // *TODO*Auto-generated catch block
>>>
>>> }
>>>
>>> }
>>>
>>> So I implemented all that in a JSF page and tryed to run it, like i
>done
>>> before, but got this error:
>>>
>>> javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError:
>>> org/ejbca/util/InterfaceCache
>>>
>>> at
>>>
>javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
>>>
>>> at
>>>
>com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
>>>
>>> at
>>> javax.faces.component.UICommand.broadcast(UICommand.java:387)
>>>
>>> at
>>>
>javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
>>>
>>> at
>>>
>javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
>>>
>>> at
>>>
>com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
>>>
>>> at
>com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
>>>
>>> at
>>>
>com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
>>>
>>> at
>>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
>>>
>>> at
>>>
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>>
>>> at
>>>
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>
>>> at
>>>
>org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>>>
>>> at
>>>
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>>
>>> at
>>>
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>
>>> at
>>>
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
>>>
>>> at
>>>
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>>>
>>> at
>>>
>org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
>>>
>>> at
>>>
>org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
>>>
>>> at
>>>
>org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
>>>
>>> at
>>>
>org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
>>>
>>> at
>>>
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>>
>>> at
>>>
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>
>>> at
>>>
>org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
>>>
>>> at
>>>
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>>
>>> at
>>>
>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
>>>
>>> at
>>>
>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
>>>
>>> at
>>>
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
>>>
>>> at
>>>
>org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>>
>>> at java.lang.Thread.run(Unknown Source)
>>>
>>> Caused by: java.lang.NoClassDefFoundError:
>org/ejbca/util/InterfaceCache
>>>
>>> at
>>>
>certificate.model.ModelCertificado.emitirCertificado(ModelCertificado.java:28)
>>>
>>> at
>>> certificate.model.ModelProfile.cadastraProfile(ModelProfile.java:29)
>>>
>>> at
>>>
>certificate.facade.FacadeProfile.cadastrarProfile(FacadeProfile.java:18)
>>>
>>> at
>>>
>certificate.controler.ControladorProfile.cadastrarProfile(ControladorProfile.java:18)
>>>
>>> at
>certificate.bean.ProfileBean.cadastrarProfile(ProfileBean.java:25)
>>>
>>> at
>sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>> Method)
>>>
>>> at
>sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
>>> Source)
>>>
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>>
>>> at java.lang.reflect.Method.invoke(Unknown Source)
>>>
>>> at
>org.apache.el.parser.AstValue.invoke(AstValue.java:170)
>>>
>>> at
>>>
>org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
>>>
>>> at
>>>
>org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:68)
>>>
>>> at
>>>
>javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
>>>
>>> ... 28 more
>>>
>>> Caused by: java.lang.ClassNotFoundException:
>>> org.ejbca.util.InterfaceCache from
>>>
>BaseClassLoader@54ed9ff8{VFSClassLoaderPolicy@3ca17e57{name=vfszip:/C:/Users/Marcos/workspace/jboss-5.1.0.GA/server/default/deploy/CertificadosDigitais.war/
>>>
>domain=ClassLoaderDomain@2c851425{name=vfszip:/C:/Users/Marcos/workspace/jboss-5.1.0.GA/server/default/deploy/CertificadosDigitais.war/
>>> parentPolicy=AFTER_BUT_JAVA_BEFORE
>>> parent=ClassLoaderDomain@5867df9{DefaultDomain}}
>>> roots=[MemoryContextHandler@242065626[path=
>>> context=vfsmemory://3j001-jcuaql-h9u898ou-1-h9u89s8l-2a
>>> real=vfsmemory://3j001-jcuaql-h9u898ou-1-h9u89s8l-2a],
>>>
>ZipEntryHandler@1062948764[path=CertificadosDigitais.war/WEB-INF/classes
>>>
>context=file:/C:/Users/Marcos/workspace/jboss-5.1.0.GA/server/default/deploy/
>>>
>real=file:/C:/Users/Marcos/workspace/jboss-5.1.0.GA/server/default/deploy/CertificadosDigitais.war/WEB-INF/classes]]
>>> delegates=null exported=[certificate.controler, certificate.bean,
>>> certificate.model, certificate.interfaces, certificate.facade,
>>> certificate.dao] <IMPORT-ALL>NON_EMPTY}}
>>>
>>> at
>>>
>org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)
>>>
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>>
>>> ... 41 more
>>>
>>> 2012-11-22 16:45:01,853 WARNING
>>> [javax.enterprise.resource.webcontainer.jsf.lifecycle]
>>> (http-0.0.0.0-8080-1) #{profileBean.cadastrarProfile}:
>>> java.lang.NoClassDefFoundError: org/ejbca/util/InterfaceCache
>>>
>>> javax.faces.FacesException: #{profileBean.cadastrarProfile}:
>>> java.lang.NoClassDefFoundError: org/ejbca/util/InterfaceCache
>>>
>>> at
>>>
>com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
>>>
>>> at
>>> javax.faces.component.UICommand.broadcast(UICommand.java:387)
>>>
>>> at
>>>
>javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
>>>
>>> at
>>>
>javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
>>>
>>> at
>>>
>com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
>>>
>>> at
>com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
>>>
>>> at
>>>
>com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
>>>
>>> at
>>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
>>>
>>> at
>>>
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>>
>>> at
>>>
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>
>>> at
>>>
>org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>>>
>>> at
>>>
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>>
>>> at
>>>
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>
>>> at
>>>
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
>>>
>>> at
>>>
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>>>
>>> at
>>>
>org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
>>>
>>> at
>>>
>org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
>>>
>>> at
>>>
>org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
>>>
>>> at
>>>
>org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
>>>
>>> at
>>>
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>>
>>> at
>>>
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>
>>> at
>>>
>org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
>>>
>>> at
>>>
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>>
>>> at
>>>
>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
>>>
>>> at
>>>
>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
>>>
>>> at
>>>
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
>>>
>>> at
>>>
>org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>>
>>> at java.lang.Thread.run(Unknown Source)
>>>
>>> Caused by: javax.faces.el.EvaluationException:
>>> java.lang.NoClassDefFoundError: org/ejbca/util/InterfaceCache
>>>
>>> at
>>>
>javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
>>>
>>> at
>>>
>com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
>>>
>>> ... 27 more
>>>
>>> Caused by: java.lang.NoClassDefFoundError:
>org/ejbca/util/InterfaceCache
>>>
>>> at
>>>
>certificate.model.ModelCertificado.emitirCertificado(ModelCertificado.java:28)
>>>
>>> at
>>> certificate.model.ModelProfile.cadastraProfile(ModelProfile.java:29)
>>>
>>> at
>>>
>certificate.facade.FacadeProfile.cadastrarProfile(FacadeProfile.java:18)
>>>
>>> at
>>>
>certificate.controler.ControladorProfile.cadastrarProfile(ControladorProfile.java:18)
>>>
>>> at
>certificate.bean.ProfileBean.cadastrarProfile(ProfileBean.java:25)
>>>
>>> at
>sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>> Method)
>>>
>>> at
>sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
>>> Source)
>>>
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>>
>>> at java.lang.reflect.Method.invoke(Unknown Source)
>>>
>>> at
>org.apache.el.parser.AstValue.invoke(AstValue.java:170)
>>>
>>> at
>>>
>org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
>>>
>>> at
>>>
>org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:68)
>>>
>>> at
>>>
>javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
>>>
>>> ... 28 more
>>>
>>> Caused by: java.lang.ClassNotFoundException:
>>> org.ejbca.util.InterfaceCache from
>>>
>BaseClassLoader@54ed9ff8{VFSClassLoaderPolicy@3ca17e57{name=vfszip:/C:/Users/Marcos/workspace/jboss-5.1.0.GA/server/default/deploy/CertificadosDigitais.war/
>>>
>domain=ClassLoaderDomain@2c851425{name=vfszip:/C:/Users/Marcos/workspace/jboss-5.1.0.GA/server/default/deploy/CertificadosDigitais.war/
>>> parentPolicy=AFTER_BUT_JAVA_BEFORE
>>> parent=ClassLoaderDomain@5867df9{DefaultDomain}}
>>> roots=[MemoryContextHandler@242065626[path=
>>> context=vfsmemory://3j001-jcuaql-h9u898ou-1-h9u89s8l-2a
>>> real=vfsmemory://3j001-jcuaql-h9u898ou-1-h9u89s8l-2a],
>>>
>ZipEntryHandler@1062948764[path=CertificadosDigitais.war/WEB-INF/classes
>>>
>context=file:/C:/Users/Marcos/workspace/jboss-5.1.0.GA/server/default/deploy/
>>>
>real=file:/C:/Users/Marcos/workspace/jboss-5.1.0.GA/server/default/deploy/CertificadosDigitais.war/WEB-INF/classes]]
>>> delegates=null exported=[certificate.controler, certificate.bean,
>>> certificate.model, certificate.interfaces, certificate.facade,
>>> certificate.dao] <IMPORT-ALL>NON_EMPTY}}
>>>
>>> at
>>>
>org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)
>>>
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>>
>>> ... 41 more
>>>
>>> 2012-11-22 16:45:01,855 SEVERE
>>> [javax.enterprise.resource.webcontainer.jsf.lifecycle]
>>> (http-0.0.0.0-8080-1) JSF1054: (Phase ID: INVOKE_APPLICATION 5, View
>ID:
>>> /cadastroProfile.jsp) Exception thrown during phase execution:
>>>
>javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@156f0858]
>>>
>>> 2012-11-22 16:45:01,856 ERROR
>>>
>[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/CertificadosDigitais].[Faces
>>> Servlet]] (http-0.0.0.0-8080-1) Servlet.service() for servlet Faces
>>> Servlet threw exception
>>>
>>> java.lang.ClassNotFoundException: org.ejbca.util.InterfaceCache from
>>>
>BaseClassLoader@54ed9ff8{VFSClassLoaderPolicy@3ca17e57{name=vfszip:/C:/Users/Marcos/workspace/jboss-5.1.0.GA/server/default/deploy/CertificadosDigitais.war/
>>>
>domain=ClassLoaderDomain@2c851425{name=vfszip:/C:/Users/Marcos/workspace/jboss-5.1.0.GA/server/default/deploy/CertificadosDigitais.war/
>>> parentPolicy=AFTER_BUT_JAVA_BEFORE
>>> parent=ClassLoaderDomain@5867df9{DefaultDomain}}
>>> roots=[MemoryContextHandler@242065626[path=
>>> context=vfsmemory://3j001-jcuaql-h9u898ou-1-h9u89s8l-2a
>>> real=vfsmemory://3j001-jcuaql-h9u898ou-1-h9u89s8l-2a],
>>>
>ZipEntryHandler@1062948764[path=CertificadosDigitais.war/WEB-INF/classes
>>>
>context=file:/C:/Users/Marcos/workspace/jboss-5.1.0.GA/server/default/deploy/
>>>
>real=file:/C:/Users/Marcos/workspace/jboss-5.1.0.GA/server/default/deploy/CertificadosDigitais.war/WEB-INF/classes]]
>>> delegates=null exported=[certificate.controler, certificate.bean,
>>> certificate.model, certificate.interfaces, certificate.facade,
>>> certificate.dao] <IMPORT-ALL>NON_EMPTY}}
>>>
>>> at
>>>
>org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)
>>>
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>>
>>> at
>>>
>certificate.model.ModelCertificado.emitirCertificado(ModelCertificado.java:28)
>>>
>>> at
>>> certificate.model.ModelProfile.cadastraProfile(ModelProfile.java:29)
>>>
>>> at
>>>
>certificate.facade.FacadeProfile.cadastrarProfile(FacadeProfile.java:18)
>>>
>>> at
>>>
>certificate.controler.ControladorProfile.cadastrarProfile(ControladorProfile.java:18)
>>>
>>> at
>certificate.bean.ProfileBean.cadastrarProfile(ProfileBean.java:25)
>>>
>>> at
>sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>> Method)
>>>
>>> at
>sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
>>> Source)
>>>
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>>
>>> at java.lang.reflect.Method.invoke(Unknown Source)
>>>
>>> at
>org.apache.el.parser.AstValue.invoke(AstValue.java:170)
>>>
>>> at
>>>
>org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
>>>
>>> at
>>>
>org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:68)
>>>
>>> at
>>>
>javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
>>>
>>> at
>>>
>com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
>>>
>>> at
>>> javax.faces.component.UICommand.broadcast(UICommand.java:387)
>>>
>>> at
>>>
>javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
>>>
>>> at
>>>
>javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
>>>
>>> at
>>>
>com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
>>>
>>> at
>com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
>>>
>>> at
>>>
>com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
>>>
>>> at
>>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
>>>
>>> at
>>>
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>>
>>> at
>>>
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>
>>> at
>>>
>org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>>>
>>> at
>>>
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>>
>>> at
>>>
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>
>>> at
>>>
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
>>>
>>> at
>>>
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>>>
>>> at
>>>
>org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
>>>
>>> at
>>>
>org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
>>>
>>> at
>>>
>org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
>>>
>>> at
>>>
>org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
>>>
>>> at
>>>
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>>
>>> at
>>>
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>
>>> at
>>>
>org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
>>>
>>> at
>>>
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>>
>>> at
>>>
>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
>>>
>>> at
>>>
>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
>>>
>>> at
>>>
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
>>>
>>> at
>>>
>org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>>
>>> at java.lang.Thread.run(Unknown Source)
>>>
>>> Whith the following code, that i guess is all right:
>>>
>>> *public*String emitirCertificado(String username, String password,
>>> *int*tipoUsuario, String E, String DN) *throws*InvalidKeyException,
>>> NoSuchAlgorithmException, NoSuchProviderException,
>SignatureException,
>>> InvalidAlgorithmParameterException
>>>
>>> {
>>>
>>>
>>>
>Security./addProvider/(*new*org.bouncycastle.jce.provider.BouncyCastleProvider());
>>>
>>> ProfileBean pBean = *new*ProfileBean();
>>>
>>> UserDataVO userdata = *new*UserDataVO();
>>>
>>> CertificateRequestSession criaCert =
>>> InterfaceCache./getCertficateRequestSession/();
>>>
>>> Admin admin =
>*new*Admin(Admin./TYPE_CACOMMANDLINE_USER/);
>>>
>>> *int*caid;
>>>
>>> *if*(tipoUsuario == 1)
>>>
>>> {
>>>
>>> DN = DN + "Alunos";
>>>
>>> caid = 1963139164; //CAID _Alunos_
>>>
>>> }*else**if*(tipoUsuario == 2)
>>>
>>> {
>>>
>>> DN = DN + "Professores";
>>>
>>> caid = 1134085357; //CAID _Professores_
>>>
>>> }*else*
>>>
>>> DN = DN + "Administrativo";
>>>
>>> caid = 1911414444; //CAID _Administrativo_
>>>
>>> userdata.setUsername(username);
>>>
>>> userdata.setPassword(password);
>>>
>>> userdata.setDN(DN);
>>>
>>> userdata.setCAId(caid); //ID CA _que_ _assina_.
>>>
>>> userdata.setEmail(E);
>>>
>>> userdata.setType(SecConst./USER_ENDUSER/);
>>>
>>> _userdata_.setTokenType(SecConst./TOKEN_SOFT_BROWSERGEN/);
>>>
>>> userdata.setStatus(UserDataConstants./STATUS_NEW/);
>>>
>>>
>>> userdata.setEndEntityProfileId(SecConst./EMPTY_ENDENTITYPROFILE/);
>>>
>>>
>>>
>userdata.setCertificateProfileId(SecConst./CERTPROFILE_FIXED_ENDUSER/);
>>>
>>> String pkcs10 =
>>>
>*new*String(Base64./encode/(NonEjbTestTools./generatePKCS10Req/("CN="+username,
>>> password)));
>>>
>>> *try*{
>>>
>>> criaCert.processCertReq(admin, userdata,
>pkcs10,
>>> SecConst./CERT_REQ_TYPE_PKCS10/, *null*,
>SecConst./CERT_REQ_TYPE_PKCS10/);
>>>
>>> pBean.setMensagem("Profile e certificado criados com Sucesso");
>>>
>>> *return*"sucesso";
>>>
>>> } *catch*(Exception ex) {
>>>
>>> // *TODO*Auto-generated catch block
>>>
>>> pBean.setMensagem("Ops! Desculpe-nos, algo ocorreu em nosso
>servidores.
>>> Tente novamente!");
>>>
>>> *return*"erro";
>>>
>>> }
>>>
>>> }
>>>
>>>
>------------------------------------------------------------------------
>>>
>>> Nenhum v?rus encontrado nessa mensagem.
>>> Verificado por AVG -www.avgbrasil.com.br
><http://www.avgbrasil.com.br>
>> <http://www.avgbrasil.com.br>
>>> Vers?o: 2013.0.2793 / Banco de dados de v?rus: 2629/5907 - Data de
>>> Lan?amento: 11/20/12
>>>
>>>
>------------------------------------------------------------------------
>>>
>>> Nenhum v?rus encontrado nessa mensagem.
>>> Verificado por AVG -www.avgbrasil.com.br
><http://www.avgbrasil.com.br>
>> <http://www.avgbrasil.com.br>
>>> Vers?o: 2013.0.2793 / Banco de dados de v?rus: 2629/5907 - Data de
>>> Lan?amento: 11/20/12
>>>
>>> Aviso: Mensagem enviada com recursos de tecnologia da informa??o da
>Rede
>>> Energia S.A., podendo conter informa??o confidencial ou
>privilegiada. Se
>>> recebida por engano, favor devolv?-la ao remetente e elimin?-la, n?o
>a
>>> divulgando, copiando ou utilizando-a ou documentos a ela anexados.
>N?o
>>> gera obriga??es ? Rede Energia S.A. ou a suas empresas
>controladoras,
>>> controladas ou afiliadas (?empresas relacionadas?) a mensagem
>expedida
>>> por quem n?o tenha poderes de representa??o. A Rede Energia S.A. e
>as
>>> empresas relacionadas n?o se responsabilizam por v?rus, amea?as
>>> eletr?nicas ou altera??o do conte?do original da mensagem. ?
>monitorada
>>> toda mensagem enviada ou recebida utilizando recursos de tecnologia
>da
>>> informa??o da Rede Energia S.A. Notice: This message was sent
>through
>>> Rede Energia S.A. information technology resources and may contain
>>> confidential or privileged information. If received by mistake,
>please
>>> reply to the sender, eliminate and do not disclose, copy or use this
>>> message or attached documents. Neither Rede Energia S.A. nor its
>>> controlling, controlled or affiliated companies (?related
>companies?)
>>> shall be bound by any message sent by a person not having legal
>>> authority to represent them. Rede Energia S.A. and the related
>companies
>>> shall not be liable for the existence of virus, electronic threat or
>>> change in the original content of the message. Every message sent or
>>> received through Rede Energia S.A. information technology resources
>is
>>> monitored.
>>>
>>>
>>>
>------------------------------------------------------------------------------
>>> Monitor your physical, virtual and cloud infrastructure from a
>single
>>> web console. Get in-depth insight into apps, servers, databases,
>vmware,
>>> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
>>> Pricing starts from $795 for 25 servers or applications!
>>>http://p.sf.net/sfu/zoho_dev2dev_nov
>>>
>>>
>>>
>>> _______________________________________________
>>> Ejbca-develop mailing list
>>> Ejb...@li...
>>>https://lists.sourceforge.net/lists/listinfo/ejbca-develop
>>>
>>
>>
>>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Fri, 23 Nov 2012 01:18:49 +0100
>> From: Hans Witvliet <hw...@a-...>
>> Subject: [Ejbca-develop] some steps acomplished..
>> To: ejb...@li...
>> Message-ID: <135...@t4...>
>> Content-Type: text/plain
>>
>> Hi all,
>>
>> some steps accomplished, but new challenges to meet.
>>
>> Trying not to change too many variables at each step..
>> afaicr, the website says that 3.11.x should work with
>>
>>
>> So at my next step i'm trying to get ejbca-3.11 working with:
>> apache-ant-1.8.1-bin.zip
>> ejbca_3_11_5.zip
>> jboss-5.1.0.GA-jdk6.zip
>> jce_policy-6.zip
>> jdk-6u20-linux-i586.bin
>> mysql-connector-java-5.1.13.zip
>>
>> However, during ant clean it complains:
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/tools/ant/launch/Launcher
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.tools.ant.launch.Launcher
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>> at java.security.AccessController.doPrivileged(Native
>Method)
>> at
>java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>> at
>sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>> Could not find the main class: org.apache.tools.ant.launch.Launcher.
>> Program will exit.
>>
>>
>> The distro has a newer jdk available, but the error reains.
>> # zypper search jdk
>> "java-1_7_0-openjdk Java runtime environment based on OpenJDK 7 and
>> IcedTea 7"
>>
>> So, what (url please) JDK/JCE-binary package do you recommend to go
>> along with JBoss5?
>>
>> Oracle site doesn't make me any wiser ...
>>
>> hans
>>
>>
>>
>>
>>
>> ------------------------------
>>
>>
>------------------------------------------------------------------------------
>> Monitor your physical, virtual and cloud infrastructure from a single
>> web console. Get in-depth insight into apps, servers, databases,
>vmware,
>> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
>> Pricing starts from $795 for 25 servers or applications!
>> http://p.sf.net/sfu/zoho_dev2dev_nov
>>
>> ------------------------------
>>
>> _______________________________________________
>> Ejbca-develop mailing list
>> Ejb...@li...
>> https://lists.sourceforge.net/lists/listinfo/ejbca-develop
>>
>>
>> End of Ejbca-develop Digest, Vol 78, Issue 3
>> ********************************************
>>
>>
>>
>------------------------------------------------------------------------------
>> Monitor your physical, virtual and cloud infrastructure from a single
>> web console. Get in-depth insight into apps, servers, databases,
>vmware,
>> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
>> Pricing starts from $795 for 25 servers or applications!
>> http://p.sf.net/sfu/zoho_dev2dev_nov
>>
>>
>>
>> _______________________________________________
>> Ejbca-develop mailing list
>> Ejb...@li...
>> https://lists.sourceforge.net/lists/listinfo/ejbca-develop
>>
>
>
>
>
>------------------------------
>
>------------------------------------------------------------------------------
>Monitor your physical, virtual and cloud infrastructure from a single
>web console. Get in-depth insight into apps, servers, databases,
>vmware,
>SAP, cloud infrastructure, etc. Download 30-day Free Trial.
>Pricing starts from $795 for 25 servers or applications!
>http://p.sf.net/sfu/zoho_dev2dev_nov
>
>------------------------------
>
>_______________________________________________
>Ejbca-develop mailing list
>Ejb...@li...
>https://lists.sourceforge.net/lists/listinfo/ejbca-develop
>
>
>End of Ejbca-develop Digest, Vol 78, Issue 6
>********************************************
>
>------------------------------------------------------------------------------
>
>Monitor your physical, virtual and cloud infrastructure from a single
>
>web console. Get in-depth insight into apps, servers, databases,
>vmware,
>
>SAP, cloud infrastructure, etc. Download 30-day Free Trial.
>
>Pricing starts from $795 for 25 servers or applications!
>
>http://p.sf.net/sfu/zoho_dev2dev_nov
>_______________________________________________
>
>Ejbca-develop mailing list
>
>Ejb...@li...
>
>https://lists.sourceforge.net/lists/listinfo/ejbca-develop
>
>------------------------------------------------------------------------
>
>------------------------------------------------------------------------------
>Keep yourself connected to Go Parallel:
>INSIGHTS What's next for parallel hardware, programming and related
>areas?
>Interviews and blogs by thought leaders keep you ahead of the curve.
>http://goparallel.sourceforge.net
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Ejbca-develop mailing list
>Ejb...@li...
>https://lists.sourceforge.net/lists/listinfo/ejbca-develop
|