mani nataraj

Greenhorn
+ Follow
since Dec 20, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by mani nataraj

I am working in Struts Framework. I am facing some problem


Details:
==========

SEVERE: Parse error in default web.xml
java.lang.IllegalStateException: can't declare any more prefixes in this context
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:523)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:515)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:623)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:216)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4290)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Apr 22, 2011 9:36:42 AM org.apache.catalina.startup.ContextConfig defaultConfig

can you tell me the solution
11 years ago

Joe Ess wrote:

mani nataraj wrote:
java.lang.ClassNotFoundException: sampleWebForwardAction



It looks like you are missing a class.


can you give me the solution as soon as possible.



Please be patient. We are all volunteers here, answering questions in our free time.




All the files are updated one. We don't missing any file. But only the problem is configuration setup. I don't know why its happening.
11 years ago
Is there anyway to load java files in Application Server(like IPlanetServer,Tomcat ) to Oracle directly.

We have inter dependent java files in our server and we need to use load java utility to load them into the oracle server

both java and oracle files are in different server.

kindly give me the suggestion as soon as possible.

11 years ago
I am working in StrutsFramework. We are using iPlanetserver in unix environment. I am facing problem like

ERROR org.apache.struts.util.RequestUtils - Error creating form bean of class sample.SampleForm
java.lang.NullPointerException

at org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:212)
at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:292)
at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:191)
at org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor.java:331)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:202)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:919)
at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1061)
at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:981)
170466455 [Thread-47] DEBUG org.apache.struts.action.RequestProcessor - Looking for Action instance for class sampleWebForwardAction
170466455 [Thread-47] DEBUG org.apache.struts.action.RequestProcessor - Creating new Action instance
170466460 [Thread-47] ERROR org.apache.struts.action.RequestProcessor - No action instance for path /servlet/success could be created
java.lang.ClassNotFoundException: sampleWebForwardAction
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117)
at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143)
at org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:292)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:230)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:919)
at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1061)
at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:981)

can you give me the solution as soon as possible.
11 years ago
Hi

Actually i have a pdf template in editable format. Using itext api i can able to read and manipulate the content in pdf.
After finishing this process still pdf is editable mode how to convert in non editable mode. can you tell me as soon as possible.

I am using jdk 1.4 and itext 2.1.5.

Ulf Dittmer wrote:Not sure what "pdf writer tool" is. Post a SSCCE that shows how the form is created, and how it is filled in. Note that PDFBox 1.2.1 is obsolete as well.



Using Adobe Acrobat 8 Professional for creating pdf and inserted some textboxes instead of placeholder.
Actually i am getting some values from jsp pages using these values i need to replace the textboxes.

Ulf Dittmer wrote:How have you made sure that the AcroForm does indeed contain a field called "Name"?

Also, you should upgrade to a current version of PDFBox; 0.7.3 is like 5 years old.




I am trying pdfbox 1.2.1 also getting the same problem.
When i am creating a template using pdf writer tool
and i am setting the textbox name is "Name".
Hi

My Requirement is, search some text in existing pdf and replace the some other text (For Ex: XXX-to-YYY). I am using pdfbox api 0.7.3.
But in my template having some placeholder. In placeholder font,size is differ rest of the pdf content.
I need to replace the placeholder value. I am trying to replace the placeholders made some problem.
Its not replace properly.

So i am converting the template placeholder instead of textboxes using PDF Writer Tool.

I need to set the value of the textbox using pdfbox api. And then generating the template without textboxes.

I am trying to using this way i can't able to set the value for the textbox. I am getting NullPointerException.

Here i mentioned my code....
==========================================================================================

import org.pdfbox.pdmodel.PDDocument;
import org.pdfbox.pdmodel.PDDocumentCatalog;

import org.pdfbox.pdmodel.interactive.form.PDAcroForm;
import org.pdfbox.pdmodel.interactive.form.PDField;




public class PDFForm {

public static void main(String[] args) {
try {
PDDocument pdf = PDDocument.load("D:\\PDFBOX\\Tool_Sample_4.pdf");
PDDocumentCatalog docCatalog = pdf.getDocumentCatalog();
PDAcroForm acroForm = docCatalog.getAcroForm();
//acroForm.setCacheFields(true);
PDField field = acroForm.getField("Name");//Getting null value
field.setValue("Smith");//Here i am getting Null Pointer Exception
System.out.println("Sample::::::" + field.getValue());
pdf.save("D:\\PDFBOX\\Tool_Sample_04.pdf");
} catch (Exception e) {
System.out.println("Error::::" + e);
}
}

}

================================================================================

can anyone tell me the possiblities. How to do this. Kindly give me the solution as soon as possible.
Hi

user create some sql query. In query contains selected coloumns,and aggregate functions etc. I need to separate selected coloumn using java.

For Ex: SELECT EMP_NAME,EMP_NO,EMP_ADDRESS,EMP_RELION,EMP_PINCODE,EMP_MOBILE,
DECODE(EMP_NAME,'TEST', EMP_NAME,EMP_NAME) from EMP;

I am trying to parse query using StringTokenizer using "," separator but not parse in properly

How to do this. Can you give me a solution for this.
12 years ago
Hi i need some help for Edit pdf content

Actually i am using pdfbox 0.7.3.

Reading a pdf and find a particular text and replace some other text (For Ex: XXX to YYYY) this is the requirement.

And i am working in unix environement some special characters and replace not done properly. You know any possiblities.

And i want to know which opensource support for this requirment

I am using JDK1.4 ......


Kindly respond as soon as possible.
Can i edit the pdf content using jasper in java? Is is possible?