Problem in including packages
hi everyone ,
i developed my system using eclipse, tomcat and mysql. everything is working fine in development environment. no error.
when i configure my files on live server i am getting following error,
===============================
500 Translator.CompilationFailedExceptionCompiler errors:
Found 1 semantic error compiling "C:/JRun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/jsp/jrun__jsp__index2ejspe.java":
7. import database.Generic_Database;
<----------------------->
*** Error: "database/Generic_Database" is either a misplaced package name or a non-existent entity.
Translator.CompilationFailedExceptionCompiler errors:
Found 1 semantic error compiling "C:/JRun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/jsp/jrun__jsp__index2ejspe.java":
7. import database.Generic_Database;
<----------------------->
*** Error: "database/Generic_Database" is either a misplaced package name or a non-existent entity.
===============================
here database is our package and Generic_Database is class that perform database operation.
code of JSP file.
============================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="javax.servlet.http.*,javax.servlet.*,database.Generic_Database"%>
kindly help me to solve this error.
Edited by: jani.anuj on Mar 26, 2008 6:52 PM
package database;
import java.io.*;
import java.sql.*;
public class Generic_Database
public String Classname;
public String URL;
public String Username,Password;
public String Query;
public Connection con;
public Statement stmt;
public ResultSet rs;
public Generic_Database()
Classname="";
URL="";
Username="";
Password="";
Query="";
con=null;
stmt=null;
rs=null;
// This method is use to set parameter necessary for connection
public void setParameter(String classname,String url,String username,String password)
Classname=classname;
URL=url;
Username=username;
Password=password;
try
con=DriverManager.getConnection(URL,Username,Password);
catch(Exception e)
// This will use to set query which has to be executed.
public void setQuery(String query)
Query=query;
// This will excute the set (select) query and return true if executed successfully.
public void ExecuteQuery()
try
stmt=con.createStatement();
rs=stmt.executeQuery(Query);
catch(Exception e)
// This will excute the set (Update) query and return true if executed successfully.
public void ExecuteUpdate()
try
stmt=con.createStatement();
stmt.execute(Query);
catch(Exception e)
// This will return the result generated by select query in string array
public String[][] getResult()
int noofrows,i,j;
noofrows=0;
String ResultData[][];
try
ResultSetMetaData WSsmd=rs.getMetaData();
int numcols = WSsmd.getColumnCount();
rs.beforeFirst();
while(rs.next())
noofrows=noofrows+1;
rs.beforeFirst();
ResultData=new String[noofrows+1][numcols+1];
i=1;
while(rs.next())
{ for(j=1;j<=numcols;j++)
ResultData[i][j]=rs.getString(j);
i++;
return ResultData;
catch(Exception e)
return new String[][]{{"1","2"},{"4","5"},};
// Use to disconnect from database.
public void CloseConnections()
try
rs.close();
stmt.close();
con.close();
catch(Exception e)
public String toString()
return Username + "-" + Password;
}
Similar Messages
-
i am new to java and facing problems in importing package which are self made.
secondly does JDK 1.1.3 can support swingHi,
I had some problems myself. I will add few lines, maybe it helps:
OK, let's assume that you work in a directory. In this case, set classpath to this hierarchy as well as to "." ('this' hierarchy - like in DOS).
Now, assume that you want to use packages MyPack1 and MyPack2. The source files of classes belonging to MyPack1 must:
- start with command
package MyPack1;
- be located all in the directory MyPack1
(and the same for MyPack2, of course)
If you want to use MyPack1 within MyPack2, you have to include:
import MyPack1.*;
even though MyPack1 is, in fact, located on path: ../MyPack1/*
(trust the classpath is important here) -
i have defined a package that contains numerous files. the package is com.assignment. now there are two files inside the package namely member and friends. when i try to call the member class in the friends class
suppose member newmember; it gives me symbol not found error if i include "package com.assignment" at the top of both or one of the files but if i remove those then it compiles perfectly. i cant remove the package heading as i need it for other purpose. what is the way of getting around this problem so that i can include the package name and also link two classes within the package? can someone please help me out.Check ur classpath and also folder structure of the source
This might help to understand package and classpath better
http://www.jarticles.com/package/package_eng.html -
How can I solve a Parse Error: "There was a problem parsing this package"
Hello;
I developed a really simple app in Flash Pro CC for android. I published it using AIR 13.0 for Android. When I tried to install it I received the Parse Error: "There was a problem parsing this package"
Im not sure if the problem has something to do with my app xml file, but here it is:
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://ns.adobe.com/air/application/13.0">
<id>TOeatorNOTTOeat</id>
<versionNumber>1.0.0</versionNumber>
<versionLabel>TouchEvent</versionLabel>
<filename>TO eat or NOT TO eat</filename>
<description/>
<name>TO eat or NOT TO eat</name>
<copyright/>
<initialWindow>
<content>TO%20eat%20or%20NOT%20TO%20eat.swf</content>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
<fullScreen>true</fullScreen>
<aspectRatio>landscape</aspectRatio>
<renderMode>gpu</renderMode>
<autoOrients>false</autoOrients>
</initialWindow>
<icon>
<image36x36>icons/icon36x36.png</image36x36>
<image48x48>icons/icon48x48.png</image48x48>
<image72x72>icons/icon72x72.png</image72x72>
<image96x96>icons/icon96x96.png</image96x96>
</icon>
<customUpdateUI>false</customUpdateUI>
<allowBrowserInvocation>false</allowBrowserInvocation>
<android>
<manifestAdditions>
<![CDATA[<manifest> </manifest>]]>
</manifestAdditions>
</android>
<supportedLanguages>en</supportedLanguages>
</application>
What do you think is the best to check?i don't see any problem with your manifest.
try saving your fla and the published files to a new directory and see if the error resolves. -
Problem Running SSIS Package with a SQL Server Agent
SQL Server: SQL Server 2012
VS: Visual Studio 2012
Hello,
I have been having a problem running SSIS packages by using a SQL Server Agent job. I first created these SSIS packages in a separate IS project in Visual Studio. I imported the packages to the Integration Services (Package
Store) instance on my SQL Server and tried to create a job that would run them from there.
At first I read around about needing a proxy account to allow the agent/packages to access the file system since these packages are importing data from a flat file in the SQL database. So I created a temporary admin user to
use as the user for the agent. I did this by going to Services.msc on the server and linked the account the agent's "logon as". Then arose another issue where I am getting an error about using the incorrect type for my connection managers.
The connection manager "TestFile" is an incorrect type. The type required is "OLEDB". The type available to the component is "FLATFILE". Source: Data Flow Task Flat File Destination [2] Description:
Cannot open the datafile "O:\*****\Success.txt"
I am not sure what this even means as I am getting this error even with a test package that doesn't do anything with the database. I have just two flat file connection managers in this test project one for grabbing the source file and one for
creating the new test file.
I am not sure what to do.
Thanks in advance,
MattI accidently created two posts. The newest one has the details.
I did not mean to.
SQL Server: SQL Server 2012
VS: Visual Studio 2012
Hello,
I have been having a problem running SSIS packages by using a SQL Server Agent job. I first created these SSIS packages in a separate IS project in Visual Studio. I imported the packages to the Integration Services (Package
Store) instance on my SQL Server and tried to create a job that would run them from there.
At first I read around about needing a proxy account to allow the agent/packages to access the file system since these packages are importing data from a flat file in the SQL database. So I created a temporary admin user to
use as the user for the agent. I did this by going to Services.msc on the server and linked the account the agent's "logon as". Then arose another issue where I am getting an error about using the incorrect type for my connection managers.
The connection manager "TestFile" is an incorrect type. The type required is "OLEDB". The type available to the component is "FLATFILE". Source: Data Flow Task Flat File Destination [2] Description:
Cannot open the datafile "O:\*****\Success.txt"
I am not sure what this even means as I am getting this error even with a test package that doesn't do anything with the database. I have just two flat file connection managers in this test project one for grabbing the source file and one for
creating the new test file.
I am not sure what to do.
Thanks in advance,
Matt -
unable to update itunes. help. error message when trying to update to latest version of itunes. "the installer has encountered an unexpected error installing this package. this may indicate a problem with this package. error code 2721"
Hello chae84swangin,
I recommend following the steps in the article below when getting an error message trying to install iTunes:
Trouble installing iTunes or QuickTime for Windows
http://support.apple.com/kb/HT1926
Thank you for using Apple Support Communities.
Best,
Sheila M. -
Problem with oracle packages CREATE PACKAGE some packagename in MaxDB
Hi All,
I am having Problems in Creating Packages from MaxDB ..Does MaxDB supports the CREATE PACKAGE <some packagename>concept ? if so please help me how to achieve in creating packages ..
My sample Oracle package Creation is as follows:
CREATE OR REPLACE PACKAGE BODY acs
AS
FUNCTION add_user (
user_id IN users.user_id%TYPE DEFAULT NULL,
object_type IN acs_objects.object_type%TYPE DEFAULT 'user',
creation_date IN acs_objects.creation_date%TYPE DEFAULT sysdate,
creation_user IN acs_objects.creation_user%TYPE DEFAULT NULL,
creation_ip IN acs_objects.creation_ip%TYPE DEFAULT NULL,
) RETURN users.user_id%TYPE
IS
v_user_id users.user_id%TYPE;
v_rel_id membership_rels.rel_id%TYPE;
BEGIN
v_user_id := acs_user.new (user_id, object_type, creation_date,
creation_user, creation_ip, email, ...
RETURN v_user_id;
END;
END acs;
show errors Can you Please Explain me how to write the same Package in MaxDB?
Thanks & Regards,
Shanmukh
Edited by: shanmukh babu on May 16, 2008 10:11 AMHi Shanmukh,
MaxDB does not have packages like you'll find them in Oracle.
But you can define your own functions and procedures.
From the code-example you posted, I would say that a procedure will do it ...
I suggest that you first read the documentation on procedures [CREATE DBPROC Statement|http://maxdb.sap.com/doc/7_6/a7/41ee11605911d3a98800a0c9449261/frameset.htm]
There you'll also find an example in the Tutorial section.
Be aware that the procedural capabilities of MaxDB are far less enlarged as in Oracle - but they do exist and work in their realm.
So porting a full PL/SQL application layer to MaxDB procedures may turn out to be quite difficult and/or not the best choice at all.
KR Lars -
URGENT : EP 7.0 /ECC 5.0 - Problem with Business Package : ESS/MSS
Dear Portal Gurus,
We are facing a problem with business package for ESS/MSS
Our system Info is as under :
Portal:- NW 2004s
ERP2004: - (R3 ECC 5.0)
ESS:- BP for Employee Self-Service (mySAP ERP 2004) 60.2
MSS:- BP for Manager Self-Service (mySAP ERP 2004) 60.1.1
SAP XSS à (SAP ESS 100, SAP MSS 100 and SAP PCUI_GP 100 , all upto SP 12)
After the Business Packages were installed,found that some ess apps where not deployed...so manually deployed it.
The JCO connections are OK.
Do we need to set up the backend Homepage Framework for the same......even for preview.....was thinking not.
Also, here is the error and exception that we get when we preview any ESS iview.
A critical error has occured. Processing of the service had to be terminated. Unsaved data has been lost.
Please contact your system administrator.
You dont have the authorization to start service sap.com/pcui_gp~xssutils/XssMenuArea.
com.sap.pcuigp.xssfpm.java.FPMRuntimeException: You dont have the authorization to start service sap.com/pcui_gp~xssutils/XssMenuArea.
at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:111)
at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:121)
at com.sap.pcuigp.xssfpm.wd.BackendConnections.initBackend(BackendConnections.java:234)
at com.sap.pcuigp.xssfpm.wd.BackendConnections.connectModel(BackendConnections.java:159)
at com.sap.pcuigp.xssfpm.wd.wdp.InternalBackendConnections.connectModel(InternalBackendConnections.java:183)
Thanks.
Message was edited by: Ashutosh RanaI got the same problem :/
not the authorization, but the fields in working time is displaying wrong.. (too big)
Any solution to this?
Best Regards
Kristoffer Engh -
Problem installing a package from AUR
I'm not expecting anyone to install this package just to try and answer my question but,,
I have /home on a 10 gig space ext3 and it's only 2% full.
When I try and install doom3-phantasm, the package downloads, builds and when it's time to install a window says not enough space to install.
No way this single game is over 9.5 gigs.
I'm not even seeing where it's trying to install to.
Is this a problem with the package build or am I not seeing something?I wrote the pkgbuild, so I've got it installed
$ pacman -Ql doom3-phantasm
doom3-phantasm /opt/
doom3-phantasm /opt/doom3/
doom3-phantasm /opt/doom3/phantasm/
doom3-phantasm /opt/doom3/phantasm/config.spec
doom3-phantasm /opt/doom3/phantasm/description.txt
doom3-phantasm /opt/doom3/phantasm/guis/
doom3-phantasm /opt/doom3/phantasm/guis/assets/
doom3-phantasm /opt/doom3/phantasm/guis/assets/splash/
doom3-phantasm /opt/doom3/phantasm/guis/assets/splash/launch.tga
doom3-phantasm /opt/doom3/phantasm/pak999.pk4
doom3-phantasm /opt/doom3/phantasm/phantasma.pk4
doom3-phantasm /usr/
doom3-phantasm /usr/bin/
doom3-phantasm /usr/bin/doom3-phantasm
doom3-phantasm /usr/share/
doom3-phantasm /usr/share/applications/
doom3-phantasm /usr/share/applications/doom3-phantasm.desktop
doom3-phantasm /usr/share/licenses/
doom3-phantasm /usr/share/licenses/doom3-phantasm/
doom3-phantasm /usr/share/licenses/doom3-phantasm/LICENSE
Alternatively, take a look in the "pkg" directory of where you built it, or just examine the .pkg.tar.gz installation file.
What does this show:
df -h
Last edited by brebs (2008-04-04 01:00:53) -
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2755.
Although you're getting a different error message, perhaps try the procedure from the following user tip:
"The administrator has set policies to prevent this installation" error messages when installing iTunes for Windows on Windows Vista and Windows 7 systems -
Hi,
I am getting error "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2869." while installing SAP B1DE.
Note:
Downloaded the B1DE from B1DE:SAP Business One Development Environment Tools
Using Window XP , .Net 2008, SAP B1 8.81 Version
Company Name, Contact Person, Namespace all were given while installing. All of its length is less than 8
Any help is appreciated.
Thanks in advance.
Parvatha Solai.NHi,
Try post a comment in B1DE 2.0.1 new version! blog.
Beni. -
Including packages in package hierarchy
Hi,
What is the purpose of including packages in package hierarchy?
How can I define use access for them? what is the use?
Please help me out in this.
Thanks and regards,
Lakshmi ReghuvaranHello Lakshmi
The <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fd/f39de8ae6f11d596c000a0c94260a5/content.htm">SAP Online Help</a> says the following to this topic:
<b>Goals of the Package Concept</b>
When SAP created the package architecture in R/3 Enterprise, its goals were:
To improve the structure of the software
To encapsulate software functions more strictly
To make well-defined interfaces available to all applications
To clarify responsibilities
The very same goals can be applied to your own packages, either if you are a professional software supplier for SAP or a customer.
Regards
Uwe -
Problem downloading Mars Package Inspector
Due to a server setup problem, the Mars Package Inspector may
download as a .zip file instead of an .air file. If this happens,
save the file to disk, rename it to have the .air suffix, and
double click to install. The problem should be corrected
shortly.Thanks for the feedback. If you install Beta 1 first then
Beta 2 (of AIR), the problems seem to be solved. We are in the
process of updating the site with a new version that is 100% Beta 2
compatible and will have that out in the next few days I
hope. -
When try to download firefox my android says "problem parsing this package"
I have an Allwinner Android Kitkat 4.4 tablet. When I try to download Firefox I get the message "There was a problem parsing this package" when I try to open the 'exe' file in the downloads folder. How can I fix this?
Hi stockrags,
You might have downloaded the Windows version by accident. For every different platform (ie Windows/Mac/Linux) there's a slightly different way of installing Firefox. For Android you need to either install through an app store (like Google Play) or download an 'apk' file.
Do you have access to the Google Play store? If so, use this link to install Firefox:
https://play.google.com/store/apps/details?id=org.mozilla.firefox
Otherwise, you can download the apk file from here:
http://download.cdn.mozilla.net/pub/mozilla.org/mobile/releases/latest/android/
To install from an apk, you might need to adjust your tablet's security settings to allow installations from unknown sources. Let us know if you'd like help with that. :)
Best,
Josh -
Error code 2318 (problem with installation package) HELP
Ok so I tried to download itunes earlier today, and it went fine until the very end, I got this message...
''The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2318''
So I went through and tried to repair the itunes to no avail. So I removed everything and ran the microsoft installer cleanup utility, then re-installed itunes and quicktime. Again everything went fine until the end, got the same ''2318'' error message. Itunes shows up on my desktop, as does quicktime. When I click itunes I get a pop up window telling me the application must close due to error, would I like to send an error report.
So I went back and uninstalled everything AGAIN, and now its downloading again. I'm getting kidn of peeved... can anyone help me?ok I got it. Had to end up doing a small overhaul on the computer to remove the corrupted ''sample.mov'' file out of the quicktime folder, but its working now.
Maybe you are looking for
-
IPod not recognized in iTunes after update/restore
I was prompted by a message (don't remember the exact verbage) in iTunes to restore my iPod. It appeared to download and install an iPod update. Then when iTunes restarted, the iPod was no longer recognized by iTunes. The iPod still charges and iTune
-
Installing Adobe XI on Windows 8
Hi I have downloaded Adobe XI on my Windows 8 Laptop using Firefox, it downloaded the file correctly but i cannot install it, i click on the install icon in my downloads folder, but thats all that happens, it did nothing for 8 hours yesterday, any id
-
Segmentation Error : Server returned HTTP response code: 500 for URL
Hi, when we do customer segmentation in Applet Java Builder, we create a target group using 2 or more criterion, then it prompts us an error "Communication Error" - Server returned HTTP response code: 500 for URL: http//xxxxxxxxxxx/bc/bsp/sap/CRM_MKT
-
PeopleSoft HRMS and campus 9.0 db creation please help
hi friends, [This all were install on windows server 2003 enterprise edition ] I have install 1. oracle 10g 2. weblogic 9.2 3. tuxedo 9.0 4. peopleTool 8.49 (7 cds all) 5.PeopleSoft Enterprise Human Resources Management System and Campus Solutions 9.
-
when i am upgrading the software an error message occur, my iphone couldn't recognise in itunes and not restart the mobile.