Project using another project in java throws an exception -


i still trying hard project internship , have problem time, , since pressed time (i haven't finished work no time left) can't ask here, again. thank you. so, have 2 projects, 1 make electronic certification of file , other web project uploads file. in 1 (the web project) 1 upload jsp page, 1 servlet , 1 message page. want use classes of first project in servlet, have added proper imports , added project 1 in "project references" of web project , 2 projects worked separately (i made simple tests of uploading , certificating , both worked fine). it's after uploading file want sign using 1st project exception:

exception   javax.servlet.servletexception: l''exécution de la servlet lancé une exception  cause mère   java.lang.noclassdeffounderror: tn/ance/signature/chargement_fichierp12     servlets.uploadservlet.dopost(uploadservlet.java:197)     javax.servlet.http.httpservlet.service(httpservlet.java:641)     javax.servlet.http.httpservlet.service(httpservlet.java:722) 

any appreciated! thank ^^

here configuration both projects (project 2 web project uses project 1 (signature_) in servlet)

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

eclipse exporting jar in war

here explained how can add project deployment assembly.

right-click on root node of dynamic web project, , select properties, , select deployment assembly. here can add projects (which jarred , added web-inf/lib) , individual jars in project.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -