Can't print under Tomcat but no problem under sun application server 8!
Hi,
I am rather puzzle by the fact that a programme written by me using all the print api and printable implementation when being called by the JSF page is capable of being successfullly print out when being deployed under sun application server 8 but got hang or met with no response when the same war file generated by the JSC 2 is being deployed onto Tomcat 5.17 .
Was it due to some missing jar file or api , I really have no idea at all
Any suggestion please ?
Thank
Hi,
I got rather stupid question to ask regarding the font size.
if I got a font size of 10, I know it is only refering to the height in pixel , my problem start when I need to know , how many characters can I print across in a A4 size paper. The pixel point is 1/72 of an inch, it is vertical .
Is there any formula that I can use to determine how many characters per inch that particular font is supposed to print?
Suggestion that I received is to use trial and error method.
Thank
Similar Messages
-
JMS problem with Sun Application Server 8.2
Hi!
I've just started trying JMS and found a problem.
I set a connection factory called "QueueConnectionFactory" in the Sun Application Server Admin Consol.
After this I test this code:
import javax.jms.*;
import javax.naming.*;
public class Sun_JNDI
public static void main(String args[]) throws Exception
Context jndiContext = null;
System.setProperty("java.naming.factory.initial","com.sun.enterprise.naming.SerialInitContextFactory" );
System.setProperty("java.naming.factory.url.pkgs","=com.sun.enterprise.naming");
System.setProperty("java.naming.provider.url","localhost:1024");
jndiContext = new InitialContext();
Object O = jndiContext.lookup("QueueConnectionFactory");
System.out.println(jndiContext);
in result I got this long Exception message:
2006.02.12. 10:52:59 com.sun.corba.ee.spi.logging.LogWrapperBase doLog
INFO: "IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/1356"
2006.02.12. 10:53:00 com.sun.enterprise.connectors.ActiveRAFactory createActiveResourceAdapter
SEVERE: RAR6001 : Class Not found : com.sun.messaging.jms.ra.ResourceAdapter
2006.02.12. 10:53:00 com.sun.enterprise.connectors.ActiveRAFactory createActiveResourceAdapter
SEVERE:
com.sun.enterprise.connectors.ConnectorRuntimeException: Error in creating active RAR
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:76)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:267)
at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:189)
at com.sun.enterprise.naming.factory.ConnectorObjectFactory.getObjectInstance(ConnectorObjectFactory.java:71)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:293)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at Sun_JNDI.main(Sun_JNDI.java:40)
Caused by: java.lang.ClassNotFoundException: com.sun.messaging.jms.ra.ResourceAdapter
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:50)
... 7 more
2006.02.12. 10:53:00 com.sun.enterprise.naming.SerialContext lookup
SEVERE: NAM0004: Exception during name lookup : {0}
com.sun.enterprise.connectors.ConnectorRuntimeException: Error in creating active RAR
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:76)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:267)
at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:189)
at com.sun.enterprise.naming.factory.ConnectorObjectFactory.getObjectInstance(ConnectorObjectFactory.java:71)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:293)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at Sun_JNDI.main(Sun_JNDI.java:40)
Caused by: java.lang.ClassNotFoundException: com.sun.messaging.jms.ra.ResourceAdapter
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:50)
... 7 more
Exception in thread "main" javax.naming.CommunicationException: serial context communication ex [Root exception is com.sun.enterprise.connectors.ConnectorRuntimeException: Error in creating active RAR]
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:317)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at Sun_JNDI.main(Sun_JNDI.java:40)
Caused by: com.sun.enterprise.connectors.ConnectorRuntimeException: Error in creating active RAR
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:76)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:267)
at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:189)
at com.sun.enterprise.naming.factory.ConnectorObjectFactory.getObjectInstance(ConnectorObjectFactory.java:71)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:293)
... 2 more
Caused by: java.lang.ClassNotFoundException: com.sun.messaging.jms.ra.ResourceAdapter
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:50)
... 7 more
So I tested this code under Netbeans5 and I don't where to find jar file contains the class: com.sun.messaging.jms.ra.ResourceAdapter
Other time I tryied to lookup this URL: "java:comp/env/jms/QueueConnectionFactory"
The result was: javax.naming.NameNotFoundException
I know it is a small code example but if I'm not able to solve this problem I can't go on with JMS.
I would be glad by any help.
Regards:
SandorHello
In my code it looks like that:
1: System.setProperty("com.sun.jndi.ldap.LdapCtxFactory", "iiop://localhost:3700");
2: Context ctx = new InitialContext();
3: TopicConnectionFactory factory = (TopicConnectionFactory)ctx.lookup("jms/DailyDestinationFactory");
4: TopicConnection connection = factory.createTopicConnection();
5: TopicSession session = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
6: Topic topic = (Topic)ctx.lookup("jms/DailyBean");
7: TopicPublisher pub = session.createPublisher(topic);
8: TextMessage msg = session.createTextMessage();
9: msg.setText("NewMessage");
10: pub.send(msg);
and it work with Sun App Server 8.2. -
How can I call a Stateless-EJB3 from MBeans in Sun Application Server 9.1?
Hi,
I have some jobs running as Timer-Service-EJB in Sun Application Server 9.1. The Timer will be startet by a Lifecycle-Modul and it works fine.
I have also some MBeans running in the same App-Server which should start or stop the Timer-Services by invoking dedicated methods
in the Timer-Service-EJB.
InitialContext ctx = new InitialContext();
MyJob job = (MyJob) ctx.lookup("ejb/MyJob");
job.startTimer();But I get the following error;
javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.enterprise.naming.SerialInitContextFactory [Root exception is java.lang.ClassNotFoundException: com.sun.enterprise.naming.SerialInitContextFactory]
..... Why is it impossible to get an reference of the SerialInitContextFactory? The appserv-rt.jar is in the classpath of the Appserver ( installdir/lib ).
Following the Sun Application Server 9.1 Developer Guide, I tried to copy the dependent classes (including appserv-rt.jar ) into domain-dir/lib.
But I got the same error.
Any ideas?
Thanks,
StefanHi Santanu,
You need to write SoapHandler in order to pass username and pwd. You will need 2 classes namely HeaderHandlerResolver & SoapHandler. This is how i do in in my JAX-WS clients. I generate stubs and then attach handler to webserviceinterface
PFA HeaderHandlerResolver.java and SoapHandler.java you would attach soap handler something like this in your code i have never done this via ADF so not sure.
HeaderHandlerResolver soapHandlerResolver = new HeaderHandlerResolver();
docInfo.setHandlerResolver(soapHandlerResolver);
In SoapHandler class you will mention username and pwd like this
soapMessageContext.put(BindingProvider.USERNAME_PROPERTY,"username");
soapMessageContext.put(BindingProvider.PASSWORD_PROPERTY,"pwd");
Regards,
Amol Gavali -
Problem installing sun application server 8.2
Hi,
I couldn't still install the 8.2 version.
However I'm trying to install it in Java 1.5.0._05 updated version?
Is there a specific version of Java which is causing the problem?
quoted from my previous email
I tried to reinstall appserver on my localhost and i have a problem: when the installer copied files and start to confgiure domains the following error occured =>>
INFO - unpacked jar file: activation.jar.pack
INFO - unpacked jar file: appserv-assemblytool.jar.pack
INFO - unpacked jar file: appserv-cmp.jar.pack
INFO - unpacked jar file: appserv-ext.jar.pack
INFO - unpacked jar file: appserv-jstl.jar.pack
INFO - unpacked jar file: appserv-rt1.jar.pack
INFO - unpacked jar file: appserv-rt2.jar.pack
INFO - unpacked jar file: appserv-rt3.jar.pack
INFO - unpacked jar file: appserv-rt4.jar.pack
INFO - unpacked jar file: appserv-tags.jar.pack
INFO - unpacked jar file: commons-launcher.jar.pack
INFO - unpacked jar file: commons-logging.jar.pack
INFO - unpacked jar file: deployhelp.jar.pack
INFO - unpacked jar file: j2ee-svc.jar.pack
INFO - unpacked jar file: j2ee.jar.pack
INFO - unpacked jar file: jax-qname.jar.pack
INFO - unpacked jar file: jaxr-api.jar.pack
INFO - unpacked jar file: jaxr-impl.jar.pack
INFO - unpacked jar file: jaxrpc-api.jar.pack
INFO - unpacked jar file: jaxrpc-impl.jar.pack
INFO - unpacked jar file: jsf-api.jar.pack
INFO - unpacked jar file: jsf-impl.jar.pack
INFO - unpacked jar file: mail.jar.pack
INFO - unpacked jar file: relaxngDatatype.jar.pack
INFO - unpacked jar file: saaj-api.jar.pack
INFO - unpacked jar file: saaj-impl.jar.pack
INFO - unpacked jar file: sun-appserv-ant.jar.pack
INFO - unpacked jar file: xsdlib.jar.pack
INFO - unpacked jar file: sun-as-jsr88-dm.jar.pack
INFO - number of merged jar entries: 2671
INFO - number of merged jar entries: 1425
INFO - number of merged jar entries: 2459
INFO - number of merged jar entries: 1169
INFO - Start core server configuration.
ERROR - default domain creation returned following exception:
20.09.2005 12:29:21 com.sun.enterprise.pluggable.PluggableFeatureFactoryBaseImpl getInstance
WARNING: Error loading pluggable features class com.sun.enterprise.admin.pluggable.PEClientPluggableFeatureImpl
java.lang.ClassNotFoundException: com.sun.enterprise.admin.pluggable.PEClientPluggableFeatureImpl
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at com.sun.enterprise.pluggable.PluggableFeatureFactoryBaseImpl.getInstance(Plugga bleFeatureFactoryBaseImpl.java:104)
at com.sun.enterprise.cli.commands.BaseLifeCycleCommand.createPluggableFeatureFact ory(BaseLifeCycleCommand.java:97)
at com.sun.enterprise.cli.commands.BaseLifeCycleCommand.<init>(BaseLifeCycle Command.java:67)
at com.sun.enterprise.cli.commands.CreateDomainCommand.<init>(CreateDomainCo mmand.java:65)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor AccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.sun.enterprise.cli.framework.CommandFactory.createCommand(CommandFactory.ja va:57)
at com.sun.enterprise.cli.framework.CLIMain.invokeCommand(CLIMain.java:131)
at com.sun.enterprise.cli.framework.CLIMain.main(CLIMain.java:46)
20.09.2005 12:29:21 com.sun.enterprise.cli.commands.BaseLifeCycleCommand createPluggableFeatureFactory
WARNING: SERVER0009: Pluggable features using class com.sun.enterprise.admin.pluggable.PEClientPluggableFeatureImpl could not be initialized. Server will run with default features.
CLI130 Could not create domain, domain1
INFO - End core server configuration.
INFO - Start samples configuration.
INFO - End samples configuration.
INFO - Start Sun Java System Message Queue configuration
INFO - End Sun Java System Message Queue configuration
INFO - Start PointBase configuration
INFO - Java home location configured
INFO - End PointBase configuration
More Information:
Log File: C:\DOCUME~1\jk\LOCALS~1\Temp\Install_Application_Server_8PE_200509201227.log
I get this error, however I deleted the folder c:\sun/AppServer before doing the installation.
Can anyone please help
The version is Java Sun App Server 8.2 version!
Should i delete the file productregistry in the windows32 folder?
Regards,
ManishaI resolved the problem, the main reason was their was appserv-rt.jar file in the Java lib folder, once this was taken out, it worked perfectly.
Manisha -
JNDI problem with Sun Application Server
I am trying to call a extremely simple EJB from a remote computer. But everytime I run the client I get a Class castException. I have used Weblogic and Jboss in the past and I never had any problem with JNDI. I included all the files except for the descriptor. Please help, this is driving me nut.
Here is the exception i get:
java.lang.ClassCastException
at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:293)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
at clients.testEjbTest.main(testEjbTest.java:42)
The remote Interface :
package ejb.test;
import javax.ejb.*;
public interface Test extends javax.ejb.EJBObject{
public String getResult() throws java.rmi.RemoteException;
The Home interface is:
package ejb.test;
import javax.ejb.*;
public interface TestHome extends javax.ejb.EJBHome{
public Test create() throws java.rmi.RemoteException, CreateException;
The Bean is:
package ejb.test;
import javax.ejb.*;
public class TestBean implements javax.ejb.SessionBean {
public TestBean() {}
public String getResult() { return "hello";}
public void ejbActivate() { }
public void ejbPassivate() { }
public void ejbRemove() { }
public void ejbCreate() throws CreateException { }
public void setSessionContext(javax.ejb.SessionContext sessionContext) { }
The client is:
public class testEjbTest {
public testEjbTest() { }
public static void main(String[] args) {
try{
Properties env = new Properties();
env.setProperty("java.naming.factory.initial", "com.sun.jndi.cosnaming.CNCtxFactory" );
env.setProperty("java.naming.provider.url", "iiop://192.168.0.102:3700");
InitialContext ic = new InitialContext(env);
Object objref = ic.lookup("TestBean");
Object tt = PortableRemoteObject.narrow(objref, ejb.test.TestHome.class);
}catch(Exception e){e.printStackTrace();}Hi,
I am new to this Forum.
I have an application running on Weblogic.
I want to shift to using SunOne as the Webserver and weblogic as application server.
But when I deploy the application I am getting this ClassCastException
at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow.
java.lang.ClassCastException
at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:293)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
at com.elsevier.portal.admin.web.proxy.LoginProxy.getLoginSession(LoginProxy.java:156)
at com.elsevier.portal.admin.web.proxy.LoginProxy.authenticateUser(LoginProxy.java:48)
at com.elsevier.portal.admin.web.actions.LoginAction.login(LoginActi
on.java:201)
at com.elsevier.portal.admin.web.actions.LoginAction.execute(LoginAction.java:80)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java
:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:
525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:807)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
at org.apache.catalina.core.StandardWrapperValve.invokeServletServic
e(StandardWrapperValve.java:771)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
warning: CORE3283: stderr: at org.apache.catalina.core.StandardHostValve.invoke(StandardHostVal
ve.java:209)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)The code snippet is as follows�.
protected LoginSession getLoginSession() throws ApplicationException {
LoginSessionHome home = null;
LoginSession object = null;
try {
home = (LoginSessionHome) (PortableRemoteObject.narrow(ProxyUtil.getEJBHome(getProperties().getProperty(DataCoreConstants.LOGIN_JNDI_NAME),getProperties()),LoginSessionHome.class));
object = home.create();
catch(ClassCastException cse){
cse.printStackTrace();
logger.error("Class Cast Exception is thrown while casting the Object to LoginSessionHome");
logger.error(cse);
throw new ApplicationException(ExceptionConstants.CLASS_CAST_EXCEPTION);
return object;
}Same method is running on weblogic without any problem�
Help needed urgently.
Regards,
Neha. -
Problems starting Sun Application Server 8.1
I can not start my applications server, the following msg appears, what can I do?:
SEVERE|sun-appserver-pe8.1_02|javax.enterprise.system.core|_ThreadID=10;
|UnknownException during startup. Disable quick startup by setting system property
com.sun.enterprise.server.ss.ASQuickStartup to false
com.sun.appserv.server.ServerLifecycleException: [C4003]:
Error al crear la conexi�n - interceptada java.net.ConnectException: Connection refused:
no further information
at com.sun.enterprise.jms.JmsProviderLifecycle.checkProviderStartup(JmsProviderLifecycle.java:427)If you have any firewall software running, turn it off and then try starting the server again. If that works, you'll have to allow the server to bind to the ports specified in <INSTALL>/domains/domain1/config/domain.xml in your firewall.
-Ian Evans -
I just installed a new Lynksys router and now can not print from iPad but can from iPhone
i just install a new Lynksys router now i can't print from iPad but can from iPhone. with iPad can't find printer. if i reinstall printer on the router it will print 1-3 times then can't find printer but i can print from iPhone
What model, version Linksys router? Is the firmware up-to-date?
What iOS levels are you running on iPad, iPhone?
What make, model printer are you using? Is the firmware up-to-date? -
LaunchD Task Scheduler would Launch Automator Apps under Maverick but will not under Yosemite. Why Not?
I have tried going under System Preferences-Security&Privacy-Privacy and adding my Automator generated .app but that does not work.
Any suggestions?Better check the site of the maker of that application for further information:
http://www.failedinsider.com/support/launchdtaskschedulersupport/ -
Can't Load Mail - There was a problem loading the application
I can't access mail on iCloud after signing, and get this error message:
Can't Load Mail
There was a problem loading the application
I can see that there are five emails waiting for me.
Any thoughts on what's going wrong, please?Open System Preferences > iCloud
Deselect the box next to Mail then reselect it.
Then try accessing your mail.
It may take a minute or two for iCloud to re sync the data. -
Compilation problem in Oracle Application Server (9.0.x)
Hi All,
I have a JSP Page, with more than 200 controls, arranged in a tabs. When I try to run this file under Tomcat or JBoss, it runs fine. But when I run it in Oracle 9iAS (9.0.x), it fails to run. The difference is in the way the servlet is generated from the JSP file. In case of Tomcat and JBoss, the generated java file contains multiple methods for each component, so it runs fine. But in case of Oracle Application Server, the generated file has only one method jspService, which contains all the code. Because of this, the JVM throws an error saying "code too large public void jspService(HttpServletRequest request... ".
Can anyone help me on this issue? Do you know of any configuration setting for the compiler?
Thanks and Regards,
Aniket.Wich processes don't start? do you have this services in Automatic?
Can you try to pass the to manual, and start the procs suing opmnctl command and check the logs of it?
Regards -
How iReport can work in Sun Application Server??
I am success to use the iReport to show out the pdf file in Tomcat which i am using jsp code, but, when I run them in sun application server, it throws out the following exception.
//=====================
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Error compiling report design.
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:830)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:763)
org.apache.jsp.Report_005fJSP.payroll_005frec_005fstaff_jsp._jspService(payroll_005frec_005fstaff_jsp.java:165)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
root cause
net.sf.jasperreports.engine.JRException: Error compiling report design.
net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:231)
net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:131)
net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:127)
net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:86)
org.apache.jsp.Report_005fJSP.payroll_005frec_005fstaff_jsp._jspService(payroll_005frec_005fstaff_jsp.java:106)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server logs.
//==========================
Would someone can tell me why??This is urgent for me!!Here is the log file information I get from the sun application server, when i run my iReport file.
//==================
DetailsTimestamp: 2006-5-28 22:50:02.768
Log Level: INFO
Logger: javax.enterprise.system.stream.out
Name-Value Pairs: _ThreadID=11;
Record Number: 2808
Message ID: exception 3
Complete Message
java.lang.NullPointerException
Diagnostic Causes
Diagnostic Checks
//==================
Do you mean this server.log file message? and can you know why problem with me?? -
i am using sun application server 8 2005Q1.........
i an getting the err 404(requested resources not available......)
I have did the following:
the following are my files
employeedetails.java(which implements the servlet class)
findemployee.html(which gets the employee id)
1.First I have designed the interface with URL as
http://localhost:1050(which is my port no)/emp_details/servlet/EmployeeDetails
2.Then I have coded the servlet with class name as EmployeeDetails
3.I have compiled it in the following manner:
e:\>path=%path%;c:\j2sdk1.4.2_12\bin;
e:\>set classpath=%classpath%;e:\sun\Appserver\lib\j2ee.jar;
e:\>javac e:\Employee\EmployeeDetails.java
It compiled successfully without any errors
4.Then I have started the sun application server
5.I have also opened the deploy tool
6.In that,
New->Application
the application wizard opens.......
then I browsed and given the new application name as e:\Employee\EmployeeDetails.jar
The application display name appears as EmployeeDetails
7.It also appears at the left end of the tree structure
8.Then I opened the New->Web Component
the web component wizard appears
9.I have clicked next
10.In that panel I have chosen the option
Create new WAR Module in application
I have given the WAR display name as Emp
11.Then in the bottom I have clicked the option 'edit contents'
12.The edit contents pane opens.......
13.In that I have selected EmployeeDetails.class and FindEmployee.html and clicked 'Add'
14.It gets added in the content pane
15.Then I have chosen the component type as Servlet
16.In the next wizard ,the servlet class name,web component name and display name,everything
is given as EmployeeDetails
17.With this I have finished the web component wizard
18.Then the context root name is given as emp_details and saved
19.Then I have chosen the Tools->deploy
20.In that wizard,
I have typed the admin user name and pswd
21.It gets deployed successfully.
22.Then I have opened th browser and typed the following URL
http://localhost:1050/emp_details/FindEmployee.html
23.The html form appears.....
24.I have kept oracle as my backend with datasource name Mine
and in the servlet I have changed the datasource name with user name and pswd scott & tiger
25.But when i click the submit button,it gives the error
http status 404 -/emp_details/servlet/EmployeeDetails
the requested resource not available
anybody who knows the anwser plz reply me soon and help me to get rid of this error..........................Your code looks fine. Unless you actually made a typo in the URL I can't explain this problem. To verify this I even copied your web.xml and the SimpleServlet without any changes to my playground environment and it ran just flawlessly at http://localhost:8080/playground/servlets/HelloWorld
To exclude things, have you tried another applicationserver (Tomcat 6? Glassfish? Jetty?) or maybe another OS? -
Sun Application Server 8 response problem
Hi forum. I�d installed moths ago SJAS 8 and it woks good. By any reason, I�d to uninstall it. But recently I reinstall te server, without any problem, and I can use teh "Start default server" on the Menu Start. But when I try to access the "localhost:8080", the browser stand hanged. And unusually, any browser in my system (netscape,iexplorer,opera,firefox) won�t work, even to load any site when the Server is working. The option "Stop default server" don�t working too. I�d try install SJAS 8.0, SJAS 8.1 and SJAS 8.1 multilanguaje, but with the same results. Even I�d try change the HTTP port from 8080 to 8282, but nothing happends. Any idea?
Hi, again. Other details of my installation , The server is SUn Java System Application Server Plataform Edition 8.12005Q1, my machine is an AMD Athlon 1.25Mhz, with 256Mb RAM (Yes, slow for use the server, but it ran without troubles the first time I installed), The JDK is J2SE1.5.0_5 and JRE1.5.0_05. I had read the troubleshotting guide, and the server log register that the server successful finish the start up proccess, and the file domain.xml register correctly the "http-listener" on 8080 port. When I start to search the source of trouble, I remmember that I have the Tomcat 5.5 installed and using the 8080 port, then I uninstall the Tomcat, but the problem persist with the SJAS.
-
Problem with sun app server startup
hi,
i am getting problem with sun app server default start.the error is::
[#|2006-03-01T13:54:35.121+0530|WARNING|sun-appserver-pe8.2|javax.enterprise.tools.launcher|_ThreadID=10;|LAUNCHER005:Spaces in your PATH have been detected. The PATH must be consistently formated (e.g. C:\Program Files\Java\jdk1.5.0\bin; ) or the Appserver may not be able to start and/or stop. Mixed quoted spaces in your PATH can cause problems, so the launcher will remove all double quotes before invoking the process. The most reliable solution would be to remove all spaces from your path before starting the Appservers components. |#]
now i am useing Win Xp operating system,
show me a solution.
Regs..
NarasimhaYou haven;t specified the exceptions you r getting ........while starting your default server.
if u r getting exception about InetClass then connect your system with LAN/Internet then your problem will be solved becoz i m using same location address as you specified, space doesn't matter at all - i think so, it is running fine........ -
(266758030) Q(asked by Lalit Sudan): Can WebLogic Workshop Web Services be deployed
on a different Application Server?
A(by Adam Fitzgerald): .jws files are not yet an accepted standard so you can expect
that the WebLogic Workshop Web Services cannot be ported to other Application Servers,
however, it is a general goal to expand the functionality of the Workshop tool for
other App Servers.Just so you'll know Oracle9iAS also includes apache as the HTTP server.
As Suncan said, if you want to use Forms on the Web you need the Forms Server engine, and it comes bundled in Oracle9iAS. You'll save yourself a lot of headache if you just install Oracle9iAS and have everything pre-configured for you thus reducing maintanance costs.
Maybe you are looking for
-
Hi, i have a question about displaying images in a next and previous order. i have a Repeater like so <mx:Repeater id="photos" dataProvider="{photoData}"> <v:DisplayImage imageData="{photos.currentItem}" click="displayDetails(event.currentTarget.getR
-
GL account blocked for posting
Hi Expert, I have issue when doing goods receipt againts FOC PO. I',me getting error "GL account 380099 blocked for posting in company code 0555". Why? How can i resolve this? Please help.. Thanks
-
Having Flash Player Issues using Macbook OSX
I have Macbook OS X and I have installed Flash Player 13 but can't use Youtube. My browser settings are correct. What do I do now?
-
Bonjour, J'ai un probléme avec ma dll // interact2.cpp // #include "stdafx.h" #include "interact2.h" #include "interact2Dlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif extern "C" void __declspec(
-
Add Trailing zeros to a number or char
Hi Experts, my material number is stored in the form of Character so i want to add a trailing zero to that number supposr for example my material number is ccf5a so i want add zeroes to make it 18 like cf5a0000000000000 cha