error in netbeanse and glassfish

error in netbeanse and glassfish

i have this in a jsp page :
<jsp:useBean id="rdf" class="test_rdfa.NewClass">
</jsp:useBean>

String id=(String)session.getAttribute("id");
String url= request.getParameter("wburl");

rdf.readGrddl(url,id);

and this is the NewClass.java:
import com.hp.hpl.jena.grddl.GRDDLReader;
import com.hp.hpl.jena.rdf.model.*;
import java.io.*;
public class NewClass {

Model model = null;
GRDDLReader grddlreader = new GRDDLReader();

public void readGrddl(String url,String sname)
{
model = ModelFactory.createDefaultModel();
grddlreader.setProperty("grddl.rdfa",true);
//the url of the website
grddlreader.read(model,url);

try{
FileOutputStream fout=new FileOutputStream("C:/Users/1/Desktop/a/"+sname+".rdf");
model.write(fout);
}catch(IOException e){
System.out.println("Exception caught"+e.getMessage());
}
}
}


and every time i get this exception :

WARNING: StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exception
com.hp.hpl.jena.grddl.GRDDLSecurityException: java.lang.SecurityException: (java.io.FilePermission C:\Program Files\sges-v3\glassfish\lib\install\applications\jaxr-ra\net\sf\saxon\trans\CompilerInfo.class read)
at com.hp.hpl.jena.grddl.impl.GRDDL.transformerFor(GRDDL.java:490)
at com.hp.hpl.jena.grddl.impl.GRDDL.transformWith(GRDDL.java:291)
at com.hp.hpl.jena.grddl.impl.GRDDL.applyTransforms(GRDDL.java:284)
at com.hp.hpl.jena.grddl.impl.GRDDL.go(GRDDL.java:201)
at com.hp.hpl.jena.grddl.GRDDLReader.read(GRDDLReader.java:47)
at test_rdfa.NewClass.readGrddl(NewClass.java:17)
at org.apache.jsp.text_jsp._jspService(text_jsp.java from :84)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:406)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:483)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:373)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.SecurityException: (java.io.FilePermission C:\Program Files\sges-v3\glassfish\lib\install\applications\jaxr-ra\net\sf\saxon\trans\CompilerInfo.class read)
at com.hp.hpl.jena.grddl.impl.SecManager.checkPerm(SecManager.java:262)
at com.hp.hpl.jena.grddl.impl.SecManager.checkPerm(SecManager.java:131)
at com.hp.hpl.jena.grddl.impl.SecManager.checkPermission(SecManager.java:123)
at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
at java.io.File.exists(File.java:731)
at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:402)
at java.io.File.getCanonicalPath(File.java:559)
at sun.security.provider.PolicyFile.canonPath(PolicyFile.java:1844)
at java.io.FilePermission$1.run(FilePermission.java:186)
at java.io.FilePermission$1.run(FilePermission.java:183)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.FilePermission.init(FilePermission.java:183)
at java.io.FilePermission.<init>(FilePermission.java:249)
at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
at java.io.File.exists(File.java:731)
at com.sun.enterprise.loader.ASURLClassLoader$2.run(ASURLClassLoader.java:593)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.loader.ASURLClassLoader.loadClassData0(ASURLClassLoader.java:574)
at com.sun.enterprise.loader.ASURLClassLoader.findClassData(ASURLClassLoader.java:728)
at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:626)
at org.glassfish.internal.api.ConnectorClassFinder.findClass(ConnectorClassFinder.java:76)
at org.glassfish.internal.api.DelegatingClassLoader.findClass(DelegatingClassLoader.java:182)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1405)
at net.sf.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:132)
at net.sf.saxon.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:88)
at com.hp.hpl.jena.grddl.impl.GRDDL$4.run(GRDDL.java:470)
at com.hp.hpl.jena.grddl.impl.GRDDL$2.run(GRDDL.java:358)
... 1 more


thanks
View Answers









