Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Problems with a web application running a PHP script

Problems with a web application running a PHP script

2007-11-06       - By Johnny Kewl

 Back
Reply:     1     2     3     4     5     6     7     8     9     10     >>  


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
HARBOR: http://coolharbor.100free.com/index.htm
Now Tomcat is also a cool pojo application server
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
-- -- Original Message -- --
From: "Rocco Scappatura" <Rocco.Scappatura@(protected)>
To: "Tomcat Users List" <users@(protected)>
Sent: Tuesday, November 06, 2007 2:37 AM
Subject: Re: Problems with a web application running a PHP script


>
>> As Chuck mentioned , this script class is in 1.6 so you need to either
>> change the environment variable or if from service set it to 1.6.
>> Then there is just one other thing, in NB right
>> click->properties->source...
>> Check the source level...
>> ie you can be running on 1.6 but still tell NB to make it 1.5... which
>> will
>> also snooker you ;)
>
> OK, even if NB doesn't show me the choice to use 1.6 script class. I ve
> set the 1.5.

That, to me seems to be the problem, if Netbeans is not giving you the
choice of 1.6
it can only see JRE 1.5

Scripting is a new feature in JRE 1.6!
So you need to tell TC and NB to use the JRE 1.6
If TC running as a service if you double click on the feather in the task
bar, and go to the JAVA
tab, in the JVM setting you will see something like
C:\jdk1.5.0_06\jre\bin\server\jvm.dll
must be (find it on your machine)
C:\jdk1.6\jre\bin\server\jvm.dll

In NB, you go to TOOLS->PLATFORM MANAGER and show it where you have Java
JRE/JDK 1.6 installed

Then just make sure you existing project uses it at source level, ie it will
still give you the option of compiling it as 1.5, but thats no good it must
be 1.6.

> Other that this, I would like to know how I could solve my initial
> problem.

As we understand it, your application is looking for a class that only comes
in 1.6
It can find that class because the Java engine you running is 1.5.

But as we understood it, it was working in the embedded TC that comes with
NB, so that implies that it was working on JRE 1.6
and that the new TC was not...
We THINK the problem is that you have things working on different JRE's on
your machine... they must all work on the the same 1.6 one, then your DEV
environment and various TC's will work together.

>
> Moreover I have another question. When I create a new project in NB, do I
> set the 'Project folder' as the folder where I put webapps (i.e.: suppose
> that I put every webapps in "C:\tomcat", then I have to set "Project
> Folder" to "C:\tomcat")?.

NO... create a convenient projects folder on your machine and NB will put
the files there.
When you compile, and run, NB creates a build folder, and then ASKS the TC
that you have SET, to run it.
So it actually runs in that new TC you installed.

When its all debugged... and I imagine now its taking you to a functions
that it cant find (because the class is in JRE6), then you stop NB from
running that Tomcat.... compile it and just drop the WAR into any TC the
USES JRE 1.6

>
> Infact, otherwise (in particular, I have defined a different engine, host,
> connector and so on) I can't start the web application after deployment
> with NB.

NO, in the DEV environment you do nat have to deploy, just compile and run
it or debug it.
When you done you can deploy... but I prefer actually copying the WAR file
from the project to WEBAPPS, that what other people will do.

If you deploy it.... the TC wants to use the file now in TC webapps... but
while you testing you still want it to use the files in NB BUILD (your test
project) because you can debug that easily.

Get the JRE the same for everything....

You may be collecting JRE's automatically on windows... it does that....
What I always to is get the actual JDK for java, stick that in a special
folder, and tell the DEV environment to use it... then everytime browser JRE
prompt for updates, it doesnt matter if the user on the machine installs all
this stuff.

If you install the JDK1.6
Then install TC (on windows its setup)... point at that JDK6
Then install NB (on windows its setup)... point at that JDK6

Then just show NB where the new TC is.
You done!

Good luck ;)

>
> Thanks,
>
> rocsca
>
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.