File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Error in using JWIG Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Error in using JWIG" Watch "Error in using JWIG" New topic
Author

Error in using JWIG

Daniel Sagayaraj
Ranch Hand

Joined: Mar 15, 2010
Posts: 32
Dear Friends,
I am tring to run a hello world webservice.I have followed the instruction that is given in the tutorial.but i am getting compilation error in the following class

import dk.brics.jwig.runtime.*;

public class Hello extends Service
{
public class Example extends Session
{
public void main() {
XML x = [[ <html><head><title>JWIG</title></head><body>
<h1><[what]></h1></body></html> ]];
x = x <[ what = [[ Hello World! ]] ];
show x;
}
}
}



Error Message:




Multiple markers at this line
- Syntax error on tokens, Expression expected
instead
- Syntax error on tokens, delete these tokens
- Syntax error on tokens, delete these tokens
- Syntax error on token ">", delete this token
- Syntax error on token ">", , expected
- Syntax error on token(s), misplaced construct(s)
- Syntax error on token "/", delete this token
- Syntax error on token "<", , expected



If some one can help me please help to learn
Mathias Schwarz
Greenhorn

Joined: Apr 27, 2010
Posts: 1
What you are seeing is syntax errors from the Java compiler. JWIG relies on a syntactic extension of Java, meaning that you will need to run a JWIG/Xact compiler instead of the standard Java Compiler.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error in using JWIG
 
Similar Threads
static method accessing
Package not found error on running servlet !
custom taglib problem
Problems creating WAR file
Resource not found