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)
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
Post a Comment