Studio Creator deployment time
I have been using both Netbeans 5 and Studio Creator 2. When running a web app from Netbeans it starts up very quickly. When I create a web app in JSC, it takes quite a bit longer to deploy (...stopping...starting... messages etc. for a while). This is a bit frustrating for iterative development.
Any chance of improving the deploy time for the next release. Better still, is there a way I can configure the current system to load web apps faster when I hit "run".
thanks in advance
Hi Fred,
I'll tell you the way you can reduce deployment time down to your 1..2 seconds:
1. Go to 'Projects' pane, select your one, right click and Properties.
2. In Project properties window go to Libraries, deselect the ones that have been added to your project. For instance I use Oracle JDBC driver and an appropriate JAR files together with checkbox have been added to project.
3. Also deselect 'Build Required Projects' checkbox at the bottom.
4. Go to bundled with JSC2 Sun Application Server 8.x and add these JAR files to lib\ext directory (e.g. C:\Sun\Creator2_1\SunAppServer8\domains\creator\lib\ext).
5. Go back and try to redeploy. You got your 1..2 sec
P.S. Which PC do you use by the way? I have pretty powerful one with RAID and got 2..3 sec only.
Kind regards,
Alex
Similar Messages
-
Error in deploying the java studio creator application to tomcat
Hi,
I'm trying to deploy my Sun Java Studio application to Apache Tomcat 5.0.28.
A simple JSF web application built using the creator works fine after deploying the war file under tomcat/weapps directory.
In case of a application with databse connection I'm getting the
" com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' "
above error. My application connects to Oracle database using the Oracle Server type provided by the Studio Creator.
I have copied
jstl.jar
standard.jar
to webapps\%app%\WEB-INF\lib
The below url is currently not available ( Page not Found )stated as a solution in most of the querries regarding the deplyment to tomcat.
http://developers.sun.com/prodtech/javatools/jscreator/reference/tips/deploy_to_tomcat.html
Thanks for any help
abhiI had similar problems.
I used mysql with tomcat and have mysql in my Creator environment as well but still had the driver message you experienced.
I found that simply copying the WAR file into the webapp directory in tomcat caused a faulty deployment (it was creating /etc/tomcat5/localhost/YourProject.xml as a directory, not as a file)
I updated my Projects/MyProject/build.xml to include a deploy target and I manually execute the ant deploy step (having not figured out how to tweak the internal ant within Creator)
Note that this requires two jar files (see comments in the ant definition)
<project name="YourRoster" default="default" basedir=".">
<description>Builds, tests, and runs the project YourProject.</description>
<import file="nbproject/build-impl.xml"/>
<property file="build.properties"/>
<property name="appdir" value="."/>
<property name="distdir" value="${appdir}/dist"/>
<property name="warfile" value="${distdir}/${app}.war"/>
<property name="builddir" value="${appdir}/build"/>
<path id="classpath">
<pathelement location="${servlet.api.jar}"/>
<pathelement location="${jsp.api.jar}"/>
<fileset dir="${builddir}/WEB-INF/lib">
<include name="*.jar"/>
</fileset>
</path>
<!-- requires tomcat/server/lib/catalina-ant.jar -->
<target name="lrp-init">
<tstamp/>
<fail unless="app" message="Run ant -Dapp=... or update 'build.properties'"/>
</target>
<target name="deploy-tomcat" depends="dist"
description="Deploy web application.">
<echo message="Deploying ${app} ..."/>
<taskdef name="deploy"
classname="org.apache.catalina.ant.DeployTask"/>
<deploy url="${manager.url}" username="${username}"
password="${password}" path="/${app}"
war="file:${warfile}"/>
</target>
<target name="undeploy-tomcat" depends="lrp-init"
description="Undeploy web application.">
<echo message="Undeploying ${app} ..."/>
<taskdef name="undeploy"
classname="org.apache.catalina.ant.UndeployTask"/>
<undeploy url="${manager.url}" username="${username}"
password="${password}" path="/${app}"/>
</target>
<!-- requires ant-contrib (http://ant-contrib.sourceforge.net) -->
<target name="try.undeploy-tomcat" depends="lrp-init"
description="Call the undeploy task (which may fail).">
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
<trycatch>
<try>
<ant target="undeploy-tomcat"/>
</try>
<catch/>
</trycatch>
</target>
<target name="redeploy-tomcat" depends="try.undeploy-tomcat,deploy-tomcat"
description="Undeploy and deploy web application.">
</target>
</project>In addition, the build.properties...
jsf.dir=/opt/jsf-1_1_01
tomcat.dir=/opt/tomcat5
app=YourProject
username=tomcatAdminUser
password=tomcatPassword
manager.url=http://localhost:8080/manager
servlet.api.jar=${tomcat.dir}/common/lib/servlet-api.jar
jsp.api.jar=${tomcat.dir}/common/lib/jsp-api.jar
jsf.lib.dir=${jsf.dir}/lib
jstl.lib.dir=${tomcat.dir}/webapps/jsp-examples/WEB-INF/lib
commons.lib.dir=${tomcat.dir}/server/lib
jsf.libs=jsf-api.jar,jsf-impl.jar
jstl.libs=jstl.jar,standard.jar
commons.libs=commons-beanutils.jar,commons-digester.jarHope this helps.
...Lyall -
Deploying Java Studio Creator webapps to SJSAS PE 8.1 + Oracle
Has anybody managed to deploy Java Studio Creator webapps to Sun Application Server PE 8.1 ?
Everything works fine in the Java Studio Creator embeded app server (8.0?), but I get the following error when I try to access the database (Oracle 9):
[#|2005-01-25T20:33:48.642+0000|SEVERE|sun-appserver-pe8.1|javax.enterprise.system.container.web|_ThreadID=19;|WebModule[/smwebinterface]userView Initialization Failure
javax.faces.FacesException: java.sql.SQLException: JDBC driver does not support PreparedStatement.getMetaData()
I'm using the latest (9.2.0.5) oracle jdbc drivers downloaded from their webpage.
Thanx,
PedroPreparedStatement.getMetaData() is not required to be supported by a J2EE compliant JDBC driver. This is an optional feature. I would suggest that you post on the Creator newsgroup to see if they have a workaround for you as perhaps their is a config setting.
-
Is it possible to deploy appln created in java Studio creator
Dear Everyone,
Is it possible to deploy appln created in java Studio creator.
regards,
Ashish SAMANTHi,
These will help
http://developers.sun.com/jscreator/learning/tutorials/2/helloweb.html
"Debug and Deploy" in the tuorials at
http://developers.sun.com/jscreator/learning/tutorials/2/helloweb.html
Thanks
K -
Studio Creator 2 deploy to Tomcat 4.x?
Due to some legacy vendor apps we are running we are stuck with Java 1.3 for a little while yet.
I'm trying to test Studio Creator 2 with Apache Tomcat 4.x (JDK1.3) and my war file is being rejected with a java.lang.UnsupportedClassVersionError. I'm guessing some of the classes within the war file were compiled using Java 1.4 (specifically LifecycleListener)
Within Studio I'm using the option to Export the War file to J2EE 1.3.
It lists Tomcat 4.x as a valid target environment, which makes me wonder why this is not working.
Does anyone know if this is possible and has anyone successfully deployed a Studio project to Tomcat 4.x?There is a forum specifically for Java Studio Creator. You might want to repost your message in that forum. Hopefully the Studio Creator experts watching that forum can help anwsering your question.
The url of the Java Studio Creator is
http://swforum.sun.com/jive/forum.jspa?forumID=123 -
Problem with Java Studio Creator and Tomcat Server
Hi Gays ,
I have problem:
here is the error from tomcat 5
com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: java.lang.RuntimeException: java.sql.SQLException: statement handle not executed: getMetaData
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java: 601)
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.ja va:316)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87 )
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
if i develop application on my pc ( java studio creator with sun apps bundlled) is working perfectly,
but i migrated application to Tomcat Server ( Database the same - Oracle 10 g)
i can't show value ( as text) from datasoruce ( is in SessionBean1)
(Category-.>Subcat->Items->details( url from items table[items.jsp])
this is a working url "/faces/testpage.jsp?auk_id=31 "
( working with sun apps server , but not on Tomcat 5)
below prerender method in details.java and fragment of details.jsp
public void prerender() {
try {
String idauk = (getExternalContext().getRequestParameterMap().get("auk_id").toString());
System.out.println("wartosc auk_id " + idauk);
if (idauk != null) {
getSessionBean1().getDetailsRowSet().setObject(1,idauk);
getSessionBean1().getDetailsDataProvider().refresh();
details.jsp
xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
<jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
<f:view>
<ui:page binding="#{testpage.page1}" id="page1">
<ui:html binding="#{testpage.html1}" id="html1">
<ui:head binding="#{testpage.head1}" id="head1">
<ui:link binding="#{testpage.link1}" id="link1" url="/resources/stylesheet.css"/>
</ui:head>
<ui:body binding="#{testpage.body1}" id="body1" style="-rave-layout: grid">
<ui:form binding="#{testpage.form1}" id="form1">
<ui:staticText binding="#{testpage.staticText1}" id="staticText1" style="position: absolute; left: 120px; top: 96px" text="#{SessionBean1.testDataProvider.value['Name']}"/>
</ui:form>
</ui:body>
</ui:html>
</ui:page>
</f:view>
</jsp:root>
Help People ! Any Ideas I'm stuck, why is working with Sun Servet but not with Tomcat and only just thing ?
Thanks in advance for helping me to resolve the night problem :)Hi I found solution, i puted on the page a table -component (with brand new automaticly created dataprovider) , then i set properties visible= false for table, and now I can bind statictext with database field and deploy on tomcat server .
But i think it is not a elegant solution in page source i habe noused-code.
Have Any another Ideas. HELP PEOPLE !!!!
Mariuszek: I use Creator.because right now I can see result of my job and i can qickly change ideas ,
I tried with JDeveleper but i did'nt find this functionality (wich version do you prefered ?) , unfortunately i have to deploy my application on Tomcat. This is my study project, and i make this to become a Master of Techinal Univeristy ;), Deadline time is 30 th September :(
greetings -
JSF conflict with Sun Java Studio Creator
I was trying to use JSF but when i was installing Sun Java Studio everything went ok but there was a step saying "Deploying Web Services" that tool a lot of time about 10 minutes. So i cancelled it and the Sun Java Studio Creator was working well then when i was running the small application it didnt do anything. I think something wrong with the application server. I uninstalled Sun Java Studio Creator and installed it again.
This time no problems in installation. Then when i was creating a new JSF application when i press finish an error(1) appears and the finish button is dimmed so i have to press cancel and another error occurs(2), but the project gives an error message(3)
I have been trying to solve this problem but i dont know what to do.Please check / post the Creator log file ( Tools -> Java Studio Creator Log File)
Check / post the server log file as well, which will give more info.
To view the Sun Java System Application Server log file:
In the Servers window, right-click the Deployment Server node and choose View Server Log.
In any text editor, open the log file in the following location: install-directory\SunAppServer8\domains\creator\logs\server.log -
Import EJB to Java Studio Creator 2?
Hey all, I'm not quite sure if this is where I want to ask this question or not. I could not find another place to so I hope here will be fine.
I've been working with EJB's and deploying them to JBoss for some time now, however I'm not to great on the UI side of web apps so I am eager to try Java Studio Creator 2. The problem I have come accross is that I can't seem to import my old EJB's into Studio Creator 2...
Any help on this would be appreciated.
Thanks in advance.Hey all, I'm not quite sure if this is where I want to ask this question or not. I could not find another place to so I hope here will be fine.
I've been working with EJB's and deploying them to JBoss for some time now, however I'm not to great on the UI side of web apps so I am eager to try Java Studio Creator 2. The problem I have come accross is that I can't seem to import my old EJB's into Studio Creator 2...
Any help on this would be appreciated.
Thanks in advance. -
Is Java Studio Creator only for very little projects?
Hi
I'm developing a large program with about 100-pages. I found terrible to navigate by ApplicationOutline, Property Binding and Page Navigation.
1. ApplicationOutline should show subfolder structure hierarchically
2. Property Binding should open the page of the binding element, and hierarchical property should be alphabetically sorted
3. Graphical Page Navigation is just a game. I need only a tree view with add/delete management
of navigation-rule
Thanks
Nicola Grippaldi"Sun Java Studio Creator 2, Early Access
Please be aware of the following issues:
* There are a number of known issues with the Refactoring feature.
Before using it:
- Make a backup of your project
- Read the full Release Notes referenced below
* Avoid using subfolders for your web pages.
* You might have deployment problems, such as:
- OutOfMemory exceptions
- Theme switching not taking effect
- Some other deployment failure
If you do have these deployment problems, then:
1) Undeploy.
2) Stop the Application Server.
2) Clean the build.
3) Start the Application Server and redeploy.
* Projects created in Creator 1.0 can be imported, but you cannot
use the new components on the imported pages. We are investigating
creating a conversion utility to the new page structure.
The Sun Java Studio Creator 2 Installation and Release Notes provides
information on installing and uninstalling the product and describes
known bugs and issues. The document is located at:
http://developers.sun.com/prodtech/javatools/jscreator/ea/jsc2/reference/docs/Installation_ReleaseNotes-ea.html
Thank you for evaluating our Early Access release."
This is the content of the README.html.
Creator is only a preview and you should not try to use it with large web sites. The tool has so many bugs and performance lacks, many features seem not to be tested by Sun that it would be a waste of time. -
Studio Creator and configurable datasources problem
At design time we've binded components to a creator-configured datasource. As a result the Studio Creators generates in a '_init' method of a session bean code like
'rowSet.setDataSourceName("java:comp/env/jdbc/mydb");'
(where 'rowSet' is a 'CachedRowSetXImpl').
So far so good.
In the next step we tried to make the datasource jndi name configurable to use this code to connect to different databases. It works fine in a web/app-server environment at run time.
But unfortunately the Studio Creator doesn't accept this code. Using something other than the shown hard-coded jndi string in a statement like the example above results in a component error...
This means that we've to use different code at design time and build/runtime? At the moment after working at the design every time we change the code (substitution using ant, e.g.: "java:comp/env/jdbc/mydb" --> getDatasourceName() ) and build the archive.
Is there is any other way to avoid this problem? We dislike such one code patching...
Regards, ThomasHi I found solution, i puted on the page a table -component (with brand new automaticly created dataprovider) , then i set properties visible= false for table, and now I can bind statictext with database field and deploy on tomcat server .
But i think it is not a elegant solution in page source i habe noused-code.
Have Any another Ideas. HELP PEOPLE !!!!
Mariuszek: I use Creator.because right now I can see result of my job and i can qickly change ideas ,
I tried with JDeveleper but i did'nt find this functionality (wich version do you prefered ?) , unfortunately i have to deploy my application on Tomcat. This is my study project, and i make this to become a Master of Techinal Univeristy ;), Deadline time is 30 th September :(
greetings -
Help needed with Sun Java Studio Creator and EJB in a Portlet Project
Hi
I have created an web-application with JSF in Sun Java Studio Creator 2. The web application uses a lot of EJB's which acts as the dataProviders. In a typical jsp page i have more that one data providers(the EJB's) getting used. When i run the project everything opens up properly in the browser and the application seems to be fine.
But when i create a JSP 168 Portlet project and do exactly the same thing for some reason the Apache Pluto(comes as the default Portlet Container with Studio Creator) conks off.
Then i started going ahead step by step:
1. First i created a portletpage and added only one dataProvider(EJB) and ran the project...It gets deployed properly in Pluto and the browser comes up and everything shows up fine.
2. Just to re-confirm i did the same thing with another dataProvider(EJB). So still we have just 1 EJB in the portlet page. As expected it also worked fiine.
3. Then when I added more that one dataProviders(EJBs) in the porlet page the Apache Pluto conks off(saying that Pluto is not available)
I tried doing a lot of things but nothing works...Surprisingly the same thing works when u create a JSF web Application project but the same thing does not work when u create a JSR 168 JSF Portlet Project...
Did anybody face the same problem..Is it a bug in the Studio Creator...Any help would be highly appreciated.Hi,
There are a few discussion threads in the feedbackprograms portal for Creator 2 EA 2. The URL is:
https://feedbackprograms.sun.com/login.html
In the EA discussion forum you will find threads which discuss the concerned topic. In specific look for threads titled:
# Deploying Portlets
# Taking a JSC Portlet to Tomcat creates a Faces Mapping Error
# Problem with Pluto when trying to deploy a portlet
# Request: JSR-168 Portlet Project without JSF
We kindly request you to post your further queries related to EA in the above mentioned forum.
Cheers
Giri -
How do I update my studio creator from source 1.4 to 1.5
every time I try to make a foreach loop this message follows
for-each loops are not supported in -source 1.4
(try -source 1.5 to enable for-each loops)
how can I get source 1.5Please see this FAQ "Does Java Studio Creator support Java 5?"at http://developers.sun.com/prodtech/javatools/jscreator/reference/faqs/configuration/index.html
Does Java Studio Creator support Java 5?
The Java Studio Creator IDE does run on the Java 5 platform, however all web applications are constrained to being compiled and run with a target Java 1.4 platform.
For a Java Class Library project, it is possible to choose a target platform of 1.2, 1.3, 1.4, or 1.5 ... but only 1.4 libraries will work with a Java Studio Creator generated application.
Also: http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=59829
btw, <creator_userdir>/build.properties defines the user properties and defines the variable "default.javac.source" which is set to 1.4 by default. Not sure if changing it to 1.5 helps... -
How to do internationalization with Sun Java Studio Creator?
Hi everybody,
the Sun Java Studio Creator seems to be a great peace of software ;-) Currently I'm trying to design some forms for a hello-world-test-project. My question now is: how can I realize internationalization with property-bundles? I already managed it to create my own bundles, I set up a few locales (de, en, fr) and put in some "SayHello" Variables. But how can I associate my locale-variables in the .propertie-files with the value- or text-attributes of the UI-Components using the form designer?well... it's not working!
I created some locale-properties. Put a
<f:loadBundle basename="mypackage.mainlocales" var="messages"/>directly under the "<f:view>"-Tag as it is descriped in the manual.
But when I write something like
<ui:label binding="#{sites$main$mainmenu.label1}" id="label1" style="position: absolute; left: 312px; top: 168px" text="#{messages.test}"/>The designer crashes with an error-message:
javax.faces.el.PropertyNotFoundException: Error testing property 'test' in bean of type null
at com.sun.faces.el.PropertyResolverImpl.getType(PropertyResolverImpl.java:342)
at com.sun.rave.web.ui.faces.UIComponentPropertyResolver.getType(UIComponentPropertyResolver.java:298)
at com.sun.rave.web.ui.faces.DataProviderPropertyResolver.getType(DataProviderPropertyResolver.java:264)
at com.sun.jsfcl.data.ResultSetPropertyResolver.getType(ResultSetPropertyResolver.java:141)
at com.sun.rave.jsfsupp.container.DesignTimePropertyResolver.getType(DesignTimePropertyResolver.java:169)
at com.sun.faces.el.impl.ArraySuffix.getType(ArraySuffix.java:240)
at com.sun.faces.el.impl.ComplexValue.getType(ComplexValue.java:208)
at com.sun.faces.el.ValueBindingImpl.getType(ValueBindingImpl.java:350)
at com.sun.rave.web.ui.renderer.ValueHolderDesignTimeRenderer.encodeBegin(ValueHolderDesignTimeRenderer.java:59)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:683)Nevertheless - when I deploy my application, the locales are processed correctly.
What am I doing wrong? -
SWING, STUDIO CREATOR OR WHAT PLEASE
I am new to development and started on VB where they had a GUI that was easy for me to learn. I was worried when I switched to JAVA, although I enjoy it I was worried about the GUI, until I found Studio Creator. Can you use Studio Creator for programming where you use it with patterns and such in the development of software programs? It seems to be able to take the code (my cursory view of the manual).
I downloaded the manual and it seems just for web use, is there something similar in JAVA that I can use for software development that is as user friendly? Thank you for you help I know that this is a novice question but figured this might be the right forum.
Thank you in advance for your time and help.Yes, Creator is designed for creating web applications.
For creating more types of applications, take a look at NetBeans:
http://www.netbeans.org
It has many nice features including the ability to visually design stand alone application forms:
http://www.netbeans.org/kb/55/quickstart-gui.html -
I am new to development and started on VB where they had a GUI that was easy for me to learn. I was worried when I switched to JAVA, although I enjoy it I was worried about the GUI, until I found Studio Creator. Can you use Studio Creator for programming where you use it with patterns and such in the development of software programs? It seems to be able to take the code (my cursory view of the manual).
I downloaded the manual and it seems just for web use, is there something similar in JAVA that I can use for software development that is as user friendly? Thank you for you help I know that this is a novice question but figured this might be the right forum.
Thank you in advance for your time and help.It is not Studio Creator or Swing.
Studio Creator is an IDE. And IDE is a nice tool to can speed up and improve the development of code. However, if it is generating code (especially GUI code), and you don't know how to do it by hand, then I would recommend you learn Swing by hand first before you use and IDE to generate it for you. It will save you headaches in the future. Here is a good Swing tutorial:
http://java.sun.com/docs/books/tutorial/uiswing/index.html
Maybe you are looking for
-
After working fine for several months, my iPhone 5 has started dropping bluetooth connectivity for 2 to 5 seconds at a time with my Sony MDR-1RBT headphones. The headphones work fine with other bluetooth devices. I haven't moved to iOS7 yet. Any i
-
Select query is taking lot of time to fetch data.....
Select query is taking lot of time to fetch data. SELECT algnum atanum abdatu abzeit abname abenum bmatnr bmaktx bqdatu bqzeit bvlenr bnlenr bvltyp bvlber b~vlpla bnltyp bnlber bnlpla bvsola b~vorga INTO TABLE it_final FROM ltak AS a
-
Hi , I am using Jdev 11.1.1.7.0 , and I want to use dvt:hierarchyViewer. Most of the examples I searched were of Hierarchy Viewer bounded to EO's based VO's with ViewLinks and Association. However, my case is a bit different.. We don't uses EO's inst
-
I am trying to find a way to view my powerpoint presentations on my TV via Apple TV. Is that possible. I have been told that Apple TV only views material from itunes can I put a powerpoint slide show on itunes? How can I get my slide show to work wir
-
Hi Each night I move an RMAN backup from a PROD server to a test server. Then using RMAN script with NOCATALOG, I restore/recover the database on the test server as show below: RUN{ ALLOCATE CHANNEL dev1 DEVICE TYPE DISK; STARTUP NOMOUNT; RESTORE CON