Settings of tomcat
Hi All,
I have database seerver on one system,Tomcat running on other system and my application is on another sytem.
Is it posibble to run it ?
If yes then where i have to make changes.?
I tried to pass IP address of the system that holds application in <host> and <engine> in Tomcat/conf/server.xml but not running.
Does it require some other changes
Help me frnds.
You guys r genius.
thnkx
Hi,
The following URL will help u
http://docs.iplanet.com/docs/manuals/enterprise/41/servlets/c-props.htm#530468
or
http://docs.iplanet.com/docs/manuals/enterprise/41/servlets/b-objcf.htm#19718
Similar Messages
-
Setting Security in Tomcat 5.0
Hi,
I am new in JSP business. I developed an intranet based website. As required by the client there is no user-name/password stuff.
- All JSP pages are placed in one directory called "Dir1", some pages doing updates need to have restricted acccess.
- Role means Groups of Domain Controller, while the tomcat is running on another machine (obviously with-in the same domain).
- How can I access the domain role of the user (is request.isUserRole()) method is fine.
- If groups cannot be evaluated even then a setup based on domain user-name will be fine, want details?
Now I (infact client) want that only users belonging to a certain role can have access to some of the JSP pages (pages doing insert/update). How can I do this? I read about security settings in tomcat (web.xml etc.) but need more detail to understand/setup these. Any resource from where I get the complete details/example etc.
thanks in advance.Hello,
you could try these links
http://jcifs.samba.org/src/docs/ntlmhttpauth.html#tomcat
http://www.jguru.com/faq/view.jsp?EID=1045412
I've not tried them myself though -
Can we run external mail program from JSP / Servlet deployed on tomcat
Hi folks,
Had a tough time getting JavaMail API to work, finally when things seem to be working
there were some issues with the vendor's server, so finally gave up the idea.
On the server Apache and Tomcat are integrated via mod_jk and currently I redirect to a php page
which acts as a helper to send mail, however for the given business needs and server's limitations
there are potential security holes.
So I was wondering if I could directly execute the linux sendmail program from JSP/Servlet
as we would in a standalone java program or do we need special settings on Tomcat to execute external
programs.
Please let me know your views / ideas / comments on this
Thanks in advance
AbishekHi
It's not designed for you to be able to do this, it needs to run through 10gAS or 11gWeblogic.
Tony -
Tomcat cannot acces my class files
hallo,
tomcat cannot acces my class files
tomcat throws an Exception
threw exception java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl. ...
file struts.config.xml
<form-beans>
<form-bean name="helloForm"
type="org.apache.struts.webapp.example.HelloForm"/>
</form-beans>
HelloForm.class exist in the file org.apache.struts.webapp.example
what ist to do ???
are there new settings for tomcat ??
thanksAnd you are 100% certain that your class file is in the approprite subfolder of WEBINF\classes or properly packaed in a jar in WEBINF\lib?
- K -
Tomcat installation prob: process not running
Hi,
I am trying to install Tomcat on a Solaris 9 box. (Am a beginner) Am done with the settings but Tomcat is not running.
$cd $CATALINA_HOME/bin/
$startup.sh
Using CATALINA_BASE: /export/amt/Tomcat/apache-tomcat-4.1.37-LE-jdk1.4
Using CATALINA_HOME: /export/amt/Tomcat/apache-tomcat-4.1.37-LE-jdk1.4
Using CATALINA_TMPDIR: /export/amt/Tomcat/apache-tomcat-4.1.37-LE-jdk1.4/temp
Using CATALINA_OUT: /export/amt/Tomcat/apache-tomcat-4.1.37-LE-jdk1.4/logs/catalina.out
Using JAVA_HOME: /usr/java
$ps
PID TTY TIME CMD
*10447 pts/3 0:00 bash*
*10530 pts/3 0:00 ps*
Could it be something related to port setting? I have not changed any of the port settings.
Could somebody tell me how do I determine which port numbers to use?
Many Thanks (In anticipation),
ASHi,
You should ask your question in a Tomcat forum, and not a programming forum.
Kaj -
Tomcat and network file access permissions
Hi there,
We have a servlet running in Tomcat 4.1 environment in one windows 2003 server (DOMAINONE) , and we write the logs in another machine (different domain DOMAINTWO). We have a USER1 who has access to both domains and has access to map the drive to DOMAINTWO. We have mapped G drive to \\DOMAINTWO\SHAREDDRIVE. The servlet needs to write information to g:\logs and what we are having problem with is that Tomcat is throwing an exception when writing to G: Is there any settings we need to do at the Tomcat configuration file (security settings).
Tomcat is started by USER1 as well.
ANy help would be greatly appreciated.
Thanks
JohnAre you using a Logging package or just trying to create a File object and writing text to it?
If the later, you may want to look at URLConnection.getOutputStream() and wrapping that with a BufferedOutputStream and writing to that.
Even though you're mapped and all that, it may look like a "local drive" to you, but it's not. There's a whole bunch of negotiation and networking that needs to go on that a File class is just not designed to do, but a URL is.
There are other options as well which would make something like this WAY more scalable. Do you ever have to move this thing? -
Problem while deploying application in web logic
Hi,
i have an web application with servlets running fine in tomcat 5.1.12, but when i copy the same foldet to web logic and i run i gives an error, i create a domain of my name, and i kept the folder in weblogic, user _projects--> applications folder, but while accessing from the browser i got an error. so please rectify my error.
Babji..I don't use web logic so I can't help you. But if you post whatever error message you are referring to into your thread, someone who uses web logic might have a better idea as to how to respond. Additionally I suspect there may be some differences in the configuration settings between Tomcat and web logic, you might look into that. But I have no idea.
-
Unable to run an exe file from a Servlet
I am not able to run a Servlet that calls an exe file using the following code. trial.exe is was built from a C program and it is simply a program that creates a text file with some content. I am using Tomcat 6.0 and JDK 1.5 on a Windows XP.
{color:#000080}try
Runtime rt=Runtime.getRuntime();
String[] command = {"C://Tomcat 6.0//webapps//ROOT//WEB-INF//classes//trial.exe"};
{color}
{color:#000080}
Process p = Runtime.getRuntime().exec(command);
p.waitFor();
catch(Throwable t)
// System.out.print(t.getMessage());
}{color}
Before running the code on Tomcat I've compiled the code above in a simple java programe and it executed without any problem.
Then I compiled the code within a servlet. No luck. Then I treid the following options:
Executed the Tomcat service under the context of a user by specifying a user(Log On option) for the Tomcat service.
Then with Local System Account, selecting “Allow service to interact with desktop”.
this time also, no luck. Can somebody help me on this please ?
BJJFor clarity I am rewriting the last sentences here:
Then I compiled the above code within a servlet successfully and invoked the servlet from a browser with and without the following settings of Tomcat 6.0.
1. Executed the Tomcat service under the context of a user by specifying a user (Log On option) for the Tomcat service.
2. Then with Local System Account, selecting �Allow service to interact with desktop�.
I was not succeeded with any of the methods mentioned above. -
ClassNotFoundException in running jdbc servlet
hi
i've wrote a servlet to connect to my Teradata db but when i run it
on tomcat i get this java lang exeption:
ClassNotFoundException: com.ncr.teradata.TeraDriver
the thing is that the connection and sql code work on an application withoput any problems, but when i try to use on a servlet i get this exception...
why??
maybe i have to change some settings of tomcat.. ?
hope someone can say smth about
thanks!You need to tell Tomcat where to find the JDBC driver, remember that the Tomcat Classpath overrides the JDK classpath. For example, in Tomcat 3.x you need to put the driver in tomcat-installation/lib/common
Just be sure that the JDBC is a jar file, Tomcat cannot read zip files.
Hope this help. -
How to install custom taglibs?
This is driving me crazy. I'm building a JSP application and I'm trying to use the custom tag libraries jstl.jar and standard.jar. I've installed Tomcat vesrion 4 vesrion 27. I can make a reference to the sql.tld, but whenever I add something like <sql:query...etc />, I get the error "Unabled to load class" or "java.lang.NoClassDefFoundError: javax/servlet/jsp/JspContext
When I put jstl.jar and standard.jar in the WEB-INF\lib directory, Tomcat starts up with a lot of errors("Document is invalid no grammar found").
I've tried everything, read documentation but I still cannot figure it out.
+++++The taglib directive in my jsp looks like this:
<%@taglib prefix="sql" uri="http://java.sun.com/jstl/sql"%>
++++The header in my taglib looks like this:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>sql</short-name>
<uri>http://java.sun.com/jstl/sql</uri>
<display-name>JSTL sql</display-name>
<description>JSTL 1.0 sql library</description>
+++++and my web.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
<web-app>
<taglib>
<taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
<taglib-location>/WEB-INF/sql.tld</taglib-location>
</taglib>
</web-app>
Do I explicitly have to set the classpath? Where do I have to put the standard.jar and the jstl.jar?
Thanx for your help.
FritsThe JSTL JARs should go in your app's WEB-INF/lib. The JARs in that directory are added to the CLASSPATH by Tomcat. That's the proper place for them. No need to edit any CLASSPATH settings. Tomcat ignores any system CLASSPATH that you might have. (I recommend that people delete that environment variable altogether. It does nothing useful that I know of.)
You should not need to put any <taglib> in your web.xml. The URI that you should use to refer to the taglib is the one inside the .tld file packed in standard.jar. So your JSPs should have lines like this at the top:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>The URI must match the value inside the c.tld:
<uri>http://java.sun.com/jstl/core</uri>If you do this, Tomcat should be able to find your taglib classes. - MOD -
Pulisher CUCM web page not display
Hello,
Publisher cucm web page not displayed and DB not accessible IP phones working on Subscriber but I can't change any settings.Cisco Tomcat service not working and I can't restarting. (ver. 7.1.5)If you cannot change any config then it's more than just not being able to use a webpage, there must be some problem with the ccm/DB services on the PUB.
SSH to the server and see if there are error messages, I'd suggest a whole reboot.
HTH
java
If this helps, please rate
www.cisco.com/go/pdihelpdesk -
Simple asymmetry in XOR-type encryption
Hi there.
In my never-ending quest for knowledge, I've decided to implement a (very) simple and (very) weak encryption algorithm, to teach myself the extreme basics of cryptography. What I decided to do is this:
Take a byte array, which could represent a file, or user input, or whatever, and XOR each byte with a byte from an encryption key provided by the user.
This produces a garbled set of bits that represent the encrypted message. This also has the (dis)advantage that decryption is the same process as encryption, since XOR is symmetric. So in order to decrypt an encrypted message, you simply supply the same encryption key, and re-encrypt it. This is the code:
public static byte[] encryptOrDecrypt(byte[] key, byte[] data)
byte[] digest = new byte[data.length];
for (int i = 0; i < data.length; i++)
digest[i] = new Integer(key[i % key.length] ^ data).byteValue();
// wipe the arrays for security.
Arrays.fill(key, (byte) 0x00);
Arrays.fill(data, (byte) 0x00);
return digest;
}Note also that I am blanking the key and data arrays so they do not remain in memory. Perhaps overkill for such a simple encryption, but it seems like a good habit to get into.
Now that works just fine; the encryption and decryption produce the proper output. However, I would like the encryption and decryption processes to be different, so that if the user wanted to double-encrypt a file, it wouldn't produce just a decrypted file as output. My idea was this:
First encrypt with a static array of nothing-up-my-sleeve bytes (which I called a Rubicon), then encrypt with the user's encryption key.
Thus to decrypt, just decrypt with the user's encryption key, then with the Rubicon.private static byte[] RUBICON = {0x08, 0x29, 0x3A, 0x4B, 0x5C, 0x6D, 0x7E, 0x0F};
public static byte[] encrypt(byte[] key, byte[] data)
byte[] digest = new byte[data.length];
for (int i = 0; i < data.length; i++)
digest[i] = new Integer(RUBICON[i % RUBICON.length] ^ data[i]).byteValue();
for (int i = 0; i < data.length; i++)
digest[i] = new Integer(key[i % key.length] ^ digest[i]).byteValue();
// wipe the arrays for security.
Arrays.fill(key, (byte) 0x00);
Arrays.fill(data, (byte) 0x00);
return digest;
// and the decrypt method would work in the reverse
I thought I was being pretty clever. Turns out that because of the symmetry of XOR, it doesn't matter whether you use the Rubicon or user's key first, you'll get the same output.
I am trying to think of a way that is simpler than RSA-level algorithms, but more realistically secure than a Caesar cipher (example: shifting 1 byte right on encryption, then 1 byte left on decryption is way too simple). Any ideas for methods to differentiate between encryption and decryption, while staying simple but not too simple?Well, what I m searching for is something like:
needs-client-auth="if-cert-exists"
(i.e. when I set my secure-web-site.xml settings, in the ssl-config entity.)
I'm new to OC4J and got no idea if this possible. I know that this can be at least done in Tomcat and Weblogic.
By applying the settings as:
Tomcat => clientAuth="want"
and
Weblogic => Two Way Client Cert Behavior = "Client Certs Requested But Not Enforced"
Please advice, how to solve this in Oracle products ?
Thank you -
Hyperion Planning connection failure - No Applications are Available
Hi,
I am facing an issue and hoping to obtain some help from you gurus. I installed Hyperion Planning and Oracle db in the VM. Sample app installed. Everything worked fine. For some reasons, I need to change the ip address of the VM. THEN, when I connect to Hyperion Planning again using IE, it shows No applications are available on the logon page. I have already changed the settings in Tomcat's xml files to reflect the new ip. The exception thrown is as followed. The ip address: 172.16.36.133 is old, and I can't find anywhere to change it. Can someone please help?
Feb 5, 2009 12:23:59 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8300
Feb 5, 2009 12:23:59 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2953 ms
Feb 5, 2009 12:23:59 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 5, 2009 12:23:59 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
Feb 5, 2009 12:23:59 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Feb 5, 2009 12:24:00 AM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Feb 5, 2009 12:24:00 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /HyperionPlanning from URL file
:C:\Hyperion\deployments\Tomcat5\HyperionPlanning\webapps\HyperionPlanning
Unable to create JDBC connection. java.sql.SQLException: [Hyperion][Oracle JDBC
Driver]Error establishing socket to host and port: 172.16.36.133:1521. Reason: C
onnection timed out: connect
Unable to set Planning's Oracle connection numeric character to '.'. java.lang.N
ullPointerException
Can not set database catalog name, skipping set of catalog name: xe
Can not get JDBC connection.
java.lang.Exception: No object were successfully created. This can be caused by
any of the following: The OLAP Server is not running, The DBMS is not running, t
he DBMS is running on a different machine that the one specified, the name and p
assword provided were incorrect.
at com.hyperion.planning.HspPool.getObject(Unknown Source)
at com.hyperion.planning.sql.HspSQLImpl.getConnection(Unknown Source)
at com.hyperion.planning.utils.HspJSHomePropsFactory.createHomeInstance(
Unknown Source)
at com.hyperion.planning.utils.HspJSHomePropsFactory.createHomeInstance(
Unknown Source)
at com.hyperion.planning.HspJSHomeImpl.loadProperties(Unknown Source)
at com.hyperion.planning.HspJSHomeImpl.<init>(Unknown Source)
at com.hyperion.planning.HspJSHomeImpl.getStaticHome(Unknown Source)
at com.hyperion.planning.HspJSHomeImpl.getStaticHome(Unknown Source)
at com.hyperion.planning.HspServletContextListener.contextInitialized(Un
known Source)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
343)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:701)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
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:4
80)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:231
3)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Exception while trying to load HspJSHome.properties: Connection was null
java.lang.NullPointerException: Connection was null
at com.hyperion.planning.sql.HspSQLImpl.executeQuery(Unknown Source)
at com.hyperion.planning.sql.HspSQLImpl.executeQuery(Unknown Source)
at com.hyperion.planning.utils.HspJSHomePropsFactory.createHomeInstance(
Unknown Source)
at com.hyperion.planning.utils.HspJSHomePropsFactory.createHomeInstance(
Unknown Source)
at com.hyperion.planning.HspJSHomeImpl.loadProperties(Unknown Source)
at com.hyperion.planning.HspJSHomeImpl.<init>(Unknown Source)
at com.hyperion.planning.HspJSHomeImpl.getStaticHome(Unknown Source)
at com.hyperion.planning.HspJSHomeImpl.getStaticHome(Unknown Source)
at com.hyperion.planning.HspServletContextListener.contextInitialized(Un
known Source)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
343)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:701)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
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:4
80)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:231
3)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Creating rebind thread to RMI
java.lang.IllegalArgumentException: JDBC driver cannot be null
at com.hyperion.planning.HspJDBCPool.<init>(Unknown Source)
at com.hyperion.planning.sql.HspSQLImpl.connectToJDBC(Unknown Source)
at com.hyperion.planning.sql.HspSQLImpl.<init>(Unknown Source)
at com.hyperion.planning.HspJSHomeImpl.<init>(Unknown Source)
at com.hyperion.planning.HspJSHomeImpl.getStaticHome(Unknown Source)
at com.hyperion.planning.HspJSHomeImpl.getStaticHome(Unknown Source)
at com.hyperion.planning.HspServletContextListener.contextInitialized(Un
known Source)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
343)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:701)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
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:4
80)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:231
3)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
java.lang.NullPointerException: Connection was null
at com.hyperion.planning.sql.HspSQLImpl.executeQuery(Unknown Source)
at com.hyperion.planning.sql.HspSQLImpl.executeQuery(Unknown Source)
at com.hyperion.planning.utils.HspJSHomePropsFactory.getApplicationsForC
luster(Unknown Source)
at com.hyperion.planning.utils.HspJSHomePropsFactory.getApplications(Unk
nown Source)
at com.hyperion.planning.utils.HspJSHomePropsFactory.createAppsInstance(
Unknown Source)
at com.hyperion.planning.utils.HspJSHomePropsFactory.createDecryptedApps
Instance(Unknown Source)
at com.hyperion.planning.HspJSHomeImpl.<init>(Unknown Source)
at com.hyperion.planning.HspJSHomeImpl.getStaticHome(Unknown Source)
at com.hyperion.planning.HspJSHomeImpl.getStaticHome(Unknown Source)
at com.hyperion.planning.HspServletContextListener.contextInitialized(Un
known Source)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
343)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:701)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
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:4
80)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:231
3)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Can not get JDBC connection.
java.lang.NullPointerException
at com.hyperion.planning.sql.HspSQLImpl.getConnection(Unknown Source)
at com.hyperion.planning.event.HspSysExtChangeHandler.actionPoller(Unkno
wn Source)
at com.hyperion.planning.event.HspSysExtChangeHandler.<init>(Unknown Sou
rce)
at com.hyperion.planning.HspJSHomeImpl.<init>(Unknown Source)
at com.hyperion.planning.HspJSHomeImpl.getStaticHome(Unknown Source)
at com.hyperion.planning.HspJSHomeImpl.getStaticHome(Unknown Source)
at com.hyperion.planning.HspServletContextListener.contextInitialized(Un
known Source)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
343)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:701)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
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:4
80)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:231
3)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Can not get JDBC connection for SYS external changed actions.
Can not get JDBC connection.
java.lang.NullPointerException
at com.hyperion.planning.sql.HspSQLImpl.getConnection(Unknown Source)
at com.hyperion.planning.event.HspSysExtChangeHandler.actionPoller(Unkno
wn Source)
at com.hyperion.planning.event.HspSysExtChangeHandler.run(Unknown Source
Can not get JDBC connection for SYS external changed actions.
Feb 5, 2009 12:26:20 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8300
Feb 5, 2009 12:26:20 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8302
Feb 5, 2009 12:26:20 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/78 config=null
Feb 5, 2009 12:26:20 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 141140 ms
Can not get JDBC connection.
java.lang.NullPointerException
at com.hyperion.planning.sql.HspSQLImpl.getConnection(Unknown Source)
at com.hyperion.planning.event.HspSysExtChangeHandler.actionPoller(Unkno
wn Source)
at com.hyperion.planning.event.HspSysExtChangeHandler.run(Unknown Source
Can not get JDBC connection for SYS external changed actions.
Can not get JDBC connection.
java.lang.NullPointerException
at com.hyperion.planning.sql.HspSQLImpl.getConnection(Unknown Source)
at com.hyperion.planning.event.HspSysExtChangeHandler.actionPoller(Unkno
wn Source)
at com.hyperion.planning.event.HspSysExtChangeHandler.run(Unknown Source
Can not get JDBC connection for SYS external changed actions.
Can not get JDBC connection.
java.lang.NullPointerException
at com.hyperion.planning.sql.HspSQLImpl.getConnection(Unknown Source)
at com.hyperion.planning.event.HspSysExtChangeHandler.actionPoller(Unkno
wn Source)
at com.hyperion.planning.event.HspSysExtChangeHandler.run(Unknown Source
Can not get JDBC connection for SYS external changed actions.Hi,
If you have installed on tomcat have a look at :- \Hyperion\deployments\Tomcat5\HyperionPlanning\webapps\HyperionPlanning\WEB-INF\classes\PlanningSystemDB.properties
Look for the line :- SYSTEM_DB_URL=
Does it contain a machine name or ip address.
If it is an ip address and you entered a machine name when you configured then there is something wrong with the network on your VM
Cheers
John
http://john-goodwin.blogspot.com/ -
I created a WAR in my Tomcat 4.1.36 container and then loaded it in another workstation Tomcat 4.1.27 container webapp directory. I stopped and started Tomcat and the War doesnt deploy in the webapp directory. It just shows the War file and no directory for my web application. If I create a War in the 4.1.27 container and deploy it in the same one it does work. Can someone give me advise on this on why the 4.1.36 to 4.1.27 War delployment wont work?
When you get right down to it a WAR is just a zip file with a different name, and a certain format for how it should be laid out.
How are you creating these WARs?
What version of java is on each of the machines?
Are there any settings in Tomcat that are different? autodeploy? unpackWARs? -
WAR file and necessary Tomcat settings
Hello all,
These are some basic questions i came across while deploying web application.
I think, servlet being very basic for j2ee, it should be thouroghly dealt with.
1. What is developer's role with respect to WAR file? Is it created autometically by Tomcat or developer has to create it and how?
2. If i have to deploy a web application in Tomcat container, which are different essential settings i need to make in different config files such as server.xml, web.xml? Eg. time-out in wb.xml.
3. What are server.xml & web.xml? is it a part of servlet specifications?
I know you might find these very abcd.
Thanks in advance.I'm using iPlanet Webserver but I've been working with these files so some of the stuff I know may help you.
1. What is developer's role with respect to WAR file?
Is it created autometically by Tomcat or developer
has to create it and how?I think it's mostly a developer thing (not knowing much about Tomcat). Creating WAR files is quite simple - have a look here:
http://access1.sun.com/techarticles/simple.WAR.html
3. What are server.xml & web.xml? is it a part ofservlet specifications?Web.xml contains information about the servlets in the webapp. Server.xml contains a line which tells the server where the webapp has been deployed to.
The following document is useful from an iPlanet point of view and may give you some more answers:
http://docs.sun.com/db/doc/817-1833-10
Hope this helps a little :)
Maybe you are looking for
-
How can I get Adobe connect to work with 10.7.5?
When I do an Adobe connect using my MacBookPro running 10.7.5, the person on the other end does not get anything visible, except a moving cursor. Ever since I upgraded to 10.7.5, my Adobe Connect does not work correctly. Any suggestions? Thanks!
-
How to import all of DV tape from camcorder with iDVD not just 1st session
We're trying to lift the video off a Sony DV camera via firewire onto a mac mini, the recorded material is in several sessions of recording. Using iDVD's OneStep DVD this first session is imported from the camera and a DVD created with several loops
-
How to set a process with more than 10 item values to be changed?
I am trying to make a "default" button where it resets the Column checkboxes to its original state but I have more than 10 iems and I cant fill them all in the 10 slots that they have. Anyone have any ideas? thanks. For example I have columns 1-20 an
-
Rise of Nations game on Intel iMac not working ?
I have a 20" iMac Intel 2ghz Ram and the upgraded graphics memory (256mb) and I tried installing Rise of Nations but it doenst work, It installs okay and even goes through the intro movie but then it just hangs on the main title screen. Has anyone wi
-
Sync from IPOD Nano to Library
I use itunes on my laptop and my Desktop PC. I sometimes load a new album to my IPOD on my laptop and vice versa. When I connect my IPOD to my Desktop or laptop, Itunes wants to sync my IPOD with the library which does not contain the new album on my