FillPDF servlet error, please contact tylerrenelle@gmail.com
Kreba - August 11, 2009 - 08:55
| Project: | Fill PDF |
| Version: | 6.x-1.2 |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Kreba |
| Status: | active |
| Issue tags: | servlet |
Jump to:
Description
I get this message since one week and the module doesnot work. I have send a mail to tylerrenelle@gmail.com last friday, but untill now I receved no answer.

#1
Check out http://drupal.org/node/369990, the servlet is currently running on my home server (I can't afford Java hosting ATM), which has been unreliable lately. I'll get this more stable eventually, but you'll have to deploy that .war as mentioned in the link to have a working solution for the moment
#2
#3
I can confirm that that deployment via Tomcat 5.5 works without any problems.
#4
subscribe
#5
I have the .war file deployed on my server and yet still getting this error when i try and generate the fields from the PDF:
warning: Invalid argument supplied for foreach() in /home/drupal/public_html/modules/fillpdf/fillpdf.module on line 515.
Any Ideas? I changed line #9 to point to my servlet as well...
Thanks.
#6
Erm, the servlet server no longer exists. Did you're home cable get disconnected or something? If you need java hosting, I can provide this for free. All you need to do is ask. Hosting a module based on a home connection, erm, well, not to good lol.
#7
In response to #5 above,
I had the same problem, even after I had the iText servlet deployed. Not sure what actually fixed the problem, but I disabled and then re-enabled the servlet in Tomcat. Then I deleted the PDF file, and re-uploaded the same file. Now it generates the fields with no errors.
I'm running Apache Tomcat 5.5
#8
Unfortunately, I don't have time or incentive to keep up with this module (ala my disclaimer on the project page). There's a new maintainer in the pipeline, so these issues should be addressed soon. I'll keep everyone posted.
#9
ITS WORKING!!!!!! YEAAAAAA. I'm completely new at this and getting this to work was a nightmare. Installing Tomcat on Ubuntu 9.04 sucked. I didn't know what to do with the war file and then once I got it, it wouldn't detect the fields.
I'm sure most of you already know these steps but incase anyone finds the self in the same boat I was in... My Steps.
1. This is what I used to install Tomcat 5.5 - The stuff about Solr is not needed for this module.
http://www.johnberns.com/2009/08/20/installing-solr-on-ubuntu-jaunty-904/
2. yourdomain.com:8180 --> Click on Tomcat Manager
3. From Tomcat, Find the WAR file to deploy input field and add the WAR file from http://ocdevel.com/sites/default/files/fillpdf_servlet.war
4. It should start by default, if not, click start on the fillpdf_servlet app
5. Install the Fill PDF module like normal.
6. Edit server path in fillpdf.module in the module folder. Its near the top. Line 6 or 7. That Path should be to your server.
http://yourdomain.com:8180/fillpdf_servlet/xmlrpc
7. Now I uploaded a PDF through the module UI and clicked Generate Fields From PDF. At first it didn't work. I then stopped and then restarted the servlet though Tomcat manager. By typing in "http://yourdomain.com:8180/fillpdf_servlet/xmlrpc" into my browser I then got a Status: 405 error. Though its an error, this is normal I take it. Finally I deleted the original PDF though the module and I uploaded a new one and it worked.
I'm not sure why the last step was needed but its what made it work for me.
ALSO **** I've noticed that the PDF you upload can't have any spaces in the title name and I can't get it to work Live Cycle publications. It does however work with PDF forms created in Acrobat. I'm not sure why.
#10
Good how-to. Having no Tomcat experience, I also had problems getting this working, and as many times as I read the Tomcat docs, it was still a struggle. The last step is what did it for me too. (restarting the servlet, and deleting and re-uploading the PDF).
My problem now is setting up the node mapping working to populate the fields in the PDF. No matter what I do, when I navigate to /fillpdf?fid=blah&nid=blahblah, the PDF displays with blank fields. I don't see the tokens available that are in the webformtokens docs. I'm sure I am overlooking something simple :/