Related Tutorials/Questions & Answers:
error in netbeanse and glassfish - Development process
error in netbeanse and glassfish  i have this in a jsp page...: (java.io.FilePermission C:\Program Files\sges-v3\glassfish\lib\install\applications\jaxr-ra\net...:\Program Files\sges-v3\glassfish\lib\install\applications\jaxr-ra\net\sf\saxon
Error In starting Glassfish in Eclipse.
Error In starting Glassfish in Eclipse.  Sir,I am new... glassfish in eclise,an error is raised and message is as follws : "error Launching...\oracle.eclipse.runtime.glassfish3.1.1.0\glassfish3\glassfish"): CreateProcess error=193
Advertisements
run servlets using Glassfish V3
run servlets using Glassfish V3  Hello to all, I was wondering how to run servlets using Glassfish V3. I'm using NetBeans 6.7 and need to use servlets, but I don't want to install Tomcat to do so, any suggestions
error
error  while iam compiling iam getting expected error
Error-
Error-   Hello, I would like to know about XSD file. I try to print XML file but I am getting error SAXException-- says Content is not allowed in prolog. Please help me
error
error  i have 404 error in my program plz tell me yhe solution about
error
error  i have 404 error in my program plz tell me yhe solution about
error
/ServletUserEnquiryForm.shtml getting an error given below SQLException caught: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error please suggest
Error
Error  I have created ajax with php for state and city. When I change state then city will not come in dropdown list and it give me error as 'Unknown Runtime Error'. This error come only in IE browser, but in other brower
404 error
404 error  i have 404 error in my addition programe of servlet how should i solve this. i'm using netbean on glassfish server
404 error
404 error  i have 404 error in my addition programe of servlet how should i solve this. i'm using netbean on glassfish server
error
error  java.lang.unsupportedclassversionerror:bad major version at offset 6 how to solve this????   Hi, Please check the version of framework used and also the JDK version.ADS_TO_REPLACE_1 This type error also comes
error
error
error
error  When I deploye the example I have this message cannot Deploy HelloWorld Deployment Error for module: HelloWorld: Error occurred during deployment: Exception while deploying the app [HelloWorld
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern = /^\d{3,5
error
"+it); } } this is my program i am getting an error saying cannot find symbol class stringADS
error
error  whats the error.............. import java.util.Scanner; public class g { public static void main(String[] args) { Scanner s=new Scanner(System.in); int d,x,y; System.out.println("Enter the first number
Maven Repository/Dependency: org.glassfish.main.core | glassfish
Maven Repository/Dependency of Group ID org.glassfish.main.core and Artifact ID glassfish. Latest version of org.glassfish.main.core:glassfish dependencies. # Version Release Date 1
Description of GlassFish Application Server
Description of GlassFish Application Server     GlassFish is a free, open source application server...;GlassFish lets you implement, deploy, and run all these features of the Java EE 5
Maven Repository/Dependency: org.glassfish.main | glassfish-jul-extension
Maven Repository/Dependency of Group ID org.glassfish.main and Artifact ID glassfish-jul-extension. Latest version of org.glassfish.main:glassfish-jul-extension dependencies. # Version Release Date
Maven Repository/Dependency: org.glassfish.main.common | simple-glassfish-api
Maven Repository/Dependency of Group ID org.glassfish.main.common and Artifact ID simple-glassfish-api. Latest version of org.glassfish.main.common:simple-glassfish-api dependencies. # Version Release Date
jsf error
jsf error  type Exception report message descriptionThe server encountered an internal error () that prevented it from fulfilling this request... in the GlassFish Server Open Source Edition 3.0.1 logs. What is the reason
Maven dependency for org.glassfish.main.core - glassfish version 7.0.0-M10 is released. Learn to use glassfish version 7.0.0-M10 in Maven based Java projects
of glassfish released The developers of   org.glassfish.main.core - glassfish project have released the latest version of this library on 21 Nov 2022, the released version of  org.glassfish.main.core - glassfish library
Maven dependency for org.glassfish.main.core - glassfish version 7.0.0 is released. Learn to use glassfish version 7.0.0 in Maven based Java projects
of glassfish released The developers of   org.glassfish.main.core - glassfish project have released the latest version of this library on 14 Dec 2022, the released version of  org.glassfish.main.core - glassfish library
Maven dependency for org.glassfish.main.core - glassfish version 6.2.5 is released. Learn to use glassfish version 6.2.5 in Maven based Java projects
of glassfish released The developers of   org.glassfish.main.core - glassfish project have released the latest version of this library on 12 Feb 2022, the released version of  org.glassfish.main.core - glassfish library
Maven dependency for org.glassfish.main.core - glassfish version 6.2.4 is released. Learn to use glassfish version 6.2.4 in Maven based Java projects
of glassfish released The developers of   org.glassfish.main.core - glassfish project have released the latest version of this library on 09 Jan 2022, the released version of  org.glassfish.main.core - glassfish library
Maven dependency for org.glassfish.main.core - glassfish version 7.0.0-M4 is released. Learn to use glassfish version 7.0.0-M4 in Maven based Java projects
of glassfish released The developers of   org.glassfish.main.core - glassfish project have released the latest version of this library on 11 Apr 2022, the released version of  org.glassfish.main.core - glassfish library
Maven dependency for org.glassfish.main.core - glassfish version 7.0.0-M3 is released. Learn to use glassfish version 7.0.0-M3 in Maven based Java projects
of glassfish released The developers of   org.glassfish.main.core - glassfish project have released the latest version of this library on 19 Mar 2022, the released version of  org.glassfish.main.core - glassfish library
Maven dependency for org.glassfish.main.core - glassfish version 7.0.0-M2 is released. Learn to use glassfish version 7.0.0-M2 in Maven based Java projects
of glassfish released The developers of   org.glassfish.main.core - glassfish project have released the latest version of this library on 25 Feb 2022, the released version of  org.glassfish.main.core - glassfish library
Maven dependency for org.glassfish.main.core - glassfish version 7.0.0-M1 is released. Learn to use glassfish version 7.0.0-M1 in Maven based Java projects
of glassfish released The developers of   org.glassfish.main.core - glassfish project have released the latest version of this library on 29 Dec 2021, the released version of  org.glassfish.main.core - glassfish library
Maven dependency for org.glassfish.main.core - glassfish version 6.2.3 is released. Learn to use glassfish version 6.2.3 in Maven based Java projects
of glassfish released The developers of   org.glassfish.main.core - glassfish project have released the latest version of this library on 18 Nov 2021, the released version of  org.glassfish.main.core - glassfish library
Maven dependency for org.glassfish.main.core - glassfish version 6.2.2 is released. Learn to use glassfish version 6.2.2 in Maven based Java projects
of glassfish released The developers of   org.glassfish.main.core - glassfish project have released the latest version of this library on 01 Oct 2021, the released version of  org.glassfish.main.core - glassfish library
Maven dependency for org.glassfish.main.core - glassfish version 6.2.1 is released. Learn to use glassfish version 6.2.1 in Maven based Java projects
of glassfish released The developers of   org.glassfish.main.core - glassfish project have released the latest version of this library on 27 Aug 2021, the released version of  org.glassfish.main.core - glassfish library
Maven dependency for org.glassfish.main.core - glassfish version 6.2.0 is released. Learn to use glassfish version 6.2.0 in Maven based Java projects
of glassfish released The developers of   org.glassfish.main.core - glassfish project have released the latest version of this library on 12 Jun 2021, the released version of  org.glassfish.main.core - glassfish library
Maven dependency for org.glassfish.main.core - glassfish version 6.1.0 is released. Learn to use glassfish version 6.1.0 in Maven based Java projects
of glassfish released The developers of   org.glassfish.main.core - glassfish project have released the latest version of this library on 22 May 2021, the released version of  org.glassfish.main.core - glassfish library
Maven dependency for org.glassfish.main.core - glassfish version 6.0.0-RC1 is released. Learn to use glassfish version 6.0.0-RC1 in Maven based Java projects
of glassfish released The developers of   org.glassfish.main.core - glassfish project have released the latest version of this library on 20 Oct 2020, the released version of  org.glassfish.main.core - glassfish library
problem in getting mail exchange records(MX) using DNS (glassfish(struts2))
problem in getting mail exchange records(MX) using DNS (glassfish(struts2...); } catch(Exception e){ out.println("Error eee..."+e); e.printStackTrace();; } %> Error is : SEVERE: javax.naming.NotContextException
Maven dependency for org.glassfish.main.common - simple-glassfish-api version 7.0.0 is released. Learn to use simple-glassfish-api version 7.0.0 in Maven based Java projects
of simple-glassfish-api released The developers of   org.glassfish.main.common - simple-glassfish-api project have released the latest version... - simple-glassfish-api library is 7.0.0. Developer can use this version
Maven dependency for org.glassfish.main.common - simple-glassfish-api version 7.0.0-M10 is released. Learn to use simple-glassfish-api version 7.0.0-M10 in Maven based Java projects
of simple-glassfish-api released The developers of   org.glassfish.main.common - simple-glassfish-api project have released the latest version...; org.glassfish.main.common - simple-glassfish-api library is 7.0.0-M10. Developer can use
Maven dependency for org.glassfish.main - glassfish-jul-extension version 7.0.0 is released. Learn to use glassfish-jul-extension version 7.0.0 in Maven based Java projects
of glassfish-jul-extension released The developers of   org.glassfish.main - glassfish-jul-extension project have released the latest version of this library on 14 Dec 2022, the released version of  org.glassfish.main - glassfish
Maven dependency for org.glassfish.main - glassfish-jul-extension version 7.0.0-M10 is released. Learn to use glassfish-jul-extension version 7.0.0-M10 in Maven based Java projects
of glassfish-jul-extension released The developers of   org.glassfish.main - glassfish-jul-extension project have released the latest version... - glassfish-jul-extension library is 7.0.0-M10. Developer can use this version
Maven dependency for org.glassfish.main.common - simple-glassfish-api version 7.0.0-M4 is released. Learn to use simple-glassfish-api version 7.0.0-M4 in Maven based Java projects
of simple-glassfish-api released The developers of   org.glassfish.main.common - simple-glassfish-api project have released the latest version...; org.glassfish.main.common - simple-glassfish-api library is 7.0.0-M4. Developer can use this version
Maven dependency for org.glassfish.main.common - simple-glassfish-api version 7.0.0-M3 is released. Learn to use simple-glassfish-api version 7.0.0-M3 in Maven based Java projects
of simple-glassfish-api released The developers of   org.glassfish.main.common - simple-glassfish-api project have released the latest version...; org.glassfish.main.common - simple-glassfish-api library is 7.0.0-M3. Developer can use this version
Maven dependency for org.glassfish.main.common - simple-glassfish-api version 7.0.0-M2 is released. Learn to use simple-glassfish-api version 7.0.0-M2 in Maven based Java projects
of simple-glassfish-api released The developers of   org.glassfish.main.common - simple-glassfish-api project have released the latest version...; org.glassfish.main.common - simple-glassfish-api library is 7.0.0-M2. Developer can use this version

Ads